/* ──────────────────────────────────────────────────────────────
   Goldscott Recruiting · site stylesheet
   Mobile-first. Breakpoints: 640 / 960 / 1200
   ────────────────────────────────────────────────────────────── */

:root {
  --ink: #0E0E12;
  --ink-2: #1B1B22;
  --bone: #F4EFE6;
  --bone-2: #EAE3D4;
  --paper: #FBF8F2;
  --accent: #D9402A;
  --accent-soft: #E86A55;
  --rule: rgba(14,14,18,0.12);
  --rule-strong: rgba(14,14,18,0.22);
  --muted: rgba(14,14,18,0.55);
  --muted-on-dark: rgba(244,239,230,0.55);

  --pad-x: 20px;
  --max-w: 1280px;
}

@media (min-width: 640px) { :root { --pad-x: 32px; } }
@media (min-width: 960px) { :root { --pad-x: 40px; } }
@media (min-width: 1200px) { :root { --pad-x: 56px; } }

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
html { -webkit-text-size-adjust: 100%; }
body {
  background: var(--paper);
  color: var(--ink);
  font-family: 'Space Grotesk', system-ui, -apple-system, sans-serif;
  font-feature-settings: 'ss01' on;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  line-height: 1.45;
  font-size: 16px;
  overflow-x: hidden;
  overflow-wrap: break-word;
  word-wrap: break-word;
}
h1, h2, h3, h4, p, a, span, blockquote { overflow-wrap: break-word; }
a { color: inherit; text-decoration: none; }
img { max-width: 100%; height: auto; display: block; }
button { font-family: inherit; }

.wrap { width: 100%; max-width: var(--max-w); margin: 0 auto; padding: 0 var(--pad-x); }
.mono { font-family: 'Geist Mono', ui-monospace, monospace; font-size: 11px; letter-spacing: 0.06em; text-transform: uppercase; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }

/* ── Top bar / nav ── */
.topbar {
  border-bottom: 1px solid var(--rule);
  background: var(--paper);
  position: sticky; top: 0; z-index: 50;
}
.topbar .inner {
  display: flex; align-items: center; justify-content: space-between;
  gap: 16px; padding: 14px 0;
  min-width: 0;
  position: relative;
}
.topbar .inner > * { min-width: 0; }
.brand { display: inline-flex; align-items: center; gap: 12px; font-weight: 600; font-size: 20px; letter-spacing: -0.015em; color: var(--ink); }
.brand .glyph { width: 42px; height: 42px; display: inline-flex; align-items: center; justify-content: center; flex-shrink: 0; }
.brand .glyph img { width: 100%; height: 100%; object-fit: contain; display: block; }

/* On mobile: center the brand horizontally, leave hamburger on the right */
@media (max-width: 959px) {
  .topbar .inner { min-height: 68px; }
  .topbar .inner > .brand {
    position: absolute;
    left: 50%; top: 50%;
    transform: translate(-50%, -50%);
    margin: 0;
  }
  /* invisible spacer on the left so the hamburger stays right and the
     brand centers between equal weights (visually balanced) */
  .topbar .inner::before {
    content: ""; display: block; width: 44px; height: 44px;
    flex-shrink: 0;
  }
}

/* desktop nav */
nav.links { display: none; }
.top-cta { display: none; }
.top-cta-mobile { display: inline-flex; }

@media (min-width: 960px) {
  .topbar .inner { display: grid; grid-template-columns: auto 1fr auto; gap: 32px; padding: 18px 0; }
  .brand { font-size: 18px; }
  .brand .glyph { width: 34px; height: 34px; }
  nav.links { display: flex; gap: 28px; justify-content: center; font-size: 14px; font-weight: 500; }
  nav.links a { color: var(--muted); transition: color .15s; padding: 6px 0; }
  nav.links a:hover { color: var(--ink); }
  nav.links a.active { color: var(--ink); }
  .top-cta { display: flex; gap: 10px; align-items: center; }
  .top-cta-mobile { display: none; }
  .hamburger { display: none; }
}

/* hamburger button */
.hamburger {
  width: 44px; height: 44px;
  display: inline-flex; align-items: center; justify-content: center;
  background: transparent; border: 1px solid var(--rule-strong); border-radius: 999px;
  cursor: pointer;
}
.hamburger span {
  display: block; width: 16px; height: 1.5px; background: var(--ink); position: relative;
}
.hamburger span::before, .hamburger span::after {
  content: ""; position: absolute; left: 0; width: 16px; height: 1.5px; background: var(--ink);
}
.hamburger span::before { top: -5px; }
.hamburger span::after { top: 5px; }

