/* Primex Precision site styles. Colors and type sampled from the capability sheet. */

:root {
  --navy: #030720;
  --navy-2: #032139;
  --steel: #669cbd;
  --steel-light: #e3eef5;
  --amber: #ffab07;
  --gray: #d9d9d9;
  --gray-light: #e3e8ee;
  --white: #ffffff;
  /* Page background: a soft steel tinted off white instead of pure white. */
  --bg: #f2f4f7;
  --ink: #121826;
  --body: #3a4150;
  --on-dark-muted: #c8d3de;

  --font: "Montserrat", system-ui, -apple-system, "Segoe UI", Arial, sans-serif;
  --wrap: 1200px;
  --gutter: 16px;
  --slant: 28px;
}

*,
*::before,
*::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--body);
  font-family: var(--font);
  font-size: 1rem;
  line-height: 1.65;
}

img { display: block; max-width: 100%; height: auto; }
picture { display: block; }

h1, h2, h3 { color: var(--ink); font-weight: 700; line-height: 1.2; margin: 0 0 0.5em; }
p { margin: 0 0 1em; }
ul { margin: 0; padding: 0; list-style: none; }
figure { margin: 0; }

a { color: var(--navy-2); text-underline-offset: 3px; }
a:hover { text-decoration-thickness: 2px; }

:focus-visible { outline: 3px solid var(--navy); outline-offset: 3px; }
.hero :focus-visible,
.overflow-band :focus-visible,
.rfq-band :focus-visible,
.site-footer :focus-visible { outline-color: var(--amber); }

.wrap {
  width: 100%;
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

.skip-link {
  position: absolute;
  left: var(--gutter);
  top: -100px;
  z-index: 100;
  padding: 0.6em 1em;
  background: var(--amber);
  color: var(--navy);
  font-weight: 700;
}
.skip-link:focus { top: 8px; }

/* Buttons */
.btn {
  display: inline-block;
  padding: 0.7em 1.3em;
  border: 2px solid transparent;
  font-weight: 700;
  font-size: 0.95rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  text-decoration: none;
  line-height: 1.2;
  text-align: center;
}
.btn-lg { padding: 0.9em 1.6em; font-size: 1rem; }
.btn-amber { background: var(--amber); color: var(--navy); }
.btn-amber:hover { background: #ffbc3d; }
.btn-ghost { border-color: var(--white); color: var(--white); }
.btn-ghost:hover { background: var(--white); color: var(--navy); }

.text-link { font-weight: 700; color: var(--navy-2); }
.text-link::after { content: " \2192"; }

.eyebrow {
  margin: 0 0 1em;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--navy-2);
}
.eyebrow-amber { color: var(--amber); }

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--bg);
  border-bottom: 4px solid var(--navy);
}
.header-inner {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 68px;
}
.brand { flex: 0 0 auto; margin-right: auto; }
.brand img { width: 140px; }

.nav-toggle {
  display: none;
  align-items: center;
  gap: 8px;
  padding: 10px 12px;
  border: 2px solid var(--navy);
  background: transparent;
  color: var(--navy);
  font: 700 0.8rem/1 var(--font);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  cursor: pointer;
}
.nav-toggle-bars,
.nav-toggle-bars::before,
.nav-toggle-bars::after {
  display: block;
  width: 18px;
  height: 2px;
  background: currentColor;
  position: relative;
}
.nav-toggle-bars::before,
.nav-toggle-bars::after { content: ""; position: absolute; left: 0; }
.nav-toggle-bars::before { top: -6px; }
.nav-toggle-bars::after { top: 6px; }

.site-nav ul { display: flex; flex-wrap: wrap; gap: 4px 20px; align-items: center; }
.site-nav a:not(.btn) {
  color: var(--navy);
  font-weight: 600;
  font-size: 0.95rem;
  text-decoration: none;
  padding: 6px 0;
  border-bottom: 3px solid transparent;
}
.site-nav a:not(.btn):hover,
.site-nav a[aria-current="page"]:not(.btn) { border-bottom-color: var(--amber); }

