/* job-page.css — Extracted from recruitment/jobs/index.html */

:root {
  color-scheme: dark;
}

body {
  margin: 0;
  min-height: 100vh;
  background: var(--brand-obsidian, #020617);
  color: #fff;
  font-family: 'Inter', system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
}

/* Ambient background: organic light + grain (mirrors candidate apply page) */
.apply-page-bg {
  position: fixed;
  inset: 0;
  z-index: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
  overflow: hidden;
}

.apply-page-bg-blob {
  position: absolute;
  border-radius: 60% 40% 30% 70% / 60% 30% 70% 40%;
  will-change: transform, border-radius;
}

.apply-page-bg-blob--1 {
  top: 0;
  left: -10%;
  width: 45vw;
  height: 45vw;
  background: var(--brand-gold);
  filter: blur(120px);
  opacity: 0.15;
  animation: apply-bg-roam-1 35s var(--ease-keyword-ease-in-out) infinite;
}

.apply-page-bg-blob--2 {
  bottom: -5%;
  right: -10%;
  width: 55vw;
  height: 55vw;
  background: var(--brand-surface-strong);
  filter: blur(130px);
  opacity: 0.4;
  animation: apply-bg-roam-2 42s var(--ease-keyword-ease-in-out) -10s infinite;
}

.apply-page-bg-blob--3 {
  top: 20%;
  left: 25%;
  width: 40vw;
  height: 40vw;
  background: var(--brand-gold);
  filter: blur(100px);
  opacity: 0.1;
  animation: apply-bg-roam-3 38s var(--ease-keyword-ease-in-out) -5s infinite;
}

.apply-page-bg-blob--4 {
  top: 40%;
  left: 40%;
  width: 20vw;
  height: 20vw;
  background: var(--brand-gold);
  filter: blur(70px);
  opacity: 0.2;
  animation: apply-bg-roam-5 25s var(--ease-keyword-ease-in-out) -2s infinite;
}

.apply-page-bg-blob--5 {
  bottom: 30%;
  right: 30%;
  width: 15vw;
  height: 15vw;
  background: var(--brand-surface-strong);
  filter: blur(60px);
  opacity: 0.4;
  animation: apply-bg-roam-5 32s var(--ease-keyword-ease-in-out) infinite reverse;
}

.apply-page-bg-blob--6 {
  top: -20%;
  right: 10%;
  width: 30vw;
  height: 30vw;
  background: var(--it-green);
  filter: blur(150px);
  opacity: 0.03;
  animation: apply-bg-roam-4 45s var(--ease-keyword-ease-in-out) -20s infinite;
}

.apply-page-bg-blob--7 {
  bottom: -20%;
  left: 10%;
  width: 30vw;
  height: 30vw;
  background: var(--it-red);
  filter: blur(150px);
  opacity: 0.03;
  animation: apply-bg-roam-4 45s var(--ease-keyword-ease-in-out) infinite alternate-reverse;
}

.apply-page-bg-svg-defs {
  position: absolute;
  width: 0;
  height: 0;
  overflow: hidden;
  pointer-events: none;
}

.apply-page-bg-grain {
  position: fixed;
  inset: 0;
  z-index: 10;
  pointer-events: none;
  opacity: 0.06;
  mix-blend-mode: overlay;
  filter: url(#applyNoiseFilter);
}

@keyframes apply-bg-roam-1 {
  0%,
  100% {
    border-radius: 60% 40% 30% 70% / 60% 30% 70% 40%;
    transform: scale(1) translate(0, 0);
  }
  25% {
    border-radius: 30% 70% 70% 30% / 30% 30% 70% 70%;
    transform: scale(1.1) translate(25vw, 15vh);
  }
  50% {
    border-radius: 70% 30% 50% 50% / 70% 50% 50% 30%;
    transform: scale(0.9) translate(40vw, -10vh);
  }
  75% {
    border-radius: 40% 60% 30% 70% / 40% 60% 70% 30%;
    transform: scale(1.05) translate(15vw, -25vh);
  }
}

@keyframes apply-bg-roam-2 {
  0%,
  100% {
    border-radius: 50% 50% 30% 70% / 60% 40% 60% 40%;
    transform: scale(1) translate(0, 0);
  }
  33% {
    border-radius: 70% 30% 50% 50% / 30% 70% 50% 50%;
    transform: scale(1.05) translate(-30vw, -20vh);
  }
  66% {
    border-radius: 30% 70% 70% 30% / 70% 30% 30% 70%;
    transform: scale(0.95) translate(-45vw, 15vh);
  }
}

@keyframes apply-bg-roam-3 {
  0%,
  100% {
    border-radius: 40% 60% 70% 30% / 40% 50% 60% 50%;
    transform: scale(1) translate(0, 0);
  }
  33% {
    border-radius: 60% 40% 30% 70% / 50% 60% 30% 60%;
    transform: scale(0.95) translate(-20vw, 30vh);
  }
  66% {
    border-radius: 50% 50% 60% 40% / 60% 40% 70% 30%;
    transform: scale(1.05) translate(25vw, 20vh);
  }
}

@keyframes apply-bg-roam-4 {
  0%,
  100% {
    transform: translate(0, 0);
  }
  50% {
    transform: translate(15vw, -15vh);
  }
}

@keyframes apply-bg-roam-5 {
  0%,
  100% {
    transform: scale(1) translate(0, 0);
  }
  33% {
    transform: scale(1.2) translate(30vw, -30vh);
  }
  66% {
    transform: scale(0.8) translate(-20vw, 20vh);
  }
}

@media (prefers-reduced-motion: reduce) {
  .apply-page-bg-blob {
    animation: none !important;
  }
  .apply-page-bg-blob--1,
  .apply-page-bg-blob--2,
  .apply-page-bg-blob--3,
  .apply-page-bg-blob--4,
  .apply-page-bg-blob--5,
  .apply-page-bg-blob--6,
  .apply-page-bg-blob--7 {
    border-radius: 50%;
    transform: none;
  }
}

.job-shell {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background: transparent;
  position: relative;
  z-index: 11;
}

.job-main {
  flex: 1;
  padding: clamp(3rem, 7vw, 5rem) 1.5rem 4rem 1.5rem;
}

.job-card {
  max-width: 960px;
  margin: 0 auto;
  background: rgba(8, 8, 8, 0.95);
  border-radius: 32px;
  border: 1px solid var(--brand-gold-focus-glow);
  box-shadow: 0 40px 120px rgba(0, 0, 0, 0.7);
  overflow: hidden;
}

.job-hero {
  position: relative;
  padding: 2.4rem 2.4rem 2rem 2.4rem;
  background: linear-gradient(to bottom, var(--brand-gold-soft) 0%, transparent 50%);
  border-bottom: 1px solid var(--brand-gold-glow-soft);
}

.job-hero-eyebrow {
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.4em;
  color: var(--brand-gold);
  margin-bottom: 0.75rem;
}

.job-hero-title {
  font-family: 'Playfair Display', serif;
  font-size: clamp(1.9rem, 3vw, 2.5rem);
  line-height: 1.1;
  margin-bottom: 0.4rem;
  word-break: break-word;
  color: #fff;
}

.job-hero-location {
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.75);
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.job-meta-row {
  margin-top: 1.2rem;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.75rem;
  font-size: 0.75rem;
  color: rgba(255, 255, 255, 0.7);
}

.job-pill {
  border-radius: 999px;
  border: 1px solid var(--brand-gold-glow);
  padding: 0.2rem 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  font-size: 0.7rem;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  white-space: nowrap;
}

.job-pill--open {
  border-color: var(--brand-gold-focus);
  color: var(--brand-gold);
  background: var(--brand-gold-soft);
}

.job-pill--closed {
  border-color: rgba(255, 255, 255, 0.35);
  color: rgba(255, 255, 255, 0.8);
  background: rgba(255, 255, 255, 0.06);
}

.job-pill-tag {
  border-radius: 999px;
  padding: 0.18rem 0.7rem;
  border: 1px solid rgba(255, 255, 255, 0.3);
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: rgba(255, 255, 255, 0.75);
  white-space: nowrap;
}

.job-body {
  padding: 2.1rem 2.4rem 2.2rem 2.4rem;
  display: grid;
  grid-template-columns: minmax(0, 1.7fr) minmax(0, 1.1fr);
  gap: 2rem;
}

@media (max-width: 900px) {
  .job-main {
    padding-inline: 1.25rem;
  }

  .job-card {
    border-radius: 26px;
  }

  .job-hero,
  .job-body {
    padding-inline: 1.6rem;
  }

  .job-body {
    grid-template-columns: minmax(0, 1fr);
  }
}

@media (max-width: 640px) {
  .job-main {
    padding-inline: 1rem;
  }

  .job-card {
    border-radius: 22px;
  }

  .job-hero,
  .job-body {
    padding-inline: 1.4rem;
  }
}

.job-section-title {
  font-family: 'Playfair Display', serif;
  font-size: 1.1rem;
  margin-bottom: 0.9rem;
  color: #e5e7eb;
}

.job-copy {
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.88);
  line-height: 1.7;
  white-space: pre-wrap;
  word-wrap: break-word;
}

.job-copy--muted {
  color: rgba(255, 255, 255, 0.6);
  font-style: italic;
}

.job-sidebar-card {
  border-radius: 20px;
  border: 1px solid var(--brand-gold-focus-glow);
  background: rgba(8, 8, 8, 0.6);
  padding: 1.4rem 1.5rem 1.5rem 1.5rem;
}

.apply-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  width: 100%;
  margin-top: 0.5rem;
  border-radius: 999px;
  padding: 0.78rem 1.4rem;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.22em;
  border: none;
  cursor: default;
  transition: transform 90ms ease, box-shadow 120ms ease, filter 120ms ease, opacity 160ms ease;
}

