/* =========================================================
   Trustfield Staffing Group — design system
   See docs/BRAND.md for the rationale behind every token.
   ========================================================= */

/* ---------- Fonts (self-hosted, SIL OFL) ---------- */
@font-face {
  font-family: "Archivo";
  src: url("../fonts/archivo-variable.woff2") format("woff2");
  font-weight: 100 900;
  font-stretch: 62% 125%;
  font-display: swap;
}
@font-face {
  font-family: "Source Serif 4";
  src: url("../fonts/source-serif-4-variable.woff2") format("woff2");
  font-weight: 200 900;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Source Serif 4";
  src: url("../fonts/source-serif-4-variable-italic.woff2") format("woff2");
  font-weight: 200 900;
  font-style: italic;
  font-display: swap;
}

/* ---------- Tokens ---------- */
:root {
  /* Palette: vellum, iron, survey red */
  --vellum: #EFE9DD;
  --vellum-2: #E6DECF;
  --paper: #F8F5EE;
  --iron: #1D1C1A;
  --iron-2: #2C2A27;
  --graphite: #4A463F;
  --stone: #857D70;
  --rule: #CFC5B3;
  --signal: #C2411F;
  --signal-ink: #A33417;
  --signal-light: #EE7A55;

  --hatch: repeating-linear-gradient(135deg, var(--signal) 0 1.4px, transparent 1.4px 5px);

  /* Type */
  --sans: "Archivo", "Helvetica Neue", Arial, sans-serif;
  --serif: "Source Serif 4", Georgia, "Times New Roman", serif;

  /* Layout */
  --container: 1240px;
  --gutter: clamp(1.25rem, 4vw, 2.5rem);
  --section-y: clamp(4.5rem, 9vw, 8rem);
  --ease: cubic-bezier(.2, .7, .2, 1);
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 84px; -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--vellum); color: var(--iron);
  font: 400 1.125rem/1.62 var(--serif);
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
  font-variant-numeric: lining-nums;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; }
h1, h2, h3 { margin: 0; font-weight: inherit; }
p { margin: 0 0 1em; }
p:last-child { margin-bottom: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }
table { border-collapse: collapse; width: 100%; }
::selection { background: var(--signal); color: var(--vellum); }
:focus-visible { outline: 2px solid var(--signal); outline-offset: 3px; }