/* Small screens: menu collapses behind the toggle once JavaScript is running. */
@media (max-width: 959px) {
  .header-inner { flex-wrap: wrap; }
  .js .nav-toggle { display: inline-flex; }
  .site-nav { flex-basis: 100%; }
  .js .site-nav { display: none; }
  .js .site-nav.is-open { display: block; }
  .site-nav ul { flex-direction: column; align-items: stretch; gap: 0; padding: 8px 0 16px; }
  .site-nav li { border-top: 1px solid var(--gray); }
  .site-nav a:not(.btn) { display: block; padding: 14px 0; border-bottom: 0; }
  .site-nav a[aria-current="page"]:not(.btn) { box-shadow: inset 4px 0 0 var(--amber); padding-left: 12px; }
  .nav-cta { border-top: 0 !important; padding-top: 12px; }
  .nav-cta .btn { display: block; }
}
@media (max-width: 420px) {
  .brand img { width: 120px; }
}

/* Hero */
.hero {
  position: relative;
  background: var(--navy);
  color: var(--white);
  overflow: hidden;
}
.hero-grid {
  position: relative;
  display: grid;
  gap: 32px;
  padding-top: 40px;
  padding-bottom: 40px;
}
.hero-copy { position: relative; z-index: 2; }
.hero .eyebrow { color: var(--steel); }
.hero-title {
  margin: 0 0 0.5em;
  color: var(--white);
  font-size: clamp(1.7rem, 8.6vw, 3.6rem);
  font-weight: 800;
  line-height: 1.04;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}
.hero-line { display: block; }
.hero-line-amber { color: var(--amber); }
.hero-sub {
  font-size: clamp(1.05rem, 2.6vw, 1.3rem);
  font-weight: 600;
  color: var(--white);
  margin-bottom: 1.6em;
}
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; }

.hero-media { position: relative; z-index: 1; max-width: 560px; }
.hero-media::before {
  content: "";
  position: absolute;
  inset: 18px -18px -18px 18px;
  background: var(--steel);
  clip-path: polygon(14% 0, 100% 0, 100% 100%, 0 100%);
}
.hero-media picture {
  position: relative;
  clip-path: polygon(14% 0, 100% 0, 100% 100%, 0 100%);
}
.hero-media img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  object-position: 50% 30%;
}
.hero::after {
  content: "";
  position: absolute;
  right: 0;
  bottom: 0;
  width: 34%;
  height: 120px;
  background: var(--amber);
  clip-path: polygon(100% 0, 100% 100%, 0 100%);
  z-index: 0;
}

.hero-regs-wrap { position: relative; z-index: 2; }
.hero-regs {
  display: inline-block;
  margin: 0;
  padding: 10px 48px 10px 18px;
  background: var(--steel);
  color: var(--navy);
  font-weight: 600;
  font-size: 0.85rem;
  letter-spacing: 0.03em;
  clip-path: polygon(0 0, 100% 0, calc(100% - var(--slant)) 100%, 0 100%);
}

@media (min-width: 960px) {
  .hero-grid {
    grid-template-columns: 1.15fr 0.85fr;
    align-items: center;
    padding-top: 64px;
    padding-bottom: 72px;
  }
  .hero-title { font-size: clamp(2.8rem, 4.6vw, 4rem); }
  .hero-line { white-space: nowrap; }
  .hero-media img { aspect-ratio: 3 / 4; max-height: 520px; }
  .hero::after { width: 22%; height: 200px; }
}