.apply-cta--open {
  cursor: pointer;
  background: var(--brand-gold);
  color: var(--brand-obsidian, #080808);
  box-shadow: 0 16px 40px var(--brand-gold-glow-medium);
}

.apply-cta--open:hover {
  filter: brightness(1.08);
  box-shadow: 0 22px 55px var(--brand-gold-glow);
}

.apply-cta--open:active {
  transform: translateY(1px) scale(0.99);
  box-shadow: 0 10px 35px var(--brand-gold-glow-medium);
}

.apply-cta--closed {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.3);
  color: rgba(255, 255, 255, 0.7);
  cursor: not-allowed;
  opacity: 0.85;
}

.apply-note {
  margin-top: 0.6rem;
  font-size: 0.75rem;
  color: rgba(255, 255, 255, 0.75);
}

.job-notice {
  max-width: 720px;
  margin: 0 auto;
  border-radius: 26px;
  border: 1px solid var(--brand-gold-glow-strong);
  padding: 2rem 2.2rem;
  background: rgba(8, 8, 8, 0.95);
  text-align: center;
}

.job-notice-title {
  font-family: 'Playfair Display', serif;
  font-size: 1.5rem;
  margin-bottom: 0.6rem;
  color: #e5e7eb;
}

.job-notice-copy {
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.85);
  max-width: 42rem;
  margin: 0 auto;
  line-height: 1.7;
}

