/* ============================================================
   Purser Industries — v3
   One typeface, one clean hierarchy (GCR-style). White background,
   dark graphite header bar. No mono font for UI chrome — size and
   weight carry the hierarchy instead.
   ============================================================ */

:root {
  --paper: #ffffff;
  --paper-raised: #f4f3f0;
  --ink: #201f1d;
  --ink-soft: #4b4844;
  --muted: #6b6862;
  --rule: #e4e2dc;
  --rule-strong: #c4c1b7;
  --accent: #c8551f;

  --header-bg: #2a2826;
  --header-ink: #f4f2ec;

  --status-service: #3f5d45;
  --status-build: #c8551f;
  --status-dev: #3c5468;

  --font: "Helvetica Neue", Helvetica, Arial, "Arimo", sans-serif;
  --max: 1120px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font);
  font-size: 18px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }
a { color: inherit; }

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

/* ---------- Header ---------- */

header.site { background: var(--header-bg); position: sticky; top: 0; z-index: 30; }
header.site .bar { display: flex; align-items: center; justify-content: space-between; padding: 22px 28px; max-width: var(--max); margin: 0 auto; gap: 24px; flex-wrap: wrap; }
.wordmark { font-family: var(--font); font-weight: 700; font-size: 1.2rem; letter-spacing: 0.1em; text-transform: uppercase; text-decoration: none; color: var(--header-ink); white-space: nowrap; }
nav.primary { display: flex; gap: 28px; flex-wrap: wrap; font-size: 1rem; font-weight: 500; }
nav.primary a { text-decoration: none; color: rgba(244,242,236,0.82); padding-bottom: 4px; border-bottom: 2px solid transparent; }
nav.primary a:hover, nav.primary a[aria-current="page"] { color: var(--header-ink); border-bottom-color: var(--accent); }

/* ---------- Layout helpers ---------- */

section { padding: 72px 0; }
section.tight { padding: 44px 0; }
.rule-top { border-top: 1px solid var(--rule); }

h1, h2, h3 { font-family: var(--font); font-weight: 700; line-height: 1.15; margin: 0 0 0.5em; color: var(--ink); }
h1 { font-size: clamp(2.3rem, 5.5vw, 3.6rem); }
h2 { font-size: clamp(1.6rem, 3.2vw, 2.2rem); }
h3 { font-size: 1.3rem; }

p { margin: 0 0 1em; max-width: 64ch; color: var(--ink-soft); font-size: 1.05rem; }
p.lede { font-size: 1.2rem; color: var(--ink-soft); }

.eyebrow { font-size: 1rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.06em; color: var(--accent); margin-bottom: 12px; display: block; }

/* ---------- Buttons / links ---------- */

.cta { display: inline-flex; align-items: center; gap: 8px; font-weight: 600; font-size: 1.02rem; text-decoration: none; color: var(--ink); border-bottom: 2px solid var(--ink); padding-bottom: 2px; }
.cta:hover { color: var(--accent); border-color: var(--accent); }
.cta.muted { color: var(--muted); border-color: var(--rule-strong); cursor: default; }

.cta-arrow { display: inline-flex; align-items: center; gap: 10px; font-weight: 600; font-size: 1.05rem; text-decoration: none; color: #fff; border-bottom: 2px solid rgba(255,255,255,0.6); padding-bottom: 3px; }
.cta-arrow:hover { border-color: var(--accent); color: var(--accent); }
.cta-arrow svg { width: 15px; height: 15px; }

button.submit { font-family: var(--font); font-weight: 700; font-size: 1rem; background: var(--ink); color: #fff; border: none; padding: 15px 26px; cursor: pointer; }
button.submit:hover { background: var(--accent); }

/* ---------- Full-bleed hero ---------- */

.hero-full { position: relative; min-height: 78vh; display: flex; align-items: center; overflow: hidden; background: #000; }
.hero-full video, .hero-full .bg-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: 0; }
.hero-full::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(15,14,13,0.45) 0%, rgba(15,14,13,0.55) 40%, rgba(15,14,13,0.85) 100%); z-index: 1; }
.hero-full__content { position: relative; z-index: 2; max-width: var(--max); margin: 0 auto; width: 100%; padding: 60px 28px; }
.hero-full h1 { color: #fff; text-shadow: 0 2px 18px rgba(0,0,0,0.35); }
.hero-full p.lede { color: rgba(255,255,255,0.94); max-width: 56ch; }

.floating-tagline { padding: 56px 0; text-align: center; }
.floating-tagline p { font-weight: 600; font-style: italic; font-size: clamp(1.3rem, 2.6vw, 1.8rem); color: var(--ink); max-width: 46ch; margin: 0 auto; line-height: 1.35; }

/* ---------- Stats strip ---------- */

.stats-strip { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); border-top: 1px solid var(--rule); border-bottom: 1px solid var(--rule); background: var(--paper-raised); }
.stat { padding: 40px 26px; border-left: 1px solid var(--rule); }
.stat:first-child { border-left: none; }
.stat .num { font-weight: 700; font-size: clamp(2rem, 3.6vw, 2.8rem); color: var(--ink); display: block; margin-bottom: 6px; }
.stat .label { font-size: 0.95rem; font-weight: 500; color: var(--ink-soft); }
@media (max-width: 700px) { .stat { border-left: none; border-top: 1px solid var(--rule); } .stat:first-child { border-top: none; } }

