:root {
  --bg: #0a0a0c;
  --bg-elevated: #12141a;
  --navy: #2a3344;
  --red: #7a2e32;
  --red-soft: #9a3f44;
  --gold: #c4a574;
  --gold-bright: #d4b896;
  --text: #f5f5f5;
  --text-muted: rgba(245, 245, 245, 0.72);
  --border: rgba(245, 245, 245, 0.28);
  --font-display: "Bebas Neue", "Arial Narrow", Impact, sans-serif;
  --font-body: "Source Sans 3", "Segoe UI", sans-serif;
  --header-h: 5.25rem;
  --hero-bg-image: url("/images/backgrounds/bg-1.png");
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  height: 100%;
}

body {
  margin: 0;
  min-height: 100%;
  display: flex;
  flex-direction: column;
  font-family: var(--font-body);
  font-weight: 400;
  color: var(--text);
  background: var(--bg);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

body.nav-open {
  overflow: hidden;
}

img {
  display: block;
  max-width: 100%;
  height: auto;
}

a {
  color: inherit;
  text-decoration: none;
}

/* —— Header / nav —— */

.site-header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 100;
  height: var(--header-h);
  background: linear-gradient(
    to bottom,
    rgba(10, 10, 12, 0.92) 0%,
    rgba(10, 10, 12, 0.55) 70%,
    transparent 100%
  );
}

.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  height: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

.brand {
  display: inline-flex;
  align-items: center;
  flex-shrink: 0;
  transition: opacity 0.25s var(--ease-out);
}

.brand:hover {
  opacity: 0.85;
}

.brand__logo {
  width: 4.5rem;
  height: 4.5rem;
  object-fit: contain;
}

.brand__text {
  font-family: var(--font-display);
  font-size: 1.5rem;
  letter-spacing: 0.06em;
  line-height: 1;
}

.primary-nav {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 2.5rem;
  height: 2.5rem;
  padding: 0;
  border: 1px solid var(--border);
  background: transparent;
  cursor: pointer;
}

.nav-toggle__bar {
  display: block;
  width: 1.1rem;
  height: 2px;
  margin: 0 auto;
  background: var(--text);
  transition: transform 0.25s var(--ease-out), opacity 0.2s ease;
}

.nav-toggle[aria-expanded="true"] .nav-toggle__bar:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.nav-toggle[aria-expanded="true"] .nav-toggle__bar:nth-child(2) {
  opacity: 0;
}

.nav-toggle[aria-expanded="true"] .nav-toggle__bar:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* —— Buttons —— */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 2.5rem;
  padding: 0.55rem 1.15rem;
  font-family: var(--font-body);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  border: 1px solid transparent;
  transition:
    background-color 0.25s var(--ease-out),
    color 0.25s var(--ease-out),
    border-color 0.25s var(--ease-out),
    transform 0.25s var(--ease-out);
}

.btn:hover {
  transform: translateY(-1px);
}

.btn:active {
  transform: translateY(0);
}

.btn--ghost {
  color: var(--text);
  background: transparent;
  border-color: var(--border);
}

.btn--ghost:hover {
  border-color: rgba(245, 245, 245, 0.55);
  background: rgba(245, 245, 245, 0.06);
}

.btn--solid {
  color: #0a0a0c;
  background: var(--gold);
  border-color: var(--gold);
}

.btn--solid:hover {
  background: var(--gold-bright);
  border-color: var(--gold-bright);
}

/* —— Hero —— */

.hero {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
  min-height: 100dvh;
  padding: calc(var(--header-h) + 2rem) 1.5rem 3rem;
  overflow: hidden;
  text-align: center;
}

.hero__backdrop {
  position: absolute;
  inset: 0;
  z-index: 0;
  background-color: var(--bg);
  background-image:
    linear-gradient(
      180deg,
      rgba(10, 10, 12, 0.72) 0%,
      rgba(10, 10, 12, 0.45) 40%,
      rgba(10, 10, 12, 0.78) 100%
    ),
    radial-gradient(ellipse 70% 55% at 50% 40%, rgba(10, 10, 12, 0.15) 0%, rgba(10, 10, 12, 0.7) 100%),
    var(--hero-bg-image);
  background-size: cover;
  background-position: center;
}

.hero__backdrop::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(
    ellipse 65% 50% at 50% 45%,
    transparent 0%,
    rgba(10, 10, 12, 0.35) 55%,
    rgba(10, 10, 12, 0.88) 100%
  );
  pointer-events: none;
}

.hero__content {
  position: relative;
  z-index: 1;
  max-width: 40rem;
}

.hero__logo {
  width: clamp(7rem, 18vw, 10rem);
  height: auto;
  margin: 0 auto 1rem;
  opacity: 0;
  transform: translateY(1.25rem);
  animation: hero-rise 0.9s var(--ease-out) 0.05s forwards;
  filter: drop-shadow(0 8px 24px rgba(0, 0, 0, 0.45));
}

.hero__title {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(3.25rem, 10vw, 6.5rem);
  font-weight: 400;
  letter-spacing: 0.04em;
  line-height: 0.95;
  text-transform: uppercase;
  text-shadow: 0 2px 24px rgba(0, 0, 0, 0.55);
  opacity: 0;
  transform: translateY(1.25rem);
  animation: hero-rise 0.9s var(--ease-out) 0.2s forwards;
}

