:root {
  color-scheme: light;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-synthesis: none;
  text-rendering: optimizeLegibility;
  --page-width: 1180px;
  --radius-sm: 14px;
  --radius-md: 24px;
  --radius-lg: 36px;
  --shadow-sm: 0 18px 50px rgba(14, 23, 38, 0.08);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-width: 320px;
  background: var(--page);
  color: var(--ink);
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: -1;
  background-image: radial-gradient(circle at 20% 15%, var(--wash-one), transparent 29%),
    radial-gradient(circle at 85% 3%, var(--wash-two), transparent 32%),
    linear-gradient(rgba(244, 248, 246, 0.88), rgba(244, 248, 246, 0.94)),
    url("../images/backgrounds/bntrg-site-bg-1920.webp");
  background-position: center;
  background-size: cover;
}

a {
  color: inherit;
}

button,
a {
  -webkit-tap-highlight-color: transparent;
}

.skip-link {
  position: fixed;
  top: 10px;
  left: 10px;
  z-index: 100;
  padding: 10px 14px;
  border-radius: 10px;
  background: var(--ink);
  color: var(--page);
  transform: translateY(-150%);
  transition: transform 160ms ease;
}

.skip-link:focus {
  transform: translateY(0);
}

.shell {
  width: min(calc(100% - 40px), var(--page-width));
  margin-inline: auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 30;
  border-bottom: 1px solid transparent;
  background: color-mix(in srgb, var(--page) 85%, transparent);
  backdrop-filter: blur(18px);
  transition: border-color 180ms ease, box-shadow 180ms ease;
}

.site-header.is-scrolled {
  border-color: var(--line);
  box-shadow: 0 10px 30px rgba(11, 20, 31, 0.05);
}

.nav-row {
  min-height: 78px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  font-weight: 800;
  letter-spacing: -0.03em;
}

.brand-mark {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border-radius: 11px;
  background: var(--brand-gradient);
  color: white;
  box-shadow: 0 9px 24px var(--brand-shadow);
}

.brand-mark svg {
  width: 19px;
  height: 19px;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 20px;
}

.nav-links a {
  color: var(--muted);
  font-size: 0.92rem;
  font-weight: 680;
  text-decoration: none;
}

.nav-links a:hover,
.nav-links a:focus-visible {
  color: var(--ink);
}

.nav-links .nav-cta {
  padding: 10px 16px;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  color: var(--ink);
}

.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border: 1px solid var(--line);
  border-radius: 13px;
  background: var(--surface);
  color: var(--ink);
  cursor: pointer;
}

.hero {
  min-height: 610px;
  display: grid;
  grid-template-columns: minmax(0, 1.06fr) minmax(360px, 0.94fr);
  align-items: center;
  gap: clamp(36px, 8vw, 100px);
  padding-block: 68px 74px;
}

.hero > * {
  min-width: 0;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  margin: 0 0 20px;
  color: var(--accent-dark);
  font-size: 0.78rem;
  font-weight: 820;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.eyebrow::before {
  content: "";
  width: 26px;
  height: 2px;
  border-radius: 999px;
  background: var(--accent);
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  max-width: 780px;
  margin-bottom: 26px;
  font-size: clamp(3rem, 6vw, 5.35rem);
  line-height: 0.98;
  letter-spacing: -0.055em;
}

h2 {
  max-width: 820px;
  margin-bottom: 20px;
  font-size: clamp(2.25rem, 4.3vw, 4rem);
  line-height: 1.02;
  letter-spacing: -0.05em;
}

h3 {
  margin-bottom: 12px;
  font-size: 1.2rem;
  line-height: 1.2;
  letter-spacing: -0.025em;
}

.lede {
  max-width: 680px;
  color: var(--muted);
  font-size: clamp(1.05rem, 1.8vw, 1.3rem);
  line-height: 1.62;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 13px;
  margin-top: 34px;
}

.button {
  min-height: 50px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  padding: 12px 20px;
  border: 1px solid transparent;
  border-radius: 999px;
  font-weight: 760;
  text-decoration: none;
  transition: transform 150ms ease, box-shadow 150ms ease, background 150ms ease;
}

.button:hover,
.button:focus-visible {
  transform: translateY(-2px);
}

.button-primary {
  background: var(--ink);
  color: var(--page);
  box-shadow: 0 13px 32px rgba(13, 23, 38, 0.18);
}

.button-secondary {
  border-color: var(--line-strong);
  background: color-mix(in srgb, var(--surface) 72%, transparent);
}

.button[aria-disabled="true"] {
  opacity: 0.58;
  pointer-events: none;
}

.hero-note {
  margin-top: 22px;
  color: var(--muted);
  font-size: 0.84rem;
}

.visual-card {
  position: relative;
  min-height: 470px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--visual-background);
  box-shadow: var(--shadow-sm);
}