/* ---------- Alternating rows (products, teasers) ---------- */

.product-row { display: grid; grid-template-columns: 1fr 1fr; gap: 0; align-items: stretch; border-top: 1px solid var(--rule); }
.product-row.reverse .product-row__text { order: 2; }
.product-row.reverse .product-row__photo { order: 1; }
.product-row__photo { display: flex; align-items: center; background: var(--paper); }
.product-row__photo img { position: static; width: 100%; height: auto; display: block; object-fit: contain; padding: 0; }
.product-row__photo.square img { aspect-ratio: 1/1; object-fit: cover; height: 100%; }
.product-row__text { padding: 52px 48px; display: flex; flex-direction: column; justify-content: center; }
@media (max-width: 860px) {
  .product-row, .product-row.reverse { grid-template-columns: 1fr; }
  .product-row.reverse .product-row__text, .product-row.reverse .product-row__photo { order: initial; }
  .product-row__text { padding: 36px 28px; }
}

.status { font-size: 0.95rem; font-weight: 600; display: inline-flex; align-items: center; gap: 8px; color: var(--ink-soft); margin-bottom: 10px; }
.status::before { content: ""; width: 9px; height: 9px; border-radius: 50%; background: var(--dot, var(--status-service)); }
.status.service { --dot: var(--status-service); }
.status.build { --dot: var(--status-build); }
.status.dev { --dot: var(--status-dev); }

.spec-table { width: 100%; border-collapse: collapse; font-size: 1rem; margin-top: 20px; }
.spec-table tr { border-bottom: 1px solid var(--rule); }
.spec-table tr:last-child { border-bottom: none; }
.spec-table th, .spec-table td { text-align: left; padding: 11px 0; vertical-align: top; }
.spec-table th { font-weight: 600; color: var(--muted); width: 42%; }
.spec-table td { color: var(--ink); font-weight: 500; }
.spec-note { margin-top: 16px; font-size: 0.98rem; color: var(--ink-soft); }

/* ---------- Photo placeholders ---------- */

.photo-slot { border: 1px dashed var(--rule-strong); background: repeating-linear-gradient(135deg, transparent, transparent 10px, rgba(200,85,31,0.06) 10px, rgba(200,85,31,0.06) 20px); display: flex; align-items: center; justify-content: center; text-align: center; color: var(--muted); font-weight: 600; font-size: 0.95rem; padding: 18px; width: 100%; height: 100%; min-height: 220px; }

img.photo { width: 100%; display: block; }
img.photo.wide { max-height: 640px; object-fit: contain; background: var(--paper-raised); }

.photo-caption { font-size: 0.95rem; font-weight: 500; color: var(--ink-soft); margin: 10px 0 24px; }

/* ---------- Tiles ---------- */

.tiles { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1px; background: var(--rule); border: 1px solid var(--rule); margin-top: 40px; }
.tile { background: var(--paper); padding: 32px 28px; }
.tile h3 { margin-bottom: 12px; }
.tile p { font-size: 1rem; margin-bottom: 18px; }
@media (max-width: 760px) { .tiles { grid-template-columns: 1fr; } }

/* ---------- Data callout (threat stats) ---------- */

