/* ============================================================
   LumicIQ — shared styles for the careers pages.

   The holding page (/index.html) keeps its own inline CSS so it
   stays self-contained. These tokens are copied from it verbatim —
   if you change a colour or typeface there, change it here too.
   ============================================================ */

:root {
  --bg:          #15110C;
  --bg-soft:     #1C1712;
  --cream:       #F0EAD6;
  --cream-dim:   rgba(240, 234, 214, 0.62);  /* 6.5:1 on --bg — body copy */
  --cream-mid:   rgba(240, 234, 214, 0.52);  /* 4.9:1 on --bg — small labels, still AA */
  --cream-faint: rgba(240, 234, 214, 0.40);  /* 3.4:1 — decorative only, never prose */
  --gold:        #C8A24A;
  --gold-soft:   rgba(200, 162, 74, 0.55);
  --gold-faint:  rgba(200, 162, 74, 0.14);
  --line:        rgba(240, 234, 214, 0.12);
  --line-soft:   rgba(240, 234, 214, 0.07);
  --serif: "Playfair Display", Georgia, "Times New Roman", serif;
  --sans: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --mono: "IBM Plex Mono", ui-monospace, "SF Mono", Menlo, monospace;
  --maxw: 1140px;
  --readw: 74ch;
}

* { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: 96px; /* clears the sticky bar on anchor jumps */
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--cream);
  font-family: var(--sans);
  font-weight: 400;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

/* Warm vignette, matched to the holding page */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(120% 80% at 50% -10%, rgba(200,162,74,0.06), transparent 55%),
    radial-gradient(100% 100% at 50% 0%, rgba(255,255,255,0.02), transparent 60%);
  z-index: 0;
}

.wrap {
  position: relative;
  z-index: 1;
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 clamp(20px, 5vw, 32px);
}

a { color: inherit; }

::selection { background: var(--gold-faint); color: var(--cream); }

:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 3px;
  border-radius: 2px;
}

/* ---------- Top bar ---------- */
.topbar {
  position: sticky;
  top: 0;
  z-index: 10;
  border-bottom: 1px solid var(--line-soft);
  background: rgba(21, 17, 12, 0.82);
  backdrop-filter: saturate(140%) blur(12px);
  -webkit-backdrop-filter: saturate(140%) blur(12px);
}
.topbar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  height: 62px;
}
.topbar-mark {
  display: flex;
  align-items: center;
  text-decoration: none;
  opacity: 0.92;
  transition: opacity 0.3s ease;
}
.topbar-mark:hover { opacity: 1; }
.topbar-mark img { width: 118px; height: auto; display: block; }
.topbar-nav {
  font-family: var(--mono);
  font-size: 0.68rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--cream-dim);
  text-decoration: none;
  transition: color 0.3s ease;
}
.topbar-nav:hover { color: var(--gold); }

/* ---------- Section framing ---------- */
.section { padding: clamp(52px, 9vw, 76px) 0; border-top: 1px solid var(--line-soft); }
.section:first-of-type { border-top: 0; }

.section-head {
  display: flex;
  align-items: baseline;
  gap: 20px;
  margin-bottom: 44px;
}
.section-head .idx {
  font-family: var(--mono);
  font-size: 0.78rem;
  font-weight: 500;
  color: var(--gold);
}
.section-head h2 {
  margin: 0;
  font-family: var(--sans);
  font-weight: 600;
  font-size: 0.76rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--cream-dim);
}
.section-head .rule {
  flex: 1;
  height: 1px;
  background: var(--line);
  align-self: center;
}

/* ---------- Page hero (careers landing) ---------- */
.page-hero { padding: clamp(58px, 11vw, 104px) 0 clamp(40px, 7vw, 60px); }
.eyebrow {
  font-family: var(--mono);
  font-size: 0.7rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gold);
  margin: 0 0 20px;
}
.page-title {
  font-family: var(--sans);
  font-size: clamp(2.1rem, 1.4rem + 3.2vw, 3.5rem);
  font-weight: 600;
  line-height: 1.08;
  letter-spacing: -0.03em;
  margin: 0;
  max-width: 18ch;
  text-wrap: balance;
}
.page-intro {
  margin: 26px 0 0;
  font-size: clamp(1rem, 0.95rem + 0.3vw, 1.12rem);
  line-height: 1.7;
  color: var(--cream-dim);
  max-width: 58ch;
}

/* ---------- Role list ---------- */
.roles { border-top: 1px solid var(--line-soft); }

