/* =============================================================
   SCORPIUS STAFFING — Navy hero, light middle, navy contact
   Distinct from Argushaus (cream/red light) — same family, different mood
   ============================================================= */

:root {
  --bg:        #FFFFFF;
  --bg-tint:   #F2F5FA;       /* light navy tint for alt sections */
  --bg-card:   #F7F9FC;
  --ink:       #0D1320;
  --navy:      #1B2D45;       /* Scorpius brand navy */
  --navy-deep: #0F1B30;       /* deeper navy for hero */
  --navy-soft: #2D4267;
  --cream:     #F0F2F7;       /* off-white text on navy */
  --muted:     #4A5566;
  --muted-on-navy: rgba(240, 242, 247, 0.65);
  --line:      #DCE1EA;
  --line-on-navy: rgba(240, 242, 247, 0.16);
  --accent:    #C8362A;       /* red accent — ties to Leads family */

  --sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Helvetica Neue', Arial, sans-serif;
  --mono: 'JetBrains Mono', 'SF Mono', Menlo, monospace;

  --gutter: clamp(1.5rem, 5vw, 5rem);
  --vpad:   clamp(4rem, 11vh, 8rem);
}

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

html {
  font-size: 17px;
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  font-weight: 400;
  line-height: 1.5;
  overflow-x: hidden;
}

a { color: inherit; text-decoration: none; transition: color 0.2s ease; }
::selection { background: var(--navy); color: var(--cream); }

img { display: block; max-width: 100%; }
ul, ol { list-style: none; }

/* ---------- Container ---------- */
.container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 var(--gutter);
}

@media (max-width: 700px) {
  html { font-size: 16px; }
}

/* ---------- Nav ---------- */
.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem var(--gutter);
}

.brand {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.3rem;
  color: var(--navy);
}

.brand-wordmark {
  height: 28px;
  width: auto;
  display: block;
  transition: opacity 0.2s ease;
}
.brand:hover .brand-wordmark { opacity: 0.75; }

.brand-meta {
  font-family: var(--mono);
  font-size: 0.66rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
  line-height: 1;
}

.brand-text {
  display: flex;
  flex-direction: column;
  gap: 0.05rem;
  line-height: 1.15;
}

.brand-name {
  font-family: var(--sans);
  font-weight: 600;
  font-size: 1.05rem;
  letter-spacing: -0.005em;
  color: var(--navy);
}

.brand-meta {
  font-family: var(--mono);
  font-size: 0.66rem;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
}

.nav-cta {
  font-family: var(--mono);
  font-size: 0.74rem;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--navy);
  border-bottom: 1px solid var(--navy);
  padding-bottom: 3px;
  transition: opacity 0.2s ease, color 0.2s ease;
}
.nav-cta:hover { color: var(--accent); border-bottom-color: var(--accent); }

@media (max-width: 700px) {
  .nav { padding: 0.85rem var(--gutter); }
  .brand-wordmark { height: 22px; }
  .brand-meta { font-size: 0.58rem; }
}

/* ---------- Section base ---------- */
.screen {
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  align-items: center;
  padding: var(--vpad) var(--gutter);
  position: relative;
  border-bottom: 1px solid var(--line);
}

.screen-inner {
  width: 100%;
  max-width: 1280px;
  margin: 0 auto;
}

/* ---------- HERO (NAVY) ---------- */
.hero {
  background: var(--navy-deep);
  color: var(--cream);
  border-bottom: 1px solid var(--navy-soft);
  position: relative;
  overflow: hidden;
}

/* Subtle grid background on hero */
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(to right, rgba(255,255,255,0.04) 1px, transparent 1px);
  background-size: calc(100% / 12) 100%;
  pointer-events: none;
  opacity: 0.6;
}

.hero .screen-inner { position: relative; z-index: 1; }

.mono-label {
  display: block;
  font-family: var(--mono);
  font-size: 0.74rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted-on-navy);
  margin-bottom: 2.5rem;
  padding-bottom: 1.1rem;
  border-bottom: 1px solid var(--line-on-navy);
  width: fit-content;
  min-width: 280px;
}

