/* Foundry — visual system, built on the brand guide.
   Palette, typefaces and logo come from the Foundry brand kit. Roles below map
   brand colours to jobs on the page; only the text-safe brand colours carry
   text (Red, Pine, Off-Black), the rest are structural. */

@font-face { font-family: "Aguzzo"; src: url("/fonts/Aguzzo-Medium.woff2") format("woff2");
  font-weight: 500; font-style: normal; font-display: swap; }
@font-face { font-family: "Aguzzo"; src: url("/fonts/Aguzzo-Bold.woff2") format("woff2");
  font-weight: 700; font-style: normal; font-display: swap; }
@font-face { font-family: "Roboto"; src: url("/fonts/Roboto-Regular.woff2") format("woff2");
  font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: "Roboto"; src: url("/fonts/Roboto-SemiBold.woff2") format("woff2");
  font-weight: 600; font-style: normal; font-display: swap; }
@font-face { font-family: "Roboto"; src: url("/fonts/Roboto-Bold.woff2") format("woff2");
  font-weight: 700; font-style: normal; font-display: swap; }

:root {
  /* Brand palette, verbatim from the guide */
  --red: #ab0000;
  --pine: #20401f;
  --pine-deep: #183017;
  --wello: #fffdee;
  --off-black: #383535;
  --brand-grey: #b1b1b1;
  --tan: #9e8d6f;
  --orange: #fc8600;

  /* Roles. Grey, Tan and Orange fail AA as text on Wello, so they are
     structural and decorative only — never body copy. */
  --ground: var(--wello);
  --ground-foot: #f7f3e0;
  --ink: var(--off-black);
  --heading: var(--red);
  --mid: #6f6a66;
  --rule: var(--brand-grey);
  --accent: var(--red);
  --accent-hover: #8a0000;
  --on-accent: var(--wello);

  --font: "Roboto", system-ui, -apple-system, "Segoe UI", Helvetica, Arial, sans-serif;
  --font-head: "Aguzzo", Georgia, "Times New Roman", serif;

  --t-h1: 27px;
  --t-h2: 24px;
  --t-h3: 18px;
  --t-body: 17px;
  --t-small: 14px;

  --measure: 720px;
  --gutter: 22px;
  --section: 54px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: auto; }

body {
  margin: 0;
  background: var(--ground);
  color: var(--ink);
  font-family: var(--font);
  font-size: var(--t-body);
  line-height: 1.55;
}

.wrap { max-width: var(--measure); margin: 0 auto; padding: 0 var(--gutter); }

h1 { font-size: var(--t-h1); line-height: 1.22; margin: 0 0 14px; letter-spacing: -0.005em; }
h2 { font-size: var(--t-h2); line-height: 1.22; margin: 0 0 12px; }
h3 { font-size: var(--t-h3); line-height: 1.3; margin: 0 0 6px; }
h1, h2 { color: var(--heading); text-wrap: balance; }
h1 { font-family: var(--font-head); font-weight: 500; }
h2 { font-family: var(--font-head); font-weight: 500; }
h3 { font-family: var(--font); font-weight: 600; color: var(--ink); letter-spacing: 0.005em; }
/* The index on module rows sets in the body face against the serif title */
.module h3 .n { font-family: var(--font); }
p { margin: 0 0 14px; max-width: 64ch; }
a { color: var(--accent); }
a:hover { color: var(--accent-hover); }
ul { margin: 0 0 14px; padding-left: 20px; max-width: 64ch; }
li { margin-bottom: 6px; }
small, .small { font-size: var(--t-small); }

/* Sections are separated by a rule. No cards on grey, no panels. */
.section { padding: var(--section) 0; border-top: 2px solid var(--ink); }
.section:first-of-type { border-top: 0; }
.section > h2 { margin-bottom: 16px; }

/* The section name, not the fact-card tag. This is what tells a reader
   a new part of the page has started. */
.section > .label {
  font-size: 13px;
  font-weight: 600;
  color: var(--red);
  letter-spacing: 0.12em;
  margin-bottom: 14px;
}

.label {
  font-family: var(--font);
  font-size: 10px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--mid);
  margin: 0 0 10px;
  display: block;
}

/* Staging banner (removed at launch) ----------------------------------- */
.staging {
  background: #7a2d17; color: #fff; font-size: 13px; font-weight: 600;
  padding: 7px var(--gutter); text-align: center;
}

/* Unsupplied facts ----------------------------------------------------- */
.tbd {
  font-family: var(--font); font-size: 0.82em; font-weight: 600;
  background: #ffe9a8; border-bottom: 2px solid #8a6d0b; color: #4d3a00;
  padding: 1px 5px;
}