/* mobile drawer */
.mdrawer {
  position: fixed; inset: 0; background: var(--paper); z-index: 100;
  transform: translateY(-100%); transition: transform .3s ease;
  display: flex; flex-direction: column;
}
.mdrawer.open { transform: translateY(0); }
.mdrawer-head { display: flex; justify-content: space-between; align-items: center; padding: 14px var(--pad-x); border-bottom: 1px solid var(--rule); }
.mdrawer-close {
  width: 44px; height: 44px; border-radius: 999px; border: 1px solid var(--rule-strong);
  background: transparent; font-size: 18px; cursor: pointer;
}
.mdrawer-links { display: flex; flex-direction: column; padding: 8px 0; flex: 1; overflow-y: auto; }
.mdrawer-links a {
  padding: 18px var(--pad-x); font-size: 24px; letter-spacing: -0.02em; font-weight: 500;
  border-bottom: 1px solid var(--rule); display: flex; justify-content: space-between; align-items: center;
}
.mdrawer-links a.active { color: var(--accent); }
.mdrawer-links a .arr { color: var(--muted); }
.mdrawer-foot { padding: 20px var(--pad-x) 32px; display: flex; flex-direction: column; gap: 12px; border-top: 1px solid var(--rule); }

/* ── Buttons ── */
.btn {
  font-family: 'Space Grotesk', sans-serif; font-weight: 500; font-size: 14px;
  padding: 12px 18px; border-radius: 999px; border: 1px solid transparent;
  cursor: pointer; display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  transition: transform .15s, background .15s, color .15s, border-color .15s;
  min-height: 44px; white-space: nowrap;
  text-decoration: none;
}
.btn:hover { transform: translateY(-1px); }
.btn-ghost { background: transparent; color: var(--ink); border-color: var(--rule-strong); }
.btn-ghost:hover { background: var(--ink); color: var(--bone); border-color: var(--ink); }
.btn-ink { background: var(--ink); color: var(--bone); }
.btn-ink:hover { background: var(--accent); }
.btn-accent { background: var(--accent); color: var(--bone); }
.btn-accent:hover { background: var(--ink); }
.btn-bone { background: var(--bone); color: var(--ink); border-color: var(--bone); }
.btn .arrow { transition: transform .2s; }
.btn:hover .arrow { transform: translateX(3px); }

/* ── Typography helpers ── */
h1, h2, h3 { font-weight: 500; letter-spacing: -0.03em; margin: 0; }
.eyebrow {
  display: flex; align-items: center; gap: 10px; color: var(--muted);
  font-family: 'Geist Mono', monospace; font-size: 10px; letter-spacing: 0.06em; text-transform: uppercase;
  margin-bottom: 24px; flex-wrap: wrap;
}
@media (min-width: 640px) { .eyebrow { font-size: 11px; gap: 12px; margin-bottom: 32px; } }
.eyebrow .pulse {
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--accent); box-shadow: 0 0 0 4px rgba(217,64,42,0.18);
  flex-shrink: 0;
}

.page-hero {
  padding: 48px 0 40px;
  border-bottom: 1px solid var(--rule);
}
@media (min-width: 640px) { .page-hero { padding: 64px 0 48px; } }
@media (min-width: 960px) { .page-hero { padding: 96px 0 64px; } }

.page-hero h1 {
  font-size: clamp(40px, 11vw, 128px);
  line-height: 0.95;
  letter-spacing: -0.045em;
  margin: 0;
  hyphens: auto;
}
.page-hero h1 em { font-style: normal; color: var(--accent); }
.page-hero h1 .stroke {
  -webkit-text-stroke: 1.2px var(--ink); color: transparent; font-style: italic;
}
@media (min-width: 960px) { .page-hero h1 .stroke { -webkit-text-stroke: 1.5px var(--ink); } }

.page-hero .lede {
  margin-top: 24px;
  font-size: clamp(15px, 1.8vw, 20px);
  line-height: 1.55;
  max-width: 640px;
  color: var(--ink);
}
@media (min-width: 640px) { .page-hero .lede { margin-top: 32px; } }
.page-hero .lede b { font-weight: 500; }

/* ── Section heads ── */
.section-head {
  display: grid; grid-template-columns: 1fr; gap: 16px;
  margin-bottom: 40px;
}
.section-head .num { font-family: 'Geist Mono', monospace; font-size: 11px; letter-spacing: 0.08em; color: var(--muted); text-transform: uppercase; margin-bottom: 12px; }
.section-head h2 { font-size: clamp(36px, 6vw, 56px); line-height: 1; letter-spacing: -0.03em; }
.section-head .meta { font-size: 16px; color: var(--muted); line-height: 1.5; max-width: 560px; }
@media (min-width: 960px) {
  .section-head { grid-template-columns: 240px 1fr; gap: 64px; margin-bottom: 64px; align-items: end; }
}