.role-card {
  display: flex;
  align-items: center;
  gap: 28px;
  padding: 30px 24px 32px;
  border-bottom: 1px solid var(--line-soft);
  text-decoration: none;
  color: inherit;
  transition: background 0.35s ease, padding-left 0.35s ease;
}
.role-card:hover,
.role-card:focus-visible { background: var(--bg-soft); padding-left: 32px; }

.role-card-body { flex: 1; min-width: 0; }
.role-card h3 {
  margin: 0 0 12px;
  font-size: clamp(1.2rem, 1.05rem + 0.6vw, 1.5rem);
  font-weight: 600;
  letter-spacing: -0.02em;
  transition: color 0.3s ease;
}
.role-card:hover h3 { color: var(--gold); }
.role-card p {
  margin: 12px 0 0;
  font-size: 0.9rem;
  line-height: 1.6;
  color: var(--cream-dim);
  max-width: 64ch;
}

.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip {
  font-family: var(--mono);
  font-size: 0.62rem;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: var(--cream-dim);
  border: 1px solid var(--line);
  border-radius: 4px;
  padding: 5px 9px;
  white-space: nowrap;
}
.chip.accent { color: var(--gold); border-color: var(--gold-soft); }

.role-card .arrow {
  flex: 0 0 auto;
  width: 34px; height: 34px;
  stroke: var(--gold);
  stroke-width: 1.4;
  fill: none;
  stroke-linecap: round;
  stroke-linejoin: round;
  opacity: 0.55;
  transition: opacity 0.3s ease, transform 0.35s cubic-bezier(.2,.7,.2,1);
}
.role-card:hover .arrow { opacity: 1; transform: translateX(5px); }

/* Speculative future roles — no link, muted */
.role-note {
  padding: 26px 24px 0;
  font-size: 0.88rem;
  line-height: 1.7;
  color: var(--cream-dim);
  max-width: 62ch;
}
.role-note a {
  color: var(--cream-dim);
  text-decoration: none;
  border-bottom: 1px solid var(--line);
  transition: color 0.25s ease, border-color 0.25s ease;
}
.role-note a:hover { color: var(--gold); border-color: var(--gold-soft); }

/* ---------- Role detail header ---------- */
.role-hero { padding: clamp(46px, 8vw, 76px) 0 clamp(30px, 5vw, 44px); }

.backlink {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-family: var(--mono);
  font-size: 0.68rem;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  color: var(--cream-dim);
  text-decoration: none;
  margin-bottom: 30px;
  transition: color 0.3s ease;
}
.backlink:hover { color: var(--gold); }
.backlink svg {
  width: 15px; height: 15px;
  stroke: currentColor;
  stroke-width: 1.6;
  fill: none;
  stroke-linecap: round;
  stroke-linejoin: round;
  transition: transform 0.3s cubic-bezier(.2,.7,.2,1);
}
.backlink:hover svg { transform: translateX(-3px); }

.role-title {
  font-family: var(--sans);
  font-size: clamp(2rem, 1.35rem + 2.9vw, 3.25rem);
  font-weight: 600;
  line-height: 1.08;
  letter-spacing: -0.03em;
  margin: 0;
  max-width: 16ch;
  text-wrap: balance;
}
/* Mono uppercase, matching the label voice used for .eyebrow, .idx and .chip */
.role-tagline {
  margin: 20px 0 0;
  font-family: var(--mono);
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gold);
}

/* Location / Type / Reports To */
.meta-bar {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: var(--line-soft);
  border: 1px solid var(--line-soft);
  margin-top: clamp(32px, 5vw, 44px);
}
.meta-item { background: var(--bg); padding: 20px 22px 22px; }
.meta-item dt {
  font-family: var(--mono);
  font-size: 0.6rem;
  letter-spacing: 0.11em;
  text-transform: uppercase;
  color: var(--cream-mid);
  margin: 0 0 9px;
}
.meta-item dd {
  margin: 0;
  font-size: 0.94rem;
  font-weight: 500;
  line-height: 1.45;
  color: var(--cream);
}

/* ---------- JD prose ---------- */
.prose { max-width: var(--readw); }
.prose p {
  margin: 0 0 20px;
  font-size: 1rem;
  line-height: 1.72;
  color: var(--cream-dim);
}
.prose p:last-child { margin-bottom: 0; }
.prose b, .prose strong { color: var(--cream); font-weight: 500; }

.prose ul {
  list-style: none;
  margin: 0;
  padding: 0;
}
.prose li {
  position: relative;
  padding-left: 26px;
  margin-bottom: 15px;
  font-size: 0.97rem;
  line-height: 1.68;
  color: var(--cream-dim);
}
.prose li:last-child { margin-bottom: 0; }
.prose li::before {
  content: "";
  position: absolute;
  left: 2px;
  top: 0.72em;
  width: 11px;
  height: 1px;
  background: var(--gold);
  opacity: 0.75;
}