.hero-headline {
  font-family: var(--sans);
  font-weight: 500;
  font-size: clamp(2rem, 5.5vw, 5rem);
  line-height: 1.02;
  letter-spacing: -0.03em;
  color: var(--cream);
  margin-bottom: 2.25rem;
  max-width: 18ch;
}

.hero-headline .line {
  display: block;
}

.hero-headline .line--em {
  font-style: italic;
  font-weight: 400;
  color: var(--accent);
}

.hero-sub {
  font-family: var(--sans);
  font-weight: 400;
  font-size: clamp(1.05rem, 1.6vw, 1.2rem);
  line-height: 1.6;
  color: rgba(240, 242, 247, 0.88);
  max-width: 62ch;
  margin-bottom: 2.5rem;
}

.hero-markets {
  font-family: var(--mono);
  font-size: clamp(0.7rem, 1vw, 0.82rem);
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted-on-navy);
  padding-top: 1.5rem;
  border-top: 1px solid var(--line-on-navy);
}

.hero-markets .dot {
  color: var(--accent);
  margin: 0 0.5rem;
  font-weight: 600;
}

/* ---------- Light sections ---------- */
.screen-light { background: var(--bg); }
.screen-tint  { background: var(--bg-tint); }

.screen-light .label,
.screen-tint .label {
  display: block;
  font-family: var(--mono);
  font-size: 0.74rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 3rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--line);
  width: fit-content;
  min-width: 280px;
}

/* ---------- Split layout (firms/consultants) ---------- */
.split {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: 4rem;
  align-items: start;
}

.split--reversed { direction: rtl; }
.split--reversed > * { direction: ltr; }

@media (max-width: 900px) {
  .split { grid-template-columns: 1fr; gap: 2.5rem; }
  .split--reversed { direction: ltr; }
}

.display {
  font-family: var(--sans);
  font-weight: 500;
  font-size: clamp(2rem, 4.5vw, 3.6rem);
  line-height: 1.03;
  letter-spacing: -0.03em;
  color: var(--navy);
  margin-bottom: 1.5rem;
  max-width: 16ch;
}

.display em {
  font-style: italic;
  font-weight: 400;
  color: var(--accent);
}

.body-line {
  font-family: var(--sans);
  font-weight: 400;
  font-size: 1.05rem;
  line-height: 1.6;
  color: var(--ink);
  max-width: 48ch;
  margin-bottom: 2rem;
}

/* ---------- Spec grid (the 4 cards) ---------- */
.spec-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
}

.spec {
  background: var(--bg);
  padding: 1.5rem 1.5rem 1.75rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  transition: background 0.25s ease;
}

.screen-tint .spec { background: var(--bg-tint); }
.screen-tint .spec-grid { background: var(--line); }

.spec:hover { background: var(--bg-card); }
.screen-tint .spec:hover { background: var(--bg); }

.spec-num {
  font-family: var(--mono);
  font-size: 0.74rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  color: var(--accent);
}

.spec h3 {
  font-family: var(--sans);
  font-weight: 600;
  font-size: 1rem;
  letter-spacing: -0.005em;
  color: var(--navy);
}

.spec p {
  font-family: var(--sans);
  font-size: 0.92rem;
  line-height: 1.55;
  color: var(--muted);
}

@media (max-width: 500px) {
  .spec-grid { grid-template-columns: 1fr; }
}

/* ---------- Underline link ---------- */
.link-underline {
  font-family: var(--mono);
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--navy);
  display: inline-block;
  position: relative;
  padding: 0.5rem 0;
}

.link-underline::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 1px;
  background: var(--navy);
  transform-origin: left center;
  transition: transform 0.4s cubic-bezier(0.7, 0, 0.3, 1), background 0.2s ease;
}

.link-underline::before {
  content: "→";
  display: inline-block;
  margin-left: 0.6rem;
  transition: transform 0.3s ease;
}

.link-underline:hover { color: var(--accent); }
.link-underline:hover::after { transform: scaleX(0.6); background: var(--accent); }
.link-underline:hover::before { transform: translateX(6px); }

