/* JEID: Last Recruit landing page. */

:root {
  --bg: #0b0e13;
  --surface: #121720;
  --surface-2: #171d28;
  --line: #242c3a;
  --text: #e6dfcf;
  --muted: #98a1b0;
  --accent: #e39a3b;
  --accent-ink: #1a1207;
  --steel: #6fb8ff;
  --radius: 10px;
  --wrap: 1180px;
  --gutter: clamp(16px, 4vw, 40px);
  --head: "Barlow Semi Condensed", "Bahnschrift", "Arial Narrow", sans-serif;
  --body: "Barlow", "Segoe UI", system-ui, sans-serif;
  color-scheme: dark;
}

*,
*::before,
*::after { box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: 72px; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 400 1.0625rem/1.6 var(--body);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
h1, h2, h3 { font-family: var(--head); font-weight: 700; line-height: 1.1; margin: 0; }
p { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }

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

.skip {
  position: absolute; left: 12px; top: -60px; z-index: 100;
  background: var(--accent); color: var(--accent-ink);
  padding: 8px 14px; border-radius: 6px; font-weight: 600; text-decoration: none;
}
.skip:focus { top: 12px; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 48px; padding: 0 24px;
  background: var(--accent); color: var(--accent-ink);
  border: 1px solid var(--accent); border-radius: 6px;
  font: 600 1rem/1 var(--head); letter-spacing: 0.08em; text-transform: uppercase;
  text-decoration: none; cursor: pointer;
  transition: background-color .2s, color .2s, border-color .2s, transform .2s;
}
.btn:hover { background: #f0ad55; border-color: #f0ad55; }
.btn:active { transform: translateY(1px); }
.btn--ghost { background: transparent; color: var(--text); border-color: rgba(230, 223, 207, .35); }
.btn--ghost:hover { background: rgba(230, 223, 207, .08); border-color: var(--text); }
.btn--small { min-height: 38px; padding: 0 16px; font-size: .875rem; }

/* Navigation */
.nav {
  position: fixed; inset: 0 0 auto 0; z-index: 50;
  display: flex; align-items: center; gap: 24px;
  height: 64px; padding: 0 var(--gutter);
  transition: background-color .3s, border-color .3s, backdrop-filter .3s;
  border-bottom: 1px solid transparent;
}
.nav.is-solid {
  background: rgba(11, 14, 19, .86);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom-color: var(--line);
}
.nav__brand {
  display: flex; align-items: center; gap: 10px; text-decoration: none;
  font: 600 1.05rem/1 var(--head); letter-spacing: .18em; text-transform: uppercase;
  opacity: 0; transition: opacity .3s;
}
.nav.is-solid .nav__brand { opacity: 1; }
.nav nav { margin-left: auto; }
.nav__links { display: flex; gap: 28px; }
.nav__links a {
  text-decoration: none; color: var(--muted);
  font: 500 .95rem/1 var(--head); letter-spacing: .1em; text-transform: uppercase;
  transition: color .2s;
}
.nav__links a:hover { color: var(--text); }

/* Hero */
.hero {
  position: relative; isolation: isolate;
  min-height: 100svh;
  display: flex; align-items: center;
  padding: 96px var(--gutter) 88px;
  overflow: hidden;
}
.hero__bg, .hero__bg img {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2;
}
.hero__bg img { object-position: 70% 50%; animation: drift 30s ease-in-out infinite alternate; }
.hero__shade {
  position: absolute; inset: 0; z-index: -1;
  background:
    linear-gradient(90deg, rgba(8, 10, 14, .92) 0%, rgba(8, 10, 14, .72) 38%, rgba(8, 10, 14, .1) 72%),
    linear-gradient(180deg, rgba(11, 14, 19, 0) 60%, var(--bg) 100%);
}
.hero__content {
  width: 100%; max-width: var(--wrap); margin: 0 auto;
  display: flex; flex-direction: column; align-items: flex-start; gap: 20px;
}
.hero__content > * { max-width: 560px; }

.logo { position: relative; width: min(520px, 100%); container-type: inline-size; margin: 0 0 4px -2%; }
/* The name sits on the plate: the plate's middle is 50.4% down the 16:9 image, i.e. 28.35cqw.
   Trailing letter-spacing is balanced with padding-left. */
.logo__name {
  position: absolute; left: 0; right: 0; top: 28.35cqw; transform: translateY(-50%);
  text-align: center; padding-left: .18em; white-space: nowrap;
  font: 600 7cqw/1 var(--head); letter-spacing: .18em; text-transform: uppercase;
  color: var(--text);
}

.hero__lead { font: 700 clamp(1.8rem, 4vw, 2.6rem)/1.1 var(--head); letter-spacing: .01em; }
.hero__sub { color: #c4c0b6; font-size: 1.125rem; }
.badge {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 9px 16px; border: 1px solid rgba(227, 154, 59, .45); border-radius: 999px;
  background: rgba(18, 23, 32, .75);
  font: 600 .95rem/1.2 var(--head); letter-spacing: .12em; text-transform: uppercase; color: var(--text);
}
.badge__dot {
  width: 8px; height: 8px; border-radius: 50%; background: var(--accent);
  box-shadow: 0 0 0 0 rgba(227, 154, 59, .6); animation: pulse 2s infinite;
}
.hero__actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 6px; }
.hero__scroll {
  position: absolute; left: 50%; bottom: 22px; transform: translateX(-50%);
  color: var(--muted); padding: 8px; animation: bob 2.4s ease-in-out infinite;
}

@keyframes drift { from { transform: scale(1.04) translateX(0); } to { transform: scale(1.1) translateX(-1.5%); } }
@keyframes pulse { 70% { box-shadow: 0 0 0 8px rgba(227, 154, 59, 0); } 100% { box-shadow: 0 0 0 0 rgba(227, 154, 59, 0); } }
@keyframes bob { 50% { transform: translate(-50%, 6px); } }

/* Facts */
.facts { border-block: 1px solid var(--line); background: var(--surface); }
.facts ul {
  max-width: var(--wrap); margin: 0 auto; padding: 28px var(--gutter);
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px;
}
.facts li { display: flex; flex-direction: column; gap: 4px; }
.facts strong { font: 700 clamp(2rem, 4vw, 2.75rem)/1 var(--head); color: var(--accent); }
.facts span { color: var(--muted); font-size: .95rem; }

/* Sections */
.section { padding: clamp(72px, 10vw, 120px) var(--gutter); }
.section--alt { background: linear-gradient(180deg, var(--surface) 0%, var(--bg) 100%); border-top: 1px solid var(--line); }
.section__head { max-width: var(--wrap); margin: 0 auto clamp(36px, 6vw, 64px); }
.eyebrow {
  font: 600 .85rem/1 var(--head); letter-spacing: .22em; text-transform: uppercase; color: var(--accent);
  margin-bottom: 14px;
}
.section h2 { font-size: clamp(2rem, 5vw, 3.25rem); letter-spacing: .01em; }
.section__intro { color: var(--muted); margin-top: 14px; max-width: 60ch; font-size: 1.125rem; }

/* Features */
.feature {
  max-width: var(--wrap); margin: 0 auto clamp(56px, 8vw, 96px);
  display: grid; grid-template-columns: 1.25fr 1fr; gap: clamp(28px, 5vw, 64px); align-items: center;
}
.feature:last-child { margin-bottom: 0; }
.feature--flip { grid-template-columns: 1fr 1.25fr; }
.feature--flip .feature__media { order: 2; }
.feature__media {
  margin: 0; border-radius: var(--radius); overflow: hidden;
  border: 1px solid var(--line); background: var(--surface);
  box-shadow: 0 24px 60px -24px rgba(0, 0, 0, .8);
}
.feature__media img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; }
.feature__media--square img { aspect-ratio: 16 / 9; object-position: 50% 45%; }
.feature__text h3 { font-size: clamp(1.6rem, 3vw, 2.1rem); margin-bottom: 14px; }
.feature__text > p { color: #c4c0b6; }
.ticks { margin-top: 20px; display: grid; gap: 10px; }
.ticks li { position: relative; padding-left: 24px; color: var(--muted); }
.ticks li::before {
  content: ""; position: absolute; left: 0; top: .6em; width: 10px; height: 2px; background: var(--accent);
}

/* Classes */
.classes {
  max-width: var(--wrap); margin: 0 auto;
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px;
}
.class {
  display: flex; flex-direction: column; gap: 16px;
  padding: 22px; border-radius: var(--radius);
  background: var(--surface-2); border: 1px solid var(--line);
  transition: border-color .25s, transform .25s, background-color .25s;
}
.class:hover { border-color: rgba(227, 154, 59, .55); transform: translateY(-3px); background: #1a2130; }
.class img { width: 72px; height: 72px; border-radius: 8px; border: 1px solid #2c3546; }
.class h3 { font-size: 1.4rem; letter-spacing: .02em; }
.class__role {
  font: 600 .8rem/1.3 var(--head); letter-spacing: .14em; text-transform: uppercase; color: var(--accent);
  margin: 4px 0 10px;
}
.class p:last-child { color: var(--muted); font-size: .975rem; }

/* Gallery */
.gallery {
  max-width: var(--wrap); margin: 0 auto;
  display: grid; grid-template-columns: repeat(3, 1fr); grid-auto-rows: 220px; gap: 12px;
}
.gallery__item--wide { grid-column: span 2; }
.gallery button {
  all: unset; display: block; width: 100%; height: 100%; cursor: zoom-in;
  border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); background: var(--surface);
}
.gallery button:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
.gallery img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease, filter .3s; filter: saturate(.9); }
.gallery button:hover img { transform: scale(1.04); filter: saturate(1.05); }

.lightbox {
  padding: 0; border: 0; background: transparent; max-width: min(1400px, 94vw); max-height: 92vh; overflow: visible;
}
.lightbox::backdrop { background: rgba(4, 6, 9, .9); }
.lightbox img { max-width: 100%; max-height: 92vh; border-radius: 8px; box-shadow: 0 30px 80px rgba(0, 0, 0, .7); }
.lightbox__close {
  position: absolute; top: -14px; right: -14px;
  display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%;
  background: var(--surface-2); color: var(--text); border: 1px solid var(--line); cursor: pointer;
}
.lightbox__close:hover { border-color: var(--accent); }

/* Roadmap */
.roadmap {
  max-width: var(--wrap); margin: 0 auto;
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; counter-reset: step;
  position: relative;
}
.step {
  position: relative; padding: 26px 22px 24px; border-radius: var(--radius);
  background: var(--surface-2); border: 1px solid var(--line);
}
.step::before {
  content: ""; position: absolute; top: -1px; left: 22px; right: 22px; height: 2px; background: var(--line);
}
.step--now { border-color: rgba(227, 154, 59, .5); }
.step--now::before { background: var(--accent); }
.step__tag {
  display: inline-block; margin-bottom: 14px;
  font: 600 .78rem/1 var(--head); letter-spacing: .16em; text-transform: uppercase; color: var(--muted);
}
.step--now .step__tag { color: var(--accent); }
.step h3 { font-size: 1.5rem; margin-bottom: 8px; }
.step p { color: var(--muted); font-size: .975rem; }

/* Follow */
.follow {
  position: relative; isolation: isolate;
  padding: clamp(80px, 12vw, 140px) var(--gutter);
  text-align: center; overflow: hidden;
  background:
    radial-gradient(60% 80% at 50% 110%, rgba(227, 154, 59, .16), transparent 70%),
    var(--bg);
  border-top: 1px solid var(--line);
}
.follow__inner { max-width: 640px; margin: 0 auto; display: flex; flex-direction: column; align-items: center; gap: 16px; }
.follow h2 { font-size: clamp(2rem, 5vw, 3rem); }
.follow p:not(.eyebrow) { color: var(--muted); font-size: 1.125rem; }
.follow__links { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin-top: 12px; }
.follow__soon {
  padding: 12px 20px; border: 1px dashed var(--line); border-radius: 6px;
  font: 600 .95rem/1 var(--head); letter-spacing: .12em; text-transform: uppercase; color: var(--muted);
}

/* Footer */
.footer {
  padding: 32px var(--gutter) 40px; border-top: 1px solid var(--line);
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 24px;
  color: var(--muted); font-size: .9rem;
}
.footer__note { opacity: .75; }

/* Reveal on scroll */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity .7s ease, transform .7s ease; }
.reveal.is-in { opacity: 1; transform: none; }
.no-js .reveal { opacity: 1; transform: none; }

/* Responsive */
@media (max-width: 980px) {
  .classes { grid-template-columns: repeat(2, 1fr); }
  .roadmap { grid-template-columns: repeat(2, 1fr); }
  .feature, .feature--flip { grid-template-columns: 1fr; }
  .feature--flip .feature__media { order: 0; }
}

@media (max-width: 760px) {
  .nav nav { display: none; }
  .nav .btn--small { margin-left: auto; }
  .hero { align-items: flex-end; padding-bottom: 96px; }
  .hero__shade {
    background:
      linear-gradient(180deg, rgba(8, 10, 14, .35) 0%, rgba(8, 10, 14, .75) 45%, var(--bg) 100%);
  }
  .hero__bg img { object-position: 62% 50%; }
  .logo { margin-left: -1%; }
  .hero__actions .btn { flex: 1 1 auto; }
  .badge { font-size: .85rem; letter-spacing: .1em; padding: 8px 14px; }
  .facts ul { grid-template-columns: repeat(2, 1fr); gap: 22px 16px; }
  .gallery { grid-template-columns: 1fr 1fr; grid-auto-rows: 150px; }
  .gallery__item--wide { grid-column: span 2; }
  .lightbox__close { top: 8px; right: 8px; }
  .footer { flex-direction: column; }
}

@media (max-width: 520px) {
  .classes, .roadmap { grid-template-columns: 1fr; }
  .class { flex-direction: row; align-items: flex-start; }
  .class img { width: 60px; height: 60px; flex: none; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .reveal { opacity: 1; transform: none; }
}