.hero__tagline {
  margin: 1.1rem 0 0;
  font-family: var(--font-body);
  font-size: clamp(0.85rem, 2vw, 1rem);
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gold);
  text-shadow: 0 2px 16px rgba(0, 0, 0, 0.5);
  opacity: 0;
  transform: translateY(1rem);
  animation: hero-rise 0.85s var(--ease-out) 0.4s forwards;
}

@keyframes hero-rise {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* —— About —— */

.about {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  min-height: calc(100vh - var(--header-h));
  padding: clamp(3rem, 8vw, 5.5rem) clamp(1.5rem, 6vw, 5rem);
  overflow: hidden;
  scroll-margin-top: var(--header-h);
  background-color: #08090c;
}

.about__media {
  position: absolute;
  inset: 0;
  z-index: 0;
  width: 100%;
  height: 100%;
  max-width: none;
  object-fit: cover;
  object-position: center center;
}

.about:not(.about--has-media) {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='240' height='240' viewBox='0 0 240 240'%3E%3Cg fill='none' stroke='%238a7358' stroke-opacity='0.18' stroke-width='0.7'%3E%3Cpath d='M-20 30c40-22 80-22 120 0s80 22 120 0M-20 55c40-22 80-22 120 0s80 22 120 0M-20 80c40-22 80-22 120 0s80 22 120 0M-20 105c40-22 80-22 120 0s80 22 120 0M-20 130c40-22 80-22 120 0s80 22 120 0M-20 155c40-22 80-22 120 0s80 22 120 0M-20 180c40-22 80-22 120 0s80 22 120 0M-20 205c40-22 80-22 120 0s80 22 120 0M-20 230c40-22 80-22 120 0s80 22 120 0'/%3E%3C/g%3E%3C/svg%3E");
  background-size: 240px 240px;
}

.about__scrim {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background: linear-gradient(
    90deg,
    rgba(8, 9, 12, 0.2) 0%,
    rgba(8, 9, 12, 0.28) 38%,
    rgba(8, 9, 12, 0.55) 62%,
    rgba(8, 9, 12, 0.72) 100%
  );
}

.about:not(.about--has-media) .about__scrim {
  background:
    radial-gradient(ellipse 55% 70% at 12% 45%, rgba(196, 165, 116, 0.07) 0%, transparent 60%),
    linear-gradient(180deg, rgba(8, 9, 12, 0.25) 0%, transparent 30%, transparent 70%, rgba(8, 9, 12, 0.4) 100%);
}

.about__inner {
  position: relative;
  z-index: 2;
  display: flex;
  justify-content: flex-end;
  align-items: center;
  width: 100%;
  max-width: 1400px;
  margin: 0 auto;
}

.about__copy {
  width: min(100%, 28rem);
  text-align: center;
}

.about__logo {
  display: block;
  width: clamp(7.5rem, 14vw, 10rem);
  height: auto;
  margin: 0 auto 1.35rem;
  filter: drop-shadow(0 8px 28px rgba(0, 0, 0, 0.55));
}

.about__eyebrow {
  margin: 0 0 1.15rem;
  font-family: var(--font-body);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: rgba(245, 245, 245, 0.72);
  text-shadow: 0 2px 16px rgba(0, 0, 0, 0.55);
}

.about__body {
  display: grid;
  gap: 1rem;
}

.about__body p {
  margin: 0;
  font-family: var(--font-body);
  font-size: clamp(0.92rem, 1.15vw, 1.02rem);
  font-weight: 400;
  line-height: 1.65;
  color: rgba(255, 255, 255, 0.92);
  text-shadow: 0 1px 14px rgba(0, 0, 0, 0.55);
}

/* Scroll reveal — text only */
.about[data-reveal] .about__logo,
.about[data-reveal] .about__eyebrow,
.about[data-reveal] .about__body {
  opacity: 0;
  transform: translateY(1.25rem);
  transition:
    opacity 0.85s var(--ease-out),
    transform 0.85s var(--ease-out);
}

.about[data-reveal] .about__eyebrow {
  transition-delay: 0.08s;
}

.about[data-reveal] .about__body {
  transition-delay: 0.16s;
}

.about[data-reveal].is-inview .about__logo,
.about[data-reveal].is-inview .about__eyebrow,
.about[data-reveal].is-inview .about__body {
  opacity: 1;
  transform: none;
}

/* —— Departments —— */

.departments {
  position: relative;
  display: flex;
  align-items: center;
  min-height: calc(100vh - var(--header-h));
  padding: clamp(2.5rem, 6vw, 4rem) clamp(1.25rem, 5vw, 4rem);
  scroll-margin-top: var(--header-h);
  overflow: hidden;
  background-color: #06070a;
  background-image:
    linear-gradient(105deg, rgba(6, 7, 10, 0.35) 0%, rgba(6, 7, 10, 0.78) 58%, rgba(6, 7, 10, 0.9) 100%),
    radial-gradient(ellipse 55% 50% at 28% 48%, rgba(196, 165, 116, 0.1) 0%, transparent 70%),
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='240' height='240' viewBox='0 0 240 240'%3E%3Cg fill='none' stroke='%238a7358' stroke-opacity='0.14' stroke-width='0.7'%3E%3Cpath d='M-20 30c40-22 80-22 120 0s80 22 120 0M-20 55c40-22 80-22 120 0s80 22 120 0M-20 80c40-22 80-22 120 0s80 22 120 0M-20 105c40-22 80-22 120 0s80 22 120 0M-20 130c40-22 80-22 120 0s80 22 120 0M-20 155c40-22 80-22 120 0s80 22 120 0M-20 180c40-22 80-22 120 0s80 22 120 0M-20 205c40-22 80-22 120 0s80 22 120 0M-20 230c40-22 80-22 120 0s80 22 120 0'/%3E%3C/g%3E%3C/svg%3E");
  background-size: auto, auto, 240px 240px;
  border-top: 1px solid rgba(245, 245, 245, 0.06);
}

.departments__layout {
  display: grid;
  grid-template-columns: minmax(20rem, 0.9fr) minmax(18rem, 1.1fr);
  gap: clamp(2.5rem, 6vw, 5rem);
  align-items: center;
  width: min(100%, 1180px);
  margin: 0 auto;
}

.departments__stage {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1.35rem;
  min-height: clamp(24rem, 62vh, 36rem);
  padding-right: 3.5rem;
  padding-bottom: 0.5rem;
}

.departments__tabs {
  position: relative;
  z-index: 1;
  width: min(100%, 16.5rem);
  height: clamp(22rem, 56vh, 31rem);
  margin-bottom: 0.5rem;
}

.departments__card {
  --stack-offset: 0;
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1.5rem;
  margin: 0;
  padding: 2rem 1.25rem;
  color: #fff;
  background: #12151c;
  border: 1px solid rgba(245, 245, 245, 0.18);
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.45);
  cursor: pointer;
  transform-origin: center center;
  transform:
    translateX(calc(var(--stack-offset) * 1.65rem))
    translateY(calc(var(--stack-offset) * 1.25rem))
    scale(calc(1 - var(--stack-offset) * 0.02));
  opacity: 1;
  z-index: calc(30 - var(--stack-offset));
  transition:
    color 0.4s var(--ease-out),
    background-color 0.4s var(--ease-out),
    border-color 0.4s var(--ease-out),
    box-shadow 0.4s var(--ease-out),
    transform 0.45s var(--ease-out);
}

