:root {
  --green: #1f5c3d;
  --green-bright: #2c7a52;
  --orange: #d8542f;
  --gold: #e0a528;
  --ink: #13241c;
  --paper: #f4f6f3;
  --tile: #ffffff;
  --tile-line: rgba(31, 92, 61, 0.18);
  --muted: #6b7d72;
  --site-header-h: 84px;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html,
body {
  height: 100%;
}

body {
  font-family: "Segoe UI", -apple-system, system-ui, sans-serif;
  /* green glow centred under the globe, easing to a deep green at the corners */
  background:
    radial-gradient(120% 95% at 50% 56%,
      #2a6b4a 0%,
      #1f5238 26%,
      #163b29 52%,
      #102b1f 74%,
      #0c2118 100%);
  background-attachment: fixed;
  background-color: #0c2118;
  color: #e8efe9;
  overflow-x: hidden;
}

/* ---------- top bar ---------- */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 40;
  height: var(--site-header-h);
  padding: 0 34px;
  box-sizing: border-box;
  display: flex;
  align-items: center;
  background: #ffffff;
  border-bottom: 3px solid var(--orange);
  box-shadow: 0 2px 16px rgba(0, 0, 0, 0.08);
}

.site-header-inner {
  position: relative;
  display: flex;
  align-items: center;
  width: 100%;
  height: 100%;
}

.site-header-title {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  margin: 0;
  padding: 0 12px;
  font-size: clamp(16px, 2.4vw, 22px);
  font-weight: 700;
  letter-spacing: 0.08em;
  color: var(--orange);
  white-space: nowrap;
  pointer-events: none;
  z-index: 1;
}

.brand {
  display: flex;
  align-items: center;
  height: 100%;
  text-decoration: none;
  position: relative;
  z-index: 2;
  flex-shrink: 0;
}

.brand-logo {
  height: calc(var(--site-header-h) - 10px);
  max-height: 100%;
  width: auto;
  display: block;
  object-fit: contain;
  background: #fff;
  border-radius: 8px;
  padding: 2px 18px;
  border: 1px solid rgba(216, 84, 47, 0.2);
  border-bottom: 3px solid var(--orange);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.06);
}

/* ---------- hero / stage ---------- */
.stage {
  position: relative;
  width: 100%;
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  padding: calc(var(--site-header-h) + 12px) 16px 40px;
  perspective: 1400px;
}

/* Hero copy removed — hide if cached markup still serves it */
.stage .eyebrow,
.stage .title,
.stage h1,
.hero-tagline {
  display: none !important;
}

/* orbit system */
.orbit-system {
  position: relative;
  width: min(82vw, 560px);
  height: min(82vw, 560px);
  transform-style: preserve-3d;
  margin-top: 0;
}

.globe-wrap {
  position: absolute;
  inset: 0;
  margin: auto;
  width: 48%;
  height: 48%;
  z-index: 2;
  border-radius: 50%;
}

.globe-css {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background:
    radial-gradient(38% 38% at 32% 28%, #4fbf85 0%, #2c7a52 38%, #1f5c3d 68%, #123c28 100%);
  box-shadow:
    inset -22px -26px 60px rgba(0, 0, 0, 0.55),
    inset 14px 16px 40px rgba(120, 220, 160, 0.25),
    0 24px 70px -20px rgba(31, 92, 61, 0.6),
    0 0 0 1px rgba(255, 255, 255, 0.04);
  overflow: hidden;
}

.globe-css::before {
  content: "";
  position: absolute;
  inset: -2px;
  border-radius: 50%;
  background:
    repeating-conic-gradient(from 0deg, transparent 0 22deg, rgba(224, 165, 40, 0.1) 22deg 23deg),
    repeating-radial-gradient(circle at 50% 50%, transparent 0 16%, rgba(63, 174, 116, 0.16) 16% 16.6%);
  animation: globespin 18s linear infinite;
}

.globe-css::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: radial-gradient(60% 50% at 30% 25%, rgba(255, 255, 255, 0.35), transparent 55%);
}

@keyframes globespin {
  to {
    transform: rotate(360deg);
  }
}

#globe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 3;
  border-radius: 50%;
}

.orbit-ring {
  position: absolute;
  inset: 0;
  margin: auto;
  width: 84%;
  height: 84%;
  border-radius: 50%;
  border: 1px dashed rgba(31, 92, 61, 0.22);
  z-index: 0;
  animation: ringspin 60s linear infinite;
}

.orbit-ring.two {
  width: 100%;
  height: 100%;
  border-color: rgba(216, 84, 47, 0.14);
  animation-duration: 90s;
  animation-direction: reverse;
}

@keyframes ringspin {
  to {
    transform: rotate(360deg);
  }
}

.tiles {
  position: absolute;
  inset: 0;
  z-index: 6;
  animation: carousel 48s linear infinite;
  transform-style: preserve-3d;
}

.tiles:hover {
  animation-play-state: paused;
}

@keyframes carousel {
  to {
    transform: rotate(360deg);
  }
}