/* Stats strip */
.stats { border-bottom: 1px solid var(--gray); }
.stats-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
}
.stats-grid li {
  padding: 22px 12px 22px 0;
  border-top: 4px solid var(--amber);
  margin-top: -1px;
}
.stats-grid li:nth-child(even) { padding-left: 12px; }
.stat-value {
  display: block;
  color: var(--navy);
  font-weight: 800;
  font-size: clamp(1.3rem, 4.5vw, 2rem);
  line-height: 1.15;
}
.stat-label {
  display: block;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
@media (min-width: 960px) {
  .stats-grid { grid-template-columns: repeat(4, 1fr); gap: 24px; }
  .stats-grid li,
  .stats-grid li:nth-child(even) { padding: 26px 0; }
}

/* Sections */
.section { padding: 56px 0; }
.section-alt { background: var(--gray-light); }
@media (min-width: 960px) { .section { padding: 88px 0; } }

.section-link { margin: 28px 0 0; }

/* Parallelogram section label, like the sheet's "Capabilities" tab. */
.label-tab {
  position: relative;
  display: inline-block;
  margin: 0 0 32px 10px;
  padding: 10px 40px 10px 28px;
  color: var(--navy);
  font-size: 1.15rem;
  letter-spacing: 0.04em;
  isolation: isolate;
}
.label-tab::before,
.label-tab::after {
  content: "";
  position: absolute;
  inset: 0;
  clip-path: polygon(var(--slant) 0, 100% 0, calc(100% - var(--slant)) 100%, 0 100%);
  z-index: -1;
}
.label-tab::before { background: var(--navy); transform: translate(-8px, 6px); z-index: -2; }
.label-tab::after { background: var(--steel); }

/* Intro */
.intro-grid { display: grid; gap: 32px; }
.intro-title {
  font-size: clamp(1.5rem, 4.5vw, 2.25rem);
  font-weight: 800;
  color: var(--navy);
  margin-bottom: 0.7em;
}
.intro-body { font-size: 1.08rem; border-left: 3px solid var(--amber); padding-left: 20px; }
.intro-body p:last-child { margin-bottom: 0; }
@media (min-width: 960px) {
  .intro-grid { grid-template-columns: 1fr 1fr; gap: 64px; align-items: center; }
  .intro-body { padding-left: 28px; }
}


/* Supporting photos. Pick a different treatment for neighboring images:
   photo-slant      tapered left edge, amber corner bottom right
   photo-slant-rev  tapered right edge, amber corner top left
   photo-steel      steel block offset behind, bottom right
   photo-navy       navy parallelogram offset behind, bottom left
   photo-edge       thick amber bar on the left, steel bar underneath */
.photo { position: relative; isolation: isolate; }
.photo img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; }

.photo-slant picture { clip-path: polygon(0 0, 100% 0, 100% 100%, 8% 100%); }
.photo-slant::after {
  content: "";
  position: absolute;
  right: 0;
  bottom: 0;
  width: 22%;
  height: 26%;
  background: var(--amber);
  clip-path: polygon(100% 0, 100% 100%, 0 100%);
}

.photo-slant-rev picture { clip-path: polygon(0 0, 100% 0, 92% 100%, 0 100%); }
.photo-slant-rev::after {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  width: 20%;
  height: 24%;
  background: var(--amber);
  clip-path: polygon(0 0, 100% 0, 0 100%);
}

.photo-steel { padding: 0 18px 18px 0; }
.photo-steel::before {
  content: "";
  position: absolute;
  inset: 18px 0 0 18px;
  background: var(--steel);
  z-index: -1;
}

.photo-navy { padding: 0 0 18px 18px; }
.photo-navy::before {
  content: "";
  position: absolute;
  inset: 18px 18px 0 0;
  background: var(--navy);
  clip-path: polygon(10% 0, 100% 0, 90% 100%, 0 100%);
  z-index: -1;
}

.photo-edge { border-left: 10px solid var(--amber); padding-bottom: 10px; }
.photo-edge::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 45%;
  height: 10px;
  background: var(--steel);
  clip-path: polygon(0 0, 100% 0, calc(100% - 10px) 100%, 0 100%);
}

/* Interior page header */
.page-hero {
  position: relative;
  background: var(--navy);
  color: var(--on-dark-muted);
  padding: 48px 0 56px;
  overflow: hidden;
}
.page-hero::after {
  content: "";
  position: absolute;
  right: 0;
  bottom: 0;
  width: 30%;
  height: 90px;
  background: var(--amber);
  clip-path: polygon(100% 0, 100% 100%, 0 100%);
}
.page-hero .eyebrow { color: var(--steel); }
.page-hero h1 {
  color: var(--white);
  font-size: clamp(1.9rem, 6vw, 3.2rem);
  font-weight: 800;
  line-height: 1.08;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  max-width: 18ch;
}
.page-lead {
  position: relative;
  z-index: 1;
  max-width: 62ch;
  font-size: 1.1rem;
  margin: 0;
}
@media (min-width: 960px) {
  .page-hero { padding: 80px 0 88px; }
  .page-hero::after { width: 22%; height: 150px; }
}