.departments__card:nth-child(1) { border-color: rgba(245, 245, 245, 0.22); }
.departments__card:nth-child(2) { border-color: rgba(196, 165, 116, 0.45); }
.departments__card:nth-child(3) { border-color: rgba(245, 245, 245, 0.16); }
.departments__card:nth-child(4) { border-color: rgba(154, 63, 68, 0.45); }

.departments__card:hover:not(.is-active) {
  border-color: rgba(196, 165, 116, 0.55);
}

.departments__card:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 4px;
}

.departments__card:not(.is-active) .departments__mark,
.departments__card:not(.is-active) .departments__title {
  opacity: 0;
  pointer-events: none;
}

.departments__card.is-active {
  background: #171b24;
  border-color: rgba(245, 245, 245, 0.55);
  box-shadow:
    0 0 0 1px rgba(196, 165, 116, 0.25),
    0 26px 55px rgba(0, 0, 0, 0.55);
  transform: translateX(0) translateY(0) scale(1);
  z-index: 40;
}

.departments__card.is-active .departments__mark,
.departments__card.is-active .departments__title {
  opacity: 1;
}

.departments__mark {
  display: grid;
  place-items: center;
  width: clamp(4.75rem, 7vw, 6.25rem);
  height: clamp(4.75rem, 7vw, 6.25rem);
  color: currentColor;
  transition: opacity 0.3s var(--ease-out);
}

.departments__mark svg {
  width: 100%;
  height: 100%;
}

.departments__title {
  font-family: var(--font-display);
  font-size: clamp(1.55rem, 2.2vw, 2.05rem);
  letter-spacing: 0.14em;
  line-height: 1;
  text-align: center;
  transition: opacity 0.3s var(--ease-out);
}

.departments__controls {
  position: relative;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.85rem;
  margin-top: 0.25rem;
}

.departments__nav {
  display: inline-grid;
  place-items: center;
  width: 2.5rem;
  height: 2.5rem;
  margin: 0;
  padding: 0;
  font-family: var(--font-display);
  font-size: 1.75rem;
  line-height: 1;
  color: var(--text);
  background: rgba(18, 21, 28, 0.9);
  border: 1px solid rgba(245, 245, 245, 0.22);
  cursor: pointer;
  transition:
    color 0.25s var(--ease-out),
    border-color 0.25s var(--ease-out),
    background-color 0.25s var(--ease-out);
}

.departments__nav:hover {
  border-color: rgba(196, 165, 116, 0.65);
  color: var(--gold-bright);
}

.departments__nav:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 2px;
}

.departments__dots {
  display: flex;
  align-items: center;
  gap: 0.45rem;
}

.departments__dot {
  width: 0.55rem;
  height: 0.55rem;
  margin: 0;
  padding: 0;
  border: 1px solid rgba(245, 245, 245, 0.35);
  border-radius: 0;
  background: transparent;
  cursor: pointer;
  transition:
    background-color 0.25s var(--ease-out),
    border-color 0.25s var(--ease-out),
    transform 0.25s var(--ease-out);
}

.departments__dot:hover {
  border-color: var(--gold);
}

