/* ==========================================================================
   True Grade Metals — the inspection docket
   Square corners, hairline rules, paper layering. Depth comes from stacked
   stock, never from blur. Mono is reserved for measured values.
   ========================================================================== */

:root{
  /* Ground / stock */
  --ground:      #dedcd7;   /* the desk the paperwork sits on */
  --ground-deep: #cfccc5;
  --sheet:       #fbfbf9;   /* document stock */
  --sheet-2:     #f2f1ed;   /* second sheet / ruled fill */

  /* Ink */
  --ink:         #15181b;
  --ink-2:       #3d444a;
  --ink-3:       #6d757c;
  --rule:        #c3c1b9;
  --rule-soft:   #dbd9d2;

  /* Pre-printed form blue */
  --blue:        #123e8c;
  --blue-deep:   #0c2b62;
  --blue-wash:   #e7ecf7;

  /* Functional — measurements only */
  --pass:        #1c6b3a;
  --pass-wash:   #e2efe7;
  --flag:        #a8431a;
  --flag-wash:   #f6e9e2;

  /* Dark punctuation */
  --night:       #14171a;
  --night-2:     #1e2226;
  --night-rule:  #333a40;
  --night-ink:   #e8e6e0;
  --night-ink-2: #9aa1a7;

  --sans: "Archivo", "Helvetica Neue", Arial, sans-serif;
  --mono: "Azeret Mono", ui-monospace, "SFMono-Regular", Menlo, monospace;

  --gut: clamp(1.25rem, 4vw, 3.5rem);
  --maxw: 1280px;
}

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

html{ -webkit-text-size-adjust:100%; scroll-behavior:smooth; }
@media (prefers-reduced-motion: reduce){ html{ scroll-behavior:auto; } }

body{
  margin:0;
  background:var(--ground);
  color:var(--ink);
  font-family:var(--sans);
  font-size:clamp(1rem, 0.96rem + 0.2vw, 1.0625rem);
  line-height:1.6;
  font-variant-numeric:tabular-nums;
  -webkit-font-smoothing:antialiased;
}

h1,h2,h3{
  font-weight:700;
  font-stretch:112%;
  letter-spacing:-0.025em;
  line-height:1.04;
  margin:0;
  text-wrap:balance;
}
p{ margin:0 0 1.1em; }
p:last-child{ margin-bottom:0; }
b,strong{ font-weight:700; }

a{ color:inherit; }

.wrap{ max-width:var(--maxw); margin-inline:auto; padding-inline:var(--gut); }

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

.skip{
  position:absolute; left:-9999px; top:0; z-index:99;
  background:var(--ink); color:var(--sheet); padding:.75rem 1rem;
}
.skip:focus{ left:0; }

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

/* Placeholder marker — must remain visible until real content lands */
.ph{
  color:var(--flag);
  background:
    repeating-linear-gradient(-45deg, transparent 0 5px, rgba(168,67,26,.10) 5px 10px);
  box-shadow:inset 0 -1px 0 var(--flag);
  font-style:italic;
}

/* ============================== Buttons ============================== */
.btn{
  display:inline-block;
  font:inherit; font-weight:700; font-stretch:105%;
  letter-spacing:.005em;
  background:var(--ink); color:var(--sheet);
  border:1px solid var(--ink);
  padding:.85rem 1.5rem;
  text-decoration:none;
  cursor:pointer;
  transition:background .16s ease, color .16s ease;
}
.btn:hover{ background:var(--blue); border-color:var(--blue); }
.btn--ghost{
  background:transparent; color:var(--ink);
  border-color:var(--ink);
}
.btn--ghost:hover{ background:var(--ink); color:var(--sheet); }
.btn--sm{ padding:.55rem 1rem; font-size:.875rem; }

/* =============================== Nav ================================= */
.nav{
  display:flex; align-items:center; gap:clamp(1rem,3vw,3rem);
  padding:1rem var(--gut);
  border-bottom:1px solid var(--rule);
  background:var(--sheet);
  position:sticky; top:0; z-index:20;
}
.nav__mark{ text-decoration:none; margin-right:auto; }
.nav__mark-name{
  display:block; font-weight:800; font-stretch:118%;
  letter-spacing:-0.03em; font-size:1.0625rem; line-height:1.1;
}
.nav__mark-sub{
  display:block; font-family:var(--mono); font-size:.625rem;
  letter-spacing:.1em; text-transform:uppercase; color:var(--ink-3); margin-top:.15rem;
}
.nav__links{ display:flex; gap:1.75rem; }
.nav__links a{
  text-decoration:none; font-size:.9375rem; font-weight:500;
  padding-bottom:2px; border-bottom:1px solid transparent;
}
.nav__links a:hover{ border-bottom-color:var(--ink); }
/* Below 860px the links drop to their own rule beneath the mark rather than
   disappearing — a grade page reached on a phone must not be a dead end. */