/* ---------- Apply ---------- */
.apply-box {
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: clamp(30px, 5vw, 44px);
  background:
    radial-gradient(120% 160% at 0% 0%, rgba(200,162,74,0.055), transparent 62%),
    var(--bg-soft);
  max-width: var(--readw);
}
.apply-box h3 {
  margin: 0 0 14px;
  font-size: clamp(1.3rem, 1.1rem + 0.9vw, 1.7rem);
  font-weight: 600;
  letter-spacing: -0.022em;
}
/* Prose above the button. Do NOT use :last-of-type here — .apply-fineprint is
   also a <p> and sits after the button, so it, not this, is the last of type. */
.apply-box p {
  margin: 0 0 28px;
  font-size: 0.97rem;
  line-height: 1.7;
  color: var(--cream-dim);
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  font-family: var(--mono);
  font-size: 0.72rem;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  color: var(--bg);
  background: var(--gold);
  border: 1px solid var(--gold);
  border-radius: 5px;
  padding: 14px 22px;
  text-decoration: none;
  transition: background 0.3s ease, color 0.3s ease, transform 0.3s ease;
}
.btn:hover {
  background: transparent;
  color: var(--gold);
  transform: translateY(-1px);
}
.btn svg {
  width: 15px; height: 15px;
  stroke: currentColor;
  stroke-width: 1.7;
  fill: none;
  stroke-linecap: round;
  stroke-linejoin: round;
}
/* Prose, so sans — mono is reserved for labels and meta on this site.
   Scoped to .apply-box (0,2,0) so these margins outrank `.apply-box p` (0,1,1). */
.apply-box .apply-fineprint {
  margin: 22px 0 0;
  font-size: 0.84rem;
  line-height: 1.65;
  color: var(--cream-dim);
}
.apply-fineprint a { color: var(--cream-dim); text-decoration: none; border-bottom: 1px solid var(--line); }
.apply-fineprint a:hover { color: var(--gold); border-color: var(--gold-soft); }

/* ---------- Footer ---------- */
footer {
  border-top: 1px solid var(--line-soft);
  padding: 54px 0 60px;
  position: relative;
  z-index: 1;
}
.footer-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.footer-mark {
  font-family: var(--serif);
  font-size: 1.25rem;
  letter-spacing: 0.02em;
  color: inherit;
  text-decoration: none;
}
.footer-mark span { color: var(--gold); }
.footer-meta {
  font-family: var(--mono);
  font-size: 0.66rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--cream-faint);
}
.footer-meta a {
  color: var(--cream-dim);
  text-decoration: none;
  border-bottom: 1px solid var(--line);
  padding-bottom: 1px;
  transition: color .3s, border-color .3s;
}
.footer-meta a:hover { color: var(--gold); border-color: var(--gold-soft); }

/* ---------- Reveal ---------- */
.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.9s cubic-bezier(.2,.7,.2,1), transform 0.9s cubic-bezier(.2,.7,.2,1);
}
.reveal.in { opacity: 1; transform: none; }

.visually-hidden {
  position: absolute;
  width: 1px; height: 1px;
  margin: -1px; padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

/* ---------- Responsive ---------- */
@media (max-width: 820px) {
  .meta-bar { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 620px) {
  html { scroll-padding-top: 78px; }
  .topbar-inner { height: 56px; }
  .topbar-mark img { width: 100px; }

  .section-head { gap: 14px; margin-bottom: 32px; }
  .section-head h2 { letter-spacing: 0.16em; }

  .role-card {
    gap: 18px;
    padding: 26px 18px 28px;
    align-items: flex-start;
  }
  .role-card:hover, .role-card:focus-visible { padding-left: 18px; }
  .role-card .arrow { width: 26px; height: 26px; margin-top: 4px; }

  .role-note { padding: 24px 18px 0; }
  .meta-bar { grid-template-columns: 1fr; }
  .meta-item { padding: 18px 20px 20px; }

  .footer-inner { flex-direction: column; align-items: flex-start; gap: 16px; }
  .footer-meta { font-size: 0.68rem; letter-spacing: 0.12em; line-height: 1.9; }

  .btn { width: 100%; justify-content: center; }
}

@media (max-width: 380px) {
  .chip { font-size: 0.58rem; letter-spacing: 0.07em; }
  .section-head h2 { letter-spacing: 0.12em; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .role-card, .role-card .arrow, .btn, .backlink svg { transition: none; }
  .role-card:hover, .role-card:focus-visible { padding-left: 24px; }
}