.section {
  padding-block: 88px;
}

.section-compact {
  padding-block: 72px;
}

.section-tint {
  border-block: 1px solid var(--line);
  background: var(--section-tint);
}

.section-heading {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(300px, 0.58fr);
  gap: 60px;
  align-items: end;
  margin-bottom: 54px;
}

.section-heading p {
  margin-bottom: 5px;
  color: var(--muted);
  line-height: 1.7;
}

.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.grid-2 {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
}

.card {
  padding: 30px;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: color-mix(in srgb, var(--surface) 93%, transparent);
  box-shadow: 0 14px 44px rgba(20, 28, 45, 0.035);
}

.card-number,
.card-icon {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  margin-bottom: 28px;
  border-radius: 13px;
  background: var(--soft-accent);
  color: var(--accent-dark);
  font-size: 0.83rem;
  font-weight: 840;
}

.card p,
.muted {
  color: var(--muted);
  line-height: 1.65;
}

.home-manifesto span {
  display: block;
}

.home-hero-visual {
  display: block;
  width: 100%;
  margin: 42px 0 34px;
  overflow: hidden;
  aspect-ratio: 16 / 8;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
}

.home-hero-visual img,
.home-hero-visual video {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

video.home-hero-visual {
  height: auto;
  background: #062c37;
  object-fit: cover;
}

.programme-section {
  padding-top: 0;
}

.programme-summary {
  max-width: 900px;
  margin-top: 46px;
}

.statement {
  padding: clamp(34px, 6vw, 76px);
  border-radius: var(--radius-lg);
  background: var(--ink);
  color: var(--page);
}

.statement h2 {
  max-width: 950px;
}

.statement p {
  max-width: 780px;
  color: color-mix(in srgb, var(--page) 72%, transparent);
  font-size: 1.08rem;
  line-height: 1.7;
}

.statement .button-secondary {
  border-color: var(--page);
  background: var(--page);
  color: var(--ink);
}

.status-band {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: var(--line);
}

.status-item {
  padding: 28px;
  background: var(--surface);
}

.status-item strong {
  display: block;
  margin-bottom: 7px;
  font-size: 1rem;
}

.status-item span {
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 1.5;
}

.site-footer {
  padding-block: 48px;
  border-top: 1px solid var(--line);
}

.footer-row {
  display: flex;
  justify-content: space-between;
  gap: 40px;
  color: var(--muted);
  font-size: 0.86rem;
  line-height: 1.6;
}

.footer-row p {
  max-width: 680px;
  margin-bottom: 0;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 18px;
}

.footer-link-button {
  padding: 0;
  border: 0;
  background: transparent;
  color: inherit;
  cursor: pointer;
  font: inherit;
  text-decoration: underline;
}

.privacy-choice {
  position: fixed;
  right: 20px;
  bottom: 20px;
  left: 20px;
  z-index: 80;
  width: min(calc(100% - 40px), 980px);
  margin-inline: auto;
  display: flex;
  gap: 18px;
  align-items: center;
  justify-content: space-between;
  padding: 13px 16px;
  border: 1px solid var(--line-strong);
  border-radius: 16px;
  background: var(--surface);
  box-shadow: 0 12px 40px rgba(13, 23, 38, .16);
}

.privacy-choice[hidden] {
  display: none;
}

.privacy-choice p {
  margin-bottom: 0;
  color: var(--muted);
  font-size: .86rem;
  line-height: 1.45;
}

.privacy-choice-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  white-space: nowrap;
}

.privacy-choice-actions .button {
  min-height: 38px;
  padding: 8px 13px;
  font-size: .82rem;
  cursor: pointer;
}