@media (max-width:860px){
  .nav{ flex-wrap:wrap; row-gap:.75rem; padding-bottom:0; }
  .nav__mark{ margin-right:1rem; }
  .nav__links{
    order:3; width:100%;
    gap:1.1rem; overflow-x:auto; -webkit-overflow-scrolling:touch;
    border-top:1px solid var(--rule-soft);
    padding:.6rem 0;
  }
  .nav__links a{ font-size:.875rem; white-space:nowrap; }
}

/* =============================== Hero ================================ */
.hero{
  padding:clamp(2.5rem,6vw,5.5rem) 0 clamp(3rem,7vw,6rem);
  background:
    linear-gradient(var(--ground-deep), var(--ground-deep)) 0 0/100% 1px no-repeat,
    var(--ground);
}
.hero__grid{
  max-width:var(--maxw); margin-inline:auto; padding-inline:var(--gut);
  display:grid; grid-template-columns:1fr 0.82fr;
  gap:clamp(2rem,4vw,4rem); align-items:start;
}
@media (max-width:1000px){ .hero__grid{ grid-template-columns:1fr; } }

.hero h1{
  font-size:clamp(2.6rem, 6.4vw, 5rem);
  font-stretch:118%;
  letter-spacing:-0.038em;
  margin-bottom:1.4rem;
}
.hero__body{
  font-size:clamp(1.0625rem,1.4vw,1.25rem);
  color:var(--ink-2); max-width:34ch; line-height:1.55;
}
.hero__actions{ display:flex; flex-wrap:wrap; gap:.75rem; margin:2rem 0 2.25rem; }
.hero__foot{
  font-size:.9375rem; color:var(--ink-2);
  border-top:1px solid var(--rule); padding-top:1.1rem; max-width:40ch;
}

/* ---------- The evidence sheet ---------- */
/* Real sheets underneath, with their own cut edges and stock tone.
   Depth is geometry plus one soft shadow, never a stack of hard offsets. */