.departments__dot.is-active {
  background: var(--gold);
  border-color: var(--gold);
  transform: scale(1.15);
}

.departments__dot:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 2px;
}

.departments__panel {
  max-width: 28rem;
  padding: clamp(1.5rem, 3vw, 2rem) 0 clamp(1.5rem, 3vw, 2rem) clamp(1rem, 2vw, 1.5rem);
  border-left: 1px solid rgba(196, 165, 116, 0.35);
}

.departments__panel-eyebrow {
  margin: 0 0 0.85rem;
  font-family: var(--font-body);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--gold);
}

.departments__panel-text {
  margin: 0;
  font-family: var(--font-body);
  font-size: clamp(1rem, 1.35vw, 1.15rem);
  font-weight: 400;
  line-height: 1.75;
  color: rgba(255, 255, 255, 0.9);
  text-shadow: 0 1px 12px rgba(0, 0, 0, 0.35);
  transition:
    opacity 0.22s var(--ease-out),
    transform 0.22s var(--ease-out);
}

.departments__panel-text.is-swapping {
  opacity: 0;
  transform: translateY(0.4rem);
}

.departments[data-reveal] .departments__layout {
  opacity: 0;
  transform: translateY(1.25rem);
  transition:
    opacity 0.85s var(--ease-out),
    transform 0.85s var(--ease-out);
}

.departments[data-reveal].is-inview .departments__layout {
  opacity: 1;
  transform: none;
}

/* —— Join —— */

.join {
  position: relative;
  padding: 0;
  background: var(--bg);
  border-top: 1px solid rgba(245, 245, 245, 0.06);
}

.join__inner {
  width: 100%;
  margin: 0;
}

.join__panel {
  width: 100%;
  box-sizing: border-box;
  padding: 2.25rem 1.5rem 2.5rem;
  background: var(--bg-elevated);
  border-top: 1px solid rgba(196, 165, 116, 0.28);
  border-bottom: 1px solid rgba(196, 165, 116, 0.28);
  border-left: none;
  border-right: none;
  border-radius: 0;
  text-align: center;
}

.join__title {
  margin: 0 0 0.75rem;
  font-family: var(--font-display);
  font-size: clamp(2.25rem, 5vw, 3.25rem);
  font-weight: 400;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--gold);
  line-height: 1;
}

.join__body {
  margin: 0 auto 1.75rem;
  max-width: 32rem;
  font-size: 1.05rem;
  font-weight: 400;
  line-height: 1.6;
  color: var(--text-muted);
}

.join[data-reveal] .join__panel {
  opacity: 0;
  transform: translateY(1.25rem);
  transition:
    opacity 0.85s var(--ease-out),
    transform 0.85s var(--ease-out);
}

.join[data-reveal].is-inview .join__panel {
  opacity: 1;
  transform: none;
}

/* —— Screenshots —— */

.screenshots {
  position: relative;
  padding: 4.5rem 1.5rem 5rem;
  background:
    radial-gradient(ellipse 70% 45% at 50% 0%, rgba(42, 51, 68, 0.35) 0%, transparent 60%),
    var(--bg);
  border-top: 1px solid rgba(245, 245, 245, 0.06);
}

.screenshots__inner {
  max-width: 72rem;
  margin: 0 auto;
}

.screenshots__header {
  margin-bottom: 2rem;
}

.screenshots__title {
  margin: 0 0 0.4rem;
  font-family: var(--font-display);
  font-size: clamp(2.25rem, 5vw, 3.25rem);
  font-weight: 400;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--gold);
  line-height: 1;
}

.screenshots__subtitle {
  margin: 0;
  max-width: 36rem;
  font-size: 1rem;
  font-weight: 400;
  line-height: 1.55;
  color: var(--text-muted);
}

.screenshots__grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.75rem;
}

.screenshots__item {
  position: relative;
  margin: 0;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  border: 1px solid rgba(245, 245, 245, 0.12);
  background: var(--bg-elevated);
  transition:
    transform 0.35s var(--ease-out),
    border-color 0.35s var(--ease-out),
    box-shadow 0.35s var(--ease-out);
  z-index: 0;
}

.screenshots__image {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition:
    transform 0.4s var(--ease-out),
    filter 0.35s var(--ease-out);
}

.screenshots__item:hover {
  transform: scale(1.03);
  border-color: var(--gold);
  box-shadow: 0 0.5rem 1.75rem rgba(0, 0, 0, 0.45);
  z-index: 1;
}

.screenshots__item:hover .screenshots__image {
  transform: scale(1.04);
  filter: brightness(1.08);
}

.screenshots[data-reveal] .screenshots__header,
.screenshots[data-reveal] .screenshots__item {
  opacity: 0;
  transform: translateY(1.25rem);
  transition:
    opacity 0.85s var(--ease-out),
    transform 0.85s var(--ease-out);
}

.screenshots[data-reveal] .screenshots__item:nth-child(1) { transition-delay: 0.06s; }
.screenshots[data-reveal] .screenshots__item:nth-child(2) { transition-delay: 0.12s; }
.screenshots[data-reveal] .screenshots__item:nth-child(3) { transition-delay: 0.18s; }
.screenshots[data-reveal] .screenshots__item:nth-child(4) { transition-delay: 0.24s; }
.screenshots[data-reveal] .screenshots__item:nth-child(5) { transition-delay: 0.3s; }
.screenshots[data-reveal] .screenshots__item:nth-child(6) { transition-delay: 0.36s; }
.screenshots[data-reveal] .screenshots__item:nth-child(7) { transition-delay: 0.42s; }
.screenshots[data-reveal] .screenshots__item:nth-child(8) { transition-delay: 0.48s; }
.screenshots[data-reveal] .screenshots__item:nth-child(9) { transition-delay: 0.54s; }
.screenshots[data-reveal] .screenshots__item:nth-child(n + 10) { transition-delay: 0.6s; }