/* Header --------------------------------------------------------------- */
.head { border-bottom: 1px solid var(--rule); background: var(--ground); }
.head .row {
  display: flex; align-items: center; justify-content: space-between;
  gap: 12px; padding-top: 14px; padding-bottom: 14px;
}
@media (max-width: 460px) { .head nav a.txt { display: none; } }
.brand { display: block; line-height: 0; }
.brand img { display: block; height: 56px; width: auto; }
@media (min-width: 700px) { .brand img { height: 80px; } }
.head nav { display: flex; align-items: center; gap: 16px; font-size: var(--t-small); }
.head nav a.txt { color: var(--ink); text-decoration: none; }
.head nav a.txt:hover { text-decoration: underline; }

/* Sticky anchor sub-nav on the company page ---------------------------- */
.subnav {
  position: sticky; top: 0; z-index: 10;
  background: var(--ground); border-bottom: 1px solid var(--rule);
  overflow-x: auto; -webkit-overflow-scrolling: touch;
}
.subnav ul {
  display: flex; gap: 18px; margin: 0; padding: 10px var(--gutter);
  list-style: none; max-width: var(--measure); margin: 0 auto; white-space: nowrap;
}
.subnav li { margin: 0; }
.subnav a {
  font-family: var(--font);
  font-size: 14px; color: var(--mid); text-decoration: none;
  font-weight: 400; letter-spacing: 0.01em;
}
.subnav a:hover { color: var(--accent); }

/* Apply button — one style only ---------------------------------------- */
.apply {
  display: block; width: 100%; min-height: 52px;
  background: var(--accent); color: var(--on-accent);
  font-size: var(--t-body); font-weight: 700; text-align: center;
  text-decoration: none; padding: 14px 20px; border: 0;
}
.apply:hover { background: var(--accent-hover); color: var(--on-accent); }
.apply-nav {
  display: inline-block; width: auto; min-height: 44px;
  padding: 11px 16px; font-size: var(--t-small);
}
@media (min-width: 700px) {
  :root { --t-h1: 32px; --t-h2: 28px; --t-h3: 19px; --section: 68px; }
  .apply { display: inline-block; width: auto; }
}

/* FactCard — the signature element ------------------------------------- */
.factcard { border: 2px solid var(--ink); padding: 18px; margin: 0 0 18px; }
.factcard .label { margin-bottom: 12px; }
.facts { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 8px 16px; margin: 0 0 16px; }
.facts dt { font-size: var(--t-small); color: var(--mid); }
.facts dd { margin: 0; font-weight: 600; text-align: right; overflow-wrap: anywhere; }

/* JobNumbers — two-column table, no zebra ------------------------------ */
.jobnumbers { width: 100%; table-layout: fixed; border-collapse: collapse; margin: 0 0 18px; }
.jobnumbers th, .jobnumbers td {
  text-align: left; vertical-align: top;
  padding: 10px 0; border-bottom: 1px solid var(--rule);
}
.jobnumbers th { width: 42%; font-weight: 400; color: var(--mid); font-size: var(--t-small); padding-right: 14px; }
.jobnumbers td { font-weight: 600; overflow-wrap: anywhere; }
.jobnumbers tr:last-child th, .jobnumbers tr:last-child td { border-bottom: 0; }

/* Photographs ---------------------------------------------------------- */
.shot { margin: 0 0 18px; }
.shot picture { display: block; }
.shot img {
  display: block;
  width: 100%;
  height: auto;
  background: var(--ground-foot);
}
/* Location map -------------------------------------------------------- */
.map {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 10;
  border: 1px solid var(--rule);
  margin: 0 0 18px;
}

.status {
  display: inline-block; font-family: var(--font); font-size: 11px;
  text-transform: uppercase; letter-spacing: 0.1em;
  border: 1px solid var(--ink); padding: 3px 8px; margin-bottom: 12px;
}

.steps { counter-reset: s; list-style: none; padding: 0; }
.steps li { counter-increment: s; padding-left: 30px; position: relative; }
.steps li::before {
  content: counter(s) "."; position: absolute; left: 0;
  font-family: var(--font); font-weight: 700; color: var(--mid);
}

/* The four capabilities read as one list under their heading, not as four
   competing sub-headings. */
.caps li { margin-bottom: 12px; }
.caps strong { font-weight: 600; }

.module { margin-bottom: 22px; }
.module h3 .n { font-family: var(--font); color: var(--mid); font-weight: 500; }

.person { padding-top: 16px; margin-top: 16px; border-top: 1px solid var(--rule); }
.person:first-of-type { border-top: 0; margin-top: 0; padding-top: 0; }
.person .role { font-size: var(--t-small); color: var(--mid); margin-bottom: 6px; }