.sheetstack{ position:relative; }
.sheetstack__under{
  position:absolute; border:1px solid var(--rule);
  background:var(--sheet-2);
}
.sheetstack__under--1{ inset:10px -10px -10px 10px; }
.sheetstack__under--2{ inset:20px -20px -20px 20px; background:#e9e7e1; }
@media (max-width:520px){
  .sheetstack__under--1{ inset:6px -6px -6px 6px; }
  .sheetstack__under--2{ inset:12px -12px -12px 12px; }
}

.sheet{
  margin:0; position:relative;
  /* Stock with tooth: a procedural pulp-and-fibre field over the sheet colour. */
  background-color:var(--sheet);
  background-image:url("../assets/paper.svg");
  background-repeat:repeat;
  background-size:240px 240px;
  border:1px solid var(--rule);
  box-shadow:0 14px 30px -16px rgba(21,24,27,.42);
  padding:clamp(1.1rem,2.2vw,1.75rem);
}
/* The sheets underneath take the same stock, offset so the grain does not align. */
.sheetstack__under{
  background-image:url("../assets/paper.svg");
  background-repeat:repeat;
  background-size:240px 240px;
  background-position:60px 25px;
}
.sheetstack__under--2{ background-position:130px 90px; }
.sheet__flag{
  font-family:var(--mono); font-size:.625rem; letter-spacing:.09em;
  text-transform:uppercase; color:var(--flag);
  border:1px dashed var(--flag); background:var(--flag-wash);
  padding:.35rem .55rem; margin-bottom:1.1rem;
}
.sheet__head{ display:flex; justify-content:space-between; gap:1rem; align-items:flex-start; }
.sheet__no{
  font-family:var(--mono); font-size:.5625rem; letter-spacing:.12em;
  text-transform:uppercase; color:var(--ink-3); margin:0 0 .4rem;
}
.sheet__title{
  font-weight:700; font-stretch:110%; letter-spacing:-0.02em;
  font-size:1.0625rem; margin:0;
}
.sheet__sub{ font-size:.8125rem; color:var(--ink-3); margin:.15rem 0 0; }

/* Rubber stamp: an authored asset with bitten edges and uneven ink,
   landing across the sheet's own frame the way a real one does. */
.stamp{
  flex:none; width:clamp(6rem,11vw,7.75rem); height:auto;
  transform:rotate(-7deg); transform-origin:center;
  margin:-.5rem -.75rem 0 0;
  opacity:0;
}
.stamp.is-on{ animation:stampIn .26s cubic-bezier(.16,1,.3,1) forwards; }
@keyframes stampIn{
  from{ opacity:0; transform:rotate(-7deg) scale(1.35); }
  to  { opacity:1; transform:rotate(-7deg) scale(1); }
}
@media (prefers-reduced-motion: reduce){
  .stamp{ opacity:1; }
  .stamp.is-on{ animation:none; }
}

.sheet__meta{
  display:grid; grid-template-columns:repeat(2,1fr);
  gap:0; margin:1.25rem 0 0;
  border-top:1px solid var(--rule);
}
.sheet__meta > div{
  padding:.55rem .1rem; border-bottom:1px solid var(--rule-soft);
}
.sheet__meta > div:nth-child(odd){ border-right:1px solid var(--rule-soft); padding-right:.75rem; }
.sheet__meta > div:nth-child(even){ padding-left:.75rem; }
.sheet__meta dt{
  font-family:var(--mono); font-size:.5625rem; letter-spacing:.12em;
  text-transform:uppercase; color:var(--ink-3);
}
.sheet__meta dd{ margin:.1rem 0 0; font-weight:600; font-size:.9375rem; }

.assay{ width:100%; border-collapse:collapse; margin-top:1.25rem; font-family:var(--mono); }
.assay th, .assay td{
  text-align:right; padding:.45rem .4rem;
  font-size:.8125rem; border-bottom:1px solid var(--rule-soft);
}
.assay thead th{
  font-size:.5625rem; letter-spacing:.11em; text-transform:uppercase;
  color:var(--ink-3); font-weight:500; border-bottom:1px solid var(--rule);
  padding-bottom:.5rem;
}
.assay tbody th{ text-align:left; font-weight:600; }
.assay .num{ font-weight:600; color:var(--ink-3); transition:color .2s ease; }
.assay tr.is-in .num{ color:var(--ink); }
/* Marks are drawn, never a font glyph. */
.assay .res{ width:2rem; position:relative; }
.assay tr.is-in .res::after{
  content:""; position:absolute; right:.5rem; top:50%;
  width:.5rem; height:.26rem;
  border-left:2px solid var(--pass); border-bottom:2px solid var(--pass);
  transform:translateY(-72%) rotate(-45deg);
}
/* The watched element is circled, the way a value is circled on a real docket:
   this is the one the substitution turns on, not merely another pass. */
.assay tr.is-watch.is-in{ background:var(--flag-wash); }
.assay tr.is-watch.is-in .num{ color:var(--flag); font-weight:700; }
.assay tr.is-watch.is-in th{ color:var(--flag); }
.assay tr.is-watch.is-in .res::after{
  width:.72rem; height:.72rem; right:.4rem;
  border:1.5px solid var(--flag); border-radius:50%;
  transform:translateY(-50%) rotate(-8deg);
}

.sheet__note{
  margin-top:1.1rem; padding-top:.9rem; border-top:1px solid var(--rule);
  font-size:.8125rem; color:var(--ink-2); line-height:1.5;
}

/* ============================= Problem =============================== */
.problem{ background:var(--sheet); border-block:1px solid var(--rule); padding:clamp(3.5rem,7vw,6.5rem) 0; }
.problem h2{ font-size:clamp(1.9rem,4vw,3rem); max-width:16ch; }
.lede{
  font-size:clamp(1.0625rem,1.3vw,1.1875rem);
  color:var(--ink-2); max-width:62ch; margin-top:1.2rem;
}
.qform{
  list-style:none; margin:clamp(2rem,4vw,3rem) 0; padding:0;
  border-top:1px solid var(--rule);
  max-width:none;
}
.qform li{
  display:flex; align-items:baseline; gap:1.25rem;
  padding:1rem .25rem; border-bottom:1px solid var(--rule-soft);
}
.qform__q{
  font-size:clamp(1.0625rem,1.9vw,1.5rem); font-weight:600;
  font-stretch:108%; letter-spacing:-0.02em; flex:0 1 auto;
}
.qform__blank{
  flex:1 1 auto; min-width:4rem;
  border-bottom:1px solid var(--rule);
  align-self:flex-end; height:1.1em;
}
.qform__key{ border-bottom:2px solid var(--ink); }
.qform__key .qform__q{ color:var(--flag); }
.qform__key .qform__blank{ border-bottom-color:var(--flag); }
/* Narrow: the question takes the line, the rule sits beneath it */
@media (max-width:700px){
  .qform li{ flex-wrap:wrap; gap:.4rem; }
  .qform__q{ flex:1 1 100%; }
  .qform__blank{ flex:1 1 100%; min-width:0; height:.85em; }
}
.problem__turn{
  font-size:clamp(1.0625rem,1.3vw,1.1875rem); max-width:64ch; color:var(--ink-2);
}
.problem__turn b{ color:var(--ink); }

/* ========================== Verification chain ======================= */
.chain{
  background:var(--night); color:var(--night-ink);
  padding:clamp(3.5rem,7vw,7rem) 0;
}
.chain__head{ border-bottom:1px solid var(--night-rule); padding-bottom:1.75rem; margin-bottom:0; }
.chain__head h2{ font-size:clamp(2rem,4.6vw,3.4rem); font-stretch:115%; }
.chain__head p{ color:var(--night-ink-2); margin:.9rem 0 0; max-width:52ch; }

.gates{ list-style:none; margin:0; padding:0; counter-reset:g; }
.gate{
  display:grid; grid-template-columns:9.5rem 1fr;
  gap:clamp(1rem,3vw,2.5rem);
  padding:clamp(1.75rem,3vw,2.5rem) 0;
  border-bottom:1px solid var(--night-rule);
  /* Resting state must clear 4.5:1 on its own — the reveal is the delta,
     not the difference between legible and not. */
  opacity:.8;
  transition:opacity .5s ease;
}
.gate.is-in{ opacity:1; }
@media (prefers-reduced-motion: reduce){ .gate{ opacity:1; } }
.gate__no{
  font-family:var(--mono); font-size:.6875rem; letter-spacing:.14em;
  text-transform:uppercase; color:var(--night-ink-2);
  padding-top:.45rem;
  position:relative;
}
.gate__no::after{
  content:""; position:absolute; left:0; bottom:-.6rem;
  width:2.5rem; height:2px; background:var(--night-ink);
  transform:scaleX(0); transform-origin:left center;
  transition:transform .6s cubic-bezier(.16,1,.3,1) .1s;
}
.gate.is-in .gate__no::after{ transform:scaleX(1); }
.gate__body h3{
  font-size:clamp(1.3rem,2.4vw,1.9rem); font-stretch:112%; margin-bottom:.7rem;
}
.gate__body p{ color:var(--night-ink-2); max-width:62ch; }
.gate__body b{ color:var(--night-ink); }
.gate__answers{
  font-family:var(--mono); font-size:.75rem; letter-spacing:.02em;
  color:var(--night-ink-2); border-top:1px solid var(--night-rule);
  padding-top:.75rem; margin-top:1.1rem;
}
.gate__answers em{ color:var(--night-ink); font-style:normal; }
.gate--hero .gate__body h3{ color:#fff; }
@media (max-width:760px){ .gate{ grid-template-columns:1fr; gap:.75rem; } }

/* ============================== Creed ================================ */
.creed{
  background:var(--blue); color:#fff;
  padding:clamp(3.5rem,8vw,7rem) 0;
}
.creed__line{
  font-size:clamp(2.4rem,7.4vw,6rem);
  font-weight:800; font-stretch:120%; letter-spacing:-0.045em; line-height:.98;
  margin:0 0 1.5rem;
}
.creed__sub{
  max-width:56ch; font-size:clamp(1.0625rem,1.4vw,1.25rem);
  color:#cfd9ee; margin:0;
}

/* ============================ Materials ============================== */
.materials{ background:var(--sheet); padding:clamp(3.5rem,7vw,6.5rem) 0; border-bottom:1px solid var(--rule); }
.sec__head{ margin-bottom:clamp(2rem,4vw,3rem); }
.sec__head h2{ font-size:clamp(1.9rem,4vw,3rem); }

.grades{ width:100%; border-collapse:collapse; }
.grades caption{ text-align:left; }
.grades thead th{
  font-family:var(--mono); font-size:.5625rem; letter-spacing:.12em;
  text-transform:uppercase; color:var(--ink-3); font-weight:500;
  text-align:left; padding:0 1rem .6rem 0; border-bottom:1px solid var(--ink);
}
.grades td, .grades tbody th{
  text-align:left; padding:.9rem 1rem .9rem 0;
  border-bottom:1px solid var(--rule-soft); vertical-align:top;
}
.grades tbody th{ font-weight:700; font-stretch:108%; letter-spacing:-0.015em; white-space:nowrap; }
.grades td:nth-child(2), .grades td:nth-child(3){
  font-family:var(--mono); font-size:.8125rem; color:var(--ink-2); white-space:nowrap;
}
.grades td:last-child{ color:var(--ink-2); min-width:22ch; }
.grades tbody tr:hover{ background:var(--blue-wash); }
.materials__more{
  margin-top:1.5rem; font-size:.9375rem; color:var(--ink-3); max-width:70ch;
}
@media (max-width:820px){
  .grades thead{ display:none; }
  .grades tbody tr{ display:block; padding:1rem 0; border-bottom:1px solid var(--rule); }
  .grades tbody th, .grades td{ display:block; border:0; padding:.1rem 0; }
  .grades tbody th{ font-size:1.0625rem; margin-bottom:.35rem; }
  .grades td:nth-child(2),.grades td:nth-child(3){ display:inline-block; margin-right:1rem; }
  .grades td:last-child{ margin-top:.5rem; }
}

/* =========================== Engagement ============================== */
.engagement{ padding:clamp(3.5rem,7vw,6.5rem) 0; }
.tiers{ display:grid; grid-template-columns:1fr 1fr; gap:1px; background:var(--rule); border:1px solid var(--rule); }
@media (max-width:820px){ .tiers{ grid-template-columns:1fr; } }
.tier{ background:var(--sheet); padding:clamp(1.5rem,3vw,2.5rem); }
/* The principal tier reads as the marked-up copy of the docket, not a tabbed card */
.tier--lead{ background:var(--sheet-2); }
.tier h3{ font-size:clamp(1.4rem,2.4vw,2rem); font-stretch:112%; }
.tier__who{ color:var(--ink-3); margin:.6rem 0 1.4rem; font-size:.9375rem; max-width:38ch; }
.ticks{ list-style:none; margin:0 0 1.5rem; padding:0; }
.ticks li{
  padding:.55rem 0 .55rem 1.6rem; border-bottom:1px solid var(--rule-soft);
  position:relative; font-size:.9375rem;
}
.ticks li::before{
  content:""; position:absolute; left:0; top:1.05em;
  width:.65rem; height:.35rem;
  border-left:2px solid var(--blue); border-bottom:2px solid var(--blue);
  transform:rotate(-45deg);
}
.tier__fee{
  font-family:var(--mono); font-size:.75rem; letter-spacing:.06em;
  text-transform:uppercase; color:var(--ink-3); margin:0;
}

/* ============================== Entity =============================== */
.entity{ background:var(--sheet); border-block:1px solid var(--rule); padding:clamp(3.5rem,7vw,6.5rem) 0; }
.entity__grid{ display:grid; grid-template-columns:1.25fr .85fr; gap:clamp(2rem,5vw,4.5rem); align-items:start; }
@media (max-width:900px){ .entity__grid{ grid-template-columns:1fr; } }
.entity h2{ font-size:clamp(1.9rem,4vw,3rem); margin-bottom:1.4rem; }
.entity p{ color:var(--ink-2); max-width:60ch; }
.facts{ margin:0; border-top:1px solid var(--ink); }
.facts > div{ display:grid; grid-template-columns:1fr; padding:.85rem 0; border-bottom:1px solid var(--rule-soft); }
.facts dt{
  font-family:var(--mono); font-size:.5625rem; letter-spacing:.12em;
  text-transform:uppercase; color:var(--ink-3);
}
.facts dd{ margin:.25rem 0 0; font-size:.9375rem; font-weight:500; }

/* =============================== RFQ ================================= */
.rfq{ padding:clamp(3.5rem,7vw,6.5rem) 0; }
.form{ border-top:1px solid var(--ink); }
.form fieldset{ border:0; margin:0; padding:clamp(1.5rem,3vw,2.25rem) 0; border-bottom:1px solid var(--rule); }
.form legend{
  font-family:var(--mono); font-size:.625rem; letter-spacing:.14em;
  text-transform:uppercase; color:var(--blue); padding:0;
}
.fieldset__why{ font-size:.875rem; color:var(--ink-3); margin:.5rem 0 1.25rem; max-width:52ch; }
.form__row{ display:grid; grid-template-columns:repeat(auto-fit,minmax(200px,1fr)); gap:1rem 1.25rem; margin-top:1.25rem; }
.form label, .form__full{ display:block; }
.form__full{ margin-top:1.25rem; }
/* Interactive labels are read while typing — they get a real size, not a caption size. */
.form label{
  font-family:var(--mono); font-size:.6875rem; letter-spacing:.1em;
  text-transform:uppercase; color:var(--ink-2);
}
/* Required fields carry a mark, as they would on a paper docket. */
.form label:has(input[required]) .req,
.form label .req{ color:var(--flag); font-weight:700; margin-left:.15rem; }

.form input, .form select, .form textarea{
  display:block; width:100%; margin-top:.4rem;
  font-family:var(--sans); font-size:1rem; color:var(--ink);
  background:var(--sheet);
  border:1px solid var(--rule); border-bottom-color:var(--ink-2);
  padding:.6rem .7rem;
  text-transform:none; letter-spacing:normal;
}
/* The two platform widgets are brought onto the ruled grammar. */
.form select{
  appearance:none; -webkit-appearance:none;
  padding-right:2.25rem;
  background-image:
    linear-gradient(45deg, transparent 50%, var(--ink-2) 50%, var(--ink-2) calc(50% + 1.5px), transparent calc(50% + 1.5px)),
    linear-gradient(-45deg, transparent 50%, var(--ink-2) 50%, var(--ink-2) calc(50% + 1.5px), transparent calc(50% + 1.5px));
  background-position:right 1.1rem center, right .75rem center;
  background-size:.4rem .4rem;
  background-repeat:no-repeat;
}
/* The native calendar glyph is suppressed and replaced with a drawn one
   in the world's own stroke weight; the picker stays clickable. */
.form input[type="date"]{
  font-family:var(--mono); font-size:.9375rem;
  padding-right:2.25rem;
  background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='none' stroke='%236d757c' stroke-width='1.4'%3E%3Crect x='1.7' y='3.2' width='12.6' height='11.1'/%3E%3Cpath d='M1.7 6.6h12.6M5 1.7v3M11 1.7v3'/%3E%3C/svg%3E");
  background-repeat:no-repeat;
  background-position:right .75rem center;
  background-size:1rem 1rem;
}
.form input[type="date"]::-webkit-calendar-picker-indicator{
  opacity:0; cursor:pointer;
  width:1.4rem; height:1.4rem; margin:0; padding:0;
}
.form input::placeholder, .form textarea::placeholder{ color:var(--ink-3); opacity:1; }
.form input:focus, .form select:focus, .form textarea:focus{
  outline:2px solid var(--blue); outline-offset:1px; background:#fff;
}
.form textarea{ resize:vertical; }
.form__submit{ display:flex; flex-wrap:wrap; align-items:center; gap:1.25rem; padding-top:1.75rem; }
.form__submit p{ font-size:.875rem; color:var(--ink-3); margin:0; max-width:44ch; }

/* =============================== Foot ================================ */
.foot{ background:var(--night); color:var(--night-ink); padding:clamp(2.5rem,5vw,4rem) 0; }
.foot__grid{ display:grid; grid-template-columns:1.2fr .8fr; gap:2rem clamp(2rem,5vw,4rem); }
@media (max-width:760px){ .foot__grid{ grid-template-columns:1fr; } }
.foot__name{ font-weight:800; font-stretch:118%; letter-spacing:-0.03em; font-size:1.25rem; margin:0 0 .5rem; }
.foot__sub{ color:var(--night-ink-2); font-size:.9375rem; margin:0; }
.foot__contact{ margin:0; }
.foot__contact > div{ padding:.5rem 0; border-bottom:1px solid var(--night-rule); }
.foot__contact dt{
  font-family:var(--mono); font-size:.5625rem; letter-spacing:.12em;
  text-transform:uppercase; color:var(--night-ink-2);
}
.foot__contact dd{ margin:.2rem 0 0; font-size:.9375rem; }
.foot__legal{
  grid-column:1/-1; border-top:1px solid var(--night-rule); padding-top:1.25rem;
  font-size:.8125rem; color:var(--night-ink-2); max-width:70ch; margin:0;
}
.foot .ph{ color:#e0a184; box-shadow:inset 0 -1px 0 #e0a184; }

/* ================= The failed docket — the promise, proved =================
   Sits on the same desk ground as the hero so the two dockets read as a pair,
   but mirrored: sheet left, argument right, breaking the section cadence. */
.reject{
  background:var(--ground);
  border-top:1px solid var(--ground-deep);
  padding:clamp(3.5rem,7vw,6.5rem) 0 clamp(4rem,8vw,7rem);
}
.reject__grid{
  display:grid; grid-template-columns:1.05fr .95fr;
  gap:clamp(2rem,5vw,4.5rem); align-items:start;
}
.reject__grid .sheetstack{ order:1; }
.reject__lede{ order:2; }
@media (max-width:940px){
  .reject__grid{ grid-template-columns:1fr; }
  .reject__grid .sheetstack{ order:2; margin-top:1rem; }
  .reject__lede{ order:1; }
}
.reject__lede h2{
  font-size:clamp(1.9rem,4vw,3rem); margin-bottom:1.4rem; max-width:18ch;
}
.reject__lede p{ color:var(--ink-2); max-width:46ch; }
.reject__note{
  border-top:1px solid var(--rule); padding-top:1.1rem; margin-top:1.6rem;
  font-size:.9375rem;
}
.num-out{ font-family:var(--mono); font-weight:700; color:var(--flag); }
.num-in{ font-family:var(--mono); font-weight:600; color:var(--ink); }

/* This one is already stamped when you arrive — no reveal, no ceremony. */
.stamp--reject{
  width:clamp(7rem,13vw,9.5rem);
  transform:rotate(5deg);
  opacity:1;
  animation:none;
}

/* Static assay: values are printed, not resolved. */
.assay--fixed .num{ color:var(--ink); font-weight:600; }
.assay--fixed .res{ position:relative; }
.assay--fixed tbody tr .res::after{
  content:""; position:absolute; right:.5rem; top:50%;
  width:.5rem; height:.26rem;
  border-left:2px solid var(--pass); border-bottom:2px solid var(--pass);
  transform:translateY(-72%) rotate(-45deg);
}
/* The out-of-spec row: struck through with a drawn cross, never a glyph. */
.assay--fixed tbody tr.is-out{ background:var(--flag-wash); }
.assay--fixed tbody tr.is-out th,
.assay--fixed tbody tr.is-out .num{ color:var(--flag); font-weight:700; }
.assay--fixed tbody tr.is-out .res::before,
.assay--fixed tbody tr.is-out .res::after{
  content:""; position:absolute; right:.4rem; top:50%;
  width:.74rem; height:2px; background:var(--flag);
  border:0;
}
.assay--fixed tbody tr.is-out .res::before{ transform:translateY(-50%) rotate(45deg); }
.assay--fixed tbody tr.is-out .res::after{ transform:translateY(-50%) rotate(-45deg); }

/* Typed remarks field, the way a real lab report carries one. */
.remarks{
  margin-top:1.25rem; padding-top:.9rem; border-top:1px solid var(--rule);
}
.remarks__label{
  font-family:var(--mono); font-size:.5625rem; letter-spacing:.12em;
  text-transform:uppercase; color:var(--ink-3); margin:0 0 .4rem;
}
.remarks__body{
  font-family:var(--mono); font-size:.75rem; line-height:1.55;
  color:var(--ink-2); margin:0;
}

.disp{
  display:grid; grid-template-columns:1fr 1fr; gap:0;
  margin:1.25rem 0 0; border-top:1px solid var(--ink);
}
.disp > div{ padding:.6rem .1rem 0; }
.disp > div:first-child{ border-right:1px solid var(--rule-soft); padding-right:.75rem; }
.disp > div:last-child{ padding-left:.75rem; }
.disp dt{
  font-family:var(--mono); font-size:.5625rem; letter-spacing:.12em;
  text-transform:uppercase; color:var(--ink-3);
}
.disp dd{ margin:.2rem 0 0; font-size:.9375rem; font-weight:700; }
.disp .is-fail{ color:var(--flag); }

/* ======================== Product form drawings ======================
   Line objects in the table's own stroke weight. Drawn, never photographed. */
.formicon{
  width:2.1rem; height:1.6rem; display:block;
  color:var(--ink-3);
  stroke-linecap:round; stroke-linejoin:round;
  vector-effect:non-scaling-stroke;
}
.forms .forms__cell{ width:2.6rem; padding-right:.6rem; vertical-align:middle; }
.forms tbody tr:hover .formicon{ color:var(--blue); }

/* The set, shown once on the materials index. */
.formstrip{ padding:clamp(1.5rem,3vw,2.25rem) 0 0; }
.formstrip__label{
  font-family:var(--mono); font-size:.625rem; letter-spacing:.14em;
  text-transform:uppercase; color:var(--blue);
  padding-bottom:.7rem; margin:0 0 1.1rem; border-bottom:1px solid var(--ink);
}
.formstrip__list{
  list-style:none; margin:0; padding:0;
  display:grid; grid-template-columns:repeat(6,1fr); gap:1rem;
}
.formstrip__list li{
  display:flex; flex-direction:column; gap:.6rem;
  padding-bottom:.9rem; border-bottom:1px solid var(--rule-soft);
}
.formstrip__list span{
  font-family:var(--mono); font-size:.625rem; letter-spacing:.08em;
  text-transform:uppercase; color:var(--ink-2);
}
.formicon--lg{ width:3.4rem; height:2.6rem; color:var(--ink-2); }
@media (max-width:760px){
  .formstrip__list{ grid-template-columns:repeat(3,1fr); gap:1.25rem 1rem; }
}
@media (max-width:420px){
  .formstrip__list{ grid-template-columns:repeat(2,1fr); }
}

/* ============================ Image slots ============================
   An unfilled slot is deliberately unmistakable: it names the file and the
   shot it is waiting for, so replacing it is a drop-in rather than a guess.
   Swap the inner .imgslot__box for the real image element once it lands. */
.imgslot{ margin:0 0 clamp(2rem,4vw,3rem); }
.imgslot__box{
  display:flex; flex-direction:column; justify-content:center; align-items:center;
  gap:.5rem; text-align:center; padding:1.5rem;
  border:1px dashed var(--flag);
  background:
    repeating-linear-gradient(-45deg, transparent 0 7px, rgba(168,67,26,.07) 7px 14px),
    var(--sheet);
}
.imgslot--band .imgslot__box{ aspect-ratio:3 / 1; }
.imgslot--strip .imgslot__box{ aspect-ratio:7 / 2; }
@media (max-width:640px){
  .imgslot--band .imgslot__box,
  .imgslot--strip .imgslot__box{ aspect-ratio:2 / 1; }
}
.imgslot__name{
  font-family:var(--mono); font-size:.75rem; letter-spacing:.04em;
  color:var(--flag); margin:0; font-weight:600;
}
.imgslot__spec{
  font-family:var(--mono); font-size:.625rem; letter-spacing:.06em;
  color:var(--ink-3); margin:0; max-width:52ch; line-height:1.6;
}
.imgslot figcaption{
  font-family:var(--mono); font-size:.5625rem; letter-spacing:.12em;
  text-transform:uppercase; color:var(--flag); margin-top:.6rem;
}
/* A real image inherits the slot's footprint and crops to it. */
.imgslot img{
  display:block; width:100%; height:auto;
  border:1px solid var(--rule);
  object-fit:cover;
}
/* Sources are 1280x714 (1.79:1). A 3:1 band would crop 40% of the height and
   take the top off the pallet bundle, so both settle at 12:5 — enough to read
   as a band, shallow enough to keep the subject whole. */
.imgslot--band img,
.imgslot--strip img{ aspect-ratio:12 / 5; }
@media (max-width:640px){
  .imgslot--band img, .imgslot--strip img{ aspect-ratio:16 / 9; }
}

/* ==================== The commitment : risk reversal ====================
   Reads as a formal undertaking on the desk — a heavy ink rule across the
   top of the sheet, the way a signed page is headed. */
.pledge{ background:var(--ground); padding:clamp(3rem,6vw,5.5rem) 0; }
.pledge__grid{
  display:grid; grid-template-columns:1.05fr .95fr;
  gap:clamp(1.5rem,4vw,3.5rem); align-items:start;
  background-color:var(--sheet);
  background-image:url("../assets/paper.svg");
  background-repeat:repeat; background-size:240px 240px;
  border:1px solid var(--rule); border-top:3px solid var(--ink);
  box-shadow:0 14px 30px -18px rgba(21,24,27,.38);
  padding:clamp(1.75rem,3.5vw,3rem);
}
@media (max-width:860px){ .pledge__grid{ grid-template-columns:1fr; } }
.pledge__head h2{
  font-size:clamp(1.8rem,3.8vw,2.9rem); font-stretch:115%;
  letter-spacing:-0.03em; max-width:16ch;
}
.pledge__body p{ color:var(--ink-2); max-width:52ch; }
.pledge__points{
  list-style:none; margin:1.5rem 0 0; padding:0;
  border-top:1px solid var(--rule);
}
.pledge__points li{
  padding:.7rem 0 .7rem 1.6rem; border-bottom:1px solid var(--rule-soft);
  position:relative; font-size:.9375rem; font-weight:600;
}
.pledge__points li::before{
  content:""; position:absolute; left:0; top:1.15em;
  width:.65rem; height:.35rem;
  border-left:2px solid var(--blue); border-bottom:2px solid var(--blue);
  transform:rotate(-45deg);
}

/* ======================= The offer : the one raised voice ================
   Placed at the argument's peak, and the only section besides the hero that
   asks for something. Dark so it reads as the decisive moment. */
.offer{ background:var(--night); color:var(--night-ink); padding:clamp(3rem,6vw,5.5rem) 0; }
.offer__grid{
  display:grid; grid-template-columns:1.1fr .9fr;
  gap:clamp(2rem,5vw,4.5rem); align-items:start;
}
@media (max-width:860px){ .offer__grid{ grid-template-columns:1fr; } }
.offer__lede h2{
  font-size:clamp(1.9rem,4vw,3rem); font-stretch:115%; color:#fff;
  margin-bottom:1.2rem; max-width:16ch;
}
.offer__lede p{ color:var(--night-ink-2); max-width:50ch; }
.offer__note{
  border-top:1px solid var(--night-rule); padding-top:1rem; margin-top:1.4rem;
  font-family:var(--mono); font-size:.75rem; letter-spacing:.02em;
}
.form--compact{ border-top:0; }
.form--compact .form__row{ margin-top:0; }
.offer .form label{ color:var(--night-ink-2); }
.offer .form input{
  background:var(--sheet); color:var(--ink);
  border-color:var(--night-rule); border-bottom-color:var(--night-ink-2);
}
.offer .form input:focus{ outline-color:#8fb0ff; }
.offer .btn{ background:var(--sheet); color:var(--ink); border-color:var(--sheet); }
.offer .btn:hover{ background:#fff; border-color:#fff; }
.form__submit--compact{ padding-top:1.25rem; }

/* ============================== Objections ============================== */
.faq{ background:var(--ground); padding:clamp(3rem,6vw,5.5rem) 0; }
.faq h2{ font-size:clamp(1.9rem,4vw,3rem); margin-bottom:clamp(1.5rem,3vw,2.5rem); }
.faq__list{ margin:0; border-top:1px solid var(--ink); }
.faq__list > div{
  display:grid; grid-template-columns:.85fr 1.15fr; gap:clamp(1rem,3vw,3rem);
  padding:1.4rem 0; border-bottom:1px solid var(--rule);
}
@media (max-width:760px){
  .faq__list > div{ grid-template-columns:1fr; gap:.5rem; }
}
.faq__list dt{
  font-weight:700; font-stretch:108%; letter-spacing:-0.015em;
  font-size:1.0625rem; max-width:30ch;
}
.faq__list dd{ margin:0; color:var(--ink-2); max-width:62ch; }

/* ===================== Step two of the enquiry ========================== */
.form__more{ border-bottom:1px solid var(--rule); }
.form__more > summary{
  cursor:pointer; list-style:none;
  display:flex; flex-wrap:wrap; align-items:baseline; gap:.25rem 1rem;
  padding:1.25rem 0 1.25rem 1.9rem;
  position:relative;
}
.form__more > summary::-webkit-details-marker{ display:none; }
/* Drawn marker, opening into a minus when expanded. */
.form__more > summary::before,
.form__more > summary::after{
  content:""; position:absolute; left:.15rem; background:var(--blue);
}
.form__more > summary::before{ top:1.85rem; width:.8rem; height:2px; }
.form__more > summary::after{
  top:1.45rem; left:.5rem; width:2px; height:.8rem;
  transition:transform .18s ease;
}
.form__more[open] > summary::after{ transform:scaleY(0); }
.form__more-title{
  font-weight:700; font-size:1.0625rem; font-stretch:108%; letter-spacing:-0.015em;
}
.form__more-why{
  font-family:var(--mono); font-size:.6875rem; letter-spacing:.06em;
  text-transform:uppercase; color:var(--ink-3);
}
.form__more > summary:hover .form__more-title{ color:var(--blue); }
.form__more fieldset:last-of-type{ border-bottom:0; }
