:root {
  --focus-color: #ffb300;
}

html { scroll-behavior: smooth; }
body { line-height: 1.5; }

.skip-link {
  position: fixed;
  z-index: 12000;
  top: 12px;
  right: 12px;
  padding: 12px 18px;
  color: #fff;
  background: #103628;
  border: 3px solid var(--focus-color);
  border-radius: 6px;
  transform: translateY(-180%);
}
.skip-link:focus { transform: translateY(0); }

:focus-visible {
  outline: 3px solid var(--focus-color) !important;
  outline-offset: 4px !important;
}

.sr-only {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  white-space: nowrap !important;
  border: 0 !important;
}

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

.menu-toggle {
  display: none;
  min-width: 46px;
  min-height: 46px;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(23, 74, 53, .35);
  border-radius: 6px;
  color: #103628;
  background: #fffdf8;
  cursor: pointer;
}
.menu-toggle-lines,
.menu-toggle-lines::before,
.menu-toggle-lines::after {
  display: block;
  width: 23px;
  height: 2px;
  background: currentColor;
}
.menu-toggle-lines { position: relative; }
.menu-toggle-lines::before,
.menu-toggle-lines::after { content: ""; position: absolute; right: 0; }
.menu-toggle-lines::before { top: -7px; }
.menu-toggle-lines::after { top: 7px; }

.video-control {
  position: absolute;
  z-index: 3;
  left: 28px;
  bottom: 28px;
  min-width: 48px;
  min-height: 48px;
  padding: 10px 16px;
  border: 1px solid rgba(255, 255, 255, .7);
  border-radius: 6px;
  color: #fff;
  background: rgba(16, 54, 40, .86);
  cursor: pointer;
  font-weight: 700;
}

.a11y-tools {
  position: fixed;
  z-index: 9000;
  left: 18px;
  bottom: 18px;
  direction: rtl;
}
.a11y-toggle {
  width: 54px;
  height: 54px;
  padding: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 2px solid #b5844e;
  border-radius: 50%;
  color: #fff;
  background: #174a35;
  box-shadow: 0 8px 28px rgba(0, 0, 0, .22);
  cursor: pointer;
  font-family: Arial, sans-serif;
  font-size: 30px;
  font-weight: 700;
  line-height: 1;
}
.a11y-toggle > span {
  display: inline-grid;
  place-items: center;
  width: 36px;
  height: 36px;
  overflow: visible;
  color: inherit;
  background: transparent;
  border: 0;
  border-radius: 0;
  font-size: 0;
  line-height: 1;
}
.a11y-toggle > span::before {
  content: "\267F\FE0E";
  color: inherit;
  background: transparent;
  font-family: "Segoe UI Symbol", "Arial Unicode MS", sans-serif;
  font-size: 31px;
  font-style: normal;
  font-weight: 400;
  line-height: 1;
}
.a11y-panel {
  position: absolute;
  left: 0;
  bottom: 58px;
  width: min(300px, calc(100vw - 36px));
  max-height: min(650px, calc(100vh - 100px));
  overflow-y: auto;
  padding: 18px;
  border: 2px solid #174a35;
  border-radius: 8px;
  color: #16221b;
  background: #fffdf8;
  box-shadow: 0 14px 42px rgba(0, 0, 0, .24);
}
.a11y-panel[hidden] { display: none; }
.a11y-panel strong { display: block; margin-bottom: 12px; font-size: 18px; }
.a11y-option {
  display: block;
  width: 100%;
  min-height: 44px;
  margin-top: 8px;
  padding: 9px 12px;
  border: 1px solid #174a35;
  border-radius: 5px;
  color: #174a35;
  background: #fff;
  cursor: pointer;
  text-align: right;
}
.a11y-option[aria-pressed="true"] { color: #fff; background: #174a35; }
.a11y-statement-link { display: inline-block; margin-top: 14px; color: #174a35; text-decoration: underline; }

body.a11y-grayscale { filter: grayscale(1); }
body.a11y-inverted { filter: invert(1) hue-rotate(180deg); background: #fff; }
body.a11y-high-contrast { color: #000; background: #fff; }
body.a11y-high-contrast .topbar,
body.a11y-high-contrast .capabilities,
body.a11y-high-contrast .careers { color: #000; background: #fff; }
body.a11y-high-contrast a { text-decoration: underline; text-decoration-thickness: 2px; }
body.a11y-high-contrast .hero::before,
body.a11y-high-contrast .career-hero::after { background: rgba(0, 0, 0, .78); }
body.a11y-light-background { color: #000; background: #fff; }
body.a11y-light-background .topbar,
body.a11y-light-background .capabilities,
body.a11y-light-background .careers,
body.a11y-light-background .statement,
body.a11y-light-background .page-hero,
body.a11y-light-background .hero,
body.a11y-light-background .career-hero { color: #000; background: #fff; }
body.a11y-light-background .hero-video { display: none; }
body.a11y-light-background .hero::before,
body.a11y-light-background .hero::after,
body.a11y-light-background .career-hero::before,
body.a11y-light-background .career-hero::after { display: none; }
body.a11y-light-background .hero .eyebrow,
body.a11y-light-background .hero .trust-line,
body.a11y-light-background .hero .trust-line strong,
body.a11y-light-background .career-hero .eyebrow,
body.a11y-light-background .career-hero .hero-copy,
body.a11y-light-background .page-hero .intro { color: #000; text-shadow: none; }
body.a11y-light-background .video-control { color: #fff; background: #103628; }
body.a11y-underline-links a { text-decoration: underline !important; text-decoration-thickness: 2px !important; text-underline-offset: 3px; }
body.a11y-readable-font,
body.a11y-readable-font * { font-family: Arial, sans-serif !important; letter-spacing: normal !important; }
body.a11y-stop-motion *,
body.a11y-stop-motion *::before,
body.a11y-stop-motion *::after {
  animation-duration: .001ms !important;
  animation-iteration-count: 1 !important;
  transition-duration: .001ms !important;
  scroll-behavior: auto !important;
}

@media (max-width: 980px) {
  .menu-toggle { display: inline-flex; justify-self: end; }
  .topbar { height: auto !important; min-height: 88px; }
  .topbar-inner { position: relative; }
  .topbar nav {
    display: none;
    position: absolute;
    z-index: 20;
    top: calc(100% + 18px);
    right: 0;
    left: 0;
    padding: 14px;
    border: 1px solid rgba(23, 74, 53, .22);
    color: #16221b;
    background: #fffdf8;
    box-shadow: 0 16px 36px rgba(0, 0, 0, .18);
  }
  .topbar nav.is-open { display: flex; flex-direction: column; align-items: stretch; gap: 4px; }
  .topbar nav a { min-height: 46px; display: flex; align-items: center; padding: 8px 12px; }
  .topbar nav a.active::after { bottom: 4px; width: 28px; right: 12px; }
}

@media (max-width: 620px) {
  .video-control { left: 18px; bottom: 18px; }
  .a11y-tools { left: 12px; bottom: 12px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .001ms !important;
  }
}