.screenshots[data-reveal].is-inview .screenshots__header,
.screenshots[data-reveal].is-inview .screenshots__item {
  opacity: 1;
  transform: none;
}

.screenshots[data-reveal].is-inview .screenshots__item:hover {
  transform: scale(1.03);
}

/* Swap hero photo: change --hero-bg-image in :root */

/* —— Mobile —— */

@media (max-width: 860px) {
  .about {
    align-items: center;
    justify-content: center;
  }

  .about__scrim {
    background: linear-gradient(
      180deg,
      rgba(8, 9, 12, 0.35) 0%,
      rgba(8, 9, 12, 0.45) 40%,
      rgba(8, 9, 12, 0.7) 100%
    );
  }

  .about__inner {
    justify-content: center;
  }

  .about__copy {
    width: 100%;
    max-width: 34rem;
  }

  .departments {
    min-height: auto;
    padding-block: 3rem;
  }

  .departments__layout {
    grid-template-columns: 1fr;
    gap: 1.75rem;
  }

  .departments__stage {
    min-height: 20rem;
    padding-right: 2.5rem;
    padding-bottom: 0;
  }

  .departments__tabs {
    width: min(100%, 14.5rem);
    height: 18.5rem;
  }

  .departments__card {
    transform:
      translateX(calc(var(--stack-offset) * 1.25rem))
      translateY(calc(var(--stack-offset) * 1rem))
      scale(calc(1 - var(--stack-offset) * 0.02));
  }

  .departments__card.is-active {
    transform: translateX(0) translateY(0) scale(1);
  }

  .departments__panel {
    max-width: none;
    padding: 1.25rem 0 0;
    border-left: 0;
    border-top: 1px solid rgba(196, 165, 116, 0.35);
  }

  .screenshots__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 720px) {
  .nav-toggle {
    display: inline-flex;
  }

  .primary-nav {
    position: fixed;
    inset: var(--header-h) 0 auto;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 0.75rem;
    padding: 1.25rem 1.5rem 1.5rem;
    background: rgba(10, 10, 12, 0.96);
    border-bottom: 1px solid rgba(245, 245, 245, 0.08);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-0.5rem);
    transition:
      opacity 0.25s var(--ease-out),
      transform 0.25s var(--ease-out),
      visibility 0.25s;
  }

  .primary-nav.is-open {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
  }

  .primary-nav .btn {
    width: 100%;
  }

  .hero {
    padding-inline: 1.25rem;
  }

  .about {
    padding-block: 3.5rem 3rem;
  }

  .departments {
    padding-block: 2.75rem;
  }

  .departments__tabs {
    height: 16.5rem;
  }

  .departments__mark {
    width: 3.75rem;
    height: 3.75rem;
  }

  .screenshots {
    padding: 3.25rem 1.25rem 3.75rem;
  }

  .screenshots__header {
    margin-bottom: 1.5rem;
  }

  .screenshots__grid {
    grid-template-columns: 1fr;
    gap: 0.65rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  .hero__logo,
  .hero__title,
  .hero__tagline {
    opacity: 1;
    transform: none;
    animation: none;
  }

  .about[data-reveal] .about__logo,
  .about[data-reveal] .about__eyebrow,
  .about[data-reveal] .about__body {
    opacity: 1;
    transform: none;
    transition: none;
  }

  .departments[data-reveal] .departments__layout {
    opacity: 1;
    transform: none;
    transition: none;
  }

  .screenshots[data-reveal] .screenshots__header,
  .screenshots[data-reveal] .screenshots__item {
    opacity: 1;
    transform: none;
    transition: none;
  }

  .screenshots__item,
  .screenshots__image {
    transition: none;
  }

  .screenshots__item:hover {
    transform: none;
  }

  .screenshots__item:hover .screenshots__image {
    transform: none;
    filter: none;
  }

  .departments__panel-text,
  .departments__card {
    transition: none;
  }

  .departments__card,
  .departments__card:hover,
  .departments__card.is-active {
    transform: none;
  }

  .departments__card:not(.is-active) .departments__mark,
  .departments__card:not(.is-active) .departments__title {
    opacity: 0;
  }

  .btn,
  .brand,
  .nav-toggle__bar,
  .primary-nav {
    transition: none;
  }
}

/* —— Site footer —— */

.site-footer {
  margin-top: auto;
  border-top: 1px solid var(--border);
  background:
    linear-gradient(180deg, rgba(18, 20, 26, 0.55) 0%, rgba(10, 10, 12, 1) 40%),
    var(--bg);
}

.site-footer__inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 3.5rem 1.5rem 1.75rem;
}

.site-footer__top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 3rem 4rem;
}

.site-footer__brand {
  flex: 0 1 22rem;
  max-width: 22rem;
}