/* Alternating text and photo rows */
.feature { padding: 56px 0; }
.feature-grid { display: grid; gap: 28px; align-items: center; }
.feature-copy > p { font-size: 1.05rem; }
.feature-media,
.intro-photo { max-width: 620px; }
@media (min-width: 960px) {
  .feature { padding: 80px 0; }
  .feature-grid { grid-template-columns: 1fr 1fr; gap: 64px; }
  .feature-flip .feature-media { order: -1; }
}

.spec-list { margin: 0 0 1.2em; border-top: 1px solid var(--gray); }
.spec-list div {
  display: grid;
  grid-template-columns: 9.5em 1fr;
  gap: 12px;
  padding: 12px 0;
  border-bottom: 1px solid var(--gray);
}
.spec-list dt { font-weight: 700; color: var(--ink); }
.spec-list dd { margin: 0; }
@media (max-width: 420px) {
  .spec-list div { grid-template-columns: 1fr; gap: 2px; }
}

.note-card {
  background: var(--white);
  border-left: 8px solid var(--amber);
  padding: 24px;
}
.note-card h2 { font-size: 1.3rem; }
.note-card p:last-child { margin-bottom: 0; }

.note-card h3 { font-size: 1.2rem; }

/* Industry cards */
.ind-grid { display: grid; gap: 20px; }
.ind-card {
  position: relative;
  background: var(--white);
  border: 1px solid var(--gray);
  border-top: 6px solid var(--navy);
  padding: 28px 24px 24px;
}
.ind-card h2 { font-size: 1.35rem; margin-top: 8px; }
.ind-num {
  display: inline-block;
  padding: 4px 18px 4px 12px;
  background: var(--steel);
  color: var(--navy);
  font-weight: 800;
  font-size: 0.85rem;
  letter-spacing: 0.08em;
  clip-path: polygon(0 0, 100% 0, calc(100% - 10px) 100%, 0 100%);
}
.ind-fit {
  margin: 1.2em 0 0.2em;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--navy-2);
}
.ind-link { margin: 16px 0 0; }
@media (min-width: 768px) { .ind-grid { grid-template-columns: repeat(2, 1fr); gap: 28px; } }

/* NAICS code list (Industries page, on the navy reg band) */
.naics-list { margin: 0; border-top: 1px solid #23405a; }
.naics-list div {
  display: grid;
  grid-template-columns: 5.5em 1fr;
  gap: 16px;
  align-items: baseline;
  padding: 14px 0;
  border-bottom: 1px solid #23405a;
}
.naics-list dt { color: var(--amber); font-weight: 800; font-size: 1.15rem; letter-spacing: 0.04em; }
.naics-list dd { margin: 0; color: var(--white); }
.naics-primary {
  display: inline-block;
  margin-left: 8px;
  padding: 1px 10px 1px 8px;
  background: var(--steel);
  color: var(--navy);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  clip-path: polygon(0 0, 100% 0, calc(100% - 6px) 100%, 0 100%);
}
.naics-note { margin: 20px 0 0; font-weight: 600; }
.naics-intro { margin: -12px 0 20px; }
@media (min-width: 960px) {
  .naics-list { display: grid; grid-template-columns: 1fr 1fr; column-gap: 48px; border-top: 0; }
  .naics-list div:nth-child(-n+2) { border-top: 1px solid #23405a; }
}

/* Documentation list: each item says when it comes. */
.doc-list .doc-when { display: block; }
@media (min-width: 640px) {
  .doc-list li { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; }
}
.doc-when {
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--navy-2);
}
.doc-when-every { color: var(--navy); }

/* Request a Quote form */
.rfq-grid { display: grid; gap: 32px; align-items: start; }
@media (min-width: 960px) { .rfq-grid { grid-template-columns: 1.6fr 1fr; gap: 48px; } }
.rfq-aside { display: grid; gap: 20px; }
.rfq-aside h2 { font-size: 1.2rem; }

.rfq-form {
  background: var(--white);
  border-top: 6px solid var(--navy);
  padding: 24px 20px 28px;
}
@media (min-width: 640px) { .rfq-form { padding: 32px 32px 36px; } }
.rfq-form fieldset { border: 0; margin: 0 0 12px; padding: 0; min-width: 0; }
.rfq-form legend {
  margin-bottom: 12px;
  padding: 0;
  color: var(--navy);
  font-weight: 800;
  font-size: 1.15rem;
}
.form-row { display: grid; gap: 0 20px; }
@media (min-width: 640px) { .form-row { grid-template-columns: 1fr 1fr; } }
.field { margin-bottom: 18px; }
.field label { display: block; margin-bottom: 6px; color: var(--ink); font-weight: 700; font-size: 0.95rem; }
.req { color: var(--body); font-weight: 400; font-size: 0.85rem; }
.field input,
.field select,
.field textarea {
  width: 100%;
  padding: 11px 12px;
  border: 1.5px solid #8a93a3;
  border-radius: 0;
  background: var(--white);
  color: var(--ink);
  font: inherit;
}
.field input[type="file"] { padding: 10px; background: var(--bg); }
.field textarea { resize: vertical; min-height: 120px; }
.field input:focus,
.field select:focus,
.field textarea:focus { border-color: var(--navy); outline: 3px solid var(--steel); outline-offset: 0; }
.hint { margin: 6px 0 0; font-size: 0.85rem; }
.file-error,
.form-status {
  margin: 8px 0 0;
  padding: 10px 12px;
  border-left: 6px solid #b42318;
  background: #fdecea;
  color: #7a1a12;
  font-weight: 600;
}
.form-status { margin: 0 0 20px; }
.form-status:focus { outline: 3px solid var(--navy); }

.field-check {
  display: grid;
  grid-template-columns: 28px 1fr;
  gap: 4px 10px;
  align-items: start;
  padding: 14px;
  background: var(--bg);
  border-left: 4px solid var(--amber);
}
.field-check input[type="checkbox"] { width: 24px; height: 24px; margin: 0; accent-color: var(--navy); }
.field-check label { margin: 0; align-self: center; }
.field-check .hint { grid-column: 2; margin: 0; }

.rfq-ref { margin-top: 0.8em; color: var(--white); font-weight: 700; }

/* Honeypot: off screen for people, still in the form for bots. */
.hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }

/* Numbered process steps */
.steps { margin: 0 0 1.2em; padding: 0; list-style: none; counter-reset: step; }
.steps li {
  counter-increment: step;
  position: relative;
  padding: 10px 0 10px 48px;
  border-bottom: 1px solid var(--gray);
  color: var(--ink);
  font-weight: 600;
}
.steps li::before {
  content: counter(step);
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 32px;
  height: 28px;
  display: grid;
  place-items: center;
  background: var(--navy);
  color: var(--amber);
  font-weight: 800;
  font-size: 0.9rem;
  clip-path: polygon(18% 0, 100% 0, 82% 100%, 0 100%);
}

/* Registration tiles on navy (Quality page) */
.reg-band {
  background: var(--navy-2);
  color: var(--on-dark-muted);
  padding: 56px 0;
  clip-path: polygon(0 0, 100% var(--slant), 100% 100%, 0 calc(100% - var(--slant)));
}
.reg-title {
  color: var(--white);
  font-size: clamp(1.5rem, 4.5vw, 2.2rem);
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.02em;
  margin-bottom: 24px;
}
.reg-grid { display: grid; gap: 16px; }
.reg-grid li { border-top: 4px solid var(--amber); padding-top: 16px; }
.reg-band .stat-value { color: var(--white); }
.reg-band .stat-label { color: var(--on-dark-muted); }
@media (min-width: 960px) { .reg-grid { grid-template-columns: repeat(3, 1fr); gap: 32px; } }
@media (min-width: 960px) { .reg-band { padding: 88px 0; } }

.two-col { display: grid; gap: 24px; }
@media (min-width: 960px) { .two-col { grid-template-columns: 1fr 1fr; gap: 32px; } }

/* Capability cards */
.cap-grid { display: grid; gap: 16px; }
.cap-card {
  background: var(--white);
  padding: 22px 22px 18px;
  border-top: 4px solid var(--navy);
}
.cap-card h3 {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 1.08rem;
}
.cap-card h3::before {
  content: "";
  flex: 0 0 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--amber);
}
.cap-card p { margin: 0; }
@media (min-width: 640px) { .cap-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 960px) { .cap-grid { grid-template-columns: repeat(3, 1fr); gap: 24px; } }

