/* NS MEDIA — Careers site
   Layout swiped from joinbrandlab.co/careers/video-editors/, rebranded.
   Reference tokens kept 1:1 (type scale, radii, spacing, band rhythm);
   palette swapped to NS MEDIA black #0b0b0d / orange #ff4d00. */

:root {
  /* Palette */
  --paper: #fbfaf7;        /* body cream (ref #fbfaf7) */
  --ink: #0b0b0d;          /* dark bands + text (ref #11131a → NS logo black) */
  --ink-card: #17171b;     /* card on dark (ref #1b1e28) */
  --band: #ede9e3;         /* stats band (ref #d9dde5, warmed for orange) */
  --line: #e3dfd8;         /* light border (ref #d9dde5) */
  --line-dark: rgba(255, 255, 255, 0.12);
  --accent: #ff4d00;       /* CTA (ref #5f45e8) */
  --accent-hover: #ff6224;
  --accent-soft: #ffe9e0;
  --muted: #5a5a63;
  --muted-dark: #a3a3ac;
  --white: #ffffff;

  /* Geometry — matched to reference */
  --r: 7px;                /* buttons + inputs */
  --r-card: 10px;
  --pad-x: 84px;
  --max: 1440px;

  --font: "Inter", "Helvetica Neue", Arial, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }
a { color: inherit; }
p { margin: 0; }

.wrap {
  width: 100%;
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 var(--pad-x);
}

/* ---------- Type ---------- */

h1, h2, h3 { margin: 0; font-weight: 700; letter-spacing: -0.015em; }
h1 { font-size: clamp(36px, 4.1vw, 50px); line-height: 0.98; }
h2 { font-size: clamp(26px, 2.5vw, 34px); line-height: 1.05; }
h3 { font-size: 18px; line-height: 1.3; }

.eyebrow {
  display: block;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 1.04px;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 14px;
}

.lead { font-size: 17px; color: var(--muted); max-width: 60ch; }
.on-dark .lead, .hero .lead { color: rgba(255, 255, 255, 0.72); }

.section { padding: 64px 0 72px; }
.section-heading { max-width: 620px; }
.section-heading .lead { margin-top: 14px; }

/* ---------- Buttons ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 20px;
  border-radius: var(--r);
  font-size: 15px;
  font-weight: 700;
  font-family: inherit;
  text-decoration: none;
  border: 1px solid transparent;
  cursor: pointer;
  transition: background 0.15s ease, border-color 0.15s ease;
}
.btn-primary { background: var(--accent); color: #fff; }
.btn-primary:hover { background: var(--accent-hover); }
.btn-outline { background: transparent; color: var(--white); border-color: rgba(255, 255, 255, 0.35); }
.btn-outline:hover { border-color: var(--white); background: rgba(255, 255, 255, 0.08); }
.btn-lg { padding: 14px 24px; font-size: 15.5px; }

/* ---------- Header ---------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  height: 66px;
  display: flex;
  align-items: center;
  background: rgba(251, 250, 247, 0.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}
.site-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.logo {
  display: inline-flex;
  align-items: baseline;
  gap: 8px;
  text-decoration: none;
  font-weight: 800;
  font-size: 21px;
  letter-spacing: -0.02em;
  color: var(--ink);
}
/* Offset-orange NS treatment from the logo */
.logo .mark { position: relative; z-index: 1; }
.logo .mark::after {
  content: "NS";
  position: absolute;
  left: 2px;
  top: 2px;
  color: var(--accent);
  z-index: -1;
}
.logo .sub {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
  padding-left: 10px;
  border-left: 1px solid var(--line);
}
.header-nav { display: flex; align-items: center; gap: 24px; }
.header-nav .navlink {
  font-size: 14.5px;
  font-weight: 600;
  color: var(--muted);
  text-decoration: none;
}
.header-nav .navlink:hover { color: var(--ink); }

/* ---------- Hero ---------- */

.hero {
  position: relative;
  min-height: 720px;
  display: flex;
  align-items: center;
  background: var(--ink);
  overflow: hidden;
}
.hero-media {
  position: absolute;
  inset: 0;
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  grid-auto-rows: 50%;
  gap: 4px;
}
/* No grayscale/duotone here on purpose — the tiles are real customer and
   UGC photography, and filtering them makes them read as stock. */
.hero-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* ---- Photo-free hero -------------------------------------------------
   Used on the GLOBAL market, which deliberately shows no portfolio brands
   or product photography. Falls back to the logo's diagonal-split motif so
   the hero still has structure without naming a single brand. */