.site-footer__brand-link {
  display: inline-flex;
  align-items: center;
  gap: 0.85rem;
  margin-bottom: 1rem;
  transition: opacity 0.25s var(--ease-out);
}

.site-footer__brand-link:hover {
  opacity: 0.85;
}

.site-footer__logo {
  width: 3.25rem;
  height: 3.25rem;
  object-fit: contain;
  flex-shrink: 0;
}

.site-footer__name {
  font-family: var(--font-display);
  font-size: clamp(1.85rem, 3vw, 2.35rem);
  letter-spacing: 0.04em;
  line-height: 1;
}

.site-footer__tagline {
  margin: 0;
  font-size: 0.95rem;
  line-height: 1.55;
  color: var(--text-muted);
}

.site-footer__columns {
  display: flex;
  flex-wrap: wrap;
  gap: 2.5rem 3.5rem;
  justify-content: flex-end;
}

.site-footer__column {
  min-width: 7rem;
}

.site-footer__heading {
  margin: 0 0 0.85rem;
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 400;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text);
}

.site-footer__list {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 0.55rem;
}

.site-footer__list a {
  font-size: 0.95rem;
  color: var(--text-muted);
  transition: color 0.2s var(--ease-out);
}

.site-footer__list a:hover,
.site-footer__list a:focus-visible {
  color: var(--gold-bright);
}

.site-footer__bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-top: 3rem;
  padding-top: 1.35rem;
  border-top: 1px solid rgba(245, 245, 245, 0.12);
}

.site-footer__copyright {
  margin: 0;
  font-size: 0.85rem;
  color: var(--text-muted);
}

.site-footer__admin {
  font-size: 0.85rem;
  color: var(--text-muted);
  letter-spacing: 0.04em;
  transition: color 0.2s var(--ease-out);
}

.site-footer__admin:hover,
.site-footer__admin:focus-visible {
  color: var(--gold-bright);
}

@media (max-width: 800px) {
  .site-footer__inner {
    padding: 2.75rem 1.25rem 1.5rem;
  }

  .site-footer__top {
    flex-direction: column;
    gap: 2.25rem;
  }

  .site-footer__brand {
    max-width: none;
    flex-basis: auto;
  }

  .site-footer__columns {
    justify-content: flex-start;
    gap: 2rem 2.75rem;
  }
}

@media (max-width: 480px) {
  .site-footer__columns {
    flex-direction: column;
    gap: 1.75rem;
  }

  .site-footer__bottom {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.65rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  .site-footer__brand-link,
  .site-footer__list a,
  .site-footer__admin {
    transition: none;
  }
}

/* ——— News ——— */
.news-page {
  padding: calc(var(--header-h) + 2.5rem) 0 4.5rem;
  background:
    radial-gradient(ellipse 70% 50% at 50% -10%, rgba(196, 165, 116, 0.08), transparent 55%),
    var(--bg);
}

.news-page__inner {
  width: min(1120px, calc(100% - 2.5rem));
  margin: 0 auto;
}

.news-page__inner--article {
  width: min(760px, calc(100% - 2.5rem));
}

.news-page__header {
  margin-bottom: 2.25rem;
}

.news-page__title {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(2.75rem, 6vw, 4.25rem);
  letter-spacing: 0.06em;
  line-height: 0.95;
  color: var(--text);
}

.news-page__lead,
.news-page__empty {
  margin: 0.75rem 0 0;
  color: var(--text-muted);
  font-size: 1.05rem;
  max-width: 36rem;
}

.news-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.35rem;
}

.news-card {
  display: flex;
  flex-direction: column;
  background: #0f1115;
  overflow: hidden;
  min-height: 100%;
}

.news-card__media {
  position: relative;
  display: block;
  background: #000;
  overflow: hidden;
}

.news-card__image {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  aspect-ratio: 16 / 10;
  transition: transform 0.45s var(--ease-out);
}

.news-card:hover .news-card__image {
  transform: scale(1.03);
}

.news-card__logo {
  position: absolute;
  top: 0.85rem;
  left: 0.85rem;
  width: 3.25rem;
  height: 3.25rem;
  object-fit: contain;
  pointer-events: none;
  z-index: 1;
  filter: drop-shadow(0 2px 8px rgba(0, 0, 0, 0.55));
}

.news-card__logo--text {
  display: inline-block;
  width: auto;
  height: auto;
  max-width: 8rem;
  padding: 0.35rem 0.5rem;
  background: rgba(0, 0, 0, 0.55);
  color: #fff;
  font-family: var(--font-display);
  font-size: 0.85rem;
  letter-spacing: 0.06em;
  line-height: 1;
}

.news-card__body {
  display: flex;
  flex-direction: column;
  padding: 1.25rem 1.3rem 1.15rem;
  gap: 0.8rem;
  flex: 1;
}

.news-card__title {
  margin: 0;
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 1.28rem;
  letter-spacing: 0.02em;
  line-height: 1.2;
  text-transform: uppercase;
}

.news-card__title a {
  color: #fff;
  text-decoration: none;
}

.news-card__title a:hover,
.news-card__title a:focus-visible {
  color: #ffd666;
}