/* Why Primex */
.why-grid { display: grid; gap: 16px; }
.why-card {
  background: var(--white);
  border-left: 8px solid var(--amber);
  padding: 20px 22px;
}
.why-card h3 { font-size: 1.1rem; margin-bottom: 0.3em; }
.why-card p { margin: 0; color: var(--ink); }
@media (min-width: 960px) { .why-grid { grid-template-columns: repeat(3, 1fr); gap: 24px; } }
@media (min-width: 768px) { .why-grid-2 { grid-template-columns: repeat(2, 1fr); gap: 24px; } }
.send-grid { align-items: start; }

/* Overflow band */
.overflow-band {
  background: var(--navy-2);
  color: var(--on-dark-muted);
  padding: 56px 0;
  clip-path: polygon(0 var(--slant), 100% 0, 100% calc(100% - var(--slant)), 0 100%);
  margin: 24px 0;
}
.overflow-inner { display: grid; gap: 12px; }
.overflow-title {
  color: var(--white);
  font-size: clamp(1.6rem, 5vw, 2.5rem);
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.02em;
}
.overflow-band p { font-size: 1.05rem; }
@media (min-width: 960px) {
  .overflow-band { padding: 96px 0; }
  .overflow-inner { grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; }
}

/* Who we work with */
.work-grid { display: grid; gap: 32px; }
.work-photo { position: relative; }
.work-photo::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 30%;
  height: 28%;
  background: var(--amber);
  clip-path: polygon(0 0, 0 100%, 100% 100%);
}
.check-list { margin: 0 0 8px; }
.check-list li {
  position: relative;
  padding: 10px 0 10px 28px;
  border-bottom: 1px solid var(--gray);
  color: var(--ink);
  font-weight: 600;
}
.check-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 1.05em;
  width: 12px;
  height: 12px;
  background: var(--amber);
  clip-path: polygon(30% 0, 100% 0, 70% 100%, 0 100%);
}
@media (min-width: 960px) {
  .work-grid { grid-template-columns: 1.2fr 1fr; gap: 64px; align-items: center; }
}

/* RFQ band */
.rfq-band {
  background: var(--navy);
  color: var(--on-dark-muted);
  padding: 72px 0 56px;
  clip-path: polygon(0 var(--slant), 100% 0, 100% 100%, 0 100%);
  margin-top: 40px;
}
.rfq-band-inner { display: grid; gap: 24px; }
.rfq-band-title {
  color: var(--white);
  font-size: clamp(1.7rem, 5vw, 2.6rem);
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.02em;
}
.rfq-band-text { font-size: 1.1rem; margin: 0; }
.rfq-band-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 16px 24px; }
.rfq-band-alt { color: var(--white); font-weight: 600; overflow-wrap: anywhere; }
@media (min-width: 960px) {
  .rfq-band-inner { grid-template-columns: 1.4fr 1fr; align-items: center; }
  .rfq-band-actions { justify-content: flex-end; }
}

/* Footer */
.site-footer {
  position: relative;
  background: var(--navy);
  color: var(--on-dark-muted);
  border-top: 1px solid #1b2340;
  padding: 64px 0 24px;
  font-size: 0.95rem;
}
.footer-tab {
  position: absolute;
  top: 0;
  right: 0;
  padding: 10px 40px 10px 56px;
  background: var(--amber);
  color: var(--navy);
  font-size: 1.1rem;
  clip-path: polygon(var(--slant) 0, 100% 0, 100% 100%, 0 100%);
}
.footer-grid { display: grid; gap: 32px; }
.footer-brand img { width: 180px; margin-bottom: 16px; }
.footer-regs { font-size: 0.85rem; }
.footer-heading {
  color: var(--white);
  font-size: 0.85rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin-bottom: 12px;
}
.footer-list li { padding: 4px 0; }
.site-footer a { color: var(--white); }
.footer-legal {
  margin-top: 40px;
  padding-top: 20px;
  border-top: 1px solid #1b2340;
  font-size: 0.85rem;
}
.footer-legal p { margin: 0; }
@media (min-width: 768px) { .footer-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1100px) { .footer-grid { grid-template-columns: 1.4fr 1fr 1fr 1fr; } }