.hero.plain { background: radial-gradient(1000px 520px at 12% -10%, #1c1c20 0%, var(--ink) 62%); }
.hero.plain .hero-media,
.hero.plain .hero-overlay { display: none; }
.hero.plain::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(112deg, transparent 0 58%, rgba(255, 77, 0, 0.16) 58.15%, rgba(255, 77, 0, 0.03) 100%);
  pointer-events: none;
}
.hero.plain::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image: radial-gradient(rgba(255, 255, 255, 0.07) 1px, transparent 1px);
  background-size: 26px 26px;
  mask-image: linear-gradient(180deg, rgba(0, 0, 0, 0.55), transparent 75%);
  -webkit-mask-image: linear-gradient(180deg, rgba(0, 0, 0, 0.55), transparent 75%);
  pointer-events: none;
}
.hero.plain .hero-content { padding: 96px 0; }
/* Left side goes solid so the headline always sits on flat colour */
.hero-overlay {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, var(--ink) 0%, var(--ink) 32%, rgba(11, 11, 13, 0.72) 52%, rgba(11, 11, 13, 0.34) 100%),
    linear-gradient(180deg, rgba(11, 11, 13, 0.18), rgba(11, 11, 13, 0.42));
}
.hero-content { position: relative; z-index: 2; width: 100%; padding: 72px 0; }
.hero h1 { color: var(--white); max-width: 13ch; }
.hero .lead { margin-top: 20px; max-width: 46ch; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 30px; }
.hero-note { margin-top: 18px; font-size: 13.5px; color: rgba(255, 255, 255, 0.55); }

/* ---------- Stats band ---------- */

.stats-band { background: var(--band); }
.stats-band .wrap {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
}
.stat { padding: 40px 28px; border-left: 1px solid rgba(11, 11, 13, 0.12); }
.stat:first-child { border-left: 0; padding-left: 0; }
.stat .k { display: block; font-size: 17px; font-weight: 700; margin-bottom: 6px; }
.stat .v { font-size: 15px; color: var(--muted); }

/* ---------- Brand strip ---------- */

.brand-strip { background: var(--ink); padding: 26px 0; }
.brand-strip .wrap {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 14px 38px;
}
.brand-strip .label {
  font-size: 13.5px;
  color: rgba(255, 255, 255, 0.5);
}
.brand-strip ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px 34px;
}
.brand-strip li {
  color: rgba(255, 255, 255, 0.9);
  font-weight: 800;
  font-size: 19px;
  letter-spacing: 0.02em;
}

/* ---------- Steps ---------- */

.steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
  margin-top: 34px;
}
.step {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--r-card);
  padding: 22px;
}
.step .n {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--accent-soft);
  color: var(--accent);
  font-weight: 700;
  font-size: 14px;
  margin-bottom: 20px;
}
.step h3 { margin-bottom: 8px; }
.step p { font-size: 14.5px; color: var(--muted); }
.step .tag {
  display: inline-block;
  margin-top: 12px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent);
  background: var(--accent-soft);
  border-radius: 999px;
  padding: 4px 10px;
}

/* ---------- Split (dark) ---------- */

.section.split {
  background: var(--ink);
  color: var(--white);
  padding: 24px var(--pad-x) 44px;
}
.section.split .inner {
  max-width: var(--max);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 470px 1fr;
  gap: 14px;
  align-items: start;
  padding-top: 44px;
}
.section.split h2 { color: var(--white); max-width: 14ch; }
.section.split .eyebrow { color: var(--accent); }
.fit-list { display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px; }
.fit-card {
  background: var(--ink-card);
  border: 1px solid var(--line-dark);
  border-radius: 8px;
  padding: 22px;
}
.fit-card h3 { color: var(--white); margin-bottom: 16px; }
.fit-card ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.fit-card li {
  position: relative;
  padding-left: 22px;
  font-size: 14.5px;
  line-height: 1.5;
  color: rgba(255, 255, 255, 0.72);
}
.fit-card li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 8px;
  width: 7px;
  height: 7px;
  border-radius: 2px;
  background: var(--accent);
}
.fit-card.secondary li::before { background: rgba(255, 255, 255, 0.3); }

/* ---------- Roles (hub) ---------- */