/* ── Reusable card / section ── */
section { padding: 64px 0; }
@media (min-width: 960px) { section { padding: 120px 0; } }
section + section { border-top: 1px solid var(--rule); }

/* ── Footer ── */
footer {
  background: var(--ink); color: var(--bone);
  padding: 48px 0 32px;
}
@media (min-width: 960px) { footer { padding: 56px 0 40px; } }
footer .grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
}
@media (min-width: 640px) { footer .grid { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 960px) { footer .grid { grid-template-columns: 2fr 1fr 1fr 1fr 1fr; gap: 32px; } }
footer h4 { font-family: 'Geist Mono', monospace; font-size: 10px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted-on-dark); margin: 0 0 16px; font-weight: 500; }
footer ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; font-size: 14px; }
footer ul a { transition: color .15s; }
footer ul a:hover { color: var(--accent-soft); }
footer .brand-blk { display: flex; flex-direction: column; gap: 16px; max-width: 320px; grid-column: 1 / -1; }
@media (min-width: 960px) { footer .brand-blk { grid-column: auto; } }
footer .brand-blk .brand { color: var(--bone); }
footer .brand-blk p { color: var(--muted-on-dark); font-size: 14px; line-height: 1.5; margin: 0; }
footer .copy-row {
  margin-top: 40px; padding-top: 20px;
  border-top: 1px solid rgba(244,239,230,0.12);
  display: flex; flex-direction: column; gap: 10px; align-items: flex-start;
  color: var(--muted-on-dark); font-family: 'Geist Mono', monospace; font-size: 10px; letter-spacing: 0.04em; text-transform: uppercase;
  line-height: 1.6;
}
@media (min-width: 640px) {
  footer .copy-row { flex-direction: row; justify-content: space-between; align-items: center; }
}

/* ── Forms ── */
.form { display: flex; flex-direction: column; gap: 16px; }
.form .row { display: grid; grid-template-columns: 1fr; gap: 16px; }
@media (min-width: 640px) { .form .row.two { grid-template-columns: 1fr 1fr; } }
.field { display: flex; flex-direction: column; gap: 6px; }
.field label { font-family: 'Geist Mono', monospace; font-size: 10px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); }
.field input, .field select, .field textarea {
  font-family: 'Space Grotesk', sans-serif; font-size: 16px; color: var(--ink);
  padding: 14px 16px; background: var(--paper);
  border: 1px solid var(--rule-strong); border-radius: 8px;
  min-height: 48px; transition: border-color .15s;
  width: 100%;
}
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none; border-color: var(--ink);
}
.field textarea { min-height: 140px; resize: vertical; }
.field .hint { font-size: 12px; color: var(--muted); }

/* ── Page-specific helpers reused ── */
.kicker { font-family: 'Geist Mono', monospace; font-size: 10px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); margin-bottom: 8px; }
.divider { border: 0; border-top: 1px solid var(--rule); margin: 0; }

/* ── Stats band (dark) ── */
.stats-band { background: var(--ink); color: var(--bone); }
.stats-band .grid {
  display: grid; grid-template-columns: 1fr 1fr; gap: 0;
}
@media (min-width: 960px) { .stats-band .grid { grid-template-columns: repeat(4, 1fr); } }
.stats-band .stat {
  padding: 24px 16px;
  border-left: 1px solid rgba(244,239,230,0.12);
  border-top: 1px solid rgba(244,239,230,0.12);
  min-width: 0;
}
.stats-band .stat:nth-child(1), .stats-band .stat:nth-child(2) { border-top: 0; }
.stats-band .stat:nth-child(odd) { border-left: 0; }
@media (min-width: 960px) {
  .stats-band .stat { padding: 8px 32px; border-top: 0; border-left: 1px solid rgba(244,239,230,0.12); }
  .stats-band .stat:first-child { border-left: 0; padding-left: 0; }
  .stats-band .stat:nth-child(odd) { border-left: 1px solid rgba(244,239,230,0.12); }
  .stats-band .stat:first-child { border-left: 0; }
}
.stats-band .n {
  font-size: clamp(48px, 8vw, 88px); line-height: 0.95; letter-spacing: -0.04em; font-weight: 500;
}
.stats-band .n em { font-style: normal; color: var(--accent-soft); }
.stats-band .l {
  font-family: 'Geist Mono', monospace; font-size: 10px;
  letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted-on-dark);
  margin-top: 10px; line-height: 1.5;
}

