:root {
  color-scheme: dark;
}

body {
  background: #080909;
  color: #f5f5f4;
}

.public-shell {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.public-header {
  position: sticky;
  top: 0;
  z-index: 50;
  border-bottom: 1px solid rgba(255,255,255,.08);
  background: rgba(8,9,9,.92);
  backdrop-filter: blur(18px);
  transition: background .2s ease, border-color .2s ease, box-shadow .2s ease;
}

.public-home .public-header {
  position: absolute;
  inset: 0 0 auto;
  background: linear-gradient(180deg, rgba(0,0,0,.66), transparent);
  border-color: transparent;
  backdrop-filter: none;
}

.public-home .public-header.scrolled {
  position: fixed;
  background: rgba(8,9,9,.9);
  border-color: rgba(255,255,255,.09);
  backdrop-filter: blur(18px);
  box-shadow: 0 14px 42px rgba(0,0,0,.24);
}

.header-inner {
  min-height: 82px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
}

.site-identity {
  display: inline-flex;
  align-items: center;
  gap: .85rem;
  min-width: 250px;
  color: white;
  text-decoration: none;
}

.site-identity > span:last-child {
  display: grid;
  gap: .1rem;
}

.site-identity strong {
  font-size: 1rem;
  letter-spacing: -.02em;
}

.site-identity small {
  color: rgba(255,255,255,.52);
  font-size: .68rem;
  letter-spacing: .05em;
  text-transform: uppercase;
}

.site-logo-mark {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(255,255,255,.28);
  color: white;
  font-size: .78rem;
  font-weight: 900;
  letter-spacing: -.04em;
}

.site-logo-mark span {
  color: var(--public-accent);
}

.site-logo-image {
  width: 44px;
  height: 44px;
  object-fit: contain;
}

.public-nav {
  display: flex;
  align-items: center;
  gap: .2rem;
}

.nav-item {
  position: relative;
}

.nav-item > a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: .75rem .9rem;
  color: rgba(255,255,255,.68);
  text-decoration: none;
  font-size: .84rem;
  font-weight: 700;
  transition: color .18s ease, background .18s ease;
}

.nav-item > a:hover,
.nav-item > a.active {
  color: white;
  background: rgba(255,255,255,.07);
}

.nav-dropdown {
  display: none;
  position: absolute;
  top: calc(100% + 4px);
  left: 0;
  min-width: 225px;
  padding: .5rem;
  border: 1px solid rgba(255,255,255,.1);
  background: rgba(12,13,14,.98);
  box-shadow: 0 24px 60px rgba(0,0,0,.44);
}

.has-children:hover > .nav-dropdown {
  display: grid;
}

.nav-dropdown .nav-item > a {
  width: 100%;
}

.nav-status {
  display: inline-flex;
  align-items: center;
  gap: .55rem;
  min-height: 38px;
  margin-left: .65rem;
  padding: .55rem .85rem;
  border: 1px solid rgba(255,255,255,.16);
  color: rgba(255,255,255,.82);
  text-decoration: none;
  font-size: .72rem;
  font-weight: 800;
  letter-spacing: .06em;
  text-transform: uppercase;
}

.nav-status i,
.status-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #5fc591;
  box-shadow: 0 0 0 5px rgba(95,197,145,.12);
}

.mobile-nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  padding: 11px;
  border: 1px solid rgba(255,255,255,.16);
  background: rgba(255,255,255,.04);
}

.mobile-nav-toggle span {
  display: block;
  height: 1px;
  margin: 5px 0;
  background: white;
}

.cinematic-hero {
  --hero-overlay: .68;
  position: relative;
  min-height: 100svh;
  display: flex;
  align-items: flex-end;
  overflow: hidden;
  isolation: isolate;
  background: #080909;
}

