/* Recruited.agency — canonical Brand-A shell (LD-51 frozen sheet · LD-54 site re-skin).
   Every value is carbon-copied from brand/build_brand_sheet.py (the frozen canonical):
   tokens, grain, glow, glass navbar recipe, soft-card grid style, square gold buttons,
   Times display serif + Helvetica Neue bodies, gold-scarcity law (ONE gold action per view).
   Copy is untouched. Satoshi webfonts dropped — brand law = system Times/Helvetica stacks. */

/* ---------- Design tokens (the frozen :root, LD-51 baked values) ---------- */
:root {
  /* the base unit — all spacing is a multiple: 11 / 22 / 33 / 44 / 66 / 88 */
  --u: 44px;
  --sp-1: calc(var(--u) * 0.25);   /* 11 */
  --sp-2: calc(var(--u) * 0.5);    /* 22 */
  --sp-3: calc(var(--u) * 0.75);   /* 33 */

  /* palette */
  --bg: hsl(20, 9%, 2.7%);          /* warm near-black ground (baked tuner value) */
  --text: #F2EEE7;                  /* warm off-white */
  --dim: #9A948C;                   /* warm greige — body text */
  --faint: #5B564F;                 /* quietest text */
  --line: #2E2B27;                  /* the ONE opaque hairline */
  --plus: rgb(78, 74, 67);          /* crop-mark / fade-cross color (baked x0.7) */
  --gold: #F7D11C;                  /* the one accent */
  --gold-signal: #FEDB10;           /* hot signal (hover) */

  /* type — two fonts, five sizes */
  --f-serif: 'Times New Roman', Times, Georgia, serif;
  --f-sans: 'Helvetica Neue', Helvetica, Arial, 'Inter', system-ui, sans-serif;
  --fs-display: clamp(36px, 4.8vw, 52px);
  --fs-head: clamp(23px, 3vw, 29px);
  --fs-lead: 20px;
  --fs-body: 15px;
  --fs-label: 11px;
  --lh-body: 1.6;
  --ls-label: .16em;

  /* baked effect knobs (LD-51) */
  --grain-op: .13;
  --grain-size: 340px;
  --grain-url: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='340' height='340'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.76' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix type='saturate' values='0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  --glow-a: .28;
  --shadow-a: .5;

  /* content column */
  --maxw: 760px;
}

/* zero rounding is the law — soft cards opt back in at a quarter unit */
* { box-sizing: border-box; border-radius: 0; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--dim);
  font-family: var(--f-sans);
  font-size: var(--fs-body);
  line-height: var(--lh-body);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: clip;
}

/* film grain — fixed overlay, var-driven, actually visible (normal blend) */
body::before {
  content: ""; position: fixed; inset: 0; z-index: 9999; pointer-events: none;
  opacity: var(--grain-op);
  background-image: var(--grain-url);
  background-size: var(--grain-size) var(--grain-size);
}

.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 var(--sp-2); }

a { color: var(--gold); text-decoration: none; }
a:hover { text-decoration: underline; }
strong { color: var(--text); font-weight: 500; }
em { color: var(--text); font-style: italic; }

/* ---------- Header — the glass navbar recipe, carbon copy (blur lives HERE only) ---------- */
.site-header {
  position: sticky; top: 0; z-index: 200;
  background: rgba(11, 10, 9, 0.6);
  -webkit-backdrop-filter: blur(18px) saturate(150%);
  backdrop-filter: blur(18px) saturate(150%);
  border-bottom: 1px solid var(--line);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .045);
}
.site-header .wrap {
  display: flex; align-items: center; justify-content: space-between;
  gap: var(--sp-2); height: calc(var(--u) * 1.6);
}
.wordmark { display: inline-flex; align-items: center; }
.wordmark img { height: 26px; width: auto; display: block; opacity: .97; }
.wordmark:hover { text-decoration: none; }

.site-nav { display: flex; align-items: center; gap: var(--sp-2); }
.site-nav a.nav-link {
  font-size: var(--fs-label); letter-spacing: var(--ls-label); text-transform: uppercase;
  color: var(--dim); transition: color .18s;
}
.site-nav a.nav-link:hover { color: var(--text); text-decoration: none; }