/* Member badges sit on white so the MAM logo's dark lettering stays readable. */
.member-logos {
  display: inline-flex;
  flex-direction: column;
  gap: 16px;
  padding: 16px;
  background: var(--white);
}
.member-logos img { width: 180px; height: auto; }

/* Terms and Conditions page */
.visually-hidden {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.terms-effective { margin-top: 0.8em; color: var(--white); font-weight: 700; }
.terms { display: grid; gap: 32px; align-items: start; }
@media (min-width: 960px) {
  .terms { grid-template-columns: minmax(0, 1fr) 320px; gap: 56px; }
  .terms-summary { grid-column: 2; grid-row: 1; position: sticky; top: 100px; }
  .terms-list { grid-column: 1; grid-row: 1 / span 2; }
}
.terms-summary h2 { font-size: 1.2rem; }
.terms-summary .check-list li { font-weight: 500; font-size: 0.95rem; }
.terms-print { margin: 16px 0 0; }
.btn-ghost-dark { border-color: var(--navy); color: var(--navy); background: transparent; cursor: pointer; font-family: inherit; }
.btn-ghost-dark:hover { background: var(--navy); color: var(--white); }

.terms-list { margin: 0; padding: 0; list-style: none; counter-reset: term; max-width: 72ch; }
.terms-list > li {
  counter-increment: term;
  padding: 24px 0;
  border-bottom: 1px solid var(--gray);
}
.terms-list > li:first-child { padding-top: 0; }
.terms-list h2 {
  display: flex;
  align-items: baseline;
  gap: 12px;
  font-size: 1.25rem;
  color: var(--navy);
}
.terms-list h2::before {
  content: counter(term) ".";
  min-width: 1.8em;
  color: var(--steel);
  font-weight: 800;
}
.terms-list p:last-child { margin-bottom: 0; }
.terms-table { width: 100%; max-width: 480px; margin: 0 0 1em; border-collapse: collapse; background: var(--white); }
.terms-table th,
.terms-table td { padding: 10px 14px; border: 1px solid var(--gray); text-align: left; }
.terms-table th { background: var(--navy); color: var(--white); font-size: 0.85rem; letter-spacing: 0.04em; }
.terms-versions { grid-column: 1; max-width: 72ch; margin: 0; font-size: 0.95rem; }

/* Printing the terms: just the terms, in black on white. */
@media print {
  .site-header, .site-footer, .rfq-band, .skip-link, .terms-print, .page-hero::after { display: none !important; }
  body, .page-hero { background: #fff !important; color: #000 !important; }
  .page-hero { padding: 0 0 12px; }
  .page-hero h1, .page-hero .eyebrow, .page-lead, .terms-effective { color: #000 !important; }
  .terms { display: block; }
  .terms-summary { position: static; border: 1px solid #999; margin-bottom: 16px; }
  .terms-list > li { break-inside: avoid; padding: 10px 0; }
  .terms-table th { background: #eee; color: #000; }
  a { color: #000; }
}

/* Comfortable tap targets (about 44px) for text links people tap on phones. */
.text-link,
.footer-list a,
.rfq-band-alt,
.rfq-aside a,
.note-card .check-list a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
}
.footer-list li { padding: 0; }
/* Links inside sentences: a taller tap area without changing the line layout. */
.note-card p a,
.form-terms a,
.terms-versions a { display: inline-block; padding: 12px 0; margin: -12px 0; }
.form-terms { margin-top: 16px; }
.nav-toggle { min-height: 44px; min-width: 44px; }
.btn { min-height: 44px; }

/* Stand in for a photo Ethan still owes (light backgrounds). */
.photo-placeholder {
  display: grid;
  place-items: center;
  aspect-ratio: 3 / 2;
  padding: 24px;
  border: 2px dashed var(--navy-2);
  background: var(--white);
  color: var(--navy-2);
  font-weight: 700;
  text-align: center;
}
.photo-placeholder p { margin: 0; max-width: 32ch; }

/* Visible marker for content Ethan still owes. Remove before launch. */
.placeholder {
  margin: 12px 0 0;
  padding: 8px 10px;
  border: 2px dashed var(--amber);
  color: var(--amber);
  font-size: 0.8rem;
  font-weight: 600;
}
