/* Backline Alliance — careers section.
   Shared by careers/index.html and the individual role pages. Tokens and the
   photo/reveal treatment match index.html; everything below .role is new. */

* { margin: 0; padding: 0; box-sizing: border-box; }

:root {
  --parchment: #e8e4de;
  --parchment-light: #f5f1eb;
  --ink: #1a1a1a;
  --warm-gray: #c8c3b8;
  --mute: #595959;
  --accent: #c0392b;
}

html { scroll-behavior: smooth; }

body {
  background: var(--parchment);
  color: var(--ink);
  font-family: 'Roboto Condensed', Arial, Helvetica, sans-serif;
  font-size: 17px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

.kicker {
  font-family: 'Roboto Condensed', Arial, Helvetica, sans-serif;
  font-size: 10px;
  letter-spacing: 2.5px;
  text-transform: uppercase;
  color: var(--mute);
  display: block;
  margin-bottom: 16px;
}
.kicker::after {
  content: "";
  display: block;
  width: 30px;
  border-bottom: 2px solid var(--accent);
  margin-top: 12px;
}

/* ---- Photo treatment (identical grade to the home page) ---- */
.ph { position: relative; overflow: hidden; background: var(--ink); }
.ph > .img {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  filter: sepia(0.22) saturate(0.72) contrast(0.97) brightness(1.02);
}
.ph::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(26,26,26,0.34) 0%, rgba(26,26,26,0.10) 45%, rgba(60,42,30,0.20) 100%);
  pointer-events: none;
}

/* Hero scrim is deliberately heavier than the home page's. Home sits on the fog
   shot, which is empty behind the headline; these pages use busier photographs
   (goal frames, netting), so the type needs its own ground to stay legible. */
.rhero .ph::after {
  background:
    radial-gradient(ellipse 78% 62% at 50% 52%, rgba(20,20,20,0.62) 0%, rgba(20,20,20,0.30) 55%, rgba(20,20,20,0) 100%),
    linear-gradient(180deg, rgba(20,20,20,0.52) 0%, rgba(20,20,20,0.22) 40%, rgba(40,28,20,0.42) 100%);
}

/* ---- Reveal system ---- */
[data-reveal] {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity 0.9s ease, transform 0.9s cubic-bezier(0.22, 0.61, 0.36, 1);
  transition-delay: var(--d, 0s);
}
[data-reveal].in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  [data-reveal] { opacity: 1; transform: none; transition: none; }
  html { scroll-behavior: auto; }
}

/* ---- Wordmark bar: the site has no nav, so this is the only way back ---- */
.topbar {
  position: absolute;
  top: 0; left: 0; right: 0;
  z-index: 3;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 26px 32px;
}
.topbar a {
  font-family: 'Roboto Condensed', Arial, Helvetica, sans-serif;
  font-size: 10px;
  letter-spacing: 2.5px;
  text-transform: uppercase;
  text-decoration: none;
  color: rgba(255,255,255,0.9);
}
.topbar a.wm { font-weight: bold; letter-spacing: 4px; }
.topbar a.back { border-bottom: 1px solid rgba(255,255,255,0.4); padding-bottom: 3px; }

/* ---- Compact hero ---- */
.rhero {
  position: relative;
  min-height: 380px;
  height: 50vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
}
.rhero .ph { position: absolute; inset: 0; }
.rhero .tx { position: relative; padding: 0 28px; max-width: 860px; }
.rhero .eyebrow {
  font-family: 'Roboto Condensed', Arial, Helvetica, sans-serif;
  font-size: 10px;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: rgba(255,255,255,0.82);
  display: block;
  margin-bottom: 20px;
}
.rhero h1 {
  color: #fff;
  font-size: clamp(28px, 4.4vw, 46px);
  font-weight: normal;
  line-height: 1.28;
  text-shadow: 0 1px 18px rgba(0,0,0,0.24);
}
.rhero .sub {
  color: rgba(255,255,255,0.9);
  margin-top: 18px;
  font-size: clamp(16px, 1.6vw, 18px);
  text-shadow: 0 1px 12px rgba(0,0,0,0.3);
}