/* Masthead: the crest sits beside the headline, not floating above it ----- */
.masthead { display: flex; flex-direction: row-reverse; align-items: center; gap: 18px; }
.masthead h1 { margin: 0; flex: 1 1 auto; font-size: 25px; }
@media (min-width: 700px) { .masthead h1 { font-size: 30px; } }
.crest { flex: 0 0 auto; display: block; width: 76px; height: auto; }
@media (min-width: 700px) { .masthead { gap: 26px; } .crest { width: 132px; } }
/* On a narrow phone the headline cannot share a column with the crest, so the
   crest floats and the headline wraps around it — no stranded mark, no gap. */
@media (max-width: 559px) {
  .masthead { display: block; }
  .masthead::after { content: ""; display: block; clear: both; }
  .crest { float: right; width: 68px; margin: 4px 0 8px 14px; }
  .masthead h1 { text-wrap: pretty; }
}

/* Collapsible rows ----------------------------------------------------- */
/* Native <details>: no JavaScript, correct ARIA for free, and the closed
   bodies stay in the DOM so find-in-page and crawlers reach them. */
.rows { border-top: 1px solid var(--rule); margin: 0 0 18px; }
.row { border-bottom: 1px solid var(--rule); }

.row > summary {
  list-style: none;
  cursor: pointer;
  display: flex;
  align-items: baseline;
  gap: 10px;
  padding: 15px 0;
  min-height: 52px;
  font: 400 17px/1.4 var(--font);
  color: var(--ink);
}
.row > summary::-webkit-details-marker { display: none; }
.row > summary:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }

.row > summary .n {
  flex: 0 0 16px;
  font-family: var(--font);
  font-size: 13px;
  font-weight: 400;
  color: var(--mid);
}
.row > summary .lab { flex: 1 1 auto; }
.row > summary .sub {
  display: block;
  font-family: var(--font);
  font-size: 13.5px;
  font-weight: 400;
  line-height: 1.4;
  color: var(--mid);
  margin-top: 3px;
}
.row > summary .sig {
  flex: 0 0 auto;
  margin-left: auto;
  font-size: 19px;
  line-height: 1;
  color: var(--accent);
  font-weight: 400;
}
.row > summary .sig::after { content: "+"; }
.row[open] > summary .sig::after { content: "\2013"; }

.row > .body { padding: 0 0 18px; }
.row > .body > *:last-child { margin-bottom: 0; }

.faq-group { margin-bottom: 26px; }
.faq-group > h3 { margin-bottom: 10px; }

.note { font-size: var(--t-small); color: var(--mid); }

/* Footer --------------------------------------------------------------- */
.foot {
  background: var(--ground-foot); border-top: 1px solid var(--rule);
  padding: var(--section) 0 100px; font-size: var(--t-small); color: var(--mid);
}
.foot a { color: var(--mid); }
.foot p { margin: 0 0 5px; }
.foot-mark { display: block; width: 54px; height: auto; margin: 0 0 16px; opacity: 0.9; }
.foot .links { display: flex; flex-wrap: wrap; gap: 14px; margin: 14px 0; }
@media (min-width: 700px) { .foot { padding-bottom: var(--section); } }

/* StickyApplyBar — mobile only ----------------------------------------- */
.stickybar {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 20;
  background: var(--accent); display: flex; align-items: center;
  justify-content: space-between; gap: 12px; padding: 9px var(--gutter);
}
.stickybar .facts-inline {
  color: var(--on-accent); font-size: var(--t-small); font-family: var(--font); font-weight: 500;
}
.stickybar a {
  background: var(--on-accent); color: var(--accent); text-decoration: none;
  font-weight: 700; font-size: var(--t-small); padding: 10px 16px; min-height: 44px;
  display: flex; align-items: center;
}
@media (min-width: 700px) { .stickybar { display: none; } }

/* Print ---------------------------------------------------------------- */
@media print {
  .stickybar, .staging, .subnav, .head nav { display: none !important; }
  body { background: #fff; color: #000; font-size: 11pt; }
  a { color: #000; text-decoration: underline; }
  .factcard { border: 1.5pt solid #000; }
  .jobnumbers th, .jobnumbers td { border-bottom: 0.5pt solid #000; }
  .tbd { background: none; border-bottom: 1pt solid #000; }
  .map { display: none; }
  .shot img { max-height: 2.6in; width: auto; }
  .foot { background: none; }
  /* A printed page must match a fully expanded screen page. */
  details { display: block !important; }
  details > *:not(summary) { display: block !important; }
  .row > summary .sig { display: none; }
  .rows, .row { border-color: #000; }
}