.cinematic-backdrop {
  position: absolute;
  z-index: -4;
  inset: 0;
  background-image:
    var(--hero-image, linear-gradient(135deg, #101820 0 30%, #2e3942 30% 46%, #12171c 46% 67%, #050607 67%));
  background-size: cover;
  background-position: center;
  transform: scale(1.015);
}

.cinematic-hero::before {
  content: "";
  position: absolute;
  z-index: -3;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(0,0,0,var(--hero-overlay)) 0%, rgba(0,0,0,.36) 55%, rgba(0,0,0,.72) 100%),
    linear-gradient(180deg, rgba(0,0,0,.12) 0%, rgba(0,0,0,.2) 56%, rgba(0,0,0,.92) 100%);
}

.cinematic-hero::after {
  content: "";
  position: absolute;
  z-index: -2;
  inset: -12%;
  opacity: .28;
  background:
    radial-gradient(circle at 74% 25%, color-mix(in srgb, var(--public-primary) 35%, transparent), transparent 24%),
    linear-gradient(115deg, transparent 0 45%, rgba(255,255,255,.08) 45% 45.4%, transparent 45.4%),
    repeating-linear-gradient(0deg, transparent 0 82px, rgba(255,255,255,.022) 82px 84px);
  transform: perspective(900px) rotateX(58deg) translateY(38%);
}

.cinematic-hero-inner {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: 970px;
  margin-left: max(20px, calc((100vw - 1180px) / 2));
  margin-right: auto;
  padding: 168px 0 92px;
}

.hero-status-line {
  display: inline-flex;
  align-items: center;
  gap: .72rem;
  margin-bottom: 1.35rem;
  color: rgba(255,255,255,.62);
  font-size: .7rem;
  font-weight: 800;
  letter-spacing: .16em;
  text-transform: uppercase;
}

.hero-kicker {
  display: block;
  color: #f3d09b;
  font-size: .74rem;
  font-weight: 850;
  letter-spacing: .21em;
  text-transform: uppercase;
}

.cinematic-hero h1 {
  max-width: 960px;
  margin: 1.25rem 0 1.5rem;
  font-size: clamp(4.25rem, 9.4vw, 9.1rem);
  line-height: .82;
  letter-spacing: -.078em;
  text-wrap: balance;
}

.cinematic-hero p {
  max-width: 690px;
  margin: 0;
  color: rgba(255,255,255,.74);
  font-size: clamp(1rem, 1.8vw, 1.2rem);
  line-height: 1.74;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: .8rem;
  margin-top: 2rem;
}

.public-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: .8rem 1.2rem;
  border: 1px solid transparent;
  color: white;
  text-decoration: none;
  font-size: .82rem;
  font-weight: 800;
  transition: transform .18s ease, background .18s ease, border-color .18s ease;
}

.public-button:hover {
  transform: translateY(-2px);
}

.public-button.primary {
  background: var(--public-accent);
  color: #15110b;
}

.public-button.secondary {
  border-color: rgba(255,255,255,.25);
  background: rgba(255,255,255,.055);
}

.hero-rail {
  position: absolute;
  z-index: 3;
  right: 34px;
  top: 50%;
  transform: translateY(-50%);
  color: rgba(255,255,255,.38);
  font-size: .64rem;
  font-weight: 800;
  letter-spacing: .22em;
  writing-mode: vertical-rl;
}

.hero-watermark {
  position: absolute;
  z-index: 0;
  right: -2vw;
  bottom: 4vh;
  color: rgba(255,255,255,.035);
  font-size: 15vw;
  font-weight: 1000;
  letter-spacing: -.08em;
  line-height: .8;
  white-space: nowrap;
  pointer-events: none;
}

.hero-scroll {
  position: absolute;
  z-index: 4;
  right: 34px;
  bottom: 34px;
  display: flex;
  align-items: center;
  gap: .7rem;
  color: rgba(255,255,255,.55);
  text-decoration: none;
  font-size: .68rem;
  font-weight: 800;
  letter-spacing: .16em;
  text-transform: uppercase;
}

.hero-scroll i {
  font-style: normal;
  color: var(--public-accent);
}

.story-section,
.departments-section,
.dispatch-section {
  position: relative;
}

.story-section {
  padding: 112px 0 104px;
  background: #0c0d0e;
  border-top: 1px solid rgba(255,255,255,.06);
}