/* ── Role table ── */
.role-table { border-top: 1px solid var(--ink); }
.role-row {
  display: grid;
  grid-template-columns: 1fr;
  gap: 8px;
  padding: 20px 0;
  border-bottom: 1px solid var(--rule);
  transition: background .15s, padding .15s;
  min-width: 0;
}
.role-row > * { min-width: 0; }
.role-row .idx { font-family: 'Geist Mono', monospace; font-size: 11px; color: var(--muted); letter-spacing: 0.06em; }
.role-row .title { font-size: 20px; line-height: 1.15; letter-spacing: -0.015em; font-weight: 500; }
.role-row .company { color: var(--muted); font-size: 14px; }
.role-row .company b { color: var(--ink); font-weight: 500; }
.role-row .meta { display: flex; flex-wrap: wrap; gap: 12px; font-family: 'Geist Mono', monospace; font-size: 11px; letter-spacing: 0.04em; text-transform: uppercase; color: var(--ink); }
.role-row .meta .comp { color: var(--accent); font-weight: 500; }
.role-row .arr { font-size: 18px; color: var(--muted); display: none; }

@media (min-width: 960px) {
  .role-row {
    grid-template-columns: 80px 1.4fr 1.4fr 140px 120px 40px;
    align-items: center;
    gap: 24px;
    padding: 24px 8px;
    cursor: pointer;
  }
  .role-row:hover { background: var(--bone); padding-left: 16px; }
  .role-row .meta { display: contents; }
  .role-row .arr { display: inline; transition: transform .2s, color .15s; }
  .role-row:hover .arr { transform: translateX(4px); color: var(--ink); }
}

/* ── Generic card grid ── */
.cards {
  display: grid; grid-template-columns: 1fr; gap: 1px;
  background: var(--rule);
  border-top: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule);
}
@media (min-width: 640px) { .cards.two { grid-template-columns: 1fr 1fr; } }
@media (min-width: 960px) { .cards.three { grid-template-columns: repeat(3, 1fr); } }
.card {
  background: var(--paper); padding: 32px 24px;
  display: flex; flex-direction: column; gap: 16px;
  min-height: 240px; position: relative;
}
@media (min-width: 960px) { .card { padding: 40px 32px 36px; min-height: 320px; } }
.card .step-num { font-family: 'Geist Mono', monospace; font-size: 11px; letter-spacing: 0.08em; color: var(--muted); text-transform: uppercase; }
.card h3 { font-size: clamp(22px, 3vw, 28px); line-height: 1.05; letter-spacing: -0.02em; font-weight: 500; }
.card p { margin: 0; color: var(--muted); font-size: 15px; line-height: 1.55; }
.card .timing { margin-top: auto; padding-top: 16px; border-top: 1px dashed var(--rule); display: flex; justify-content: space-between; }
.card .timing .k { font-family: 'Geist Mono', monospace; font-size: 10px; color: var(--muted); letter-spacing: 0.06em; text-transform: uppercase; }
.card .timing .v { font-family: 'Geist Mono', monospace; font-size: 12px; color: var(--ink); font-weight: 500; }

/* ── CTA band (dark) ── */
.cta-band { background: var(--ink); color: var(--bone); }
.cta-band .grid {
  display: grid; grid-template-columns: 1fr; gap: 32px;
}
@media (min-width: 960px) { .cta-band .grid { grid-template-columns: 1fr auto; align-items: end; gap: 64px; } }
.cta-band h2 {
  font-size: clamp(40px, 7vw, 96px); line-height: 0.95; letter-spacing: -0.04em;
  margin: 0; max-width: 800px;
}
.cta-band h2 em { color: var(--accent-soft); font-style: normal; }
.cta-band .right { display: flex; flex-direction: column; gap: 16px; align-items: flex-start; }
@media (min-width: 960px) { .cta-band .right { align-items: flex-end; gap: 20px; } }
.cta-band .right .mono { color: var(--muted-on-dark); max-width: 340px; line-height: 1.55; text-transform: none; letter-spacing: 0.02em; font-size: 12px; }
@media (min-width: 960px) { .cta-band .right .mono { text-align: right; max-width: 280px; } }
.cta-band .big-btn {
  display: inline-flex; align-items: center; justify-content: space-between; gap: 20px;
  background: var(--accent); color: var(--bone);
  padding: 16px 22px; border-radius: 999px;
  font-size: 17px; font-weight: 500; letter-spacing: -0.01em;
  border: 0; cursor: pointer; min-height: 56px;
  max-width: 100%; white-space: nowrap;
}
@media (min-width: 960px) { .cta-band .big-btn { padding: 22px 28px; font-size: 20px; } }
.cta-band .big-btn .arrow { font-size: 22px; }

/* ── Misc ── */
.muted { color: var(--muted); }
.accent { color: var(--accent); }