.news-card__excerpt {
  margin: 0;
  color: rgba(255, 255, 255, 0.9);
  font-size: 0.95rem;
  line-height: 1.55;
  flex: 1;
  display: -webkit-box;
  -webkit-line-clamp: 4;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.news-card__footer {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1rem;
  margin-top: auto;
  padding-top: 0.35rem;
}

.news-card__more {
  color: #f0c14b;
  text-decoration: none;
  font-weight: 600;
  font-size: 0.95rem;
  white-space: nowrap;
}

.news-card__more:hover,
.news-card__more:focus-visible {
  color: #ffd666;
}

.news-card__meta {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 0.15rem;
  text-align: right;
  line-height: 1.25;
}

.news-card__meta-type {
  color: rgba(245, 245, 245, 0.42);
  font-size: 0.72rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.news-card__meta-date {
  color: rgba(245, 245, 245, 0.78);
  font-size: 0.78rem;
  letter-spacing: 0.03em;
}

.news-article {
  padding-top: 0;
  background: #0a0a0c;
}

.news-article__hero {
  position: relative;
  width: 100%;
  height: calc(var(--header-h) + clamp(170px, 24vw, 300px));
  overflow: hidden;
}

.news-article__banner {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.news-article__hero-scrim {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to top,
    rgba(10, 10, 12, 0.82) 0%,
    rgba(10, 10, 12, 0.28) 42%,
    rgba(10, 10, 12, 0.12) 100%
  );
}

.news-article__hero-copy {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: calc(var(--header-h) + 0.75rem) 1.5rem 1.25rem;
}

.news-article__title {
  margin: 0;
  max-width: 18ch;
  font-family: var(--font-body);
  font-weight: 700;
  font-size: clamp(2.1rem, 5vw, 3.4rem);
  letter-spacing: 0.04em;
  line-height: 0.98;
  text-transform: uppercase;
  color: #fff;
  text-shadow: 0 2px 22px rgba(0, 0, 0, 0.55);
}

.news-article__date {
  margin: 0.55rem 0 0;
  color: rgba(255, 255, 255, 0.88);
  font-size: clamp(0.85rem, 1.4vw, 1rem);
  font-weight: 500;
  letter-spacing: 0.02em;
}

.news-article__inner {
  width: min(860px, calc(100% - 2.75rem));
  margin: 0 auto;
  padding: 2.75rem 0 5rem;
}

.news-article__content {
  color: rgba(255, 255, 255, 0.92);
  font-size: 1.08rem;
  line-height: 1.75;
}

.news-article__content > *:first-child {
  margin-top: 0;
}

.news-article__content p {
  margin: 0 0 1.15rem;
}

.news-article__content strong,
.news-article__content b {
  color: #fff;
  font-weight: 700;
}

.news-article__content h1,
.news-article__content h2,
.news-article__content h3 {
  font-family: var(--font-body);
  font-weight: 700;
  letter-spacing: 0.04em;
  line-height: 1.05;
  text-transform: uppercase;
  color: #fff;
  margin: 2.75rem 0 1rem;
}

.news-article__content h1 { font-size: clamp(1.9rem, 4vw, 2.6rem); }
.news-article__content h2 { font-size: clamp(1.65rem, 3.2vw, 2.15rem); }
.news-article__content h3 { font-size: 1.35rem; }

.news-article__content a {
  color: #f0c14b;
  font-weight: 600;
}

.news-article__content a:hover,
.news-article__content a:focus-visible {
  color: #ffd666;
}

.news-article__content hr {
  display: block;
  width: 100%;
  height: 0;
  margin: 2rem 0;
  border: 0;
  border-top: 2px solid rgba(245, 245, 245, 0.28);
}

.news-article__content img {
  display: block;
  max-width: 100%;
  height: auto;
  margin: 1.75rem auto;
}

.news-article__embed {
  position: relative;
  width: 100%;
  margin: 2rem 0;
  aspect-ratio: 16 / 9;
  background: #000;
  overflow: hidden;
}

.news-article__embed iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

.news-article__content blockquote {
  margin: 1.5rem 0;
  padding: 0.35rem 0 0.35rem 1rem;
  border-left: 3px solid #f0c14b;
  color: rgba(255, 255, 255, 0.72);
}

.news-article__content pre {
  overflow-x: auto;
  padding: 1rem;
  background: #12141a;
  border: 1px solid rgba(245, 245, 245, 0.16);
  font-size: 0.9rem;
}

.news-article__content code {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 0.9em;
}

.news-article__content ul,
.news-article__content ol {
  margin: 0 0 1.25rem;
  padding-left: 1.35rem;
}

.news-article__content li {
  margin: 0.35rem 0;
}

.news-article__content table {
  width: 100%;
  border-collapse: collapse;
  margin: 1.5rem 0;
}

.news-article__content th,
.news-article__content td {
  border: 1px solid rgba(245, 245, 245, 0.18);
  padding: 0.55rem 0.7rem;
  text-align: left;
}

.news-article__back {
  margin: 3rem 0 0;
}

@media (max-width: 900px) {
  .news-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 640px) {
  .news-page {
    padding-top: calc(var(--header-h) + 1.75rem);
  }

  .news-grid {
    grid-template-columns: 1fr;
  }

  .news-card__footer {
    flex-wrap: wrap;
  }
}

@media (prefers-reduced-motion: reduce) {
  .news-card__image {
    transition: none;
  }

  .news-card:hover .news-card__image {
    transform: none;
  }

  .news-card__title a,
  .news-card__more {
    transition: none;
  }
}

/* —— LOI banner (home) —— */

.loi-banner {
  position: absolute;
  top: var(--header-h);
  left: 0;
  right: 0;
  z-index: 2;
  display: block;
  padding: 0.7rem 1.5rem;
  text-align: center;
  font-family: var(--font-body);
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text);
  background: linear-gradient(
    90deg,
    rgba(122, 46, 50, 0.92) 0%,
    rgba(42, 51, 68, 0.92) 50%,
    rgba(122, 46, 50, 0.92) 100%
  );
  border-bottom: 1px solid rgba(196, 165, 116, 0.35);
  transition: background 0.25s var(--ease-out), color 0.25s var(--ease-out);
}

.loi-banner:hover,
.loi-banner:focus-visible {
  color: var(--gold-bright);
  outline: none;
}

.hero:has(.loi-banner) {
  padding-top: calc(var(--header-h) + 3.25rem);
}

/* —— LOI form page —— */

.loi-page {
  padding: calc(var(--header-h) + 3rem) 1.5rem 4rem;
  background:
    radial-gradient(ellipse 80% 50% at 50% 0%, rgba(42, 51, 68, 0.45) 0%, transparent 60%),
    var(--bg);
}

.loi-page__inner {
  max-width: 40rem;
  margin: 0 auto;
}

.loi-page__header {
  margin-bottom: 2rem;
}

.loi-page__title {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(2.5rem, 7vw, 3.75rem);
  font-weight: 400;
  letter-spacing: 0.04em;
  line-height: 0.95;
  text-transform: uppercase;
}

.loi-page__lead,
.loi-page__done {
  margin: 0.85rem 0 0;
  color: var(--text-muted);
  font-size: 1.05rem;
}

.loi-page__error {
  margin: 0 0 1.25rem;
  padding: 0.85rem 1rem;
  border: 1px solid rgba(154, 63, 68, 0.55);
  background: rgba(122, 46, 50, 0.22);
  color: #f0d0d2;
}

.loi-page__home,
.error-page__home {
  color: var(--gold-bright);
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  font-size: 0.9rem;
  border-bottom: 1px solid transparent;
  transition: border-color 0.2s var(--ease-out);
}

.loi-page__home:hover,
.loi-page__home:focus-visible,
.error-page__home:hover,
.error-page__home:focus-visible {
  border-bottom-color: var(--gold-bright);
  outline: none;
}

.loi-form {
  display: grid;
  gap: 1.15rem;
}

.loi-form__honeypot {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.loi-field {
  display: grid;
  gap: 0.4rem;
}

.loi-field label {
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.loi-field__req {
  color: var(--gold-bright);
}

.loi-field__hint {
  margin: 0;
  font-size: 0.85rem;
  color: var(--text-muted);
  text-transform: none;
  letter-spacing: 0;
  font-weight: 400;
}

.loi-field input[type="text"],
.loi-field input[type="email"],
.loi-field select,
.loi-field textarea {
  width: 100%;
  padding: 0.75rem 0.9rem;
  border: 1px solid var(--border);
  border-radius: 0;
  background: rgba(18, 20, 26, 0.85);
  color: var(--text);
  font: inherit;
}

.loi-field select {
  appearance: none;
  background-image: linear-gradient(45deg, transparent 50%, var(--text-muted) 50%),
    linear-gradient(135deg, var(--text-muted) 50%, transparent 50%);
  background-position: calc(100% - 1.1rem) 55%, calc(100% - 0.75rem) 55%;
  background-size: 0.35rem 0.35rem, 0.35rem 0.35rem;
  background-repeat: no-repeat;
  padding-right: 2rem;
}

.loi-field textarea {
  min-height: 7rem;
  resize: vertical;
}

.loi-sign {
  display: grid;
  gap: 0.85rem;
  padding-top: 0.5rem;
  border-top: 1px solid var(--border);
}

.loi-check {
  display: flex;
  gap: 0.65rem;
  align-items: flex-start;
  font-size: 0.95rem;
  color: var(--text-muted);
  cursor: pointer;
}

.loi-check input {
  margin-top: 0.25rem;
  flex-shrink: 0;
}

.loi-form .btn {
  justify-self: start;
  margin-top: 0.35rem;
}

/* —— 404 —— */

.error-page {
  min-height: 70vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: calc(var(--header-h) + 3rem) 1.5rem 4rem;
  text-align: center;
  background:
    radial-gradient(ellipse 70% 45% at 50% 30%, rgba(42, 51, 68, 0.4) 0%, transparent 65%),
    var(--bg);
}

.error-page__inner {
  max-width: 28rem;
}

.error-page__code {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(4rem, 14vw, 7rem);
  letter-spacing: 0.06em;
  line-height: 0.9;
  color: var(--gold);
}

.error-page__title {
  margin: 0.5rem 0 0;
  font-family: var(--font-display);
  font-size: clamp(1.75rem, 5vw, 2.5rem);
  font-weight: 400;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.error-page__body {
  margin: 1rem 0 1.75rem;
  color: var(--text-muted);
}

@media (max-width: 640px) {
  .loi-page {
    padding-top: calc(var(--header-h) + 2rem);
  }

  .loi-banner {
    font-size: 0.72rem;
    letter-spacing: 0.08em;
    padding: 0.65rem 1rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  .loi-banner {
    transition: none;
  }
}