/* ---------- Markets stack ---------- */
.markets-stack {
  margin: 0;
  border-top: 1px solid var(--line);
}

.markets-stack li {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 2rem;
  padding: 1.25rem 0;
  border-bottom: 1px solid var(--line);
  transition: padding-left 0.4s cubic-bezier(0.7, 0, 0.3, 1), color 0.25s ease;
}

.markets-stack li:hover { padding-left: 1rem; }
.markets-stack li:hover .m-name { color: var(--accent); }

.m-name {
  font-family: var(--sans);
  font-weight: 500;
  font-size: clamp(1.75rem, 4vw, 3rem);
  line-height: 1.05;
  letter-spacing: -0.025em;
  color: var(--navy);
  transition: color 0.25s ease;
}

.m-meta {
  font-family: var(--mono);
  font-size: clamp(0.7rem, 1vw, 0.82rem);
  font-weight: 500;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--muted);
  text-align: right;
}

.markets-note {
  margin-top: 2.5rem;
  font-family: var(--mono);
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--muted);
}

@media (max-width: 700px) {
  .markets-stack li { flex-direction: column; align-items: flex-start; gap: 0.25rem; padding: 1rem 0; }
  .markets-stack li:hover { padding-left: 0.5rem; }
  .m-meta { text-align: left; }
}

/* ---------- Contact ---------- */
.screen-contact { background: var(--navy-deep); color: var(--cream); }
.screen-contact .label { color: var(--muted-on-navy); border-bottom-color: var(--line-on-navy); }
.screen-contact .display { color: var(--cream); }
.screen-contact .display em { color: var(--accent); }

/* Contact — primary (Jonathan) + secondary (general) */
.contact-primary {
  margin-top: 2.5rem;
  padding: 2rem 0 2.25rem;
  border-top: 1px solid var(--line-on-navy);
  border-bottom: 1px solid var(--line-on-navy);
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.contact-role {
  font-family: var(--mono);
  font-size: 0.74rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 0.4rem;
}

.contact-person {
  font-family: var(--sans);
  font-weight: 500;
  font-size: clamp(1.8rem, 4vw, 3rem);
  letter-spacing: -0.025em;
  color: var(--cream);
  line-height: 1;
  display: inline-block;
  width: fit-content;
  transition: color 0.2s ease;
}

.contact-person:hover { color: var(--accent); }

.contact-email {
  font-family: var(--sans);
  font-weight: 400;
  font-size: clamp(1rem, 1.6vw, 1.25rem);
  color: rgba(240, 242, 247, 0.8);
  transition: color 0.2s ease;
  width: fit-content;
  margin-top: 0.4rem;
}

.contact-email:hover { color: var(--accent); }

.contact-secondary {
  margin-top: 1.5rem;
  display: flex;
  align-items: baseline;
  gap: 1rem;
  flex-wrap: wrap;
}

.contact-secondary-label {
  font-family: var(--mono);
  font-size: 0.74rem;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted-on-navy);
}

.contact-secondary a {
  font-family: var(--sans);
  font-weight: 400;
  font-size: 1rem;
  color: rgba(240, 242, 247, 0.85);
  border-bottom: 1px solid rgba(240, 242, 247, 0.3);
  padding-bottom: 1px;
  transition: color 0.2s ease, border-color 0.2s ease;
}

.contact-secondary a:hover {
  color: var(--accent);
  border-bottom-color: var(--accent);
}

/* ---------- Footer ---------- */
.foot {
  padding: 2rem 0;
  background: var(--bg);
  border-top: 1px solid var(--line);
}

.foot-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-family: var(--mono);
  font-size: 0.74rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  color: var(--muted);
}

.foot-brand {
  font-family: var(--sans);
  font-weight: 600;
  font-size: 0.95rem;
  letter-spacing: -0.005em;
  color: var(--navy);
  text-transform: none;
}

.foot a { color: var(--muted); }
.foot a:hover { color: var(--accent); }

@media (max-width: 700px) {
  .foot-row { flex-direction: column; gap: 0.75rem; text-align: center; }
}