/* ---------- Buttons — the frozen system: square, uppercase, gold-scarce ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 11px 22px;
  font-family: var(--f-sans);
  font-size: var(--fs-label); letter-spacing: .14em; text-transform: uppercase;
  cursor: pointer; text-decoration: none; line-height: 1.2;
  transition: background .16s ease, border-color .16s ease, color .16s ease;
}
.btn:hover { text-decoration: none; }
.btn:focus-visible { outline: 2px solid var(--gold); outline-offset: 2px; }

/* Primary — the gold action. ONE per view. */
.btn-primary { background: var(--gold); color: var(--bg); border: 1px solid var(--gold); font-weight: 600; }
.btn-primary:hover { background: var(--gold-signal); border-color: var(--gold-signal); }

/* Ghost — the quiet workhorse */
.btn-ghost { background: transparent; color: var(--dim); border: 1px solid var(--line); }
.btn-ghost:hover { border-color: var(--dim); color: var(--text); }

/* Glass — floating chrome (the navbar look without backdrop-filter; perf law) */
.btn-glass {
  background: rgba(18, 17, 15, 0.78); color: var(--text);
  border: 1px solid var(--line);
  box-shadow: 0 14px 36px rgba(0, 0, 0, var(--shadow-a)), inset 0 1px 0 rgba(255, 255, 255, .05);
}
.btn-glass:hover { border-color: var(--dim); }

.btn-sm { padding: 8px 14px; }

/* ---------- Micro-labels ---------- */
.eyebrow {
  display: inline-block;
  font-size: var(--fs-label); font-weight: 500;
  letter-spacing: var(--ls-label); text-transform: uppercase;
  color: var(--dim);
  border: 1px solid var(--line);
  padding: 5px 11px;
  margin: 0 0 var(--sp-2);
}

/* ---------- Hero — centered, serif display with the white-only glow ---------- */
.hero { position: relative; overflow: hidden; padding: calc(var(--u) * 2) 0 calc(var(--u) * 1.5); text-align: center; }
.hero h1 {
  font-family: var(--f-serif); font-weight: 400;
  font-size: var(--fs-display); line-height: 1.04; letter-spacing: -.02em;
  color: var(--text);
  text-shadow: 0 0 30px rgba(242, 238, 231, var(--glow-a));
  margin: 0 auto var(--sp-2); max-width: 20ch;
}
.hero .subhead {
  font-family: var(--f-serif); font-weight: 400;
  font-size: var(--fs-lead); line-height: 1.3; letter-spacing: -.01em;
  color: var(--dim);
  margin: 0 auto var(--sp-3); max-width: 46ch;
}
.hero .who {
  color: var(--faint); font-size: var(--fs-body);
  margin: var(--sp-3) auto 0; max-width: 56ch;
}

/* ---------- Sections — fade-to-transparent hairline dividers (the Brand-A line language) ---------- */
section { position: relative; padding: calc(var(--u) * 1.5) 0; }
section::before {
  content: ""; position: absolute; top: 0; left: 50%; transform: translateX(-50%);
  width: min(var(--maxw), 92%); height: 1px;
  background: linear-gradient(to right, transparent, var(--line) 18%, var(--line) 82%, transparent);
}
h2 {
  font-family: var(--f-serif); font-weight: 400;
  font-size: var(--fs-head); line-height: 1.14; letter-spacing: -.01em;
  color: var(--text); text-align: center; text-wrap: balance;
  text-shadow: 0 0 30px rgba(242, 238, 231, var(--glow-a));
  margin: 0 0 var(--sp-2);
}
h3 {
  font-family: var(--f-serif); font-weight: 400;
  font-size: 19px; line-height: 1.2; color: var(--text); margin: 0 0 var(--sp-1);
}
p { margin: 0 0 16px; }
p:last-child { margin-bottom: 0; }
.section-lead {
  color: var(--dim); text-align: center;
  margin: 0 auto var(--sp-3); max-width: 60ch;
}

/* the closing section keeps a quiet warm under-light (no green, no gold wash) */
.glow { position: relative; text-align: center; }
.glow::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 280px;
  pointer-events: none; z-index: 0;
  background: linear-gradient(to top, rgba(242, 238, 231, 0.03), transparent 80%);
}
.glow .wrap { position: relative; z-index: 1; }

/* ---------- Cards — the soft-card secondary grid style (rounded, raised, pill-depth) ---------- */
.card-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--sp-2); }
.card {
  background: rgba(242, 238, 231, .045);
  border: 1px solid var(--line);
  border-radius: calc(var(--u) * 0.25);
  box-shadow: 0 14px 36px rgba(0, 0, 0, calc(var(--shadow-a) * .55)), inset 0 1px 0 rgba(255, 255, 255, .05);
  padding: var(--sp-2);
}
.card p { color: var(--dim); }
.numeral {
  display: block;
  font-family: var(--f-serif); font-weight: 400;
  font-size: clamp(2.2rem, 5vw, 2.8rem);
  line-height: 1; letter-spacing: -.02em;
  color: var(--faint); margin-bottom: var(--sp-1);
}
.numeral .n-accent { color: var(--plus); }