/* ---- Centered prose column ---- */
.lede { max-width: 720px; margin: 0 auto; padding: 96px 28px 0; }
.lede p { color: #33302b; }
.lede p + p { margin-top: 18px; }

/* ---- Dark principles band ---- */
.band { background: var(--ink); color: var(--parchment); margin-top: 96px; }
.band .inner { max-width: 900px; margin: 0 auto; padding: 96px 28px; }
.band .kicker { color: var(--warm-gray); }
.band h2 { font-size: clamp(23px, 2.5vw, 29px); font-weight: normal; line-height: 1.3; margin-bottom: 34px; }
.band ol { list-style: none; counter-reset: p; }
.band li {
  counter-increment: p;
  position: relative;
  padding-left: 44px;
  color: var(--warm-gray);
}
.band li + li { margin-top: 20px; }
.band li::before {
  content: counter(p, decimal-leading-zero);
  position: absolute;
  left: 0;
  top: 2px;
  font-family: 'Roboto Condensed', Arial, Helvetica, sans-serif;
  font-size: 11px;
  letter-spacing: 1px;
  color: var(--accent);
}
.band li strong { color: var(--parchment); font-weight: normal; }

/* ---- Role rows (index) ----
   Stacked full-width rows rather than side-by-side cards: two roles read as a
   list you scan, not a pair you compare, and the row grows with the list. The
   whole row is the click target. */
.roles { max-width: 880px; margin: 0 auto; padding: 84px 28px 0; }
.roles .stack { display: flex; flex-direction: column; gap: 18px; }
.role-row {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 32px;
  background: var(--parchment-light);
  border: 1px solid var(--warm-gray);
  border-left: 3px solid var(--accent);
  padding: 34px 36px;
  text-decoration: none;
  color: inherit;
  transition: background 0.25s ease, transform 0.25s ease, border-color 0.25s ease;
}
.role-row:hover { background: #efeae2; transform: translateX(4px); }
.role-row h3 { font-size: clamp(21px, 2.2vw, 25px); font-weight: normal; line-height: 1.25; }
/* Marks the short contract gig so it doesn't read as a third corporate seat. */
.role-row h3 .tag {
  display: inline-block;
  vertical-align: middle;
  margin-left: 10px;
  font-family: 'Roboto Condensed', Arial, Helvetica, sans-serif;
  font-size: 9.5px;
  letter-spacing: 1.4px;
  text-transform: uppercase;
  color: var(--mute);
  border: 1px solid var(--warm-gray);
  border-radius: 2px;
  padding: 4px 8px;
  white-space: nowrap;
}
.role-row .meta {
  font-family: 'Roboto Condensed', Arial, Helvetica, sans-serif;
  font-size: 11px;
  letter-spacing: 1.6px;
  text-transform: uppercase;
  color: var(--mute);
  margin-top: 10px;
}
.role-row .arrow {
  width: 44px;
  height: 44px;
  border: 1px solid var(--warm-gray);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 17px;
  color: var(--ink);
  flex-shrink: 0;
  transition: background 0.25s ease, color 0.25s ease, border-color 0.25s ease;
}
.role-row:hover .arrow { background: var(--accent); border-color: var(--accent); color: var(--parchment-light); }

/* ---- Role detail page ---- */
.role { max-width: 720px; margin: 0 auto; padding: 92px 28px 0; }
.role .terms {
  background: var(--parchment-light);
  border-left: 3px solid var(--accent);
  padding: 26px 30px;
  margin-bottom: 52px;
}
.role .terms dl { display: grid; grid-template-columns: 150px 1fr; gap: 10px 20px; }
.role .terms dt {
  font-family: 'Roboto Condensed', Arial, Helvetica, sans-serif;
  font-size: 10px;
  letter-spacing: 1.8px;
  text-transform: uppercase;
  color: var(--mute);
  padding-top: 6px;
}
.role .terms dd { font-size: 16.5px; }
.role section + section { margin-top: 52px; }
.role h2 { font-size: clamp(21px, 2.2vw, 25px); font-weight: normal; line-height: 1.3; margin-bottom: 18px; }
.role p { color: #33302b; }
.role p + p { margin-top: 16px; }
.role ul { list-style: none; }
.role li { position: relative; padding-left: 26px; color: #33302b; }
.role li + li { margin-top: 13px; }
.role li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 13px;
  width: 12px;
  border-bottom: 1px solid var(--accent);
}
/* Opening line of a role page. Sized up so the page states the job before the
   reader hits any list. */
.role .summary {
  font-size: clamp(18px, 1.9vw, 20px);
  line-height: 1.6;
  margin-bottom: 44px;
}

/* Pull-quote: the rhythm break, and the line most likely to make the right
   candidate self-select. */
.role .pull {
  border-left: 3px solid var(--accent);
  padding: 6px 0 6px 28px;
  margin: 52px 0;
  font-size: clamp(20px, 2.2vw, 25px);
  line-height: 1.45;
  font-style: italic;
  color: var(--ink);
}

/* ---- Apply ---- */
.apply { text-align: center; padding: 92px 28px 0; }
.apply .btn {
  display: inline-block;
  background: var(--ink);
  color: var(--parchment);
  font-family: 'Roboto Condensed', Arial, Helvetica, sans-serif;
  font-size: 12px;
  letter-spacing: 2.5px;
  text-transform: uppercase;
  text-decoration: none;
  padding: 20px 46px;
  transition: background 0.25s ease;
}
.apply .btn:hover { background: var(--accent); }
.apply .note { font-size: 15px; color: var(--mute); margin-top: 20px; font-style: italic; }

/* ---- Close ---- */
.close { text-align: center; padding: 120px 24px 84px; }
.close .rule { border: none; border-bottom: 4px double var(--ink); width: 200px; margin: 0 auto 44px; }
.close .wm { font-weight: bold; letter-spacing: 5px; text-transform: uppercase; font-size: 17px; }
.close .fine {
  font-family: 'Roboto Condensed', Arial, Helvetica, sans-serif;
  font-size: 10px;
  letter-spacing: 1.5px;
  color: var(--mute);
  margin-top: 16px;
}
.close .fine a { color: var(--mute); }

/* ---- Responsive ---- */
@media (max-width: 820px) {
  .topbar { padding: 20px 24px; }
  .rhero { height: auto; padding: 132px 0 72px; min-height: 0; }
  .lede { padding-top: 72px; }
  .band { margin-top: 72px; }
  .band .inner { padding: 72px 24px; }
  .roles { padding-top: 64px; }
  .role-row { padding: 28px 26px; gap: 20px; }
  .role-row .arrow { width: 38px; height: 38px; }
  .role { padding-top: 72px; }
  .role .terms dl { grid-template-columns: 1fr; gap: 4px; }
  .role .terms dd + dt { margin-top: 14px; }
  .apply { padding-top: 72px; }
  .close { padding: 96px 24px 72px; }
}