.job-notice-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  border-radius: 999px;
  border: 1px solid var(--brand-gold-glow);
  padding: 0.28rem 0.9rem;
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.22em;
  color: var(--brand-gold);
  margin-bottom: 0.9rem;
}

.job-loading {
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.8);
  text-align: center;
  padding: 4rem 0;
}

.job-debug-panel {
  position: fixed;
  bottom: 1rem;
  right: 1rem;
  z-index: 50;
  max-width: 380px;
  font-size: 0.75rem;
  line-height: 1.4;
  background: rgba(15, 23, 42, 0.98);
  border-radius: 0.75rem;
  border: 1px solid rgba(251, 191, 36, 0.8);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.8);
  color: #f9fafb;
  padding: 0.8rem 0.9rem;
}

.job-debug-panel-header {
  font-weight: 600;
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: #facc15;
  margin-bottom: 0.4rem;
}

.job-debug-panel-row {
  display: flex;
  align-items: flex-start;
  gap: 0.4rem;
  margin-bottom: 0.25rem;
}

.job-debug-panel-label {
  min-width: 8.4rem;
  font-weight: 500;
  color: rgba(209, 213, 219, 0.95);
}

.job-debug-panel-value {
  flex: 1;
  word-break: break-all;
  color: rgba(209, 213, 219, 0.9);
}