.privacy-choice-actions a {
  padding: 6px;
  color: var(--muted);
  font-size: .78rem;
}

.reveal {
  opacity: 1;
  transform: translateY(0);
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
  }

  .reveal {
    opacity: 1;
    transform: none;
  }
}

@media (max-width: 1080px) {
  body::before {
    background-image: radial-gradient(circle at 20% 15%, var(--wash-one), transparent 29%),
      radial-gradient(circle at 85% 3%, var(--wash-two), transparent 32%),
      linear-gradient(rgba(244, 248, 246, 0.88), rgba(244, 248, 246, 0.94)),
      url("../images/backgrounds/bntrg-site-bg-1280.webp");
  }

  .nav-toggle {
    display: grid;
    place-items: center;
  }

  .nav-links {
    position: absolute;
    top: calc(100% + 1px);
    right: 20px;
    left: 20px;
    display: none;
    padding: 18px;
    border: 1px solid var(--line);
    border-radius: 18px;
    background: var(--surface);
    box-shadow: var(--shadow-sm);
  }

  .nav-links.is-open {
    display: grid;
  }

  .hero {
    min-height: auto;
    grid-template-columns: 1fr;
    padding-block: 70px;
  }

  .visual-card {
    min-height: 410px;
  }

  .section-heading {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .grid-3 {
    grid-template-columns: 1fr;
  }

  .privacy-choice {
    align-items: flex-start;
    flex-direction: column;
  }

  .privacy-choice-actions {
    flex-wrap: wrap;
    white-space: normal;
  }
}

@media (max-width: 640px) {
  body::before {
    background-image: radial-gradient(circle at 20% 15%, var(--wash-one), transparent 29%),
      radial-gradient(circle at 85% 3%, var(--wash-two), transparent 32%),
      linear-gradient(rgba(244, 248, 246, 0.88), rgba(244, 248, 246, 0.94)),
      url("../images/backgrounds/bntrg-site-bg-768.webp");
  }

  .shell {
    width: min(calc(100% - 28px), var(--page-width));
  }

  .nav-row {
    min-height: 68px;
  }

  .brand-name-long {
    display: none;
  }

  .hero {
    padding-block: 54px 60px;
  }

  h1 {
    font-size: clamp(2.65rem, 13vw, 3.55rem);
  }

  .section {
    padding-block: 78px;
  }

  .grid-2,
  .status-band {
    grid-template-columns: 1fr;
  }

  .card {
    padding: 24px;
  }

  .home-hero-visual {
    margin-block: 30px 26px;
    aspect-ratio: 4 / 3;
    border-radius: var(--radius-md);
  }

  .footer-row {
    flex-direction: column;
  }

  .footer-links {
    justify-content: flex-start;
    gap: 12px 18px;
  }
}

/* ============================================================
   Operational/formation/insights utility classes
   Used by OperationsController, FormationController,
   InsightsController, RfsApplicationController and admin views
   ============================================================ */

.summary-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 1px;
  margin: 0 0 36px;
  overflow: hidden;
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
}

.summary-grid > div {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 22px 24px;
  background: var(--surface);
}

.summary-grid small {
  font-size: 0.7rem;
  font-weight: 820;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
}

.summary-grid strong {
  font-size: 1rem;
  line-height: 1.35;
  color: var(--ink);
}

.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 18px;
  margin: 18px 0 36px;
}

.card-grid > .card {
  display: flex;
  flex-direction: column;
  min-height: 180px;
}

.card-grid > .card a {
  margin-top: auto;
}

.card-warning {
  border-color: #ecd5ad;
  background: #fff8ed;
  box-shadow: none;
}

.card-warning h2 {
  color: var(--accent-dark);
}

.eyebrow-warning {
  color: var(--accent-dark);
}

.eyebrow-warning::before {
  background: var(--accent-dark);
}