.story-grid {
  display: grid;
  grid-template-columns: .82fr 1.18fr;
  gap: clamp(50px, 8vw, 105px);
  align-items: start;
}

.section-kicker,
.section-heading > div > span,
.page-banner span {
  color: var(--public-accent);
  font-size: .69rem;
  font-weight: 850;
  letter-spacing: .19em;
  text-transform: uppercase;
}

.story-heading h2,
.cinematic-heading h2,
.dispatch-heading h2 {
  margin: .9rem 0 0;
  font-size: clamp(2.6rem, 5.2vw, 5rem);
  line-height: .96;
  letter-spacing: -.055em;
}

.story-copy {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 34px;
}

.story-copy p {
  margin: 0;
  color: rgba(255,255,255,.57);
  font-size: 1rem;
  line-height: 1.82;
}

.departments-section {
  padding: 105px 0 118px;
  background: #090a0b;
}

.cinematic-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 50px;
  margin-bottom: 42px;
}

.cinematic-heading h2 {
  max-width: 760px;
}

.cinematic-heading p {
  max-width: 500px;
  margin: 0;
  color: rgba(255,255,255,.5);
  line-height: 1.72;
}

.department-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  border-top: 1px solid rgba(255,255,255,.14);
}

.department-card {
  position: relative;
  min-height: 330px;
  display: flex;
  flex-direction: column;
  padding: 30px 28px 34px 0;
  border-bottom: 1px solid rgba(255,255,255,.14);
  color: white;
  text-decoration: none;
  overflow: hidden;
}

.department-card + .department-card {
  padding-left: 28px;
  border-left: 1px solid rgba(255,255,255,.14);
}

.department-card::after {
  content: "";
  position: absolute;
  inset: auto 0 0;
  height: 3px;
  background: var(--public-accent);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .25s ease;
}

.department-card:hover::after {
  transform: scaleX(1);
}

.department-number {
  position: absolute;
  right: 25px;
  top: 22px;
  color: rgba(255,255,255,.06);
  font-size: 4.1rem;
  font-weight: 1000;
  letter-spacing: -.08em;
}

.department-label {
  max-width: 75%;
  color: rgba(255,255,255,.44);
  font-size: .74rem;
  line-height: 1.5;
}

.department-card h3 {
  max-width: 260px;
  margin: auto 0 1rem;
  font-size: clamp(1.5rem, 2.4vw, 2rem);
  line-height: 1.08;
  letter-spacing: -.035em;
}

.department-link {
  display: inline-flex;
  align-items: center;
  gap: .55rem;
  color: var(--public-accent);
  font-size: .76rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .08em;
}

.department-link i {
  font-style: normal;
  transition: transform .2s ease;
}

.department-card:hover .department-link i {
  transform: translateX(5px);
}

.empty-public-state {
  grid-column: 1 / -1;
  padding: 32px 0;
  color: rgba(255,255,255,.45);
}

.dispatch-section {
  padding: 108px 0;
  background: #121314;
  border-top: 1px solid rgba(255,255,255,.08);
}

.dispatch-grid {
  display: grid;
  grid-template-columns: .72fr 1.28fr;
  gap: clamp(50px, 8vw, 110px);
}

.dispatch-content {
  max-width: 820px;
}

.public-prose {
  color: rgba(255,255,255,.62);
  font-size: 1rem;
}

.public-prose h1,
.public-prose h2,
.public-prose h3 {
  color: white;
  letter-spacing: -.035em;
}

.public-prose h2 {
  font-size: clamp(1.8rem, 3vw, 2.7rem);
}

.public-prose a {
  color: var(--public-accent);
}

.public-prose blockquote {
  border-color: var(--public-accent);
}

.public-prose code {
  padding: .15rem .35rem;
  background: rgba(255,255,255,.08);
}