.job-debug-panel-code {
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono",
    "Courier New", monospace;
  font-size: 0.7rem;
}

.job-debug-panel-section-title {
  margin-top: 0.35rem;
  margin-bottom: 0.15rem;
  font-size: 0.72rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: rgba(248, 250, 252, 0.9);
}

.job-debug-panel-footer {
  margin-top: 0.4rem;
  font-size: 0.68rem;
  color: rgba(148, 163, 184, 0.9);
  font-style: italic;
}

.job-inline-apply {
  border-top: 1px solid var(--brand-gold-focus-glow);
  padding: 1.5rem 2.4rem 2rem 2.4rem;
  background: rgba(8, 8, 8, 0.6);
  scroll-margin-top: 1.5rem;
}

.job-inline-apply-inner {
  max-width: 960px;
  margin: 0 auto;
}

.job-inline-apply-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1.25rem;
}

.job-inline-apply-header .job-section-title {
  margin-bottom: 0;
}

.job-inline-apply-close {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: rgba(255, 255, 255, 0.9);
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.4);
  border-radius: 999px;
  padding: 0.5rem 1rem;
  cursor: pointer;
  transition: border-color 140ms ease, color 140ms ease, background 140ms ease;
}

.job-inline-apply-close:hover {
  border-color: var(--brand-gold-glow);
  color: var(--brand-gold);
  background: var(--brand-gold-soft);
}

.job-inline-apply-iframe {
  width: 100%;
  min-height: 640px;
  border: 1px solid var(--brand-gold-glow-soft);
  border-radius: 20px;
  background: rgba(8, 8, 8, 0.95);
}

@media (max-width: 900px) {
  .job-inline-apply {
    padding-inline: 1.6rem;
  }
}

@media (max-width: 640px) {
  .job-inline-apply {
    padding-inline: 1.4rem;
  }

  .job-inline-apply-iframe {
    min-height: 520px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .apply-cta,
  .apply-cta--open,
  .job-inline-apply-close {
    transition: none !important;
  }

  .apply-cta--open:hover {
    filter: none !important;
    box-shadow: none !important;
  }

  .apply-cta--open:active {
    transform: none !important;
  }
}

/* ── Job listing (no-slug state) ─────────────────────────────────── */
.jobs-list-header {
  max-width: 720px;
  margin: 0 auto 2.5rem auto;
  text-align: center;
}

.jobs-list-title {
  font-family: 'Playfair Display', serif;
  font-size: clamp(1.8rem, 3vw, 2.4rem);
  color: #fff;
  margin-bottom: 0.5rem;
}

.jobs-list-subtitle {
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.7);
  line-height: 1.6;
}

.jobs-list-grid {
  max-width: 720px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.jobs-list-item {
  display: block;
  text-decoration: none;
  border-radius: 20px;
  border: 1px solid var(--brand-gold-focus-glow);
  background: rgba(8, 8, 8, 0.95);
  padding: 1.4rem 1.6rem;
  transition: border-color 140ms ease, box-shadow 140ms ease;
}

.jobs-list-item:hover {
  border-color: var(--brand-gold-glow);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.5);
}

.jobs-list-item-title {
  font-family: 'Playfair Display', serif;
  font-size: 1.15rem;
  color: #fff;
  margin-bottom: 0.3rem;
}

.jobs-list-item-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem;
  margin-top: 0.6rem;
}

.jobs-list-item-location {
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.65);
  text-transform: uppercase;
  letter-spacing: 0.14em;
}

.jobs-list-item-arrow {
  margin-left: auto;
  font-size: 0.78rem;
  color: var(--brand-gold);
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

@media (prefers-reduced-motion: reduce) {
  .jobs-list-item {
    transition: none !important;
  }
}