/* ---------- Steps ---------- */
.steps { display: flex; flex-direction: column; gap: var(--sp-2); }
.step { display: flex; gap: var(--sp-2); align-items: flex-start; text-align: left; }
.step .numeral { margin-bottom: 0; flex: 0 0 auto; min-width: 2.4ch; }
.step-body { padding-top: 4px; }
.step-body p { color: var(--dim); margin-bottom: 0; }

/* ---------- Callout / note — soft cards; the gold hairline = the view's one gold ---------- */
.callout {
  background: rgba(242, 238, 231, .045);
  border: 1px solid var(--line);
  border-left: 2px solid var(--plus);
  border-radius: calc(var(--u) * 0.25);
  box-shadow: 0 14px 36px rgba(0, 0, 0, calc(var(--shadow-a) * .55)), inset 0 1px 0 rgba(255, 255, 255, .05);
  padding: var(--sp-2) 28px;
  text-align: left;
}
.callout-strong { border-left-color: var(--gold); margin-top: var(--sp-2); }
.callout p { color: var(--dim); }
.callout p strong { color: var(--text); }
.note {
  background: rgba(242, 238, 231, .045);
  border: 1px solid var(--line);
  border-radius: calc(var(--u) * 0.25);
  box-shadow: 0 14px 36px rgba(0, 0, 0, calc(var(--shadow-a) * .55)), inset 0 1px 0 rgba(255, 255, 255, .05);
  padding: var(--sp-2);
  font-size: var(--fs-body); color: var(--faint);
  text-align: left;
}
.note strong { color: var(--dim); }

.contact-actions { margin-top: var(--sp-2); }

/* ---------- Policy pages ---------- */
.page-head { padding: calc(var(--u) * 1.6) 0 var(--sp-1); }
.page-head h1 {
  font-family: var(--f-serif); font-weight: 400;
  font-size: var(--fs-display); line-height: 1.04; letter-spacing: -.02em;
  color: var(--text);
  text-shadow: 0 0 30px rgba(242, 238, 231, var(--glow-a));
  margin: 0 0 14px;
}
.effective {
  color: var(--dim); font-size: var(--fs-label);
  letter-spacing: var(--ls-label); text-transform: uppercase; margin: 0;
}
.policy { padding: var(--sp-2) 0; }
.policy > .wrap > p { color: var(--dim); }
.policy h2 {
  font-family: var(--f-serif); font-weight: 400; text-align: left; text-shadow: none;
  font-size: 1.3rem; color: var(--text);
  margin: var(--sp-3) 0 14px; padding-top: var(--sp-1);
  border-top: 1px solid var(--line);
}
.policy h2:first-of-type { border-top: none; padding-top: 0; }
.policy p { margin: 0 0 14px; color: var(--dim); }
.policy ul { padding-left: 1.25em; margin: 0 0 14px; }
.policy li { margin-bottom: 9px; color: var(--dim); }
.policy li::marker { color: var(--faint); }
.backlink { font-size: var(--fs-body); }

/* ---------- Footer ---------- */
.site-footer {
  position: relative;
  border-top: 1px solid var(--line);
  margin-top: var(--u);
}
.site-footer .wrap { padding-top: var(--u); padding-bottom: var(--sp-3); }
.footer-links a {
  color: var(--dim); margin-right: var(--sp-2);
  font-size: var(--fs-label); letter-spacing: var(--ls-label); text-transform: uppercase;
  white-space: nowrap; line-height: 2.4;
}
.footer-links a:hover { color: var(--text); text-decoration: none; }
.footer-contact { margin: 18px 0 0; font-size: var(--fs-body); }
.footer-contact a { color: var(--gold); }
.footer-legal { margin: 16px 0 0; font-size: var(--fs-label); letter-spacing: .02em; color: var(--faint); line-height: 1.8; }
.footer-copy { margin: 10px 0 0; font-size: var(--fs-label); letter-spacing: .02em; color: var(--faint); }

/* ---------- Responsive ---------- */
@media (max-width: 860px) {
  .card-grid { grid-template-columns: 1fr; }
}
@media (max-width: 620px) {
  .site-nav .nav-link { display: none; }
  .hero { padding: calc(var(--u) * 1.4) 0 var(--u); }
  section { padding: var(--u) 0; }
  .step { gap: var(--sp-1); }
  .footer-links a { display: inline-block; }
}