.page-banner {
  position: relative;
  overflow: hidden;
  padding: 132px 0 84px;
  background:
    radial-gradient(circle at 75% 12%, color-mix(in srgb, var(--public-primary) 28%, transparent), transparent 32%),
    linear-gradient(135deg, #14191e, #090a0b 70%);
  border-bottom: 1px solid rgba(255,255,255,.09);
}

.page-banner::after {
  content: "LOS SANTOS";
  position: absolute;
  right: -1vw;
  bottom: -1.4rem;
  color: rgba(255,255,255,.025);
  font-size: 11vw;
  font-weight: 1000;
  letter-spacing: -.08em;
  pointer-events: none;
}

.page-banner h1 {
  position: relative;
  z-index: 1;
  max-width: 850px;
  margin: .75rem 0 .9rem;
  font-size: clamp(3rem, 6vw, 6rem);
  line-height: .92;
  letter-spacing: -.06em;
}

.page-banner p {
  position: relative;
  z-index: 1;
  max-width: 720px;
  margin: 0;
  color: rgba(255,255,255,.58);
  font-size: 1.04rem;
  line-height: 1.7;
}

.public-interior .public-section {
  padding: 88px 0 110px;
  background: #0d0f10;
}

.public-footer {
  margin-top: auto;
  border-top: 1px solid rgba(255,255,255,.09);
  background: #070808;
  color: rgba(255,255,255,.46);
}

.footer-main {
  min-height: 150px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 36px;
}

.footer-identity {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.footer-identity strong {
  color: white;
}

.footer-identity p {
  max-width: 530px;
  margin: .25rem 0 0;
  font-size: .8rem;
}

.footer-links {
  display: flex;
  gap: 1.4rem;
}

.footer-links a {
  color: rgba(255,255,255,.58);
  text-decoration: none;
  font-size: .78rem;
  font-weight: 750;
}

.footer-links a:hover {
  color: white;
}

.footer-bottom {
  min-height: 52px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  border-top: 1px solid rgba(255,255,255,.07);
  font-size: .66rem;
  font-weight: 750;
  letter-spacing: .12em;
  text-transform: uppercase;
}

@media (max-width: 950px) {
  .public-nav {
    display: none;
    position: absolute;
    top: 70px;
    left: 20px;
    right: 20px;
    padding: .7rem;
    align-items: stretch;
    flex-direction: column;
    border: 1px solid rgba(255,255,255,.12);
    background: rgba(10,11,12,.98);
    box-shadow: 0 24px 60px rgba(0,0,0,.48);
  }

  .public-nav.open {
    display: flex;
  }

  .nav-item > a,
  .nav-status {
    width: 100%;
    margin-left: 0;
  }

  .nav-dropdown {
    position: static;
    display: grid;
    border: 0;
    box-shadow: none;
    padding-left: 1rem;
  }

  .mobile-nav-toggle {
    display: block;
  }

  .story-grid,
  .dispatch-grid {
    grid-template-columns: 1fr;
  }

  .cinematic-heading {
    align-items: start;
    flex-direction: column;
  }

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

  .department-card,
  .department-card + .department-card {
    min-height: 245px;
    padding: 28px 0;
    border-left: 0;
  }

  .story-copy {
    max-width: 760px;
  }
}

@media (max-width: 720px) {
  .container {
    width: min(100% - 30px, 1180px);
  }

  .header-inner {
    min-height: 70px;
  }

  .site-identity {
    min-width: 0;
  }

  .site-identity small {
    display: none;
  }

  .cinematic-hero-inner {
    margin-left: 15px;
    padding: 150px 0 76px;
  }

  .cinematic-hero h1 {
    font-size: clamp(3.6rem, 18vw, 6rem);
  }

  .hero-rail,
  .hero-scroll {
    display: none;
  }

  .hero-watermark {
    bottom: 2vh;
    font-size: 22vw;
  }

  .story-section,
  .departments-section,
  .dispatch-section {
    padding: 76px 0;
  }

  .story-copy {
    grid-template-columns: 1fr;
  }

  .footer-main,
  .footer-bottom {
    align-items: flex-start;
    flex-direction: column;
    justify-content: center;
  }

  .footer-main {
    padding: 34px 0;
  }

  .footer-links {
    flex-wrap: wrap;
  }

  .footer-bottom {
    padding: 18px 0;
  }
}