.container { width: 100%; max-width: var(--container); margin-inline: auto; padding-inline: var(--gutter); }
.sr-only { position: absolute; width: 1px; height: 1px; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.muted { color: var(--graphite); }
.skip-link { position: absolute; left: 1rem; top: -100px; z-index: 300; background: var(--iron); color: var(--vellum); padding: .75rem 1rem; font: 600 .95rem var(--sans); text-decoration: none; }
.skip-link:focus { top: 1rem; }

/* ---------- Type system ---------- */
.label {
  font: 650 .76rem/1.2 var(--sans); font-stretch: 78%;
  letter-spacing: .12em; text-transform: uppercase; color: var(--iron); margin: 0;
}
.display-2 {
  font-family: var(--sans); font-weight: 650; font-stretch: 112%;
  font-size: clamp(2.05rem, 1.25rem + 2.7vw, 3.55rem);
  line-height: 1.02; letter-spacing: -.025em; text-wrap: balance;
}
.lead { font-size: 1.32rem; line-height: 1.5; color: var(--iron); }
.sec-intro { font-size: 1.16rem; color: var(--graphite); max-width: 40rem; margin-top: 1.4rem; }
.link { font: 650 1rem var(--sans); color: var(--signal-ink); text-decoration: underline; text-underline-offset: 4px; text-decoration-thickness: 1px; }
.link:hover { text-decoration-thickness: 2px; }

/* Swatches: solid = under way, hatched = planned */
.sw { display: inline-block; width: 12px; height: 12px; flex: none; vertical-align: -1px; }
.sw-solid { background: var(--signal); }
.sw-hatch { background: var(--hatch); box-shadow: inset 0 0 0 1px var(--signal); }
.sw-iron { background: var(--iron); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .9rem;
  padding: .85rem 1.25rem; border: 0; border-radius: 0; cursor: pointer;
  font: 650 .95rem/1 var(--sans); letter-spacing: .01em; text-decoration: none; white-space: nowrap;
  transition: background-color .25s var(--ease), color .25s var(--ease);
}
.btn .arrow { font-family: var(--sans); transition: transform .25s var(--ease); }
.btn:hover .arrow { transform: translateX(4px); }
.btn-lg { padding: 1.15rem 1.5rem; font-size: 1rem; }
.btn-iron { background: var(--iron); color: var(--vellum); }
.btn-iron:hover { background: var(--signal); }
.btn-signal { background: var(--signal); color: #FFF; }
.btn-signal:hover { background: var(--iron); }
.btn-text {
  font: 650 1rem var(--sans); text-decoration: none; color: var(--iron);
  border-bottom: 2px solid var(--iron); padding-bottom: 3px; transition: color .2s, border-color .2s;
}
.btn-text:hover { color: var(--signal-ink); border-color: var(--signal); }

/* ---------- Brand lockup ---------- */
.brand { display: inline-flex; align-items: center; gap: .8rem; text-decoration: none; color: var(--iron); }
.brand-mark { width: 38px; height: 38px; flex: none; }
.brand-text { display: flex; flex-direction: column; line-height: 1; }
.brand-primary { font: 800 1.2rem/1 var(--sans); font-stretch: 125%; letter-spacing: .02em; }
.brand-secondary {
  font: 600 .6rem/1 var(--sans); font-stretch: 80%; letter-spacing: .44em;
  margin-top: .38rem; padding-top: .34rem; border-top: 1px solid currentColor; color: var(--graphite);
}

/* ---------- Header ---------- */
.site-header { position: sticky; top: -34px; z-index: 100; background: var(--vellum); }
.meta-bar { background: var(--iron); color: rgba(239,233,221,.78); height: 34px; display: flex; align-items: center; }
.meta-inner { display: flex; justify-content: space-between; gap: 1rem; font: 500 .74rem/1 var(--sans); font-stretch: 85%; letter-spacing: .08em; text-transform: uppercase; }
.meta-inner > span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.header-inner { display: flex; align-items: center; gap: 2rem; height: 78px; }
.site-header { border-bottom: 1px solid var(--rule); }
.site-header.is-scrolled { border-bottom-color: var(--iron); }
.primary-nav { margin-left: auto; }
.nav-list { display: flex; align-items: center; gap: .2rem; }
.nav-list a:not(.btn) {
  display: flex; align-items: baseline; gap: .35rem; padding: .5rem .7rem;
  font: 550 .93rem/1 var(--sans); text-decoration: none; color: var(--iron);
  border-bottom: 2px solid transparent; transition: border-color .2s, color .2s;
}
.nav-list a:not(.btn):hover { color: var(--signal-ink); }
.nav-list a.is-active { border-bottom-color: var(--iron); }
.nav-cta-mobile { display: none; }
.nav-toggle { display: none; }

/* ---------- Section rule ---------- */
.sec-rule {
  display: flex; align-items: baseline; gap: 1.25rem;
  border-top: 2px solid currentColor; padding-top: 1rem; margin-bottom: clamp(2.25rem, 5vw, 3.5rem);
  font: 650 .78rem/1 var(--sans); font-stretch: 78%; letter-spacing: .12em; text-transform: uppercase;
}
.sec-no { color: var(--signal-ink); }
.sec-rule-light { color: var(--vellum); }
.sec-rule-light .sec-no { color: var(--signal-light); }
.sec-head { max-width: 50rem; margin-bottom: clamp(2.75rem, 6vw, 4.5rem); }
.sec-head-split { max-width: none; display: grid; grid-template-columns: 7fr 5fr; gap: 1.5rem 4rem; align-items: end; }
.sec-head-split .sec-intro { margin-top: 0; }

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

/* ---------- Hero ---------- */
.hero { padding-top: clamp(1.5rem, 3vw, 2.5rem); }
.hero-frame { border: 2px solid var(--iron); background: var(--vellum); }
.hero-top { padding: clamp(1.75rem, 4vw, 3.25rem) clamp(1.25rem, 3.5vw, 3rem) clamp(2rem, 4vw, 3.25rem); }
.hero-kicker {
  display: flex; align-items: center; gap: .7rem; margin-bottom: clamp(1.5rem, 3vw, 2.25rem);
  font: 650 .84rem/1.3 var(--sans); font-stretch: 80%; letter-spacing: .12em; text-transform: uppercase;
}
.hero-title {
  max-width: 13ch;
  font: 700 clamp(2.6rem, .9rem + 6vw, 6.6rem)/.94 var(--sans); font-stretch: 116%;
  letter-spacing: -.035em;
}
.hero-lower { display: grid; grid-template-columns: 1fr auto; gap: 2rem 4rem; align-items: end; margin-top: clamp(1.75rem, 3.5vw, 2.75rem); }
.hero-lead { max-width: 36rem; font-size: 1.2rem; line-height: 1.55; color: var(--iron-2); margin: 0; }
.hero-actions { display: flex; align-items: center; flex-wrap: wrap; gap: 1.25rem 2rem; }

/* Roles grid: many people, one right fit */
.roles { border-top: 2px solid var(--iron); }
.roles-grid { display: grid; grid-template-columns: repeat(6, 1fr); gap: 1px; background: var(--rule); }
.roles-grid > li { position: relative; min-height: 7.25rem; padding: 1rem 1.1rem 1.1rem; display: flex; flex-direction: column; justify-content: space-between; gap: .75rem; background: var(--vellum); transition: background-color .25s var(--ease); }
.roles-grid > li:not(.role-you):hover { background: var(--vellum-2); }
.role-ind { font: 650 .68rem/1.2 var(--sans); font-stretch: 78%; letter-spacing: .12em; text-transform: uppercase; color: var(--stone); }
.role-title { font: 600 1.05rem/1.2 var(--sans); font-stretch: 100%; letter-spacing: -.005em; color: var(--iron); }
.roles-grid > li.role-you { background: var(--signal); }
.role-you a { position: absolute; inset: 0; padding: 1rem 1.1rem 1.1rem; display: flex; flex-direction: column; justify-content: space-between; text-decoration: none; }
.role-you .role-ind { color: rgba(255,255,255,.82); }
.role-you .role-title { color: #FFF; font-weight: 700; font-size: 1.15rem; }
.role-you a:hover { background: var(--iron); }
.hero-caption { margin: .9rem 0 0; font-size: .92rem; font-style: italic; color: var(--graphite); }

/* ---------- About ---------- */
.about-top { display: grid; grid-template-columns: repeat(12, 1fr); gap: 2rem; margin-bottom: clamp(3rem, 6vw, 4.5rem); }
.about-title { grid-column: 1 / 7; }
.about-copy { grid-column: 8 / 13; }
.about-copy p:not(.lead) { color: var(--graphite); font-size: 1.06rem; }

.pull { margin: 0 0 clamp(3.5rem, 7vw, 5rem); padding: clamp(1.75rem, 4vw, 2.75rem) 0; border-top: 1px solid var(--iron); border-bottom: 1px solid var(--iron); display: grid; grid-template-columns: repeat(12, 1fr); }
.pull::before { content: ""; grid-column: 1 / 2; width: 18px; height: 18px; background: var(--signal); margin-top: .7rem; }
.pull p { grid-column: 2 / 12; margin: 0; font: 400 italic clamp(1.5rem, 1.1rem + 1.5vw, 2.35rem)/1.3 var(--serif); color: var(--iron); text-wrap: balance; }

.status { border-top: 2px solid var(--iron); }
.status-head { display: flex; justify-content: space-between; align-items: center; gap: 1rem; flex-wrap: wrap; padding: 1rem 0; border-bottom: 1px solid var(--iron); }
.legend { display: flex; align-items: center; gap: .5rem; margin: 0; font: 600 .78rem/1 var(--sans); font-stretch: 85%; letter-spacing: .06em; text-transform: uppercase; color: var(--graphite); }
.legend .sw-hatch { margin-left: .9rem; }
.status-list { display: grid; grid-template-columns: repeat(4, 1fr); }
.status-list li { display: flex; flex-direction: column; gap: .9rem; padding: 1.4rem 1.5rem 1.5rem 0; border-right: 1px solid var(--rule); }
.status-list li + li { padding-left: 1.5rem; }
.status-list li:last-child { border-right: 0; padding-right: 0; }
.status-list strong { display: block; font: 650 1.05rem/1.3 var(--sans); color: var(--iron); margin-bottom: .35rem; }
.status-list div span { font-size: .96rem; color: var(--graphite); line-height: 1.5; }
.status-list em { margin-top: auto; font: 650 .74rem/1 var(--sans); font-style: normal; font-stretch: 80%; letter-spacing: .12em; text-transform: uppercase; color: var(--graphite); }
.status-list li.is-current em { color: var(--signal-ink); }

/* ---------- Services ---------- */
.services { background: var(--paper); border-top: 1px solid var(--rule); border-bottom: 1px solid var(--rule); }
.service-split { display: grid; grid-template-columns: 1fr 1fr; border-top: 2px solid var(--iron); border-bottom: 1px solid var(--iron); }
.service { padding: 2.25rem clamp(1.5rem, 4vw, 3.5rem) 2.75rem 0; display: flex; flex-direction: column; }
.service + .service { border-left: 1px solid var(--iron); padding-left: clamp(1.5rem, 4vw, 3.5rem); padding-right: 0; }
.service-plate { display: flex; justify-content: space-between; align-items: flex-start; margin-bottom: 1.75rem; }
.service-letter { font: 800 clamp(5rem, 3rem + 5vw, 8rem)/.8 var(--sans); font-stretch: 125%; color: var(--signal); letter-spacing: -.04em; }
.status-tag { display: inline-flex; align-items: center; gap: .55rem; font: 650 .76rem/1 var(--sans); font-stretch: 80%; letter-spacing: .12em; text-transform: uppercase; padding: .55rem .7rem; border: 1px solid var(--iron); }
.service-title { font: 650 clamp(1.6rem, 1.2rem + 1.2vw, 2.2rem)/1.08 var(--sans); font-stretch: 110%; letter-spacing: -.02em; margin-bottom: 1rem; }
.service > p { color: var(--graphite); }
.tick-list { margin: 1.5rem 0 2rem; border-top: 1px solid var(--rule); }
.tick-list li { position: relative; padding: .7rem 0 .7rem 1.6rem; border-bottom: 1px solid var(--rule); font-size: 1rem; line-height: 1.45; }
.tick-list li::before { content: ""; position: absolute; left: 0; top: 1.1rem; width: 8px; height: 8px; background: var(--iron); }
.service-primary .tick-list li::before { background: var(--signal); }
.terms { margin: auto 0 0; display: grid; gap: 0; }
.terms > div { display: grid; grid-template-columns: 10rem 1fr; gap: 1rem; padding: .8rem 0; border-top: 1px solid var(--iron); }
.terms dt { font: 650 .74rem/1.7 var(--sans); font-stretch: 78%; letter-spacing: .12em; text-transform: uppercase; }
.terms dd { margin: 0; font-size: .98rem; color: var(--graphite); }
.notice { margin-top: auto; position: relative; padding: 1.15rem 1.25rem 1.2rem 1.6rem; border: 1px solid var(--signal); background: rgba(194,65,31,.04); }
.notice::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 8px; background: var(--hatch); border-right: 1px solid var(--signal); }
.notice .label { color: var(--signal-ink); margin-bottom: .5rem; }
.notice p:not(.label) { font-size: .98rem; color: var(--iron-2); line-height: 1.55; }

/* Service variants */
.service-letter-iron { color: var(--iron); }
.compare-table thead th .sw-iron { margin-right: .5rem; }
.fine-print { margin: 1rem 0 0; max-width: 52rem; font-size: .9rem; font-style: italic; line-height: 1.55; color: var(--graphite); }
.index-row .note { display: block; margin-top: .4rem; font-size: .86rem; font-style: italic; line-height: 1.45; color: var(--graphite); }

/* Services comparison */
.compare { margin-top: clamp(2.5rem, 5vw, 3.5rem); overflow-x: auto; }
.compare-table { border-top: 2px solid var(--iron); border-bottom: 1px solid var(--iron); min-width: 34rem; }
.compare-table caption { text-align: left; padding: 0 0 .9rem; }
.compare-table th, .compare-table td { text-align: left; vertical-align: top; padding: .9rem 1.25rem .9rem 0; border-bottom: 1px solid var(--rule); font-size: .98rem; line-height: 1.45; }
.compare-table thead th { font: 650 .95rem/1.3 var(--sans); border-bottom: 1px solid var(--iron); }
.compare-table thead th .sw { margin-right: .5rem; }
.compare-table tbody th { width: 22%; font: 650 .72rem/1.6 var(--sans); font-stretch: 78%; letter-spacing: .12em; text-transform: uppercase; color: var(--graphite); }
.compare-table td { width: 39%; color: var(--iron-2); }
.compare-table td + td { color: var(--graphite); }
.compare-table tbody tr:last-child > * { border-bottom: 0; }

/* ---------- People ---------- */
.people { background: var(--vellum-2); }
.people-head { margin-bottom: clamp(2.5rem, 5vw, 3.75rem); }
.people-head span { color: var(--signal-ink); }
.people-split { display: grid; grid-template-columns: 1fr 1fr; border-top: 2px solid var(--iron); }
.side { padding: 2rem clamp(1.5rem, 4vw, 3.5rem) 0 0; }
.side + .side { border-left: 1px solid var(--iron); padding-left: clamp(1.5rem, 4vw, 3.5rem); padding-right: 0; }
.side-k { display: inline-block; margin-bottom: 1.25rem; padding: .45rem .7rem; background: var(--iron); color: var(--vellum); font: 650 .76rem/1 var(--sans); font-stretch: 80%; letter-spacing: .12em; text-transform: uppercase; }
.side + .side .side-k { background: var(--signal); color: #FFF; }
.side-title { font: 650 clamp(1.4rem, 1.1rem + .9vw, 1.85rem)/1.15 var(--sans); font-stretch: 108%; letter-spacing: -.015em; max-width: 24ch; margin-bottom: 1.5rem; }
.side-list { border-top: 1px solid var(--rule); margin-bottom: 1.5rem; }
.side-list li { padding: .85rem 0; border-bottom: 1px solid var(--rule); font-size: 1rem; line-height: 1.5; color: var(--graphite); }
.side-list strong { font: 650 1rem var(--sans); color: var(--iron); margin-right: .25rem; }

/* ---------- Industries ---------- */
.index { border-top: 2px solid var(--iron); }
.index-row {
  display: grid; grid-template-columns: minmax(12rem, 17rem) 1fr minmax(16rem, 24rem); gap: 1rem 2.5rem; align-items: start;
  padding: 1.5rem 0; border-bottom: 1px solid var(--rule); transition: background-color .25s var(--ease);
}
.index-row h3 { font: 650 1.3rem/1.2 var(--sans); font-stretch: 108%; letter-spacing: -.01em; }
.index-row > p { color: var(--graphite); font-size: 1rem; line-height: 1.5; }
.index-row em { display: block; margin-top: .35rem; font-style: italic; color: var(--signal-ink); }
.index-row-open { border-bottom: 2px solid var(--iron); align-items: center; }
.index-row-open .link { justify-self: start; }
.chips { display: flex; flex-wrap: wrap; gap: .4rem; }
.chips li { padding: .38rem .6rem; border: 1px solid var(--rule); background: var(--paper); font: 550 .82rem/1.2 var(--sans); color: var(--iron-2); }

/* ---------- Approach ---------- */
.approach { background: var(--iron); color: var(--vellum); }
.approach .sec-intro { color: rgba(239,233,221,.7); }
.stages { display: grid; grid-template-columns: repeat(5, 1fr); gap: 0 1.5rem; }
.stage { position: relative; padding-top: 1.5rem; border-top: 2px solid rgba(239,233,221,.85); }
.stage::before { content: ""; position: absolute; left: 0; top: -6px; width: 10px; height: 10px; background: var(--signal); }
.stage-no { display: block; font: 700 2.4rem/1 var(--sans); font-stretch: 112%; color: var(--signal-light); margin-bottom: .9rem; letter-spacing: -.02em; }
.stage h3 { font: 650 1.25rem/1.15 var(--sans); font-stretch: 108%; margin-bottom: .6rem; }
.stage p { font-size: .98rem; line-height: 1.55; color: rgba(239,233,221,.72); }
.notes { margin-top: clamp(4rem, 8vw, 6rem); border: 1px solid rgba(239,233,221,.35); }
.notes-head { color: var(--vellum); padding: .9rem 1.25rem; border-bottom: 1px solid rgba(239,233,221,.35); }
.notes-list { display: grid; grid-template-columns: 1fr 1fr; }
.notes-list li { position: relative; padding: 1.4rem 1.5rem 1.5rem 3.2rem; border-bottom: 1px solid rgba(239,233,221,.18); }
.notes-list li:nth-child(odd) { border-right: 1px solid rgba(239,233,221,.18); }
.notes-list li:nth-last-child(-n+2) { border-bottom: 0; }
.notes-list li::before { content: ""; position: absolute; left: 1.4rem; top: 1.75rem; width: 9px; height: 9px; background: var(--signal); }
.notes-list h3 { font: 650 1.1rem/1.3 var(--sans); font-stretch: 105%; margin-bottom: .35rem; }
.notes-list p { font-size: .98rem; color: rgba(239,233,221,.72); }

/* ---------- CTA ---------- */
.cta { background: var(--signal); color: var(--iron); }
.cta-inner { display: grid; grid-template-columns: 1fr minmax(16rem, 22rem); gap: 2rem 4rem; align-items: end; padding-block: clamp(3.5rem, 7vw, 5.5rem); }
.cta-title { font: 700 clamp(2.3rem, 1.2rem + 3.6vw, 4.4rem)/.95 var(--sans); font-stretch: 116%; letter-spacing: -.035em; }
.cta-title span { display: block; color: #FFF; }
.cta-side p { font-size: 1.08rem; margin-bottom: 1.5rem; color: var(--iron); }
.cta .btn-iron:hover { background: var(--vellum); color: var(--iron); }

/* ---------- Contact ---------- */
.contact-grid { display: grid; grid-template-columns: repeat(12, 1fr); gap: 2rem; align-items: start; }
.contact-info { grid-column: 1 / 6; }
.contact-form { grid-column: 7 / 13; }
.facts { margin: 2.5rem 0 0; display: grid; grid-template-columns: 1fr 1fr; border: 2px solid var(--iron); }
.facts > div { padding: .8rem 1rem .9rem; border-bottom: 1px solid var(--iron); }
.facts > div:nth-child(even):not(.facts-wide) { border-right: 1px solid var(--iron); }
.facts > div:last-child { border-bottom: 0; }
.facts .facts-wide { grid-column: 1 / -1; }
.facts dt { font: 650 .66rem/1 var(--sans); font-stretch: 78%; letter-spacing: .12em; text-transform: uppercase; color: var(--stone); margin-bottom: .4rem; }
.facts dd { margin: 0; font: 600 1rem/1.35 var(--sans); }
.facts dd .muted { font-weight: 500; }
.facts dd a { color: var(--signal-ink); }

.contact-form { border: 2px solid var(--iron); background: var(--paper); }
.form-head { padding: .9rem 1rem; border-bottom: 1px solid var(--iron); }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; }
.field { position: relative; padding: .8rem 1rem .9rem; border-bottom: 1px solid var(--rule); transition: background-color .2s; }
.field:not(.field-wide):nth-child(odd) { border-right: 1px solid var(--rule); }
.field-wide { grid-column: 1 / -1; }
.field::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 3px; background: transparent; transition: background-color .2s; }
.field:focus-within { background: #FFF; }
.field:focus-within::before { background: var(--iron); }
.field label { display: block; font: 650 .68rem/1 var(--sans); font-stretch: 78%; letter-spacing: .12em; text-transform: uppercase; color: var(--graphite); margin-bottom: .45rem; }
.field label span { color: var(--signal-ink); }
.field input, .field select, .field textarea {
  width: 100%; border: 0; border-radius: 0; background: transparent; padding: .2rem 0; outline: none;
  font: 500 1.05rem/1.4 var(--sans); color: var(--iron); appearance: none; -webkit-appearance: none;
}
.field select { cursor: pointer; background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12'%3E%3Cpath d='M2 4.5l4 4 4-4' fill='none' stroke='%231D1C1A' stroke-width='1.5'/%3E%3C/svg%3E") right center / 12px no-repeat; padding-right: 1.5rem; }
.field textarea { resize: vertical; min-height: 7rem; }
.field.has-error::before { background: var(--signal); }
.field.has-error label { color: var(--signal-ink); }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.field-check { display: grid; grid-template-columns: auto 1fr; gap: .2rem .75rem; align-items: start; padding-block: 1rem; }
.field-check input { width: 20px; height: 20px; margin: .1rem 0 0; accent-color: var(--iron); cursor: pointer; appearance: auto; -webkit-appearance: checkbox; }
.field-check label { margin: 0; font: 500 .95rem/1.45 var(--serif); letter-spacing: 0; text-transform: none; color: var(--iron-2); cursor: pointer; }
.field-check label a { color: var(--signal-ink); }
.field-check .field-error { grid-column: 2; }
.field-error { margin: .35rem 0 0; font: 600 .82rem var(--sans); color: var(--signal-ink); }
.field-error:empty { display: none; }
.form-foot { display: flex; align-items: center; gap: 1.25rem; flex-wrap: wrap; padding: 1.25rem 1rem; }
.form-note { margin: 0; font-size: .9rem; color: var(--graphite); font-style: italic; }
.form-status:empty { display: none; }
.form-status { margin: 0 1rem 1.25rem; padding: 1rem 1.1rem; border: 1px solid var(--iron); border-left-width: 6px; font-size: .98rem; line-height: 1.5; background: var(--vellum); }
.form-status.is-error { border-color: var(--signal); }

/* ---------- Footer ---------- */
.site-footer { background: var(--iron); color: rgba(239,233,221,.72); padding-top: clamp(3.5rem, 7vw, 5.5rem); }
.footer-top { display: flex; justify-content: space-between; align-items: flex-end; gap: 2rem; flex-wrap: wrap; padding-bottom: 2.5rem; border-bottom: 1px solid rgba(239,233,221,.2); }
.footer-statement { margin: 0; font: 650 clamp(1.5rem, 1.1rem + 1.3vw, 2.2rem)/1.05 var(--sans); font-stretch: 112%; letter-spacing: -.02em; color: var(--vellum); }
.footer-nav ul { display: flex; flex-wrap: wrap; gap: .5rem 1.75rem; }
.footer-nav a { font: 550 .95rem var(--sans); text-decoration: none; color: rgba(239,233,221,.8); }
.footer-nav a:hover { color: var(--vellum); text-decoration: underline; text-underline-offset: 4px; }
.footer-wordmark {
  display: flex; align-items: center; gap: .14em; margin: clamp(2rem, 5vw, 3.5rem) 0 0;
  font: 800 calc((min(100vw, var(--container)) - 2 * var(--gutter)) / 8.85)/.8 var(--sans); font-stretch: 125%; letter-spacing: -.02em; color: var(--vellum);
}
.footer-mark { width: .7em; height: .7em; flex: none; color: var(--vellum); }
.footer-legal { display: grid; gap: .6rem; padding: 2.25rem 0 2.5rem; margin-top: clamp(2rem, 4vw, 3rem); border-top: 1px solid rgba(239,233,221,.2); font-size: .88rem; }
.disclaimer { color: rgba(239,233,221,.5); max-width: 62rem; font-style: italic; }

/* ---------- Reveal ---------- */
.js .reveal { opacity: 0; transform: translateY(14px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
.js .reveal.is-visible { opacity: 1; transform: none; }

/* ---------- Responsive ---------- */
@media (max-width: 1100px) {
  .header-cta { display: none; }
  .nav-toggle {
    display: inline-flex; align-items: center; margin-left: auto; height: 42px; padding: 0 1rem;
    background: transparent; border: 1.5px solid var(--iron); cursor: pointer;
    font: 650 .78rem/1 var(--sans); font-stretch: 80%; letter-spacing: .14em; text-transform: uppercase; color: var(--iron);
  }
  .nav-toggle[aria-expanded="true"] { background: var(--iron); color: var(--vellum); }
  .primary-nav { margin: 0; }
  .nav-list {
    position: fixed; left: 0; right: 0; top: 78px; bottom: 0; z-index: 99;
    flex-direction: column; align-items: stretch; gap: 0; padding: 1rem var(--gutter) 2rem;
    background: var(--vellum); border-top: 2px solid var(--iron); overflow-y: auto;
    opacity: 0; visibility: hidden; transition: opacity .25s var(--ease), visibility 0s linear .25s;
  }
  .nav-list.is-open { opacity: 1; visibility: visible; transition: opacity .25s var(--ease); }
  .nav-list a:not(.btn) { font-size: 1.6rem; font-stretch: 110%; font-weight: 650; padding: 1rem 0; border-bottom: 1px solid var(--rule); letter-spacing: -.01em; }
  .nav-list a.is-active { border-bottom-color: var(--rule); color: var(--signal-ink); }
  .nav-cta-mobile { display: block; margin-top: 1.75rem; }
  .nav-cta-mobile .btn { width: 100%; padding: 1.15rem; font-size: 1rem; justify-content: space-between; }
  body.nav-open { overflow: hidden; }

  .roles-grid { grid-template-columns: repeat(4, 1fr); }
  .role-you { order: -1; }
  .stages { grid-template-columns: repeat(3, 1fr); row-gap: 3rem; }
  .status-list { grid-template-columns: 1fr 1fr; }
  .status-list li:nth-child(2) { border-right: 0; padding-right: 0; }
  .status-list li:nth-child(3) { padding-left: 0; }
  .status-list li:nth-child(n+3) { border-top: 1px solid var(--rule); }
}

@media (max-width: 900px) {
  .about-top, .contact-grid { grid-template-columns: 1fr; }
  .about-title, .about-copy, .contact-info, .contact-form { grid-column: auto; }
  .sec-head-split { grid-template-columns: 1fr; }
  .service-split, .people-split { grid-template-columns: 1fr; }
  .service, .side { padding: 2rem 0 2.5rem; }
  .service + .service, .side + .side { border-left: 0; border-top: 1px solid var(--iron); padding-left: 0; }
  .index-row { grid-template-columns: 1fr; gap: .6rem; }
  .cta-inner { grid-template-columns: 1fr; }
  .hero-lower { grid-template-columns: 1fr; }
  .notes-list { grid-template-columns: 1fr; }
  .notes-list li:nth-child(odd) { border-right: 0; }
  .notes-list li:nth-last-child(2) { border-bottom: 1px solid rgba(239,233,221,.18); }
  .pull { grid-template-columns: 2.5rem 1fr; }
  .pull::before { grid-column: 1; }
  .pull p { grid-column: 2; }
}

@media (max-width: 640px) {
  body { font-size: 1.06rem; }
  .meta-inner .meta-right, .meta-long { display: none; }
  .header-inner { height: 68px; gap: 1rem; }
  .nav-list { top: 68px; }
  .brand-mark { width: 32px; height: 32px; }
  .brand-primary { font-size: 1.02rem; }
  .brand-secondary { font-size: .52rem; letter-spacing: .4em; }
  .hero-top { padding: 1.5rem 1.1rem 1.75rem; }
  .hero-kicker { font-size: .7rem; margin-bottom: 1.1rem; }
  .hero-title { font-size: clamp(2.4rem, 11.4vw, 3.4rem); font-stretch: 108%; }
  .hero-lead { font-size: 1.08rem; }
  .hero-actions .btn { width: 100%; justify-content: space-between; }
  .roles-grid { grid-template-columns: 1fr 1fr; }
  .roles-grid > li { min-height: 5.5rem; padding: .8rem .85rem .9rem; }
  .role-you a { padding: .8rem .85rem .9rem; }
  .roles-grid > li:nth-child(n+9):nth-child(-n+10) { display: none; }
  .role-title { font-size: .95rem; }
  .status-list { grid-template-columns: 1fr; }
  .status-list li, .status-list li + li { padding: 1.2rem 0; border-right: 0; flex-direction: row; flex-wrap: wrap; gap: .5rem 1rem; }
  .status-list li + li { border-top: 1px solid var(--rule); }
  .status-list li > div { flex: 1 1 70%; }
  .status-list li .sw { margin-top: .3rem; }
  .status-list em { flex-basis: 100%; padding-left: calc(12px + 1rem); }
  .terms > div { grid-template-columns: 1fr; gap: .25rem; }
  .compare-table { min-width: 0; }
  .compare-table thead { display: none; }
  .compare-table, .compare-table tbody, .compare-table tr, .compare-table th, .compare-table td { display: block; width: auto; }
  .compare-table tr { padding: .9rem 0; border-bottom: 1px solid var(--rule); }
  .compare-table tbody tr:last-child { border-bottom: 0; }
  .compare-table th, .compare-table td { border: 0; padding: 0; }
  .compare-table caption { display: block; }
  .compare-table tbody th, .compare-table td { width: auto; }
  .compare-table tbody th { margin-bottom: .45rem; }
  .compare-table td { padding: .2rem 0; }
  .compare-table td::before { content: attr(data-label) ": "; font: 650 .95rem var(--sans); color: var(--iron); }
  .stages { grid-template-columns: 1fr; row-gap: 2.5rem; }
  .form-grid { grid-template-columns: 1fr; }
  .field:not(.field-wide):nth-child(odd) { border-right: 0; }
  .form-foot .btn { width: 100%; justify-content: space-between; }
  .facts { grid-template-columns: 1fr; }
  .facts > div:nth-child(even):not(.facts-wide) { border-right: 0; }
  .cta-side .btn { width: 100%; justify-content: space-between; }
  .footer-top { flex-direction: column; align-items: flex-start; }
}

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

/* ---------- Legal pages ---------- */
.page-legal .site-header { position: static; }
.legal-back { margin-left: auto; font-size: .92rem; }
.legal-inner { max-width: 46rem; }
.legal h1 { margin-bottom: 1.25rem; }
.legal h2 { font: 650 1.25rem/1.25 var(--sans); font-stretch: 105%; margin: 2.25rem 0 .6rem; }
.legal p, .legal li { color: var(--iron-2); font-size: 1.06rem; }
.legal ul { margin: 0 0 1em; }
.legal li { position: relative; padding-left: 1.4rem; margin-bottom: .45rem; }
.legal li::before { content: ""; position: absolute; left: 0; top: .65em; width: 7px; height: 7px; background: var(--iron); }
.legal-draft { padding: .9rem 1.1rem; border: 1px solid var(--signal); border-left-width: 6px; background: rgba(194,65,31,.04); }
.page-legal .footer-legal { margin-top: 0; border-top: 0; }

.service > .link { margin-top: auto; align-self: flex-start; }
.service .tick-list { margin-bottom: 1.75rem; }
.about .pull { margin-bottom: 0; }

/* Email-first contact */
.contact-side { grid-column: 7 / 13; }
.contact-side .facts { margin-top: 0; }
.contact-btn { margin-top: 2.25rem; }
.contact-note { margin-top: 1rem; font-size: .9rem; font-style: italic; color: var(--graphite); }
.meta-inner a { color: inherit; text-decoration: none; }
.meta-inner a:hover { color: var(--vellum); text-decoration: underline; text-underline-offset: 3px; }
.footer-email { margin: .9rem 0 0; }
.footer-email a { font: 600 1.05rem var(--sans); color: var(--signal-light); text-decoration: none; border-bottom: 1px solid currentColor; }
.footer-email a:hover { color: var(--vellum); }
.legal-updated { font: 600 .85rem var(--sans); color: var(--graphite); }
@media (max-width: 900px) { .contact-side { grid-column: auto; } }
@media (max-width: 640px) { .contact-btn { width: 100%; justify-content: space-between; } }

/* Why choose Trustfield (About feature) */
.why {
  position: relative; display: grid; grid-template-columns: repeat(12, 1fr); gap: 2.5rem 2rem;
  margin-bottom: clamp(3.5rem, 7vw, 5rem); padding: clamp(2.25rem, 5vw, 4rem) clamp(1.5rem, 4.5vw, 4rem);
  background-color: var(--iron); color: var(--vellum);
  background-image:
    linear-gradient(rgba(239,233,221,.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(239,233,221,.06) 1px, transparent 1px);
  background-size: 72px 72px; background-position: right -1px top -1px;
}
.why::after { content: ""; position: absolute; top: 0; right: 0; width: 72px; height: 72px; background: var(--signal); }
.why-head { grid-column: 1 / 7; position: relative; }
.why-eyebrow {
  display: flex; align-items: center; gap: .65rem; margin: 0 0 1.5rem;
  font: 650 .8rem/1 var(--sans); font-stretch: 80%; letter-spacing: .14em; text-transform: uppercase; color: var(--signal-light);
}
.why-title {
  font: 700 clamp(2rem, 1.1rem + 3vw, 3.6rem)/1 var(--sans); font-stretch: 112%; letter-spacing: -.03em; color: var(--vellum); text-wrap: balance;
}
.why-title span { display: block; margin-top: .35em; color: var(--signal-light); }
.why-body { grid-column: 8 / 13; position: relative; align-self: end; }
.why-body p { font-size: 1.06rem; line-height: 1.62; color: rgba(239,233,221,.78); }
.why-body .why-close { margin-top: 1.5rem; padding-top: 1.25rem; border-top: 1px solid rgba(239,233,221,.25); font: 600 1.12rem/1.45 var(--sans); color: var(--vellum); }
@media (max-width: 900px) {
  .why { grid-template-columns: 1fr; }
  .why-head, .why-body { grid-column: auto; }
  .why-head { padding-right: 56px; }
  .why::after { width: 48px; height: 48px; }
  .why { background-size: 48px 48px; }
}


/* Industries: open-ended callout */
.industry-cta {
  display: grid; grid-template-columns: 1fr auto; gap: 1.5rem 3rem; align-items: center;
  margin-top: clamp(2rem, 4vw, 3rem); padding: clamp(1.5rem, 3.5vw, 2.25rem);
  border: 2px solid var(--iron); border-left: 10px solid var(--signal); background: var(--paper);
}
.industry-cta-title { font: 650 clamp(1.35rem, 1.05rem + 1vw, 1.85rem)/1.15 var(--sans); font-stretch: 108%; letter-spacing: -.015em; margin-bottom: .6rem; }
.industry-cta-title span { color: var(--signal-ink); }
.industry-cta p { max-width: 46rem; color: var(--graphite); font-size: 1.02rem; }
@media (max-width: 760px) {
  .industry-cta { grid-template-columns: 1fr; }
  .industry-cta .btn { width: 100%; justify-content: space-between; }
}

/* Contact form layout (form first on mobile) */
.contact-grid { grid-template-areas: "info form" "side form"; grid-template-columns: 5fr 7fr; column-gap: clamp(2rem, 5vw, 5rem); row-gap: 2rem; }
.contact-info { grid-area: info; }
.contact-form { grid-area: form; }
.contact-side { grid-area: side; align-self: start; }
.contact-alt { margin: 0 0 1.25rem; font-size: 1rem; color: var(--iron-2); }
.contact-alt a { color: var(--signal-ink); font-weight: 600; }
.field .optional { color: var(--stone); font-weight: 500; text-transform: none; letter-spacing: 0; }
.field textarea::placeholder { color: var(--stone); font-size: .95rem; }
.form-foot .btn[disabled] { opacity: .7; cursor: wait; }
.form-status.is-success { border-color: #2F6B3A; border-left-color: #2F6B3A; background: #EEF3EA; }
.form-status.is-error { border-color: var(--signal); background: #FBF0EC; }
.form-status a { color: var(--signal-ink); font-weight: 600; }
.form-status:focus { outline: none; }
@media (max-width: 900px) {
  .contact-grid { grid-template-areas: "info" "form" "side"; grid-template-columns: 1fr; }
}
