/* Prime People — 2026 redesign design system.
 *
 * Bright, human, typographic. Warm off-white ground, near-black type, electric
 * cobalt as the working accent, tomato used sparingly. Archivo (variable,
 * self-hosted) carries the design. Square corners, rules and colour fields
 * instead of cards. No dark chrome, no monospace, no visible plumbing.
 *
 * Used by / (public/index.html) and /jobs/ (functions/jobs/index.js).
 * The older pages still run on /styles.css until they are brought across.
 */

:root {
  --paper: #ffffff;
  --paper-deep: #f1f1ef;
  --ink: #151515;
  --ink-soft: #3c3c3a;
  --ink-mute: #6e6e6a;
  --cobalt: #2455ff;
  --cobalt-deep: #1a3fd1;
  --tomato: #f0523d;
  --rule: #dcdcd8;
  --sans: "Archivo", "Helvetica Neue", Helvetica, Arial, sans-serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.55;
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
}
::selection { background: var(--cobalt); color: #fff; }
a { color: inherit; }
:focus-visible { outline: 3px solid var(--cobalt); outline-offset: 2px; }
img { max-width: 100%; display: block; }

.wrap { max-width: 1360px; margin: 0 auto; padding: 0 clamp(20px, 4vw, 56px); }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip {
  position: absolute; left: -9999px; top: 0; z-index: 40;
  padding: 10px 16px; background: var(--ink); color: #fff;
  font-weight: 600; font-size: 15px; text-decoration: none;
}
.skip:focus { left: 0; }

/* ---------- header ---------- */
.site-header { border-bottom: 1px solid var(--rule); background: var(--paper); }
.site-header .wrap {
  display: flex; align-items: center; justify-content: space-between;
  gap: 20px; flex-wrap: wrap; padding-top: 22px; padding-bottom: 22px;
}
.logo {
  font-weight: 800; font-size: 19px; letter-spacing: 0.01em;
  text-transform: uppercase; text-decoration: none; white-space: nowrap;
}
.logo .dot { color: var(--cobalt); }
.main-nav { display: flex; align-items: center; gap: clamp(16px, 2.4vw, 34px); flex-wrap: wrap; }
.main-nav a {
  font-size: 14px; font-weight: 600; text-transform: uppercase; letter-spacing: 0.04em;
  text-decoration: none; color: var(--ink);
  padding-bottom: 2px; border-bottom: 2px solid transparent;
}
.main-nav a:hover { border-bottom-color: var(--cobalt); }

/* ---------- buttons & links ---------- */
.btn {
  display: inline-block; cursor: pointer; text-decoration: none;
  font-family: var(--sans); font-weight: 700; font-size: 15.5px;
  text-transform: uppercase; letter-spacing: 0.03em;
  background: var(--ink); color: #fff; border: 2px solid var(--ink);
  padding: 15px 26px; border-radius: 0;
  transition: background 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}
.btn:hover { background: var(--cobalt); border-color: var(--cobalt); color: #fff; }
.btn.ghost { background: transparent; color: var(--ink); }
.btn.ghost:hover { background: var(--ink); color: #fff; border-color: var(--ink); }
.btn.small { padding: 11px 18px; font-size: 13.5px; }
.link-strong {
  font-weight: 700; text-transform: uppercase; letter-spacing: 0.02em;
  color: var(--cobalt); text-decoration: none;
}
.link-strong:hover { text-decoration: underline; text-underline-offset: 4px; text-decoration-thickness: 2px; }

/* ---------- graphic panels ----------
   Flat typographic colour fields (no photography on this site). Aspect-ratio
   classes shape the composition; content is type only. */
.panel {
  display: flex; flex-direction: column; align-items: flex-start; justify-content: flex-end;
  overflow: hidden; position: relative; text-decoration: none;
  padding: clamp(16px, 2.4vw, 30px);
}
.panel-ink { background: var(--ink); color: #fff; }
.panel-cobalt { background: var(--cobalt); color: #fff; }
.panel-tomato { background: var(--tomato); color: #fff; }
.panel-paper { background: var(--paper-deep); color: var(--ink); }
.panel-num {
  font-size: clamp(110px, 14vw, 230px); font-weight: 800; line-height: 0.9;
  letter-spacing: -0.03em;
}
.panel-label {
  margin-top: 10px; font-size: clamp(17px, 1.7vw, 23px); font-weight: 700;
  text-transform: uppercase; letter-spacing: 0.01em;
}
a.panel:hover.panel-cobalt { background: var(--ink); }
a.panel:hover.panel-ink { background: var(--cobalt); }
.panel-glyph {
  font-size: clamp(200px, 26vw, 420px); font-weight: 800; line-height: 0.8;
  align-self: center; margin: auto; position: relative;
}
.panel-glyph.pct::after {
  content: ""; position: absolute; left: -6%; right: -6%; top: 50%;
  border-top: clamp(10px, 1.4vw, 20px) solid currentColor;
  transform: rotate(-32deg);
}
.r45 { aspect-ratio: 4 / 5; }
.r34 { aspect-ratio: 3 / 4; }
.r43 { aspect-ratio: 4 / 3; }
.r32 { aspect-ratio: 3 / 2; }
.r169 { aspect-ratio: 16 / 9; }
.r11 { aspect-ratio: 1 / 1; }
.r219 { aspect-ratio: 21 / 9; }

/* practice-area tiles (the former photo collage grid) */
.area-tile {
  display: flex; align-items: flex-end;
  padding: clamp(16px, 2vw, 26px);
  font-size: clamp(20px, 2.3vw, 34px); font-weight: 800; line-height: 1.05;
  text-transform: uppercase; letter-spacing: -0.01em; text-decoration: none;
  transition: background 0.14s ease, color 0.14s ease;
}
.area-tile.panel-paper:hover { background: var(--cobalt); color: #fff; }
.area-tile.panel-ink:hover { background: var(--cobalt); }
.area-tile.panel-cobalt:hover { background: var(--ink); }

/* ---------- hero ---------- */
.hero .wrap {
  padding-top: clamp(36px, 6vh, 76px); padding-bottom: 0;
}
.hero h1 {
  font-size: clamp(42px, 7.3vw, 104px);
  line-height: 1.01; letter-spacing: -0.015em;
  font-weight: 800; text-transform: uppercase;
}
.hero h1 .accent { color: var(--cobalt); }
.hero .hero-sub {
  margin-top: 26px; font-size: clamp(18px, 1.6vw, 22px); line-height: 1.45;
  color: var(--ink-soft); max-width: 44ch;
}
.hero .hero-ctas {
  display: flex; gap: clamp(22px, 3vw, 44px); flex-wrap: wrap;
  margin-top: clamp(26px, 4vh, 40px);
}
.hero .hero-ctas a {
  font-size: clamp(17px, 1.7vw, 22px); font-weight: 800; text-transform: uppercase;
  letter-spacing: 0.01em; color: var(--ink); text-decoration: none;
  border-bottom: 3px solid var(--ink); padding-bottom: 4px;
}
.hero .hero-ctas a .arr { display: inline-block; transition: transform 0.15s ease; }
.hero .hero-ctas a:hover { color: var(--cobalt); border-bottom-color: var(--cobalt); }
.hero .hero-ctas a:hover .arr { transform: translateX(5px); }
/* full-width live strip under both columns */
.hero-strip { border-top: 1px solid var(--ink); margin-top: clamp(30px, 5vh, 56px); }
.hero-strip .wrap {
  display: flex; align-items: baseline; justify-content: space-between;
  gap: 14px 28px; flex-wrap: wrap;
  padding-top: 20px; padding-bottom: clamp(28px, 4vh, 44px);
}
.hero-strip .strip-count {
  font-size: clamp(20px, 2.4vw, 32px); font-weight: 800; text-transform: uppercase;
  letter-spacing: 0.005em;
}
.hero-strip .strip-link {
  font-size: clamp(16px, 1.6vw, 21px); font-weight: 800; text-transform: uppercase;
  color: var(--cobalt); text-decoration: none;
}
.hero-strip .strip-link:hover { text-decoration: underline; text-underline-offset: 5px; text-decoration-thickness: 3px; }

/* ---------- section scaffolding ---------- */
.sect { border-top: 1px solid var(--ink); }
.sect > .wrap { padding-top: clamp(36px, 6vh, 72px); padding-bottom: clamp(44px, 7vh, 88px); }
.sect-title {
  font-size: clamp(34px, 4.6vw, 64px); line-height: 1; letter-spacing: -0.01em;
  font-weight: 800; text-transform: uppercase; margin-bottom: clamp(26px, 4vh, 44px);
}
.sect-title .accent { color: var(--cobalt); }

/* ---------- job rows (homepage + /jobs/) ---------- */
.job-list { border-top: 1px solid var(--ink); }
.job-row {
  display: block; border-bottom: 1px solid var(--rule);
  padding: clamp(20px, 3vh, 30px) clamp(12px, 1.6vw, 24px);
  position: relative;
  transition: background 0.14s ease, color 0.14s ease;
}
.job-row .job-grid {
  display: grid; grid-template-columns: minmax(0, 1fr) auto;
  gap: 6px clamp(20px, 3vw, 48px); align-items: center;
}
.job-row h3 {
  font-size: clamp(22px, 2.6vw, 34px); line-height: 1.12; font-weight: 700; letter-spacing: -0.01em;
}
.job-row h3 a { text-decoration: none; }
.job-row h3 a::after { content: ""; position: absolute; inset: 0; } /* whole row clickable */
.job-row .job-firmline { margin-top: 6px; font-size: 16.5px; color: var(--ink-soft); }
.job-row .job-firmline strong { font-weight: 700; color: inherit; }
.job-row .job-summary {
  margin-top: 10px; font-size: 15.5px; line-height: 1.5; color: var(--ink-mute); max-width: 74ch;
}
.job-row .job-cta {
  grid-row: 1 / span 3; grid-column: 2;
  display: flex; flex-direction: column; align-items: flex-end; gap: 12px;
  position: relative; z-index: 1; /* above the stretched link */
}
.job-row .job-cta .view {
  font-weight: 800; text-transform: uppercase; font-size: 15.5px; letter-spacing: 0.02em;
  color: var(--cobalt); text-decoration: none; white-space: nowrap;
}
.job-row .job-cta button {
  font-family: var(--sans); font-weight: 700; font-size: 13.5px; text-transform: uppercase;
  letter-spacing: 0.03em; cursor: pointer; white-space: nowrap;
  background: transparent; color: var(--ink); border: 2px solid var(--ink);
  padding: 10px 16px; border-radius: 0;
  transition: background 0.14s ease, color 0.14s ease, border-color 0.14s ease;
}
@media (hover: hover) {
  .job-row:hover { background: var(--cobalt); color: #fff; border-bottom-color: var(--cobalt); }
  .job-row:hover .job-firmline,
  .job-row:hover .job-summary { color: rgba(255, 255, 255, 0.85); }
  .job-row:hover .job-cta .view { color: #fff; }
  .job-row:hover .job-cta button { border-color: #fff; color: #fff; }
  .job-row .job-cta button:hover { background: #fff; color: var(--cobalt); border-color: #fff; }
}
@media (max-width: 700px) {
  .job-row .job-grid { grid-template-columns: 1fr; }
  .job-row .job-cta { grid-row: auto; grid-column: 1; flex-direction: row; align-items: center; margin-top: 14px; }
}
.jobs-foot { padding-top: 26px; }
.jobs-foot .link-strong { font-size: clamp(17px, 1.8vw, 22px); }

/* ---------- /jobs/ controls ---------- */
.board-controls { display: grid; gap: 18px; margin-bottom: 26px; }
.job-search {
  width: 100%; max-width: 560px;
  font-family: var(--sans); font-size: 18px; color: var(--ink);
  background: transparent; border: 0; border-bottom: 2px solid var(--ink);
  padding: 12px 2px; border-radius: 0; appearance: none;
}
.job-search::placeholder { color: var(--ink-mute); }
.job-search:focus { outline: none; border-bottom-color: var(--cobalt); }
.filters { display: flex; flex-wrap: wrap; gap: 4px 22px; }
.filters .chip {
  font-family: var(--sans); font-size: 16px; font-weight: 500; cursor: pointer;
  background: none; border: 0; border-radius: 0; color: var(--ink-soft);
  padding: 4px 0; border-bottom: 2px solid transparent; text-decoration: none;
}
.filters .chip:hover { color: var(--ink); border-bottom-color: var(--rule); }
.filters .chip.active { color: var(--cobalt); font-weight: 700; border-bottom-color: var(--cobalt); }
.count-note { font-size: 16px; color: var(--ink-mute); margin-bottom: 18px; }

/* ---------- differentiators ---------- */
.diff { border-top: 1px solid var(--ink); }
.diff .wrap {
  display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
  gap: clamp(28px, 4vw, 72px); align-items: center;
  padding-top: clamp(52px, 10vh, 120px); padding-bottom: clamp(52px, 10vh, 120px);
}
@media (max-width: 880px) { .diff .wrap { grid-template-columns: 1fr; } }
.diff .num {
  font-size: 19px; font-weight: 800; color: var(--cobalt); margin-bottom: 18px;
}
.diff h3 {
  font-size: clamp(40px, 5.6vw, 84px); line-height: 0.99; letter-spacing: -0.015em;
  font-weight: 800; text-transform: uppercase;
}
.diff p { margin-top: 24px; font-size: clamp(17px, 1.5vw, 21px); color: var(--ink-soft); max-width: 44ch; }
.diff.diff-tomato h3 .accent { color: var(--tomato); }
.diff.diff-cobalt h3 .accent { color: var(--cobalt); }
.diff .diff-media { min-width: 0; }
.diff.flip .wrap { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); }
.diff.flip .diff-media { order: -1; }
@media (max-width: 880px) { .diff.flip .wrap { grid-template-columns: 1fr; } .diff.flip .diff-media { order: 0; } }

/* ---------- people ---------- */
.people-title {
  font-size: clamp(40px, 6vw, 92px); line-height: 1.02; letter-spacing: -0.015em;
  font-weight: 800; margin-bottom: clamp(30px, 5vh, 56px); /* no text-transform: "CFOs" keeps its s */
}
.people-title em { font-style: normal; color: var(--cobalt); }
.people-grid {
  display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: clamp(12px, 1.6vw, 24px);
}
.people-grid .p1 { grid-column: 1 / span 5; }
.people-grid .p2 { grid-column: 6 / span 4; align-self: end; }
.people-grid .p3 { grid-column: 10 / span 3; }
.people-grid .p4 { grid-column: 1 / span 3; align-self: start; }
.people-grid .p5 { grid-column: 4 / span 6; }
.people-grid .p6 { grid-column: 10 / span 3; align-self: end; }
@media (max-width: 880px) {
  .people-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .people-grid > * { grid-column: auto !important; }
}

/* ---------- firms ---------- */
.firm-list { display: flex; flex-wrap: wrap; gap: clamp(18px, 3vw, 44px) clamp(28px, 4.5vw, 72px); align-items: baseline; }
.firm-list a {
  font-size: clamp(21px, 2.4vw, 32px); font-weight: 800; letter-spacing: -0.01em;
  text-decoration: none; color: var(--ink); white-space: nowrap;
}
.firm-list a:hover { color: var(--cobalt); }
.firm-note { margin-top: 26px; font-size: 16.5px; color: var(--ink-mute); max-width: 70ch; }
.firm-note a { color: inherit; }

/* ---------- employer cobalt field ---------- */
.employer-field { background: var(--cobalt); color: #fff; }
.employer-field .wrap { padding-top: clamp(56px, 11vh, 130px); padding-bottom: clamp(56px, 11vh, 130px); }
.employer-field h2 {
  font-size: clamp(46px, 7.6vw, 120px); line-height: 0.96; letter-spacing: -0.015em;
  font-weight: 800; text-transform: uppercase;
}
.employer-field p { margin-top: 26px; font-size: clamp(18px, 1.7vw, 23px); max-width: 52ch; color: rgba(255, 255, 255, 0.92); }
.employer-field .btn { margin-top: 34px; background: #fff; color: var(--cobalt); border-color: #fff; }
.employer-field .btn:hover { background: var(--ink); color: #fff; border-color: var(--ink); }

/* ---------- about facts ---------- */
.about-cols { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(24px, 3.5vw, 56px); }
@media (max-width: 880px) { .about-cols { grid-template-columns: 1fr; } }
.about-cols h3 { font-size: 20px; font-weight: 700; margin-bottom: 10px; }
.about-cols p { font-size: 16.5px; color: var(--ink-soft); }
.about-cols a { color: var(--ink); }

/* ---------- contact ---------- */
.intent { display: grid; grid-template-columns: 1fr 1fr; border: 2px solid var(--ink); margin-bottom: clamp(30px, 5vh, 52px); }
@media (max-width: 760px) { .intent { grid-template-columns: 1fr; } }
.intent a {
  display: block; padding: clamp(24px, 4vh, 40px) clamp(20px, 3vw, 36px);
  text-decoration: none; font-size: clamp(21px, 2.4vw, 32px); font-weight: 800;
  text-transform: uppercase; letter-spacing: -0.005em; line-height: 1.1;
  transition: background 0.14s ease, color 0.14s ease;
}
.intent a:first-child { border-right: 2px solid var(--ink); }
@media (max-width: 760px) { .intent a:first-child { border-right: 0; border-bottom: 2px solid var(--ink); } }
.intent a span { display: block; margin-top: 8px; font-size: 15.5px; font-weight: 500; text-transform: none; color: var(--ink-mute); }
.intent a:hover { background: var(--cobalt); color: #fff; }
.intent a:hover span { color: rgba(255, 255, 255, 0.85); }

.contact-grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(30px, 5vw, 80px); }
@media (max-width: 880px) { .contact-grid { grid-template-columns: 1fr; } }
.cd-item { padding: 16px 0; border-bottom: 1px solid var(--rule); }
.cd-label { font-size: 14.5px; font-weight: 700; margin-bottom: 3px; }
.cd-value { font-size: 17px; color: var(--ink-soft); text-decoration: none; display: block; }
a.cd-value:hover { color: var(--cobalt); }

/* ---------- forms ---------- */
form .field { margin-bottom: 18px; }
form label { display: block; font-size: 15px; font-weight: 700; margin-bottom: 6px; }
form .opt { font-weight: 400; color: var(--ink-mute); }
input, select, textarea {
  width: 100%; font-family: var(--sans); font-size: 16.5px; color: var(--ink);
  background: #fff; border: 2px solid var(--ink); padding: 12px 14px;
  border-radius: 0; appearance: none; -webkit-appearance: none;
}
textarea { min-height: 130px; resize: vertical; }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--cobalt); }
input[type="file"] { background: transparent; border-style: dashed; font-size: 15px; }
.row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 0 18px; }
@media (max-width: 560px) { .row2 { grid-template-columns: 1fr; } }
.form-status { font-size: 15.5px; font-weight: 600; margin-top: 12px; min-height: 1.3em; }
.form-status.err { color: var(--tomato); }
.form-status.ok { color: var(--cobalt); }

/* ---------- footer ---------- */
.site-footer { border-top: 1px solid var(--ink); }
.site-footer .wrap {
  display: flex; flex-wrap: wrap; gap: 16px 34px; align-items: baseline;
  padding-top: 30px; padding-bottom: 48px;
}
.site-footer .logo { font-size: 16px; }
.footer-links { display: flex; flex-wrap: wrap; gap: 8px 22px; }
.footer-links a { font-size: 15px; font-weight: 500; text-decoration: none; color: var(--ink-soft); }
.footer-links a:hover { color: var(--cobalt); }
.fine { font-size: 14.5px; color: var(--ink-mute); margin-left: auto; }

/* ---------- apply modal (markup shared with _lib.js APPLY_MODAL) ---------- */
.apply-modal {
  border: 2px solid var(--ink); border-radius: 0; background: var(--paper); color: var(--ink);
  width: min(600px, calc(100vw - 28px)); padding: 0; margin: auto;
}
.apply-modal::backdrop { background: rgba(21, 21, 21, 0.5); }
.apply-form { padding: 30px 30px 34px; position: relative; }
.apply-form .eyebrow { display: none; } /* legacy label in the shared modal markup */
.apply-form h3 { font-size: clamp(24px, 3vw, 32px); font-weight: 800; line-height: 1.1; margin-bottom: 8px; padding-right: 40px; }
.apply-sub { font-size: 16px; color: var(--ink-soft); margin-bottom: 22px; }
.modal-close {
  position: absolute; top: 14px; right: 14px; cursor: pointer;
  font-size: 26px; line-height: 1; background: none; border: 0; color: var(--ink);
  padding: 6px 10px;
}
.modal-close:hover { color: var(--tomato); }
.apply-form .btn.solid { background: var(--cobalt); border-color: var(--cobalt); }
.apply-form .btn.solid:hover { background: var(--ink); border-color: var(--ink); }
.modal-fine, .apply-form p[style] { font-size: 13.5px; color: var(--ink-mute); margin-top: 12px; }
.modal-fine a { text-decoration: underline; }

/* ---------- register block on /jobs/ ---------- */
.register-card {
  margin-top: clamp(40px, 7vh, 70px); border: 2px solid var(--ink);
  padding: clamp(24px, 4vh, 40px) clamp(20px, 3vw, 40px);
  display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 22px; align-items: center;
}
@media (max-width: 820px) { .register-card { grid-template-columns: 1fr; } }
.register-card h3 { font-size: clamp(22px, 2.6vw, 30px); font-weight: 800; text-transform: uppercase; margin-bottom: 8px; }
.register-card p { color: var(--ink-soft); max-width: 62ch; }

/* ---------- reveal (used sparingly) ---------- */
@media (prefers-reduced-motion: no-preference) {
  .js .reveal { opacity: 0; transform: translateY(14px); transition: opacity 0.45s ease, transform 0.45s ease; }
  .js .reveal.in { opacity: 1; transform: none; }
}