.data-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: var(--rule); border: 1px solid var(--rule); margin: 32px 0; }
.data-card { background: var(--paper); padding: 30px 28px; }
.data-card .num { font-weight: 700; font-size: 2rem; color: var(--accent); display: block; margin-bottom: 8px; }
.data-card p { font-size: 1rem; margin: 0; }
@media (max-width: 900px) { .data-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .data-grid { grid-template-columns: 1fr; } }
.source-note { font-size: 0.9rem; color: var(--muted); margin-top: 14px; }

/* ---------- Notes ---------- */

.note { border-left: 4px solid var(--accent); background: var(--paper-raised); padding: 18px 22px; font-size: 1rem; color: var(--ink-soft); margin: 22px 0; }
.note strong { color: var(--ink); font-weight: 700; display: block; margin-bottom: 6px; }

/* ---------- Forms ---------- */

form.contact { display: grid; gap: 22px; max-width: 560px; margin-top: 32px; }
.field { display: grid; gap: 8px; }
.field label { font-weight: 600; font-size: 0.95rem; color: var(--ink); }
.field input, .field select, .field textarea {
  font-family: var(--font); font-size: 1rem; padding: 10px 2px;
  border: none; border-bottom: 2px solid var(--rule-strong);
  background: transparent; color: var(--ink);
}
.field textarea { min-height: 130px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-bottom-color: var(--accent); }

.info-list { list-style: none; padding: 0; margin: 28px 0 0; }
.info-list li { padding: 16px 0; border-top: 1px solid var(--rule); display: grid; grid-template-columns: 140px 1fr; gap: 16px; font-size: 1.02rem; }
.info-list li:last-child { border-bottom: 1px solid var(--rule); }
.info-list span.k { font-weight: 700; color: var(--muted); }
.pending-text { color: var(--ink-soft); font-style: italic; }

.two-col { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 48px; align-items: start; }
@media (max-width: 860px) { .two-col { grid-template-columns: 1fr; } }

/* ---------- Footer ---------- */

footer.site { border-top: 1px solid var(--rule); margin-top: 60px; padding: 44px 0; background: var(--paper-raised); }
footer.site .foot-grid { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 20px; font-size: 0.98rem; color: var(--ink-soft); }
footer.site nav { display: flex; gap: 20px; flex-wrap: wrap; font-weight: 600; font-size: 0.95rem; }
footer.site nav a { text-decoration: none; }
footer.site nav a:hover { color: var(--accent); }
.legal { margin-top: 24px; padding-top: 20px; border-top: 1px solid var(--rule); font-size: 0.9rem; color: var(--muted); }

/* ---------- Career hero (video behind intro + two columns) ---------- */
.career-hero .eyebrow { color: rgba(255,255,255,0.72); }
.career-hero h2 { color: #fff; }
.career-hero p { color: rgba(255,255,255,0.9); }
.career-hero__cols { margin-top: 56px; }

/* ---------- Mobile tidy-ups ---------- */
@media (max-width: 520px) {
  header.site .bar { padding: 16px 20px; gap: 10px; }
  nav.primary { gap: 14px; font-size: 0.9rem; }
  .info-list li { grid-template-columns: 70px 1fr; }
  .info-list li a { word-break: break-all; }
}

.product-row__photo video { width: 100%; height: auto; display: block; }

/* ---------- Career field photos ---------- */
.field-photos { display: grid; grid-template-columns: 1.78fr 1fr; gap: 12px; }
.field-photos img { width: 100%; height: 100%; aspect-ratio: auto; object-fit: cover; display: block; }
.field-photos img:first-child { aspect-ratio: 4 / 3; }
@media (max-width: 700px) {
  .field-photos { grid-template-columns: 1fr; }
  .field-photos img:last-child { aspect-ratio: 4 / 5; }
}

/* 5 stat cards: 3 on top, 2 wider below */
.data-grid { grid-template-columns: repeat(6, 1fr); }
.data-grid .data-card { grid-column: span 2; }
.data-grid .data-card:nth-child(n+4) { grid-column: span 3; }
@media (max-width: 900px) {
  .data-grid { grid-template-columns: repeat(2, 1fr); }
  .data-grid .data-card, .data-grid .data-card:nth-child(n+4) { grid-column: span 1; }
  .data-grid .data-card:last-child { grid-column: span 2; }
}
@media (max-width: 560px) {
  .data-grid { grid-template-columns: 1fr; }
  .data-grid .data-card:last-child { grid-column: span 1; }
}