/* 4 open roles → 2×2. Bump to repeat(3, 1fr) if you ever list 6 again. */
.roles { display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px; margin-top: 34px; }
.role {
  display: block;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--r-card);
  padding: 22px;
  text-decoration: none;
  transition: border-color 0.15s ease;
}
a.role:hover { border-color: var(--accent); }
.role .row { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.role h3 { margin-bottom: 8px; }
.role p { font-size: 14.5px; color: var(--muted); }
.role .arrow { color: var(--accent); font-weight: 700; }
.role .meta { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 14px; }
.pill {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 4px 10px;
  border-radius: 999px;
  border: 1px solid var(--line);
  color: var(--muted);
}
.pill.open { color: var(--accent); border-color: var(--accent); background: var(--accent-soft); }
.role.soon { opacity: 0.6; }

/* ---------- Apply ---------- */

.apply-section { background: var(--white); padding: 28px var(--pad-x) 72px; border-top: 1px solid var(--line); }
.apply-inner { max-width: var(--max); margin: 0 auto; padding-top: 44px; }
.apply-form { margin-top: 32px; max-width: 780px; }
.form-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px; }
.field { display: flex; flex-direction: column; gap: 6px; }
.field.full { grid-column: 1 / -1; }
.field label { font-size: 14px; font-weight: 700; color: var(--ink); }
.field label .req { color: var(--accent); }
.field .hint { font-size: 12.5px; color: var(--muted); }
.field input,
.field select,
.field textarea {
  width: 100%;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--r);
  padding: 11px 13px;
  font-family: inherit;
  font-size: 16px;
  color: var(--ink);
  transition: border-color 0.15s ease;
}
.field textarea { min-height: 96px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none;
  border-color: var(--accent);
}
.field input::placeholder, .field textarea::placeholder { color: #9a9aa2; }
.field.invalid input, .field.invalid select, .field.invalid textarea { border-color: #d92d20; }
.field .err { font-size: 12.5px; color: #d92d20; display: none; }
.field.invalid .err { display: block; }

.form-actions { margin-top: 24px; display: flex; flex-wrap: wrap; align-items: center; gap: 16px; }
.form-note { font-size: 13.5px; color: var(--muted); }
.form-note a { color: var(--accent); }

.form-status { display: none; margin-top: 18px; padding: 14px 16px; border-radius: var(--r); font-size: 15px; }
.form-status.ok { display: block; background: var(--accent-soft); border: 1px solid var(--accent); color: var(--ink); }
.form-status.bad { display: block; background: #fef3f2; border: 1px solid #d92d20; color: #912018; }

/* ---------- Footer ---------- */

.site-footer { background: var(--ink); padding: 26px 0; }
.site-footer .wrap {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
  justify-content: space-between;
}
.site-footer p, .site-footer a { font-size: 13.5px; color: rgba(255, 255, 255, 0.55); text-decoration: none; }
.site-footer a:hover { color: var(--white); }

/* ---------- Responsive ---------- */

@media (max-width: 1100px) {
  :root { --pad-x: 40px; }
  .section.split .inner { grid-template-columns: 1fr; gap: 28px; }
  .section.split h2 { max-width: none; }
  .steps { grid-template-columns: repeat(2, 1fr); }
  .roles { grid-template-columns: repeat(2, 1fr); }
  /* 4 stats wrap to 2×2 — dividers follow the new row starts */
  .stats-band .wrap { grid-template-columns: repeat(2, 1fr); }
  .stat { padding: 30px 28px; }
  .stat:nth-child(odd) { border-left: 0; padding-left: 0; }
  .stat:nth-child(n + 3) { border-top: 1px solid rgba(11, 11, 13, 0.12); }
}

@media (max-width: 720px) {
  :root { --pad-x: 20px; }
  .hero { min-height: 600px; }
  .hero-media { grid-template-columns: repeat(3, 1fr); grid-auto-rows: 25%; }
  .hero-overlay {
    background:
      linear-gradient(180deg, rgba(11, 11, 13, 0.86) 0%, rgba(11, 11, 13, 0.92) 55%, var(--ink) 100%);
  }
  .hero h1, .hero .lead { max-width: none; }
  .stats-band .wrap { grid-template-columns: 1fr; }
  .stat, .stat:nth-child(odd) { padding: 22px 0; border-left: 0; border-top: 1px solid rgba(11, 11, 13, 0.12); }
  .stat:first-child { border-top: 0; }
  .brand-strip .wrap { justify-content: flex-start; }
  .steps, .roles, .fit-list, .form-grid { grid-template-columns: 1fr; }
  .hero-cta .btn { flex: 1 1 auto; }
  .logo .sub { display: none; }
  .header-nav .navlink { display: none; }
}