.tile {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 104px;
  height: 92px;
  margin: -46px 0 0 -52px;
  background: var(--tile);
  border: 1px solid var(--tile-line);
  border-radius: 16px;
  box-shadow: 0 8px 22px -12px rgba(19, 36, 28, 0.35);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 7px;
  cursor: pointer;
  text-decoration: none;
  color: var(--ink);
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s;
  animation: counterspin 48s linear infinite, bob var(--bob, 3.2s) ease-in-out infinite;
}

.tiles:hover .tile {
  animation-play-state: paused, paused;
}

@keyframes counterspin {
  to {
    transform: rotate(-360deg);
  }
}

@keyframes bob {
  0%,
  100% {
    translate: 0 0;
  }
  50% {
    translate: 0 -7px;
  }
}

.tile:hover,
.tile:focus-visible {
  transform: scale(1.12);
  border-color: var(--orange);
  box-shadow: 0 16px 30px -10px rgba(216, 84, 47, 0.45);
  z-index: 20;
  outline: none;
}

.tile .ic {
  font-size: 26px;
  line-height: 1;
  color: var(--gold);
}

.tile:hover .ic,
.tile:focus-visible .ic {
  color: var(--orange);
}

.tile .lbl {
  font-size: 11px;
  font-weight: 600;
  text-align: center;
  line-height: 1.2;
  padding: 0 6px;
  color: var(--green);
}

footer {
  text-align: center;
  padding: 30px 0 40px;
  color: #ffffff;
  font-size: 12px;
  position: relative;
  z-index: 5;
}

footer .fbrand {
  color: #ffffff;
  font-weight: 700;
}

footer .footer-sub {
  margin-top: 6px;
  color: #ffffff;
  opacity: 0.92;
}

@media (prefers-reduced-motion: reduce) {
  .tiles,
  .tile,
  .orbit-ring,
  .globe-css::before {
    animation: none !important;
  }
}

@media (max-width: 760px) {
  :root {
    --site-header-h: 72px;
  }

  .site-header {
    padding: 0 18px;
  }

  .site-header-title {
    font-size: 14px;
    letter-spacing: 0.04em;
    max-width: 42vw;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  .brand-logo {
    padding: 2px 14px;
  }

  .stage {
    padding: calc(var(--site-header-h) + 10px) 12px 32px;
  }
}

@media (max-width: 520px) {
  :root {
    --site-header-h: 64px;
  }

  .stage {
    padding: calc(var(--site-header-h) + 8px) 10px 28px;
  }

  .orbit-system {
    width: 94vw;
    height: 94vw;
    margin-top: 0;
  }

  .tile {
    width: 74px;
    height: 66px;
    margin: -33px 0 0 -37px;
    border-radius: 13px;
    gap: 4px;
  }

  .tile .ic {
    font-size: 19px;
  }

  .tile .lbl {
    font-size: 8.5px;
    padding: 0 3px;
  }

  .globe-wrap {
    width: 42%;
    height: 42%;
  }

  .site-header-title {
    font-size: 12px;
    letter-spacing: 0.02em;
    max-width: 36vw;
  }

  footer {
    font-size: 11px;
    padding: 20px 12px 32px;
  }
}

@media (max-width: 360px) {
  .orbit-system {
    width: 90vw;
    height: 90vw;
  }

  .tile {
    width: 62px;
    height: 58px;
    margin: -29px 0 0 -31px;
  }

  .tile .ic {
    font-size: 16px;
  }

  .tile .lbl {
    font-size: 7.5px;
    padding: 0 2px;
  }
}

body.staff-auth-open {
  overflow: hidden;
}

.staff-auth-modal {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.staff-auth-modal[hidden] {
  display: none !important;
}

.staff-auth-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(12, 33, 24, 0.72);
  backdrop-filter: blur(3px);
}

.staff-auth-dialog {
  position: relative;
  width: min(100%, 420px);
  padding: 28px 28px 24px;
  border-radius: 14px;
  background: #ffffff;
  color: var(--ink);
  box-shadow: 0 18px 50px rgba(0, 0, 0, 0.28);
}

.staff-auth-close {
  position: absolute;
  top: 10px;
  right: 12px;
  border: 0;
  background: transparent;
  color: #666;
  font-size: 28px;
  line-height: 1;
  cursor: pointer;
}

.staff-auth-title {
  margin: 0 0 8px;
  font-size: 24px;
  color: var(--green);
}

.staff-auth-subtitle {
  margin: 0 0 20px;
  color: #666;
  font-size: 14px;
}

.staff-auth-field {
  margin-bottom: 16px;
}

.staff-auth-field label {
  display: block;
  margin-bottom: 6px;
  font-size: 14px;
  font-weight: 600;
  color: var(--green);
}

.staff-auth-field input {
  width: 100%;
  padding: 10px 12px;
  border: 1px solid rgba(31, 92, 61, 0.25);
  border-radius: 8px;
  font-size: 15px;
}

.staff-auth-field input.is-invalid {
  border-color: #c0392b;
}

.staff-auth-error {
  margin: 6px 0 0;
  color: #c0392b;
  font-size: 13px;
}

.staff-auth-actions {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  margin-top: 22px;
}

.staff-auth-btn {
  border: 0;
  border-radius: 8px;
  padding: 10px 18px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
}

.staff-auth-btn-primary {
  background: var(--gold);
  color: #1a1a1a;
}

.staff-auth-btn-secondary {
  background: #eef1ef;
  color: var(--green);
}