.status-confirmed {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  border-radius: 999px;
  background: #e6f4ec;
  color: #2c6b48;
  font-size: 0.7rem;
  font-weight: 820;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.status-pending {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  border-radius: 999px;
  background: #fff1d4;
  color: #8a6300;
  font-size: 0.7rem;
  font-weight: 820;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.status-completed {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  border-radius: 999px;
  background: #e6f4ec;
  color: #2c6b48;
  font-size: 0.7rem;
  font-weight: 820;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.status-blocked {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  border-radius: 999px;
  background: #fbe5e5;
  color: #963131;
  font-size: 0.7rem;
  font-weight: 820;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.muted {
  color: var(--muted);
}

.notice {
  padding: 14px 18px;
  border-radius: 10px;
  border: 1px solid var(--line);
  background: var(--surface);
  margin: 14px 0;
}

.notice-success {
  border-color: #c2e3d2;
  background: #f1faf4;
  color: #2c6b48;
}

.shell.narrow {
  max-width: 820px;
}

.eyebrow a {
  color: inherit;
  text-decoration: none;
}

.eyebrow a:hover {
  text-decoration: underline;
}

.byline {
  color: var(--muted);
  font-size: 0.85rem;
  margin: 0 0 12px;
}

.insight-feed {
  display: flex;
  flex-direction: column;
  gap: 22px;
  margin: 14px 0 32px;
}

.insight-row {
  padding: 22px 24px;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: var(--surface);
}

.insight-row h3 {
  margin: 6px 0 8px;
}

.insight-row small {
  color: var(--muted);
  font-size: 0.78rem;
  letter-spacing: 0.04em;
}

.stage-badge {
  display: inline-flex;
  padding: 4px 9px;
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 820;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  background: #eee8ec;
  color: var(--accent-dark);
}

.stage-badge.stage-applied { background: #e6f0fb; color: #1f4f86; }
.stage-badge.stage-review { background: #fff1d4; color: #8a6300; }
.stage-badge.stage-shortlisted { background: #e6f4ec; color: #2c6b48; }
.stage-badge.stage-interview { background: #f1e6fa; color: #5a2c87; }
.stage-badge.stage-offer { background: #d6f0e6; color: #1b5b3a; }
.stage-badge.stage-accepted { background: #c8e8d6; color: #145030; }
.stage-badge.stage-declined { background: #fbe5e5; color: #963131; }
.stage-badge.stage-withdrawn { background: #f4e6e6; color: #7a4040; }

.action-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.action-list li {
  padding: 10px 0;
  border-top: 1px solid var(--line);
}

.action-list li:first-child {
  border-top: 0;
}

.apply-form {
  display: grid;
  gap: 18px;
  max-width: 640px;
  margin: 18px 0;
}

.apply-form label {
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--ink);
}

.apply-form input,
.apply-form textarea,
.apply-form select {
  padding: 10px 12px;
  border: 1px solid var(--line-strong);
  border-radius: 10px;
  background: var(--surface);
  font: inherit;
  color: var(--ink);
}

.filter-form {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: end;
  margin: 14px 0 22px;
  padding: 14px 18px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--surface);
}

.filter-form label {
  display: flex;
  flex-direction: column;
  gap: 4px;
  font-size: 0.8rem;
  color: var(--muted);
}

.empty-state {
  padding: 40px 24px;
  text-align: center;
  border: 1px dashed var(--line-strong);
  border-radius: var(--radius-md);
  color: var(--muted);
}

.admin-stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 16px;
  margin: 18px 0 28px;
}

.admin-stats > div {
  padding: 18px 20px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--surface);
}

.admin-stats small {
  font-size: 0.7rem;
  font-weight: 820;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
}

.admin-stats strong {
  display: block;
  margin-top: 6px;
  font-size: 1.4rem;
  color: var(--ink);
}

.admin-table {
  width: 100%;
  border-collapse: collapse;
  margin: 14px 0 28px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 12px;
  overflow: hidden;
}

.admin-table th,
.admin-table td {
  padding: 12px 14px;
  text-align: left;
  border-bottom: 1px solid var(--line);
  font-size: 0.92rem;
}

.admin-table th {
  background: #fbf4ec;
  font-size: 0.78rem;
  font-weight: 820;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}

.admin-table tr:last-child td {
  border-bottom: 0;
}

.notice-success { color: #2c6b48; }

/* Reduce motion / responsive helpers */
@media (max-width: 760px) {
  .summary-grid { grid-template-columns: 1fr 1fr; }
  .card-grid { grid-template-columns: 1fr; }
}

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