:root {
  --ink: #090b0d;
  --ink-soft: #111419;
  --panel: #171b20;
  --paper: #f1f0eb;
  --muted: #a3a6aa;
  --line: rgba(255, 255, 255, 0.16);
  --orange: #f5b000;
  --orange-bright: #ffc124;
  --display: "Arial Narrow", "Bahnschrift Condensed", Impact, sans-serif;
  --body: Inter, "Segoe UI", Arial, sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--paper);
  background: var(--ink);
  font-family: var(--body);
  font-size: 16px;
  line-height: 1.6;
  overflow-x: hidden;
}

body::selection {
  color: var(--ink);
  background: var(--orange);
}

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

button,
input,
select,
textarea {
  font: inherit;
}

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

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

.skip-link:focus {
  position: fixed;
  z-index: 100;
  top: 12px;
  left: 12px;
  padding: 10px 14px;
  color: var(--ink);
  background: var(--orange);
}

.site-header {
  position: fixed;
  z-index: 50;
  inset: 0 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 82px;
  padding: 0 clamp(20px, 4vw, 72px);
  border-bottom: 1px solid transparent;
  transition: background 240ms ease, border-color 240ms ease, min-height 240ms ease;
}

.site-header.is-scrolled {
  min-height: 68px;
  background: rgba(9, 11, 13, 0.88);
  border-color: var(--line);
  backdrop-filter: blur(18px);
}

.brand-cluster {
  display: flex;
  align-items: center;
  gap: clamp(10px, 1.4vw, 22px);
  min-width: 0;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-width: max-content;
}

.brand-logo {
  width: 54px;
  height: 54px;
  object-fit: cover;
  border-radius: 50%;
  filter: drop-shadow(0 0 12px rgba(245, 176, 0, 0.18));
}

.brand-copy {
  display: flex;
  flex-direction: column;
  line-height: 1;
}

.brand-copy strong {
  font-family: var(--display);
  font-size: 21px;
  letter-spacing: 0.08em;
}

.brand-copy small {
  margin-top: 5px;
  color: var(--muted);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.28em;
}

.brand-hazard-link {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  min-width: max-content;
  padding: 8px 0 8px clamp(10px, 1.2vw, 18px);
  color: var(--orange);
  border-left: 1px solid var(--line);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.12em;
  line-height: 1;
  text-transform: uppercase;
  white-space: nowrap;
  transition: color 180ms ease, border-color 180ms ease;
}

.brand-hazard-link svg {
  width: 17px;
  height: 17px;
  flex: 0 0 auto;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.brand-hazard-link:hover,
.brand-hazard-link:focus-visible,
.brand-hazard-link[aria-current="page"] {
  color: #ffd05a;
  border-color: rgba(245, 176, 0, 0.55);
}

.main-nav {
  display: flex;
  align-items: center;
  gap: clamp(18px, 2.2vw, 38px);
  font-size: 14px;
  font-weight: 650;
}

.main-nav > a:not(.nav-cta) {
  position: relative;
  padding-block: 9px;
  color: #d8d9d7;
}

.main-nav > a:not(.nav-cta)::after {
  content: "";
  position: absolute;
  right: 0;
  bottom: 3px;
  left: 0;
  height: 2px;
  background: var(--orange);
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 180ms ease;
}

.main-nav > a:hover::after,
.main-nav > a:focus-visible::after {
  transform: scaleX(1);
  transform-origin: left;
}

.main-nav .nav-weather-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.nav-weather-link svg {
  width: 19px;
  height: 19px;
  fill: none;
  stroke: var(--orange);
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.nav-cta {
  display: inline-flex;
  align-items: center;
  gap: 22px;
  padding: 12px 16px;
  color: var(--ink);
  background: var(--orange);
}

.menu-toggle {
  display: none;
  width: 46px;
  height: 44px;
  padding: 12px;
  color: inherit;
  background: transparent;
  border: 1px solid var(--line);
}

.menu-toggle > span:not(.sr-only) {
  display: block;
  width: 100%;
  height: 2px;
  margin: 5px 0;
  background: currentColor;
  transition: transform 180ms ease;
}

.hero {
  position: relative;
  display: grid;
  min-height: 100svh;
  padding: 138px clamp(20px, 4vw, 72px) 0;
  isolation: isolate;
  overflow: hidden;
}

.hero-backdrop {
  position: absolute;
  z-index: -3;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(9, 11, 13, 0.98) 0%, rgba(9, 11, 13, 0.9) 38%, rgba(9, 11, 13, 0.35) 70%, rgba(9, 11, 13, 0.82) 100%),
    radial-gradient(circle at 77% 33%, rgba(245, 176, 0, 0.38), transparent 20%),
    linear-gradient(145deg, transparent 50%, rgba(255, 255, 255, 0.08) 50.3%, transparent 51%),
    linear-gradient(130deg, #11151b, #252a2e 48%, #090b0d);
  background-size: cover;
  background-position: center;
  transform: scale(1.02);
}

.hero::before {
  content: "";
  position: absolute;
  z-index: -1;
  top: 0;
  bottom: 0;
  left: 59%;
  width: 1px;
  background: rgba(255, 255, 255, 0.12);
}

.hero::after {
  content: "";
  position: absolute;
  z-index: -2;
  top: -24%;
  right: 12%;
  width: 2px;
  height: 120%;
  background: var(--orange);
  box-shadow: 0 0 24px rgba(245, 176, 0, 0.4);
  transform: rotate(8deg);
  transform-origin: top;
}

.hero-grain {
  position: absolute;
  z-index: -1;
  inset: 0;
  opacity: 0.12;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.82' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.7'/%3E%3C/svg%3E");
  pointer-events: none;
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(500px, 1.08fr);
  align-items: center;
  gap: clamp(28px, 5vw, 90px);
  width: 100%;
  max-width: 1540px;
  margin: 0 auto;
  padding-bottom: 86px;
}

.eyebrow {
  display: flex;
  gap: 25px;
  margin: 0 0 30px;
  color: #d2d3d1;
  font-size: 13px;
  font-weight: 750;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.eyebrow span {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.eyebrow span::before {
  content: "";
  width: 7px;
  height: 7px;
  background: var(--orange);
  transform: rotate(45deg);
}

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

h1,
h2 {
  font-family: var(--display);
  font-weight: 900;
  letter-spacing: -0.045em;
  line-height: 0.86;
  text-transform: uppercase;
}

h1 {
  max-width: 900px;
  margin-bottom: 32px;
  font-size: clamp(70px, 10.3vw, 164px);
}

.hero-copy {
  min-width: 0;
  container-type: inline-size;
}

.hero-copy h1 {
  font-size: clamp(32px, 6vw, 110px);
  line-height: 1;
}

@supports (font-size: 1cqi) {
  .hero-copy h1 {
    font-size: min(164px, 16cqi);
  }
}

h1 em,
h2 em,
blockquote em {
  color: var(--orange);
  font-style: normal;
}

.hero-slogan {
  display: inline-flex;
  align-items: center;
  max-width: 100%;
  margin: -8px 0 20px;
  padding: 10px 14px 10px 12px;
  color: #f4f2e9;
  border-left: 4px solid var(--orange);
  background: rgba(9, 11, 13, 0.58);
  font-size: clamp(15px, 1.15vw, 18px);
  font-weight: 850;
  letter-spacing: 0.08em;
  line-height: 1.35;
  text-transform: uppercase;
  backdrop-filter: blur(5px);
}

.hero-lead {
  max-width: 660px;
  margin-bottom: 36px;
  color: #c3c5c4;
  font-size: clamp(17px, 1.35vw, 21px);
  line-height: 1.65;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  gap: 30px;
  min-height: 54px;
  padding: 14px 18px;
  border: 1px solid transparent;
  border-radius: 0;
  font-weight: 750;
  cursor: pointer;
  transition: color 180ms ease, background 180ms ease, border-color 180ms ease, transform 180ms ease;
}

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

.button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible,
.game-field:focus-visible,
.menu-toggle:focus-visible,
a:focus-visible {
  outline: 3px solid #ffb08e;
  outline-offset: 3px;
}

.button-primary {
  color: var(--ink);
  background: var(--orange);
}

.button-primary:hover {
  background: var(--orange-bright);
}

.button-ghost {
  color: var(--paper);
  background: rgba(9, 11, 13, 0.18);
  border-color: rgba(255, 255, 255, 0.35);
  backdrop-filter: blur(8px);
}

.button-ghost:hover {
  border-color: var(--orange);
}

.hero-panel {
  position: relative;
  align-self: stretch;
  min-height: 430px;
  border: 1px solid rgba(255, 255, 255, 0.28);
  background: linear-gradient(155deg, rgba(245, 176, 0, 0.1), rgba(8, 10, 12, 0.12));
  backdrop-filter: blur(3px);
  overflow: hidden;
}

.hero-panel::before,
.hero-panel::after {
  content: "";
  position: absolute;
  border: 1px solid rgba(255, 255, 255, 0.2);
  transform: rotate(-9deg);
}

.hero-panel::before {
  width: 130%;
  height: 42%;
  left: -15%;
  bottom: 20%;
}

.hero-panel::after {
  width: 80%;
  height: 80%;
  top: 10%;
  right: -24%;
}

.panel-code,
.panel-status {
  position: absolute;
  top: 18px;
  z-index: 1;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.14em;
}

.panel-code {
  left: 18px;
}

.panel-status {
  right: 18px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.panel-status i {
  width: 8px;
  height: 8px;
  background: var(--orange);
  border-radius: 50%;
  box-shadow: 0 0 14px var(--orange);
  animation: pulse 1.8s infinite;
}

.panel-scene {
  position: absolute;
  inset: 50px 0 0;
  overflow: hidden;
  isolation: isolate;
}

.panel-scene::before {
  content: "";
  position: absolute;
  z-index: 2;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(9, 11, 13, 0.08) 0%, transparent 34%, rgba(9, 11, 13, 0.84) 100%),
    linear-gradient(90deg, rgba(9, 11, 13, 0.46), transparent 38%, rgba(9, 11, 13, 0.08));
  pointer-events: none;
}

.bearman-worker {
  position: absolute;
  z-index: 1;
  top: -11%;
  left: -6%;
  width: 112%;
  height: 122%;
  object-fit: cover;
  object-position: 50% 28%;
  filter: saturate(0.92) contrast(1.14) brightness(0.72);
  transform-origin: 54% 38%;
  animation: bearmanWork 4.8s ease-in-out infinite;
}

.scene-scan {
  position: absolute;
  z-index: 3;
  top: 0;
  left: 0;
  width: 100%;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--orange), transparent);
  box-shadow: 0 0 18px var(--orange);
  opacity: 0.8;
  animation: sceneScan 4.2s ease-in-out infinite;
}

.scene-mode {
  position: absolute;
  z-index: 4;
  top: 12px;
  left: 18px;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 7px 9px;
  color: var(--paper);
  border: 1px solid rgba(255, 255, 255, 0.38);
  background: rgba(9, 11, 13, 0.72);
  backdrop-filter: blur(8px);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.14em;
}

.scene-mode b {
  color: var(--orange);
}

.panel-caption {
  position: absolute;
  z-index: 5;
  right: 22px;
  bottom: 22px;
  left: 22px;
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 20px;
}

.panel-caption span {
  max-width: 100px;
  color: #c1c3c2;
  font-size: 11px;
  font-weight: 750;
  letter-spacing: 0.15em;
}

.panel-caption strong {
  font-family: var(--display);
  font-size: clamp(44px, 5vw, 78px);
  line-height: 0.8;
  text-align: right;
}

.hero-story-panel {
  align-self: center;
  min-width: 0;
  border: 1px solid rgba(255, 255, 255, 0.28);
  background: rgba(7, 9, 10, 0.94);
  box-shadow: 18px 18px 0 rgba(245, 176, 0, 0.88);
  backdrop-filter: blur(10px);
  contain: paint;
  overflow: hidden;
}

.story-panel-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  min-height: 54px;
  padding: 10px 14px 10px 16px;
  border-bottom: 1px solid var(--line);
  color: #d0d2d1;
}

.story-panel-head > span {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-size: 12px;
  font-weight: 850;
  letter-spacing: 0.1em;
  line-height: 1.35;
}

.story-panel-head i {
  flex: 0 0 auto;
  width: 8px;
  height: 8px;
  background: var(--orange);
  border-radius: 50%;
  box-shadow: 0 0 14px rgba(245, 176, 0, 0.85);
  animation: pulse 1.8s infinite;
}

.story-panel-head button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  min-height: 44px;
  padding: 7px 10px;
  color: var(--paper);
  border: 1px solid rgba(255, 255, 255, 0.25);
  background: #111519;
  font-size: 14px;
  font-weight: 800;
  line-height: 1.2;
  cursor: pointer;
  transition: color 180ms ease, border-color 180ms ease, background 180ms ease;
}

.story-panel-head button:hover,
.story-panel-head button:focus-visible {
  color: var(--ink);
  border-color: var(--orange);
  background: var(--orange);
}

.story-panel-head button [data-video-toggle-icon] {
  font-size: 18px;
  line-height: 1;
}

.hero-story-panel.is-video-paused .story-panel-head button {
  color: var(--ink);
  border-color: var(--orange);
  background: var(--orange);
}

.hero-story-panel.has-video-error .story-video-badge {
  border-color: #ff8a72;
}

.hero-story-panel.has-video-error .story-video-badge i {
  background: #ff6c52;
  box-shadow: 0 0 12px rgba(255, 108, 82, 0.8);
}

.story-video-selector {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  border-bottom: 1px solid var(--line);
  background: var(--line);
}

.story-video-selector button {
  min-width: 0;
  min-height: 44px;
  padding: 9px 12px;
  color: #d2d4d3;
  border: 0;
  background: #0d1012;
  font-family: var(--display);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.06em;
  line-height: 1.2;
  text-transform: uppercase;
  cursor: pointer;
  transition: color 180ms ease, background 180ms ease;
}

.story-video-selector button:hover {
  color: var(--paper);
  background: #171b1e;
}

.story-video-selector button[aria-pressed="true"] {
  color: var(--ink);
  background: var(--orange);
}

.story-video-selector button:focus-visible {
  position: relative;
  z-index: 2;
  outline: 3px solid #ffb08e;
  outline-offset: -3px;
}

.story-video-viewport {
  position: relative;
  aspect-ratio: 3 / 2;
  border-bottom: 1px solid var(--line);
  background: #111315;
  isolation: isolate;
  overflow: hidden;
}

.story-video-viewport::after {
  content: "";
  position: absolute;
  z-index: 2;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(0, 0, 0, 0.03), transparent 62%, rgba(0, 0, 0, 0.25)),
    linear-gradient(90deg, rgba(245, 176, 0, 0.07), transparent 28%);
  pointer-events: none;
}

.story-video {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  background: #111315;
}

.story-video-badge {
  position: absolute;
  z-index: 3;
  right: 14px;
  bottom: 14px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 9px;
  color: #f0f0eb;
  border: 1px solid rgba(255, 255, 255, 0.3);
  background: rgba(7, 9, 10, 0.76);
  backdrop-filter: blur(8px);
  font-size: 12px;
  font-weight: 850;
  letter-spacing: 0.09em;
}

.story-video-badge i {
  width: 7px;
  height: 7px;
  background: var(--orange);
  border-radius: 50%;
  box-shadow: 0 0 12px rgba(245, 176, 0, 0.85);
}

.story-video-progress {
  position: absolute;
  z-index: 4;
  right: 0;
  bottom: 0;
  left: 0;
  height: 4px;
  background: rgba(255, 255, 255, 0.16);
  overflow: hidden;
}

.story-video-progress::after {
  content: "";
  display: block;
  width: 100%;
  height: 100%;
  background: var(--orange);
  transform: scaleX(var(--video-progress, 0));
  transform-origin: left;
}

.story-record-link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  min-height: 48px;
  padding: 11px 16px;
  color: #c9cccb;
  background: #0b0e10;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  transition: color 180ms ease, background 180ms ease;
}

.story-record-link span {
  color: var(--orange);
  font-size: 20px;
  transition: transform 180ms ease;
}

.story-record-link:hover,
.story-record-link:focus-visible {
  color: var(--ink);
  background: var(--orange);
  outline: none;
}

.story-record-link:hover span,
.story-record-link:focus-visible span {
  color: var(--ink);
  transform: translateY(3px);
}

.hero-footer {
  align-self: end;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  width: calc(100% + clamp(40px, 8vw, 144px));
  margin-left: calc(-1 * clamp(20px, 4vw, 72px));
  border-top: 1px solid var(--line);
  background: rgba(9, 11, 13, 0.72);
  backdrop-filter: blur(10px);
}

.hero-footer div {
  padding: 18px clamp(20px, 4vw, 72px);
  color: #cccecc;
  border-right: 1px solid var(--line);
  font-size: 13px;
  font-weight: 750;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.hero-footer span {
  margin-right: 10px;
  color: var(--orange);
}

.section {
  padding: clamp(86px, 10vw, 150px) clamp(20px, 6vw, 110px);
}

.field-records {
  position: relative;
  scroll-margin-top: 72px;
  background:
    radial-gradient(circle at 86% 4%, rgba(245, 176, 0, 0.13), transparent 29%),
    linear-gradient(135deg, #0c0f12 0%, #15191d 54%, #090b0d 100%);
  overflow: hidden;
}

.field-records::before {
  content: "";
  position: absolute;
  inset: 0;
  opacity: 0.16;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.08) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.08) 1px, transparent 1px);
  background-size: 52px 52px;
  pointer-events: none;
}

.field-records-heading,
.field-record-grid,
.field-record-note {
  position: relative;
  z-index: 1;
}

.field-records-heading {
  display: grid;
  grid-template-columns: 0.55fr 1.5fr 0.75fr;
  gap: 30px;
  align-items: start;
  max-width: 1500px;
  margin: 0 auto clamp(44px, 6vw, 76px);
}

.field-records-heading h2 {
  max-width: 820px;
  margin: 0;
  font-family: var(--display);
  font-size: clamp(48px, 6.4vw, 96px);
  line-height: 0.88;
  letter-spacing: -0.025em;
  text-transform: uppercase;
}

.field-records-heading > p:last-child {
  margin-top: 5px;
  color: #b7bbbe;
  line-height: 1.7;
}

.field-records-kicker {
  margin: 0 0 14px;
  color: var(--orange);
  font-size: 12px;
  font-weight: 850;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.field-record-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(18px, 2.4vw, 34px);
  max-width: 1500px;
  margin: 0 auto;
}

.field-record-card {
  min-width: 0;
  border: 1px solid rgba(255, 255, 255, 0.2);
  background: rgba(8, 10, 12, 0.88);
  box-shadow: 14px 14px 0 rgba(0, 0, 0, 0.28);
}

.field-record-media {
  position: relative;
  aspect-ratio: 16 / 9;
  background: #030405;
  border-bottom: 1px solid rgba(255, 255, 255, 0.18);
  overflow: hidden;
}

.field-record-media video,
.field-record-media iframe {
  display: block;
  width: 100%;
  height: 100%;
  border: 0;
  background: #030405;
  object-fit: cover;
}

.field-record-media video:focus-visible,
.field-record-media iframe:focus-visible {
  outline: 4px solid var(--orange);
  outline-offset: -4px;
}

.field-record-badge {
  position: absolute;
  z-index: 2;
  top: 14px;
  left: 14px;
  padding: 7px 10px;
  color: var(--ink);
  background: var(--orange);
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0.1em;
  line-height: 1.2;
  pointer-events: none;
}

.field-record-copy {
  padding: clamp(24px, 3vw, 42px);
}

.field-record-number {
  margin: 0 0 12px;
  color: var(--orange);
  font-size: 11px;
  font-weight: 850;
  letter-spacing: 0.17em;
}

.field-record-copy h3 {
  margin: 0 0 18px;
  font-family: var(--display);
  font-size: clamp(32px, 3.2vw, 51px);
  line-height: 0.98;
  text-transform: uppercase;
}

.field-record-copy > p:not(.field-record-number):not(.field-record-source) {
  max-width: 660px;
  margin: 0;
  color: #c3c6c7;
}

.field-record-source {
  margin: 26px 0 0;
  padding-top: 19px;
  color: #9fa4a6;
  border-top: 1px solid rgba(255, 255, 255, 0.15);
  font-size: 12px;
  line-height: 1.75;
}

.field-record-source a {
  color: #ffd05c;
  text-decoration: underline;
  text-decoration-color: rgba(255, 208, 92, 0.48);
  text-underline-offset: 3px;
}

.field-record-source a:hover,
.field-record-source a:focus-visible {
  color: #fff0be;
  text-decoration-color: currentColor;
  outline: none;
}

.field-record-source a:focus-visible {
  box-shadow: 0 0 0 3px rgba(245, 176, 0, 0.34);
}

.field-record-note {
  max-width: 1500px;
  margin: 30px auto 0;
  padding: 15px 18px;
  color: #b8bcbe;
  border-left: 3px solid var(--orange);
  background: rgba(255, 255, 255, 0.055);
  font-size: 13px;
}

.services {
  color: var(--ink);
  background: var(--paper);
}

.section-heading {
  display: grid;
  grid-template-columns: 0.55fr 1.5fr 0.75fr;
  gap: 30px;
  align-items: start;
  max-width: 1500px;
  margin: 0 auto clamp(58px, 7vw, 100px);
}

.section-index {
  margin: 5px 0 0;
  color: var(--orange);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.15em;
}

.section-heading h2,
.game-intro h2,
.capability h2,
.contact h2 {
  margin: 0;
  font-size: clamp(54px, 7.5vw, 112px);
}

.section-heading > p:last-child {
  color: #50545a;
  line-height: 1.7;
}

.service-groups {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
  max-width: 1500px;
  margin: 0 auto;
}

.service-group {
  min-height: 580px;
  padding: clamp(28px, 4vw, 60px);
}

.dark-card {
  color: var(--paper);
  background: var(--ink-soft);
}

.orange-card {
  color: var(--ink);
  background: var(--orange);
}

.service-group-head {
  display: flex;
  align-items: flex-start;
  gap: 24px;
  min-height: 180px;
}

.service-number {
  display: grid;
  place-items: center;
  flex: 0 0 48px;
  width: 48px;
  height: 48px;
  border: 1px solid currentColor;
  font-family: var(--display);
  font-size: 28px;
  font-weight: 900;
}

.service-group-head p {
  margin-bottom: 8px;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.15em;
}

.service-group h3 {
  max-width: 440px;
  margin: 0;
  font-family: var(--display);
  font-size: clamp(36px, 4vw, 61px);
  line-height: 0.95;
  text-transform: uppercase;
}

.service-list {
  margin: 0;
  padding: 0;
  list-style: none;
  border-top: 1px solid currentColor;
}

.service-list li {
  min-height: 76px;
  border-bottom: 1px solid currentColor;
}

.service-list a {
  display: grid;
  grid-template-columns: 42px 1fr 24px;
  align-items: center;
  gap: 12px;
  min-height: 76px;
  padding: 0 4px;
  color: inherit;
  transition: background 180ms ease, padding 180ms ease;
}

.dark-card .service-list a:hover {
  padding-right: 10px;
  padding-left: 10px;
  background: rgba(245, 176, 0, 0.1);
}

.orange-card .service-list a:hover {
  padding-right: 10px;
  padding-left: 10px;
  background: rgba(9, 11, 13, 0.09);
}

.dark-card .service-list,
.dark-card .service-list li {
  border-color: rgba(255, 255, 255, 0.2);
}

.orange-card .service-list,
.orange-card .service-list li {
  border-color: rgba(9, 11, 13, 0.28);
}

.service-list span {
  opacity: 0.6;
  font-size: 12px;
  font-weight: 800;
}

.service-list strong {
  font-size: 17px;
}

.service-list i {
  font-style: normal;
  font-size: 22px;
  transition: transform 180ms ease;
}

.service-list a:hover i {
  transform: translate(3px, -3px);
}

.manifesto {
  padding: 0 0 clamp(90px, 12vw, 180px);
  background: var(--ink);
  overflow: hidden;
}

.manifesto-line {
  display: flex;
  width: max-content;
  padding: 25px 0;
  color: var(--ink);
  background: var(--orange);
  font-family: var(--display);
  font-size: clamp(32px, 4vw, 64px);
  font-weight: 900;
  line-height: 1;
  white-space: nowrap;
  transform: rotate(-2deg) translateX(-2%);
}

.manifesto-line span {
  animation: ticker 22s linear infinite;
}

.manifesto-inner {
  padding: clamp(110px, 14vw, 200px) clamp(20px, 6vw, 110px) 0;
}

.manifesto blockquote {
  max-width: 1200px;
  margin: 35px 0 0 auto;
  font-family: var(--display);
  font-size: clamp(48px, 7.4vw, 112px);
  font-weight: 900;
  letter-spacing: -0.04em;
  line-height: 0.95;
  text-transform: uppercase;
}

.game-section {
  display: grid;
  grid-template-columns: minmax(270px, 0.7fr) minmax(520px, 1.3fr);
  gap: clamp(40px, 7vw, 110px);
  align-items: center;
  color: var(--ink);
  background: #d8d7d1;
}

.game-intro h2 {
  margin: 22px 0 28px;
}

.game-intro > p:not(.section-index) {
  max-width: 500px;
  color: #4b4e52;
  font-size: 18px;
}

.game-rules {
  display: grid;
  gap: 12px;
  margin: 30px 0 0;
  padding: 24px 0 0;
  border-top: 1px solid rgba(9, 11, 13, 0.2);
  list-style: none;
  font-size: 14px;
  font-weight: 700;
}

kbd {
  display: inline-grid;
  place-items: center;
  min-width: 28px;
  height: 26px;
  margin-right: 5px;
  border: 1px solid #888;
  background: #ecebe5;
  box-shadow: 0 2px 0 #888;
  font-family: inherit;
}

.game-shell {
  border: 1px solid rgba(9, 11, 13, 0.3);
  background: var(--ink);
  box-shadow: 18px 18px 0 var(--orange);
}

.game-topbar {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  min-height: 72px;
  border-bottom: 1px solid var(--line);
}

.game-topbar div {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 12px 20px;
  border-right: 1px solid var(--line);
}

.game-topbar div:last-child {
  border-right: 0;
}

.game-topbar span {
  color: var(--muted);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.14em;
}

.game-topbar strong {
  color: var(--orange);
  font-family: var(--display);
  font-size: 28px;
}

.game-field {
  position: relative;
  height: clamp(440px, 46vw, 620px);
  min-height: 440px;
  background:
    linear-gradient(180deg, rgba(9, 11, 13, 0.04) 0%, rgba(9, 11, 13, 0.08) 52%, rgba(5, 7, 8, 0.76) 100%),
    url("assets/bearman-rock-game-bg.png") center / cover no-repeat,
    linear-gradient(155deg, #303740, #090b0d 72%);
  touch-action: pan-y;
  overflow: hidden;
  cursor: crosshair;
  isolation: isolate;
}

.game-field::after {
  content: "";
  position: absolute;
  z-index: 4;
  right: 0;
  bottom: 0;
  left: 0;
  height: 24%;
  background: linear-gradient(180deg, transparent, rgba(3, 5, 6, 0.82));
  pointer-events: none;
}

.game-field.is-running {
  touch-action: none;
}

.mountain-atmosphere {
  position: absolute;
  z-index: 2;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(circle at 79% 18%, rgba(245, 176, 0, 0.18), transparent 17%),
    linear-gradient(128deg, transparent 44%, rgba(255, 255, 255, 0.08) 44.2%, transparent 44.5%);
}

.mountain-atmosphere::after {
  content: "";
  position: absolute;
  inset: 40% -15% -25% 25%;
  opacity: 0.22;
  background: radial-gradient(ellipse, rgba(218, 222, 220, 0.48), transparent 64%);
  filter: blur(18px);
  animation: mountainMist 8s ease-in-out infinite alternate;
}

.launch-status {
  position: absolute;
  z-index: 9;
  top: 14px;
  left: 14px;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 7px 10px;
  color: #e6e6e2;
  border: 1px solid rgba(255, 255, 255, 0.28);
  background: rgba(5, 7, 8, 0.7);
  backdrop-filter: blur(8px);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.14em;
}

.launch-status i {
  width: 7px;
  height: 7px;
  background: var(--orange);
  border-radius: 50%;
  box-shadow: 0 0 12px var(--orange);
}

.game-field.is-running .launch-status i {
  animation: pulse 1s infinite;
}

.game-message {
  position: absolute;
  z-index: 20;
  inset: 0;
  display: grid;
  place-content: center;
  justify-items: center;
  padding: 24px;
  text-align: center;
  background: rgba(9, 11, 13, 0.86);
  backdrop-filter: blur(6px);
}

.game-message.is-hidden {
  display: none;
}

.mini-logo {
  width: 78px;
  height: 78px;
  margin-bottom: 14px;
  object-fit: cover;
  border-radius: 50%;
  filter: drop-shadow(0 0 14px rgba(245, 176, 0, 0.28));
}

.game-message strong {
  font-family: var(--display);
  font-size: clamp(48px, 6vw, 84px);
  line-height: 0.9;
}

.game-message p {
  color: #b9bcbd;
}

.rockfall-barrier {
  position: absolute;
  z-index: 10;
  bottom: 18px;
  left: 0;
  width: clamp(178px, 31%, 270px);
  height: 90px;
  filter: drop-shadow(0 12px 8px rgba(0, 0, 0, 0.72));
  transform: translate3d(var(--barrier-x, 0px), 0, 0);
  will-change: transform;
  pointer-events: none;
}

.barrier-net {
  position: absolute;
  z-index: 2;
  inset: 13px 14px 15px;
  border: 2px solid #b7bec1;
  background:
    repeating-linear-gradient(55deg, transparent 0 9px, rgba(211, 216, 218, 0.9) 10px 11px, transparent 12px 20px),
    repeating-linear-gradient(-55deg, transparent 0 9px, rgba(139, 148, 153, 0.9) 10px 11px, transparent 12px 20px),
    rgba(31, 36, 39, 0.42);
  box-shadow: inset 0 0 16px rgba(207, 216, 220, 0.18);
  transform: perspective(260px) rotateX(-7deg);
}

.barrier-post {
  position: absolute;
  z-index: 4;
  bottom: 0;
  width: 10px;
  height: 90px;
  border: 1px solid #d5dadd;
  background: linear-gradient(90deg, #4d555a, #e6eaec 48%, #596167 54%, #24292d);
  box-shadow: 0 0 0 2px rgba(3, 5, 6, 0.5);
  transform-origin: bottom;
}

.barrier-post::after {
  content: "";
  position: absolute;
  right: -5px;
  bottom: -3px;
  width: 18px;
  height: 9px;
  background: #e1b126;
  border: 1px solid #111;
}

.barrier-post-left {
  left: 5px;
  transform: rotate(-5deg);
}

.barrier-post-right {
  right: 5px;
  transform: rotate(5deg);
}

.barrier-cable {
  position: absolute;
  z-index: 5;
  right: 4px;
  left: 4px;
  height: 4px;
  border-radius: 4px;
  background: linear-gradient(#f2f4f4, #6d7478 48%, #22282b 50%, #b7bdc0);
  box-shadow: 0 1px 0 #0c0e0f;
}

.barrier-cable-top { top: 9px; }
.barrier-cable-bottom { bottom: 11px; }

.barrier-anchor {
  position: absolute;
  z-index: 1;
  bottom: 1px;
  width: 47px;
  height: 3px;
  background: var(--orange);
  transform-origin: bottom;
}

.barrier-anchor-left { left: -30px; transform: rotate(-38deg); }
.barrier-anchor-right { right: -30px; transform: rotate(38deg); }

.rockfall-barrier.is-hit {
  animation: barrierCatch 280ms ease-out;
}

.game-rock {
  position: absolute;
  z-index: 7;
  top: 0;
  left: 0;
  width: var(--rock-size);
  height: var(--rock-size);
  pointer-events: none;
  will-change: transform;
  clip-path: polygon(16% 5%, 70% 0, 95% 26%, 100% 71%, 72% 96%, 24% 100%, 0 72%, 5% 28%);
}

.game-rock::before {
  content: "";
  position: absolute;
  inset: -4%;
  background-image: url("assets/bearman-rock-sprites.png");
  background-repeat: no-repeat;
  background-size: 200% 200%;
  mix-blend-mode: screen;
  filter: contrast(1.18) brightness(1.08) drop-shadow(0 9px 5px rgba(0, 0, 0, 0.72));
}

.game-rock.rock-v1::before { background-position: 0 0; }
.game-rock.rock-v2::before { background-position: 100% 0; }
.game-rock.rock-v3::before { background-position: 0 100%; }
.game-rock.rock-v4::before { background-position: 100% 100%; }

.game-rock.main-rock {
  z-index: 8;
  clip-path: polygon(20% 3%, 67% 0, 94% 22%, 100% 67%, 77% 96%, 28% 100%, 2% 75%, 0 31%);
}

.impact-burst {
  position: absolute;
  z-index: 9;
  width: 16px;
  height: 16px;
  border: 3px solid var(--orange);
  border-radius: 50%;
  box-shadow: 0 0 26px var(--orange);
  pointer-events: none;
  animation: impactRing 500ms ease-out forwards;
}

.impact-burst i {
  position: absolute;
  top: 5px;
  left: 5px;
  width: 6px;
  height: 6px;
  background: #c2c5c3;
  clip-path: polygon(20% 0, 100% 30%, 70% 100%, 0 72%);
  animation: rockDust 520ms ease-out forwards;
  transform: translate(var(--dust-x), var(--dust-y));
}

.game-field.is-impact .mountain-atmosphere {
  animation: fieldImpact 180ms linear;
}

.game-note {
  min-height: 44px;
  margin: 0;
  padding: 10px 18px;
  color: #aeb1b2;
  border-top: 1px solid var(--line);
  font-size: 13px;
}

/* Bearman Lab — mountain defense game v2 */
.game-topbar {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  min-height: 82px;
  background: #07090a;
}

.game-topbar .game-stat {
  position: relative;
  display: grid;
  grid-template-columns: 1fr auto;
  align-content: center;
  gap: 5px 10px;
  padding: 12px 16px;
}

.game-topbar .game-stat > span {
  align-self: end;
  font-size: 12px;
}

.game-topbar .game-stat > strong {
  align-self: center;
  font-size: clamp(23px, 2.2vw, 31px);
  line-height: 1;
}

.game-controls {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  min-height: 48px;
  padding: 7px 14px 7px 18px;
  color: #b8bcbd;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: #0b0e10;
}

.game-controls > span {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.12em;
}

.game-controls > span i {
  width: 7px;
  height: 7px;
  background: #5bca79;
  border-radius: 50%;
  box-shadow: 0 0 12px rgba(91, 202, 121, 0.62);
}

.game-controls button {
  min-width: 104px;
  min-height: 36px;
  padding: 7px 12px;
  color: var(--paper);
  border: 1px solid #4e5457;
  background: #15191c;
  font-size: 12px;
  font-weight: 850;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  cursor: pointer;
}

.game-controls button:hover:not(:disabled),
.game-controls button:focus-visible {
  color: var(--ink);
  border-color: var(--orange);
  background: var(--orange);
}

.game-controls button:disabled {
  opacity: 0.42;
  cursor: not-allowed;
}

.game-stat.has-meter .hud-meter {
  grid-column: 1 / -1;
  display: block;
  height: 4px;
  overflow: hidden;
  background: #292d30;
}

.hud-meter b {
  display: block;
  width: 0%;
  height: 100%;
  background: var(--orange);
  box-shadow: 0 0 10px rgba(245, 176, 0, 0.75);
  transition: width 300ms ease;
}

.city-meter b {
  width: 100%;
  background: #f4f0de;
}

.game-field {
  height: clamp(520px, 51vw, 670px);
  min-height: 520px;
  background:
    linear-gradient(180deg, rgba(7, 11, 12, 0.03) 0%, rgba(12, 15, 16, 0.04) 54%, rgba(3, 5, 6, 0.66) 100%),
    url("assets/bearman-game-valley-real-v1.webp") center top / cover no-repeat,
    #77786f;
  cursor: ew-resize;
  perspective: 900px;
}

.game-field::before {
  content: "";
  position: absolute;
  z-index: 3;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(90deg, transparent 0 19.9%, rgba(9, 11, 13, 0.11) 20%, transparent 20.15% 39.9%, rgba(9, 11, 13, 0.08) 40%, transparent 40.15% 59.9%, rgba(9, 11, 13, 0.08) 60%, transparent 60.15% 79.9%, rgba(9, 11, 13, 0.11) 80%, transparent 80.15%),
    linear-gradient(180deg, transparent 0 75%, rgba(5, 7, 8, 0.16) 100%);
  opacity: 0.46;
}

.game-field::after {
  z-index: 6;
  height: 31%;
  background: linear-gradient(
    180deg,
    rgba(229, 226, 218, 0) 0%,
    rgba(214, 211, 202, 0.18) 28%,
    rgba(40, 43, 42, 0.26) 62%,
    rgba(4, 6, 7, 0.7) 100%
  );
}

.mountain-atmosphere {
  z-index: 2;
  background:
    radial-gradient(ellipse at 50% 30%, transparent 0 31%, rgba(255, 255, 255, 0.13) 54%, transparent 70%),
    repeating-linear-gradient(112deg, transparent 0 11px, rgba(8, 10, 11, 0.028) 12px 13px);
}

.mountain-atmosphere::after {
  inset: 22% -10% 22% -10%;
  opacity: 0.18;
  background: radial-gradient(ellipse, rgba(255, 255, 255, 0.8), transparent 63%);
  filter: blur(22px);
  animation: mountainMist 8s ease-in-out infinite alternate;
}

.city-zone {
  position: absolute;
  z-index: 18;
  bottom: -24px;
  left: 50%;
  width: min(92%, 820px);
  height: clamp(210px, 30vw, 285px);
  pointer-events: none;
  transform: translateX(-50%);
  transform-origin: 50% 100%;
}

.city-zone::after {
  content: "";
  position: absolute;
  z-index: -1;
  right: 4%;
  bottom: 3%;
  left: 4%;
  height: 12%;
  background: radial-gradient(ellipse, rgba(12, 14, 15, 0.34), transparent 72%);
  filter: blur(7px);
}

.city-art {
  position: absolute;
  inset: 0;
  background-image: url("assets/bearman-city-damage-real-v1.webp");
  background-repeat: no-repeat;
  background-size: 200% 200%;
  filter: drop-shadow(0 16px 14px rgba(5, 7, 8, 0.52));
  opacity: 1;
  transition: filter 300ms ease, opacity 300ms ease;
}

.city-zone[data-damage="0"] .city-art { background-position: 0 0; }
.city-zone[data-damage="1"] .city-art { background-position: 100% 0; }
.city-zone[data-damage="2"] .city-art { background-position: 0 100%; }
.city-zone[data-damage="3"] .city-art { background-position: 100% 100%; }

.city-dust {
  position: absolute;
  right: 7%;
  bottom: 12%;
  left: 7%;
  height: 48%;
  opacity: 0;
  background: radial-gradient(ellipse, rgba(208, 203, 190, 0.88), rgba(71, 74, 75, 0.4) 43%, transparent 72%);
  filter: blur(10px);
}

.city-zone.is-hit {
  animation: cityHit 440ms cubic-bezier(0.36, 0.07, 0.19, 0.97);
}

.city-zone.is-hit .city-dust {
  animation: cityDust 900ms ease-out;
}

.level-banner {
  position: absolute;
  z-index: 24;
  top: 48%;
  left: 50%;
  display: grid;
  justify-items: center;
  gap: 5px;
  min-width: min(74%, 390px);
  padding: 18px 26px 16px;
  color: #f3f1e8;
  border: 1px solid var(--orange);
  background: rgba(5, 7, 8, 0.92);
  box-shadow: 9px 9px 0 rgba(245, 176, 0, 0.92);
  opacity: 0;
  pointer-events: none;
  transform: translate(-50%, -42%) scale(0.88);
  transition: opacity 220ms ease, transform 260ms ease;
}

.level-banner span {
  color: var(--orange);
  font-size: 12px;
  font-weight: 850;
  letter-spacing: 0.18em;
}

.level-banner strong {
  font-family: var(--display);
  font-size: clamp(42px, 6vw, 72px);
  line-height: 0.92;
}

.level-banner.is-visible {
  opacity: 1;
  transform: translate(-50%, -50%) scale(1);
}

.game-message {
  z-index: 30;
  color: #f3f1e8;
  background: rgba(5, 7, 8, 0.83);
}

.game-message strong {
  max-width: 850px;
  font-size: clamp(46px, 6vw, 80px);
}

.game-message p {
  max-width: 520px;
  margin: 16px auto 24px;
  font-size: 16px;
  line-height: 1.55;
}

.rockfall-barrier {
  z-index: 14;
  bottom: clamp(128px, 21%, 170px);
  width: clamp(248px, 44%, 416px);
  height: 83px;
  filter: drop-shadow(0 13px 9px rgba(0, 0, 0, 0.78));
}

.barrier-distance {
  position: absolute;
  z-index: 7;
  top: -28px;
  left: 50%;
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 4px 7px;
  color: #f3f1e8;
  border: 1px solid rgba(245, 176, 0, 0.9);
  background: rgba(5, 7, 8, 0.88);
  box-shadow: 4px 4px 0 rgba(245, 176, 0, 0.82);
  white-space: nowrap;
  transform: translateX(-50%);
}

.barrier-distance b {
  color: var(--orange);
  font-family: var(--display);
  font-size: 18px;
  line-height: 1;
}

.barrier-distance small {
  font-size: 9px;
  font-weight: 850;
  letter-spacing: 0.12em;
}

.barrier-net {
  inset: 9px 11px 10px;
  border-color: #d8dedf;
  background:
    radial-gradient(circle at center, transparent 0 4px, rgba(222, 228, 229, 0.95) 4.5px 5.7px, transparent 6.2px),
    radial-gradient(circle at center, transparent 0 4px, rgba(107, 117, 122, 0.84) 4.5px 5.7px, transparent 6.2px),
    rgba(27, 32, 34, 0.22);
  background-position: 0 0, 7px 7px, 0 0;
  background-size: 14px 14px, 14px 14px, auto;
  box-shadow: inset 0 0 20px rgba(238, 243, 244, 0.2), 0 2px 0 rgba(6, 8, 9, 0.5);
  transform: perspective(260px) rotateX(-5deg) translateY(var(--net-sag, 0px));
  transform-origin: top center;
}

.barrier-post {
  height: 83px;
}

.barrier-stay {
  position: absolute;
  z-index: 1;
  top: 12px;
  width: 58px;
  height: 2px;
  background: linear-gradient(90deg, #50585c, #e1e6e7 52%, #616a6e);
  box-shadow: 0 1px 1px rgba(3, 5, 6, 0.75);
  transform-origin: top center;
}

.barrier-stay-left {
  left: -41px;
  transform: rotate(-34deg);
}

.barrier-stay-right {
  right: -41px;
  transform: rotate(34deg);
}

.barrier-brake {
  position: absolute;
  z-index: 7;
  top: 17px;
  width: 30px;
  height: 9px;
  border: 1px solid #6f777a;
  border-radius: 8px;
  background: repeating-linear-gradient(90deg, #d9ddde 0 3px, #71797c 3px 5px);
  box-shadow: 0 2px 3px rgba(2, 3, 4, 0.62);
}

.barrier-brake-left { left: -12px; transform: rotate(-16deg); }
.barrier-brake-right { right: -12px; transform: rotate(16deg); }

.barrier-base {
  position: absolute;
  z-index: 6;
  bottom: -2px;
  width: 30px;
  height: 8px;
  border: 1px solid #838b8e;
  background: linear-gradient(180deg, #e4e7e8, #666e72 70%, #303538);
  box-shadow: 0 4px 3px rgba(2, 3, 4, 0.55);
}

.barrier-base-left { left: -5px; transform: skewX(-18deg); }
.barrier-base-right { right: -5px; transform: skewX(18deg); }

.barrier-anchor {
  background: linear-gradient(90deg, #596165, #d7dcde 48%, #626b6f);
  box-shadow: 0 1px 2px rgba(2, 3, 4, 0.75);
}

.barrier-load {
  position: absolute;
  z-index: 3;
  right: 15px;
  bottom: 14px;
  left: 15px;
  height: 46px;
  overflow: visible;
  background: transparent;
  box-shadow: none;
  pointer-events: none;
}

.caught-rock {
  position: absolute;
  bottom: var(--pile-y, 0px);
  left: var(--pile-x, 50%);
  width: var(--pile-size, 34px);
  height: var(--pile-size, 34px);
  background-image: url("assets/bearman-rock-real-sprites-v1.webp");
  background-repeat: no-repeat;
  background-size: 200% 200%;
  filter: drop-shadow(0 4px 3px rgba(5, 7, 8, 0.62));
  transform: translateX(-50%) rotate(var(--pile-rotate, 0deg));
}

.caught-rock.rock-v1 { background-position: 0 0; }
.caught-rock.rock-v2 { background-position: 100% 0; }
.caught-rock.rock-v3 { background-position: 0 100%; }
.caught-rock.rock-v4 { background-position: 100% 100%; }

.rockfall-barrier.is-hit {
  animation: barrierCatchV2 320ms ease-out;
}

.rockfall-barrier.is-hit .barrier-net {
  animation: barrierNetDeflect 420ms cubic-bezier(0.2, 0.78, 0.28, 1);
}

.game-rock {
  z-index: 16;
  width: var(--rock-size, 68px);
  height: var(--rock-size, 68px);
  clip-path: none;
  transform-origin: 50% 56%;
}

.game-rock::before {
  inset: 0;
  background-image: url("assets/bearman-rock-real-sprites-v1.webp");
  background-repeat: no-repeat;
  background-size: 200% 200%;
  filter: drop-shadow(0 6px 5px rgba(5, 7, 8, 0.58));
}

.game-rock::after {
  display: none;
}

.game-rock.rock-v1::before { background-position: 0 0; }
.game-rock.rock-v2::before { background-position: 100% 0; }
.game-rock.rock-v3::before { background-position: 0 100%; }
.game-rock.rock-v4::before { background-position: 100% 100%; }

.game-rock.main-rock {
  z-index: 16;
}

.impact-burst {
  z-index: 18;
}

.city-impact {
  position: absolute;
  z-index: 23;
  width: 18px;
  height: 18px;
  border: 3px solid var(--orange);
  border-radius: 50%;
  pointer-events: none;
  animation: cityImpactRing 600ms ease-out forwards;
}

.city-impact i {
  position: absolute;
  top: 5px;
  left: 5px;
  width: 7px;
  height: 7px;
  background: #171a1b;
  clip-path: polygon(14% 0, 100% 25%, 78% 100%, 0 76%);
  animation: impactDebris 720ms ease-out forwards;
}

.game-note {
  min-height: 48px;
  padding: 12px 18px;
  color: #c7c9c6;
  background: #07090a;
  font-size: 14px;
}

.game-shell.is-paused .game-controls > span i {
  background: var(--orange);
  box-shadow: 0 0 12px rgba(245, 176, 0, 0.62);
}

.projects {
  background:
    radial-gradient(circle at 84% 8%, rgba(245, 176, 0, 0.1), transparent 28%),
    linear-gradient(180deg, #090b0d 0%, #0e1114 100%);
}

.section-heading.compact {
  grid-template-columns: 0.55fr 2.25fr;
}

.section-heading.compact.application-heading {
  grid-template-columns: minmax(150px, 0.45fr) minmax(440px, 1.55fr) minmax(260px, 0.8fr);
  align-items: end;
  gap: clamp(26px, 4vw, 68px);
}

.application-heading > p:last-child {
  grid-column: 3;
  margin: 0 0 8px;
  color: #b7bbbc;
  font-size: 16px;
  line-height: 1.65;
}

.project-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  max-width: 1500px;
  margin: 0 auto;
}

.project-card {
  position: relative;
  display: flex;
  min-height: 730px;
  flex-direction: column;
  padding: 0;
  border: 1px solid var(--line);
  background: linear-gradient(155deg, #171b1f 0%, #0b0e10 82%);
  box-shadow: 0 22px 55px rgba(0, 0, 0, 0.2);
  overflow: hidden;
  transition: border-color 220ms ease, box-shadow 220ms ease, transform 220ms ease;
}

.project-card:hover {
  border-color: var(--orange);
  box-shadow: 0 26px 70px rgba(0, 0, 0, 0.36);
  transform: translateY(-6px);
}

.project-meta {
  position: relative;
  z-index: 3;
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 64px;
  padding: 16px 20px;
  color: var(--muted);
  border-bottom: 1px solid var(--line);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.15em;
}

.project-meta b {
  color: var(--orange);
  font-family: var(--display);
  font-size: 24px;
  line-height: 1;
}

.project-visual {
  position: relative;
  width: 100%;
  height: auto;
  aspect-ratio: 3 / 2;
  margin: 0;
  overflow: hidden;
  border-bottom: 1px solid var(--line);
  background: #171b1f;
}

.project-visual::before {
  content: "";
  position: absolute;
  z-index: 1;
  inset: 0;
  background:
    linear-gradient(180deg, transparent 46%, rgba(5, 7, 8, 0.9) 100%),
    linear-gradient(115deg, rgba(245, 176, 0, 0.1), transparent 42%);
  pointer-events: none;
}

.project-visual picture {
  display: block;
  width: 100%;
  height: 100%;
}

.project-visual img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(0.82) contrast(1.08);
  transition: filter 400ms ease, transform 600ms cubic-bezier(0.22, 1, 0.36, 1);
}

.project-two .project-visual img {
  object-position: 55% center;
}

.project-card:hover .project-visual img {
  filter: saturate(0.98) contrast(1.04);
  transform: scale(1.045);
}

.project-visual figcaption {
  position: absolute;
  z-index: 2;
  right: 16px;
  bottom: 15px;
  left: 16px;
  color: #f7f4e9;
  font-size: 12px;
  font-weight: 850;
  letter-spacing: 0.12em;
}

.project-copy {
  display: flex;
  flex: 1;
  flex-direction: column;
  padding: 28px 24px 26px;
}

.project-card h3,
.project-card p {
  position: static;
}

.project-card h3 {
  margin: 0 0 16px;
  font-family: var(--display);
  font-size: clamp(32px, 3vw, 44px);
  line-height: 0.98;
  text-transform: uppercase;
}

.project-card .project-kicker {
  margin: 0 0 10px;
  color: var(--orange);
  font-size: 12px;
  font-weight: 850;
  letter-spacing: 0.14em;
}

.project-copy > p:not(.project-kicker) {
  max-width: 460px;
  margin: 0;
  color: #b7bbbc;
  font-size: 16px;
  line-height: 1.62;
}

.project-points {
  display: grid;
  gap: 9px;
  margin: auto 0 0;
  padding: 22px 0 0;
  border-top: 1px solid var(--line);
  list-style: none;
}

.project-points li {
  position: relative;
  padding-left: 19px;
  color: #e3e3dd;
  font-size: 14px;
  line-height: 1.45;
}

.project-points li::before {
  content: "";
  position: absolute;
  top: 0.56em;
  left: 0;
  width: 8px;
  height: 2px;
  background: var(--orange);
}

.field-gallery {
  color: var(--ink);
  background:
    linear-gradient(rgba(9, 11, 13, 0.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(9, 11, 13, 0.045) 1px, transparent 1px),
    #e6e2d8;
  background-size: 36px 36px, 36px 36px, auto;
}

.section-heading.compact.field-gallery-heading {
  grid-template-columns: minmax(150px, 0.45fr) minmax(440px, 1.55fr) minmax(260px, 0.8fr);
  align-items: end;
  gap: clamp(26px, 4vw, 68px);
}

.field-gallery-heading .section-index,
.field-gallery-heading h2,
.field-gallery-heading h2 em {
  color: var(--ink);
}

.field-gallery-heading > p:last-child {
  grid-column: 3;
  margin: 0 0 8px;
  color: #3f4446;
  font-size: 16px;
  line-height: 1.65;
}

.field-gallery-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  max-width: 1500px;
  margin: 0 auto;
}

.field-card {
  position: relative;
  min-height: 390px;
  color: var(--paper);
  border: 1px solid rgba(9, 11, 13, 0.25);
  background: #171b1e;
  overflow: hidden;
  isolation: isolate;
}

.field-card::after {
  content: "";
  position: absolute;
  z-index: 1;
  inset: 0;
  background:
    linear-gradient(180deg, transparent 38%, rgba(5, 7, 8, 0.88) 100%),
    linear-gradient(110deg, rgba(245, 176, 0, 0.1), transparent 42%);
  pointer-events: none;
}

.field-card img {
  width: 100%;
  height: 100%;
  min-height: 390px;
  object-fit: cover;
  filter: saturate(0.82) contrast(1.04);
  transition: filter 360ms ease, transform 650ms cubic-bezier(0.22, 1, 0.36, 1);
}

.field-card:hover img,
.field-card:focus-visible img {
  filter: saturate(1) contrast(1.02);
  transform: scale(1.035);
}

.field-card > span {
  position: absolute;
  z-index: 2;
  right: 24px;
  bottom: 22px;
  left: 24px;
  display: grid;
  gap: 5px;
}

.field-card small {
  color: var(--orange);
  font-size: 11px;
  font-weight: 850;
  letter-spacing: 0.15em;
}

.field-card strong {
  font-family: var(--display);
  font-size: clamp(31px, 3.6vw, 54px);
  line-height: 0.94;
  text-transform: uppercase;
}

.field-card em {
  color: #d7dad8;
  font-size: 14px;
  font-style: normal;
}

.field-gallery-note {
  max-width: 920px;
  margin: 26px auto 0;
  padding-left: 18px;
  color: #44494b;
  border-left: 4px solid var(--orange);
  font-size: 14px;
  line-height: 1.65;
}

.monitor-page-body {
  background: #090b0d;
}

.monitor-page-body .site-header.is-scrolled {
  background: rgba(9, 11, 13, 0.94);
}

.monitor-hero {
  position: relative;
  display: grid;
  min-height: 76svh;
  padding: 156px clamp(20px, 6vw, 110px) clamp(82px, 8vw, 126px);
  background:
    radial-gradient(circle at 80% 26%, rgba(245, 176, 0, 0.25), transparent 22%),
    linear-gradient(135deg, #07090a 0%, #14191d 56%, #090b0d 100%);
  isolation: isolate;
  overflow: hidden;
}

.monitor-hero::before {
  content: "";
  position: absolute;
  z-index: -1;
  inset: 0;
  opacity: 0.13;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.1) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.1) 1px, transparent 1px);
  background-size: 54px 54px;
}

.monitor-hero::after {
  content: "";
  position: absolute;
  z-index: -1;
  top: -35%;
  right: 14%;
  width: 2px;
  height: 150%;
  background: var(--orange);
  box-shadow: 0 0 25px rgba(245, 176, 0, 0.55);
  transform: rotate(12deg);
}

.monitor-hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(330px, 0.65fr);
  gap: clamp(42px, 8vw, 130px);
  align-items: end;
  width: 100%;
  max-width: 1500px;
  margin: auto;
}

.monitor-hero-copy {
  min-width: 0;
}

.monitor-kicker {
  display: flex;
  align-items: center;
  gap: 11px;
  margin-bottom: 27px;
  color: #d4d7d6;
  font-size: 12px;
  font-weight: 850;
  letter-spacing: 0.17em;
}

.monitor-kicker span {
  width: 10px;
  height: 10px;
  background: var(--orange);
  transform: rotate(45deg);
}

.monitor-hero h1 {
  max-width: 1020px;
  margin: 0 0 31px;
  font-size: clamp(70px, 8.8vw, 142px);
}

.monitor-hero-copy > p:not(.monitor-kicker) {
  max-width: 720px;
  margin-bottom: 34px;
  color: #bfc3c3;
  font-size: clamp(17px, 1.35vw, 21px);
  line-height: 1.7;
}

.monitor-hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.monitor-status-panel {
  min-width: 0;
  padding: clamp(24px, 3vw, 42px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  background: rgba(8, 11, 13, 0.84);
  box-shadow: 12px 12px 0 rgba(245, 176, 0, 0.85);
  backdrop-filter: blur(12px);
}

.monitor-status-live {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  margin-bottom: 24px;
  color: #dfe7e1;
  font-size: 10px;
  font-weight: 850;
  letter-spacing: 0.14em;
}

.monitor-status-live i {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #69d189;
  box-shadow: 0 0 0 5px rgba(105, 209, 137, 0.13);
}

.monitor-status-panel dl {
  margin: 0;
  border-top: 1px solid rgba(255, 255, 255, 0.17);
}

.monitor-status-panel dl > div {
  display: grid;
  grid-template-columns: 50px minmax(0, 1fr);
  gap: 16px;
  padding: 18px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.17);
}

.monitor-status-panel dt {
  color: var(--orange);
  font-family: var(--display);
  font-size: 23px;
  font-weight: 900;
}

.monitor-status-panel dd {
  display: grid;
  gap: 2px;
  margin: 0;
}

.monitor-status-panel dd strong {
  font-family: var(--display);
  font-size: 22px;
  line-height: 1;
  text-transform: uppercase;
}

.monitor-status-panel dd span,
.monitor-status-panel > p {
  color: #aeb3b4;
  font-size: 12px;
}

.monitor-status-panel > p {
  margin: 19px 0 0;
  color: var(--orange);
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.weather-live,
.hazard-monitor {
  scroll-margin-top: 68px;
}

.weather-live {
  position: relative;
  color: var(--ink);
  background:
    linear-gradient(rgba(9, 11, 13, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(9, 11, 13, 0.04) 1px, transparent 1px),
    #e8e4da;
  background-size: 42px 42px, 42px 42px, auto;
  overflow: hidden;
}

.weather-live::before {
  content: "";
  position: absolute;
  top: -260px;
  right: -210px;
  width: 620px;
  height: 620px;
  border: 90px solid rgba(245, 176, 0, 0.18);
  border-radius: 50%;
  pointer-events: none;
}

.weather-section-head,
.weather-flow-card,
.weather-dashboard-grid {
  position: relative;
  z-index: 1;
  max-width: 1500px;
  margin-inline: auto;
}

.weather-section-head {
  display: grid;
  grid-template-columns: minmax(82px, 0.2fr) minmax(500px, 1.45fr) minmax(280px, 0.68fr);
  gap: clamp(26px, 4vw, 66px);
  align-items: end;
  margin-bottom: clamp(44px, 6vw, 78px);
}

.weather-title-mark {
  display: grid;
  place-items: center;
  width: clamp(72px, 7vw, 104px);
  aspect-ratio: 1;
  color: var(--ink);
  border: 2px solid var(--ink);
  background: var(--orange);
  box-shadow: 9px 9px 0 var(--ink);
}

.weather-title-mark svg {
  width: 58%;
  height: 58%;
  fill: none;
  stroke: currentColor;
  stroke-width: 3.2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.weather-section-head h2,
.hazard-section-head h2 {
  margin: 18px 0 0;
  font-size: clamp(52px, 6.4vw, 96px);
}

.weather-head-copy {
  padding-bottom: 4px;
}

.weather-head-copy > p {
  margin: 0 0 20px;
  color: #414649;
  line-height: 1.7;
}

.live-data-badge,
.recent-live-mark {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  min-height: 35px;
  padding: 7px 11px;
  color: #dce5df;
  background: #101417;
  font-size: 11px;
  font-weight: 850;
  letter-spacing: 0.13em;
}

.live-data-badge i,
.recent-live-mark i,
.recent-auto-toggle i {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #69d189;
  box-shadow: 0 0 0 5px rgba(105, 209, 137, 0.13);
}

.weather-flow-card {
  margin-bottom: clamp(28px, 4vw, 48px);
  color: var(--paper);
  border: 1px solid rgba(9, 11, 13, 0.56);
  background:
    linear-gradient(120deg, rgba(245, 176, 0, 0.12), transparent 36%),
    #0d1114;
  box-shadow: 12px 12px 0 rgba(9, 11, 13, 0.16);
  overflow: hidden;
}

.weather-flow-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 28px;
  padding: clamp(22px, 3vw, 38px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.15);
}

.weather-flow-head h3 {
  margin: 6px 0 8px;
  font-family: var(--display);
  font-size: clamp(30px, 3.2vw, 48px);
  line-height: 0.96;
  text-transform: uppercase;
}

.weather-flow-head p {
  max-width: 720px;
  margin: 0;
  color: #b8bec0;
  line-height: 1.6;
}

.weather-flow-toggle,
.recent-auto-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  min-height: 44px;
  padding: 10px 14px;
  color: #e7ece8;
  border: 1px solid rgba(105, 209, 137, 0.4);
  background: rgba(105, 209, 137, 0.08);
  font-size: 11px;
  font-weight: 850;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  cursor: pointer;
}

.weather-flow-toggle:hover,
.weather-flow-toggle[aria-pressed="false"],
.recent-auto-toggle:hover,
.recent-auto-toggle[aria-pressed="false"] {
  color: var(--ink);
  background: var(--orange);
  border-color: var(--orange);
}

.weather-flow-toggle:focus-visible,
.recent-auto-toggle:focus-visible,
.weather-flow-day:focus-visible {
  outline: 3px solid #fff0bd;
  outline-offset: 3px;
}

.weather-flow-toggle-icon {
  font-size: 14px;
  letter-spacing: -0.25em;
  transform: translateX(-0.1em);
}

.weather-flow-days {
  display: grid;
  grid-template-columns: repeat(7, minmax(96px, 1fr));
  min-height: 76px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.15);
  overflow-x: auto;
  scrollbar-width: thin;
  scrollbar-color: var(--orange) #171c1f;
}

.weather-flow-day {
  display: grid;
  place-items: center;
  align-content: center;
  gap: 4px;
  min-width: 96px;
  min-height: 76px;
  padding: 10px 8px;
  color: #adb4b6;
  border: 0;
  border-right: 1px solid rgba(255, 255, 255, 0.13);
  background: transparent;
  cursor: pointer;
}

.weather-flow-day:last-child {
  border-right: 0;
}

.weather-flow-day span {
  font-size: 10px;
  font-weight: 850;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.weather-flow-day b {
  color: #f2f4f2;
  font-family: var(--display);
  font-size: 22px;
  line-height: 1;
}

.weather-flow-day:hover,
.weather-flow-day[aria-selected="true"] {
  color: var(--ink);
  background: var(--orange);
}

.weather-flow-day[aria-selected="true"] b,
.weather-flow-day:hover b {
  color: var(--ink);
}

.weather-flow-stage {
  min-height: 218px;
  padding: clamp(20px, 2.5vw, 32px);
}

.weather-flow-active-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 17px;
}

.weather-flow-active-head strong {
  font-family: var(--display);
  font-size: clamp(24px, 2.6vw, 38px);
  line-height: 1;
  text-transform: uppercase;
}

.weather-flow-active-head span {
  color: #aeb4b6;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.weather-region-grid {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 10px;
}

.weather-region-card {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 8px 10px;
  min-width: 0;
  padding: 14px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: rgba(255, 255, 255, 0.045);
}

.weather-region-card .weather-region-name {
  min-width: 0;
}

.weather-region-name small,
.weather-region-meta {
  display: block;
  color: #8f9799;
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 0.09em;
  line-height: 1.3;
  text-transform: uppercase;
}

.weather-region-name strong {
  display: block;
  margin-top: 4px;
  overflow: hidden;
  color: #f2f4f2;
  font-size: 14px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.weather-region-symbol {
  grid-row: span 2;
  align-self: center;
  color: var(--orange);
  font-family: var(--display);
  font-size: 27px;
  font-weight: 900;
}

.weather-region-temp {
  color: #fff;
  font-family: var(--display);
  font-size: 24px;
  line-height: 1;
}

.weather-region-temp small {
  color: #8f9799;
  font-family: var(--sans);
  font-size: 10px;
}

.weather-region-condition {
  grid-column: 1 / -1;
  min-height: 30px;
  color: #c9cecf;
  font-size: 11px;
  font-weight: 700;
  line-height: 1.35;
}

.weather-region-meta {
  grid-column: 1 / -1;
  color: #8f9799;
  letter-spacing: 0.04em;
  text-transform: none;
}

.weather-flow-progress {
  height: 4px;
  background: rgba(255, 255, 255, 0.12);
  overflow: hidden;
}

.weather-flow-progress i {
  display: block;
  width: 0;
  height: 100%;
  background: var(--orange);
}

.weather-flow-card[data-playing="true"] .weather-flow-progress i {
  animation: weather-flow-progress 5.8s linear forwards;
}

.weather-flow-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  min-height: 50px;
  padding: 11px clamp(20px, 2.5vw, 32px);
  color: #9ea5a7;
  font-size: 11px;
  font-weight: 700;
}

.weather-flow-foot a {
  color: #ffd05c;
  text-decoration: underline;
  text-decoration-color: rgba(255, 208, 92, 0.4);
  text-underline-offset: 4px;
}

.weather-flow-loading {
  align-self: center;
  margin: auto;
  padding: 24px;
  color: #aab0b2;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

@keyframes weather-flow-progress {
  from { width: 0; }
  to { width: 100%; }
}

.weather-dashboard-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.6fr) minmax(300px, 0.62fr);
  gap: clamp(20px, 2.5vw, 36px);
  align-items: stretch;
}

.weather-map-card {
  min-width: 0;
  color: var(--paper);
  border: 1px solid rgba(9, 11, 13, 0.36);
  background: #0d1114;
  box-shadow: 14px 14px 0 rgba(9, 11, 13, 0.17);
}

.weather-card-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: 94px;
  padding: 18px clamp(18px, 2.2vw, 32px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.17);
}

.dashboard-overline {
  display: block;
  margin-bottom: 6px;
  color: var(--orange);
  font-size: 10px;
  font-weight: 900;
  letter-spacing: 0.17em;
  line-height: 1.3;
}

.weather-card-bar strong {
  display: block;
  font-family: var(--display);
  font-size: clamp(22px, 2.2vw, 34px);
  line-height: 1;
  text-transform: uppercase;
}

.weather-layer-controls,
.recent-tabs {
  display: inline-grid;
  grid-auto-flow: column;
  grid-auto-columns: max-content;
  border: 1px solid rgba(255, 255, 255, 0.25);
}

.weather-layer-controls button,
.recent-tabs button {
  min-height: 46px;
  padding: 10px 13px;
  color: #c8cccd;
  border: 0;
  border-right: 1px solid rgba(255, 255, 255, 0.22);
  background: transparent;
  font-size: 12px;
  font-weight: 800;
  cursor: pointer;
}

.weather-layer-controls button:last-child,
.recent-tabs button:last-child {
  border-right: 0;
}

.weather-layer-controls button:hover,
.weather-layer-controls button[aria-pressed="true"],
.recent-tabs button:hover,
.recent-tabs button[aria-selected="true"] {
  color: var(--ink);
  background: var(--orange);
}

.weather-layer-controls button:focus-visible,
.recent-tabs button:focus-visible {
  position: relative;
  z-index: 2;
  outline: 3px solid #fff0bd;
  outline-offset: -3px;
}

.weather-frame-wrap {
  position: relative;
  height: clamp(490px, 51vw, 680px);
  min-height: 490px;
  background:
    radial-gradient(circle at 52% 43%, rgba(245, 176, 0, 0.13), transparent 34%),
    #11171a;
  overflow: hidden;
}

.weather-frame-wrap iframe {
  display: block;
  width: 100%;
  height: 100%;
  border: 0;
  background: #11171a;
}

.weather-frame-wrap iframe:focus-visible,
.hazard-map:focus-visible {
  outline: 4px solid var(--orange);
  outline-offset: -4px;
}

.dashboard-source-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  min-height: 55px;
  padding: 12px clamp(18px, 2.2vw, 32px);
  color: #aeb3b4;
  border-top: 1px solid rgba(255, 255, 255, 0.16);
  font-size: 12px;
}

.dashboard-source-row a,
.official-source-links a,
.recent-source-links a {
  color: #ffd05c;
  font-weight: 750;
  text-decoration: underline;
  text-decoration-color: rgba(255, 208, 92, 0.4);
  text-underline-offset: 4px;
}

.dashboard-source-row a:hover,
.official-source-links a:hover,
.recent-source-links a:hover {
  color: #fff0bd;
  text-decoration-color: currentColor;
}

.weather-info-card {
  display: flex;
  flex-direction: column;
  min-width: 0;
  padding: clamp(28px, 3.2vw, 50px);
  color: var(--ink);
  border: 1px solid var(--ink);
  background: var(--orange);
  box-shadow: 10px 10px 0 rgba(9, 11, 13, 0.92);
}

.weather-info-card .dashboard-overline {
  color: var(--ink);
}

.weather-info-card h3,
.hazard-card-head h3,
.recent-card-head h3 {
  margin: 8px 0 22px;
  font-family: var(--display);
  font-size: clamp(34px, 3.6vw, 55px);
  line-height: 0.96;
  text-transform: uppercase;
}

.weather-info-card > p:not(.dashboard-caution) {
  margin-bottom: 28px;
  font-weight: 600;
}

.weather-check-list {
  margin: 0 0 28px;
  border-top: 1px solid rgba(9, 11, 13, 0.38);
}

.weather-check-list > div {
  display: grid;
  grid-template-columns: 0.65fr 1.35fr;
  gap: 14px;
  padding: 15px 0;
  border-bottom: 1px solid rgba(9, 11, 13, 0.38);
}

.weather-check-list dt {
  font-family: var(--display);
  font-size: 19px;
  font-weight: 900;
  text-transform: uppercase;
}

.weather-check-list dd {
  margin: 0;
  font-size: 13px;
  font-weight: 650;
}

.official-source-links,
.recent-source-links {
  display: grid;
  gap: 9px;
}

.official-source-links a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 48px;
  padding: 10px 13px;
  color: var(--paper);
  background: var(--ink);
  text-decoration: none;
}

.official-source-links a:hover {
  color: var(--orange);
}

.dashboard-caution {
  margin: auto 0 0;
  padding-top: 28px;
  font-size: 12px;
  font-weight: 700;
  line-height: 1.55;
}

.hazard-monitor {
  position: relative;
  background:
    radial-gradient(circle at 10% 3%, rgba(245, 176, 0, 0.14), transparent 29%),
    linear-gradient(145deg, #090b0d, #12171b 55%, #080a0c);
  overflow: hidden;
}

.hazard-monitor::before {
  content: "";
  position: absolute;
  inset: 0;
  opacity: 0.11;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.09) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.09) 1px, transparent 1px);
  background-size: 48px 48px;
  pointer-events: none;
}

.hazard-section-head,
.hazard-dashboard-grid {
  position: relative;
  z-index: 1;
  max-width: 1500px;
  margin-inline: auto;
}

.hazard-section-head {
  display: grid;
  grid-template-columns: minmax(520px, 1.45fr) minmax(290px, 0.55fr);
  gap: clamp(40px, 7vw, 118px);
  align-items: end;
  margin-bottom: clamp(44px, 6vw, 78px);
}

.hazard-section-head > p {
  margin: 0 0 7px;
  color: #b7bcbe;
  line-height: 1.72;
}

.hazard-dashboard-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) minmax(340px, 0.62fr);
  gap: clamp(20px, 2.5vw, 36px);
  align-items: start;
}

.hazard-map-card,
.recent-events-card {
  min-width: 0;
  border: 1px solid rgba(255, 255, 255, 0.2);
  background: rgba(10, 13, 15, 0.94);
  box-shadow: 12px 12px 0 rgba(0, 0, 0, 0.3);
}

.hazard-card-head,
.recent-card-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
  padding: clamp(22px, 3vw, 38px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.16);
}

.hazard-card-head h3,
.recent-card-head h3 {
  margin-bottom: 0;
}

.hazard-status,
.recent-status-line {
  color: #b8bebf;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.08em;
}

.hazard-status {
  flex: 0 0 auto;
  padding: 7px 10px;
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.hazard-filters {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  padding: 18px clamp(18px, 2.5vw, 34px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.16);
}

.hazard-filters label {
  display: grid;
  gap: 7px;
}

.hazard-filters label > span {
  color: #9fa5a7;
  font-size: 10px;
  font-weight: 850;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

.hazard-filters select {
  width: 100%;
  min-height: 48px;
  padding: 9px 12px;
  color: var(--paper);
  border: 1px solid rgba(255, 255, 255, 0.24);
  border-radius: 0;
  background: #171c20;
  color-scheme: dark;
}

.map-skip-link {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  margin: 10px clamp(18px, 2.5vw, 34px);
  color: #ffd05c;
  font-size: 12px;
  font-weight: 800;
  text-decoration: underline;
  text-underline-offset: 4px;
}

.hazard-map {
  position: relative;
  width: 100%;
  height: clamp(440px, 48vw, 630px);
  min-height: 440px;
  color: var(--ink);
  background:
    linear-gradient(145deg, rgba(245, 176, 0, 0.08), transparent 52%),
    #d9d7cf;
  isolation: isolate;
}

.map-loading-message {
  position: absolute;
  z-index: 0;
  inset: 50% auto auto 50%;
  width: max-content;
  max-width: 80%;
  margin: 0;
  color: #515659;
  font-size: 13px;
  font-weight: 800;
  text-align: center;
  transform: translate(-50%, -50%);
}

.hazard-map .leaflet-control-attribution {
  font-size: 10px;
}

.hazard-map .leaflet-popup-content-wrapper,
.hazard-map .leaflet-popup-tip {
  color: var(--ink);
  border-radius: 0;
  background: #f4f1e7;
}

.hazard-map .leaflet-popup-content {
  min-width: 190px;
  font-family: var(--body);
  line-height: 1.45;
}

.hazard-map-legend {
  display: grid;
  gap: 5px;
  padding: 9px 10px;
  color: var(--ink);
  border: 1px solid rgba(9, 11, 13, 0.26);
  background: rgba(244, 241, 231, 0.92);
  box-shadow: 4px 4px 0 rgba(9, 11, 13, 0.2);
  font-family: var(--body);
  font-size: 10px;
  font-weight: 800;
}

.hazard-map-legend-item {
  display: flex;
  align-items: center;
  gap: 7px;
}

.hazard-map-legend-item i {
  width: 9px;
  height: 9px;
  border: 1px solid #090b0d;
  border-radius: 50%;
  background: var(--orange);
}

.hazard-map-legend-item i.is-quake {
  background: #ff3d1f;
}

.hazard-map-legend-item i.is-risk {
  border-radius: 0;
  background: #596ef5;
}

.hazard-popup {
  display: grid;
  gap: 7px;
}

.hazard-popup-type {
  color: #926700;
  font-size: 10px;
  font-weight: 900;
  letter-spacing: 0.08em;
}

.hazard-popup-type.is-quake {
  color: #bc2b17;
}

.hazard-popup-type.is-risk {
  color: #3048c7;
}

.hazard-popup-title {
  font-family: var(--display);
  font-size: 20px;
  line-height: 1.05;
  text-transform: uppercase;
}

.hazard-popup-date,
.hazard-popup-description,
.hazard-popup-probability {
  margin: 0;
  color: #4d5254;
  font-size: 12px;
}

.hazard-popup-probability {
  color: #3048c7;
  font-size: 22px;
  font-weight: 900;
}

.hazard-popup-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 12px;
}

.hazard-popup a {
  color: #795400;
  font-size: 11px;
  font-weight: 800;
  text-decoration: underline;
}

.hazard-map-meta {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 25px;
  padding: 18px clamp(18px, 2.5vw, 34px);
  color: #aeb3b4;
  border-top: 1px solid rgba(255, 255, 255, 0.16);
  border-bottom: 1px solid rgba(255, 255, 255, 0.16);
  font-size: 12px;
  line-height: 1.6;
}

.hazard-map-meta p {
  max-width: 670px;
  margin: 0;
}

.hazard-map-meta > span {
  flex: 0 0 auto;
}

.historical-list-wrap {
  padding: clamp(22px, 3vw, 36px);
}

.event-list-heading {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 15px;
}

.event-list-heading h4 {
  margin: 0;
  font-family: var(--display);
  font-size: 25px;
  text-transform: uppercase;
}

.event-list-heading span {
  color: var(--orange);
  font-size: 11px;
  font-weight: 850;
  letter-spacing: 0.08em;
}

.event-list-heading > div > span {
  display: block;
  margin-top: 4px;
  color: #9fa5a7;
  letter-spacing: 0.02em;
}

.event-list-heading b {
  font: inherit;
}

.hazard-event-list,
.recent-event-list {
  margin: 0;
  padding: 0;
  list-style: none;
}

.hazard-event-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 9px;
  max-height: 340px;
  overflow: auto;
  scrollbar-color: var(--orange) #1b2023;
}

.hazard-event-list > li,
.recent-event-list > li {
  min-width: 0;
  padding: 15px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  background: #14191d;
}

.event-placeholder {
  grid-column: 1 / -1;
  color: #aab0b1;
  font-size: 13px;
}

.hazard-empty {
  grid-column: 1 / -1;
  color: #aeb3b4;
  font-size: 13px;
}

.hazard-event-main,
.recent-event-button {
  display: grid;
  width: 100%;
  padding: 0;
  color: var(--paper);
  border: 0;
  background: transparent;
  text-align: left;
  cursor: pointer;
}

.hazard-event-main {
  gap: 5px;
}

.hazard-event-main:hover .hazard-event-title,
.recent-event-button:hover .recent-event-place {
  color: var(--orange);
}

.hazard-event-main:focus-visible,
.recent-event-button:focus-visible,
[data-hazard-refresh]:focus-visible {
  outline: 3px solid var(--orange);
  outline-offset: 4px;
}

.hazard-event-type,
.hazard-event-time,
.recent-event-time {
  color: #9fa5a7;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.06em;
}

.hazard-event-type {
  color: var(--orange);
}

.hazard-event-title,
.recent-event-place {
  font-family: var(--display);
  font-size: 20px;
  line-height: 1.08;
  text-transform: uppercase;
  transition: color 160ms ease;
}

.hazard-event-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 12px;
  padding-top: 10px;
  border-top: 1px solid rgba(255, 255, 255, 0.11);
}

.hazard-event-list p,
.recent-event-list p {
  margin: 0;
  color: #acb1b2;
  font-size: 12px;
  line-height: 1.5;
}

.hazard-sources {
  padding-inline: clamp(18px, 2.5vw, 34px);
}

.recent-events-card {
  color: var(--paper);
  background:
    linear-gradient(180deg, rgba(245, 176, 0, 0.08), transparent 22%),
    #0d1114;
}

.recent-live-mark {
  color: #dfe7e1;
  border: 1px solid rgba(105, 209, 137, 0.35);
  background: rgba(105, 209, 137, 0.08);
}

.recent-auto-toggle {
  flex: 0 0 auto;
}

.recent-auto-toggle[aria-pressed="false"] i {
  background: var(--ink);
  box-shadow: none;
}

.recent-tabs {
  width: calc(100% - clamp(36px, 5vw, 68px));
  margin: 22px clamp(18px, 2.5vw, 34px) 0;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  grid-auto-flow: initial;
  grid-auto-columns: initial;
}

.recent-tabs button {
  width: 100%;
  min-height: 50px;
}

.latest-landslide {
  display: grid;
  gap: 5px;
  margin: 15px clamp(18px, 2.5vw, 34px) 0;
  padding: 15px;
  border-left: 3px solid var(--orange);
  background: rgba(245, 176, 0, 0.08);
}

.latest-archive-label {
  color: var(--orange);
  font-size: 10px;
  font-weight: 900;
  letter-spacing: 0.11em;
}

.latest-landslide strong {
  font-family: var(--display);
  font-size: 21px;
  line-height: 1.08;
  text-transform: uppercase;
}

.latest-landslide time {
  color: #aeb3b4;
  font-size: 11px;
}

.latest-landslide a {
  width: fit-content;
  color: #ffd05c;
  font-size: 11px;
  font-weight: 800;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.recent-status-line {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 15px;
  min-height: 48px;
  padding-block: 13px;
  margin-inline: clamp(18px, 2.5vw, 34px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.14);
}

.recent-status-line [data-recent-status] {
  grid-column: 1 / -1;
}

.recent-status-line time {
  color: var(--orange);
}

.recent-status-line [data-hazard-refresh] {
  flex: 0 0 auto;
  min-height: 38px;
  padding: 7px 10px;
  color: var(--paper);
  border: 1px solid rgba(255, 255, 255, 0.25);
  background: transparent;
  font-size: 11px;
  font-weight: 800;
  cursor: pointer;
}

.recent-status-line [data-hazard-refresh]:hover {
  color: var(--ink);
  background: var(--orange);
  border-color: var(--orange);
}

.recent-status-line [data-hazard-refresh]:disabled {
  opacity: 0.55;
  cursor: progress;
}

.recent-event-list {
  display: grid;
  gap: 9px;
  max-height: 590px;
  margin: 18px clamp(18px, 2.5vw, 34px);
  overflow: auto;
  scrollbar-color: var(--orange) #1b2023;
}

.recent-event-list > li {
  padding: 17px;
}

.recent-event-button {
  grid-template-columns: auto minmax(0, 1fr);
  gap: 6px 12px;
  align-items: center;
}

.recent-event-magnitude {
  grid-row: 1 / span 2;
  display: grid;
  place-items: center;
  min-width: 54px;
  min-height: 54px;
  padding: 5px;
  color: var(--ink);
  background: var(--orange);
  font-family: var(--display);
  font-size: 20px;
  font-weight: 900;
}

.recent-event-item.is-quake .recent-event-magnitude {
  color: #fff;
  background: #d83b21;
}

.recent-event-item.is-risk.is-high .recent-event-magnitude {
  color: #fff;
  background: #b82419;
}

.recent-event-item.is-risk.is-medium .recent-event-magnitude {
  color: #fff;
  background: #3856d6;
}

.recent-event-item.is-risk {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 6px 12px;
  align-items: center;
}

.recent-event-item.is-risk .recent-event-magnitude {
  grid-row: 1 / span 2;
}

.recent-event-item > .hazard-source-link {
  display: inline-block;
  margin-top: 11px;
}

.recent-event-list a,
.hazard-event-list a {
  color: #ffd05c;
  font-size: 12px;
  font-weight: 750;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.recent-source-links {
  margin: 22px clamp(18px, 2.5vw, 34px);
  padding-top: 18px;
  border-top: 1px solid rgba(255, 255, 255, 0.16);
}

.lhasa-meta {
  margin: -2px clamp(18px, 2.5vw, 34px) 18px;
  color: #92999b;
  font-size: 11px;
  line-height: 1.55;
}

[data-state="error"] {
  color: #ff8e76 !important;
}

[data-state="cached"],
[data-state="notice"] {
  color: #ffd05c !important;
}

.recent-source-links a {
  display: flex;
  justify-content: space-between;
  min-height: 42px;
}

.emergency-disclaimer {
  margin: 0;
  padding: 20px clamp(18px, 2.5vw, 34px);
  color: #d4d7d6;
  border-top: 4px solid var(--orange);
  background: rgba(245, 176, 0, 0.1);
  font-size: 12px;
  line-height: 1.6;
}

.emergency-disclaimer strong {
  display: block;
  margin-bottom: 3px;
  color: var(--orange);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.capability {
  display: grid;
  grid-template-columns: minmax(300px, 1fr) minmax(420px, 1fr);
  gap: clamp(50px, 9vw, 150px);
  color: var(--ink);
  background: var(--paper);
}

.capability-title {
  position: sticky;
  top: 120px;
  align-self: start;
}

.capability h2 {
  margin-top: 24px;
}

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

.process-list li {
  display: grid;
  grid-template-columns: 70px 1fr;
  gap: 20px;
  padding: 34px 0;
  border-top: 1px solid rgba(9, 11, 13, 0.24);
}

.process-list li:last-child {
  border-bottom: 1px solid rgba(9, 11, 13, 0.24);
}

.process-list > li > span {
  color: var(--orange);
  font-family: var(--display);
  font-size: 24px;
  font-weight: 900;
}

.process-list h3 {
  margin: 0 0 8px;
  font-family: var(--display);
  font-size: 32px;
  text-transform: uppercase;
}

.process-list p {
  margin: 0;
  color: #56595c;
}

.contact {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: clamp(50px, 8vw, 130px);
  padding: clamp(90px, 11vw, 165px) clamp(20px, 6vw, 110px);
  background: var(--orange);
  color: var(--ink);
}

.contact .section-index {
  color: var(--ink);
}

.contact h2 {
  margin: 24px 0 32px;
}

.contact h2 em {
  color: var(--paper);
}

.contact-copy > p:last-child {
  max-width: 470px;
  font-weight: 600;
}

.contact-form {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 22px 16px;
  align-content: start;
  padding: clamp(26px, 4vw, 54px);
  color: var(--paper);
  background: var(--ink);
}

.contact-form label {
  display: grid;
  gap: 8px;
}

.contact-form label > span {
  color: #c4c6c6;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.11em;
  text-transform: uppercase;
}

.contact-form input,
.contact-form select,
.contact-form textarea {
  width: 100%;
  min-height: 50px;
  padding: 12px 0;
  color: var(--paper);
  border: 0;
  border-bottom: 1px solid #464a4e;
  border-radius: 0;
  outline: 0;
  background: transparent;
}

.contact-form textarea {
  resize: vertical;
}

.contact-form input::placeholder,
.contact-form textarea::placeholder {
  color: #777b7e;
}

.contact-form select {
  color-scheme: dark;
}

.contact-form input:focus,
.contact-form select:focus,
.contact-form textarea:focus {
  border-color: var(--orange);
}

.contact-form input:focus-visible,
.contact-form select:focus-visible,
.contact-form textarea:focus-visible {
  outline: 3px solid #ffb08e;
  outline-offset: 4px;
}

.full-field {
  grid-column: 1 / -1;
}

.form-status {
  min-height: 28px;
  margin: 0;
  color: #d4d5d3;
  font-size: 14px;
}

.form-note {
  margin: -4px 0 0;
  color: #aeb1b1;
  font-size: 14px;
  line-height: 1.55;
}

.request-summary {
  padding: 20px;
  border: 1px solid #464a4e;
  background: #111519;
}

.request-summary[hidden] {
  display: none;
}

.request-summary-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.request-summary h3 {
  margin: 0;
  color: var(--paper);
  font-family: var(--display);
  font-size: 24px;
  letter-spacing: 0.035em;
}

.request-summary-head button {
  min-height: 44px;
  padding: 9px 13px;
  color: var(--ink);
  border: 1px solid var(--orange);
  background: var(--orange);
  font-weight: 800;
  cursor: pointer;
}

.request-summary-head button:focus-visible {
  outline: 3px solid #ffb08e;
  outline-offset: 3px;
}

.contact-form .request-summary textarea {
  min-height: 185px;
  margin: 14px 0 10px;
  padding: 12px;
  border: 1px solid #464a4e;
  background: #090b0d;
  font-family: ui-monospace, SFMono-Regular, Consolas, monospace;
  font-size: 14px;
  line-height: 1.55;
}

.request-summary > p {
  margin: 0;
  color: #aeb1b1;
  font-size: 14px;
  line-height: 1.5;
}

.site-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  min-height: 160px;
  padding: 34px clamp(20px, 6vw, 110px);
  border-top: 1px solid var(--line);
  background: #050607;
}

.site-footer > p {
  margin: 0;
  color: var(--muted);
  font-family: var(--display);
  font-size: 18px;
  letter-spacing: 0.12em;
}

.site-footer > a:last-child {
  color: var(--orange);
  font-size: 14px;
  font-weight: 750;
}

.reveal-ready [data-reveal] {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 650ms ease, transform 650ms cubic-bezier(0.2, 0.8, 0.2, 1);
}

.reveal-ready [data-reveal].is-visible {
  opacity: 1;
  transform: none;
}

@keyframes pulse {
  50% { opacity: 0.35; transform: scale(0.72); }
}

@keyframes mountainMist {
  from { transform: translate3d(-2%, 1%, 0) scale(0.96); opacity: 0.12; }
  to { transform: translate3d(5%, -2%, 0) scale(1.08); opacity: 0.3; }
}

@keyframes barrierCatch {
  0%, 100% { transform: translate3d(var(--barrier-x, 0), 0, 0) skewX(0deg); }
  38% { transform: translate3d(var(--barrier-x, 0), 5px, 0) skewX(-2deg); filter: drop-shadow(0 0 18px rgba(245, 176, 0, 0.9)); }
  68% { transform: translate3d(var(--barrier-x, 0), -2px, 0) skewX(1deg); }
}

@keyframes impactRing {
  from { opacity: 1; transform: scale(0.25); }
  to { opacity: 0; transform: scale(4.4); }
}

@keyframes rockDust {
  from { opacity: 1; transform: translate(0, 0) rotate(0deg) scale(1); }
  to { opacity: 0; transform: translate(var(--dust-x), var(--dust-y)) rotate(170deg) scale(0.25); }
}

@keyframes fieldImpact {
  0%, 100% { transform: translate3d(0, 0, 0); }
  28% { transform: translate3d(-2px, 1px, 0); }
  62% { transform: translate3d(2px, -1px, 0); }
}

@keyframes barrierCatchV2 {
  0%, 100% { transform: translate3d(var(--barrier-x, 0), 0, 0) scaleY(1); }
  36% { transform: translate3d(var(--barrier-x, 0), 6px, 0) scaleY(0.93); filter: drop-shadow(0 0 20px rgba(245, 176, 0, 0.92)); }
  70% { transform: translate3d(var(--barrier-x, 0), -2px, 0) scaleY(1.025); }
}

@keyframes barrierNetDeflect {
  0%, 100% { transform: perspective(260px) rotateX(-5deg) translateY(0) scaleY(1); filter: none; }
  35% { transform: perspective(260px) rotateX(-5deg) translateY(11px) scaleY(0.8); filter: brightness(1.18); }
  72% { transform: perspective(260px) rotateX(-5deg) translateY(3px) scaleY(0.95); filter: none; }
}

@keyframes cityHit {
  0%, 100% { transform: translateX(-50%) translate3d(0, 0, 0); }
  22% { transform: translateX(-50%) translate3d(-6px, 2px, 0); }
  46% { transform: translateX(-50%) translate3d(5px, -2px, 0); }
  68% { transform: translateX(-50%) translate3d(-3px, 1px, 0); }
}

@keyframes cityDust {
  0% { opacity: 0; transform: translateY(14px) scale(0.75); }
  22% { opacity: 0.82; }
  100% { opacity: 0; transform: translateY(-28px) scale(1.24); }
}

@keyframes cityImpactRing {
  from { opacity: 1; transform: scale(0.3); box-shadow: 0 0 18px var(--orange); }
  to { opacity: 0; transform: scale(5.5); box-shadow: 0 0 0 var(--orange); }
}

@keyframes impactDebris {
  from { opacity: 1; transform: translate(0, 0) rotate(0deg); }
  to { opacity: 0; transform: translate(var(--debris-x), var(--debris-y)) rotate(210deg); }
}

@keyframes bearmanWork {
  0%, 100% { transform: translate3d(0, 0, 0) scale(1.025) rotate(-0.35deg); }
  46% { transform: translate3d(-1.2%, 1.4%, 0) scale(1.045) rotate(0.55deg); }
  64% { transform: translate3d(-0.5%, 0.7%, 0) scale(1.035) rotate(0.1deg); }
}

@keyframes sceneScan {
  0%, 12% { transform: translateY(0); opacity: 0; }
  25% { opacity: 0.8; }
  78% { opacity: 0.7; }
  100% { transform: translateY(360px); opacity: 0; }
}

@keyframes ticker {
  to { transform: translateX(-100%); }
}

@media (max-width: 1080px) {
  .menu-toggle {
    display: block;
  }

  .main-nav {
    position: fixed;
    inset: 68px 0 auto;
    display: grid;
    gap: 0;
    padding: 14px 20px 22px;
    background: rgba(9, 11, 13, 0.97);
    border-bottom: 1px solid var(--line);
  }

  .reveal-ready .main-nav {
    visibility: hidden;
    pointer-events: none;
    transform: translateY(-130%);
    transition: transform 220ms ease, visibility 0s linear 220ms;
  }

  .reveal-ready .main-nav.is-open {
    visibility: visible;
    pointer-events: auto;
    transform: none;
    transition-delay: 0s;
  }

  html:not(.reveal-ready) .menu-toggle {
    display: none;
  }

  html:not(.reveal-ready) .main-nav {
    position: static;
    visibility: visible;
    pointer-events: auto;
    transform: none;
  }

  .main-nav > a {
    padding: 13px 2px !important;
    border-bottom: 1px solid var(--line);
  }

  .nav-cta {
    margin-top: 10px;
    border-bottom: 0 !important;
  }

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

  .hero-story-panel {
    justify-self: end;
    width: min(100%, 860px);
  }

  .hero-panel {
    min-height: 380px;
  }

  .panel-caption {
    display: block;
  }

  .panel-caption span {
    display: block;
    margin-bottom: 15px;
  }

  .panel-caption strong {
    display: block;
  }

  .section-heading {
    grid-template-columns: 0.45fr 1.55fr;
  }

  .field-records-heading {
    grid-template-columns: 0.45fr 1.55fr;
  }

  .field-records-heading > p:last-child {
    grid-column: 2;
    max-width: 720px;
  }

  .monitor-hero-grid {
    grid-template-columns: minmax(0, 1fr);
    gap: 52px;
  }

  .monitor-status-panel {
    width: min(100%, 760px);
  }

  .section-heading > p:last-child {
    grid-column: 2;
  }

  .section-heading.compact.application-heading,
  .section-heading.compact.field-gallery-heading {
    grid-template-columns: 0.45fr 1.55fr;
  }

  .application-heading > p:last-child,
  .field-gallery-heading > p:last-child {
    grid-column: 2;
    max-width: 720px;
  }

  .weather-section-head {
    grid-template-columns: 100px minmax(0, 1fr);
    align-items: start;
  }

  .weather-head-copy {
    grid-column: 2;
    max-width: 720px;
  }

  .weather-dashboard-grid,
  .hazard-dashboard-grid {
    grid-template-columns: 1fr;
  }

  .weather-region-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  .weather-info-card {
    min-height: 520px;
  }

  .weather-info-card .official-source-links {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .hazard-section-head {
    grid-template-columns: 1fr;
    gap: 22px;
  }

  .hazard-section-head > p {
    max-width: 760px;
  }

  .recent-event-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    max-height: 430px;
  }

  .game-section {
    grid-template-columns: 1fr;
  }

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

  .project-card:last-child {
    grid-column: 1 / -1;
  }

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

@media (max-width: 720px) {
  .site-header {
    min-height: 68px;
    padding-inline: 16px;
  }

  .brand-copy strong {
    font-size: 18px;
  }

  .brand-hazard-link {
    gap: 6px;
    padding-left: 10px;
    font-size: 10px;
    letter-spacing: 0.08em;
  }

  .brand-hazard-link svg {
    width: 16px;
    height: 16px;
  }

  .hero {
    grid-template-columns: minmax(0, 1fr);
    padding: 118px 20px 0;
  }

  .monitor-hero {
    min-height: auto;
    padding: 122px 22px 82px;
  }

  .monitor-hero-grid {
    gap: 38px;
  }

  .monitor-hero h1 {
    font-size: clamp(58px, 17vw, 82px);
  }

  .monitor-hero-copy > p:not(.monitor-kicker) {
    font-size: 16px;
  }

  .monitor-hero-actions {
    align-items: stretch;
    flex-direction: column;
  }

  .monitor-hero-actions .button {
    width: 100%;
  }

  .monitor-status-panel {
    padding: 24px 22px;
    box-shadow: 8px 8px 0 rgba(245, 176, 0, 0.85);
  }

  .hero-grid {
    grid-template-columns: minmax(0, 1fr);
    min-width: 0;
    padding-bottom: 44px;
  }

  .hero-copy,
  .hero-story-panel {
    min-width: 0;
  }

  .hero-panel {
    min-height: 270px;
  }

  .hero-story-panel {
    justify-self: stretch;
    width: 100%;
    box-shadow: 8px 8px 0 rgba(245, 176, 0, 0.88);
  }

  .story-panel-head {
    align-items: stretch;
    flex-direction: column;
    gap: 10px;
    padding: 13px 14px;
  }

  .story-panel-head > span {
    font-size: 12px;
  }

  .story-panel-head button {
    min-height: 44px;
    font-size: 14px;
  }

  .story-video-selector button {
    min-height: 52px;
    padding: 8px 5px;
    font-size: 12px;
  }

  .story-video-badge {
    right: 10px;
    bottom: 10px;
  }

  .eyebrow {
    flex-direction: column;
    gap: 8px;
  }

  .hero-slogan {
    width: 100%;
    letter-spacing: 0.045em;
  }

  h1 {
    font-size: clamp(62px, 22vw, 98px);
  }

  .hero-footer {
    grid-template-columns: 1fr;
    width: calc(100% + 40px);
    margin-left: -20px;
  }

  .hero-footer div {
    padding: 12px 20px;
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .section-heading,
  .field-records-heading,
  .section-heading.compact,
  .section-heading.compact.application-heading,
  .section-heading.compact.field-gallery-heading {
    grid-template-columns: minmax(0, 1fr);
  }

  .section-heading > *,
  .field-records-heading > * {
    min-width: 0;
  }

  .section-heading h2,
  .field-records-heading h2,
  .game-intro h2,
  .capability h2,
  .contact h2 {
    font-size: clamp(40px, 11.5vw, 62px);
  }

  .section-heading > p:last-child {
    grid-column: 1;
  }

  .field-records-heading > p:last-child {
    grid-column: 1;
  }

  .field-record-grid {
    grid-template-columns: 1fr;
  }

  .field-record-card {
    box-shadow: 8px 8px 0 rgba(0, 0, 0, 0.3);
  }

  .field-record-badge {
    top: 10px;
    left: 10px;
    font-size: 10px;
  }

  .service-groups,
  .project-grid,
  .capability {
    grid-template-columns: 1fr;
  }

  .service-group {
    min-height: auto;
  }

  .service-group-head {
    min-height: 155px;
  }

  .game-shell {
    box-shadow: 8px 8px 0 var(--orange);
  }

  .game-topbar div {
    display: grid;
    justify-content: center;
    padding: 10px 5px;
    text-align: center;
  }

  .game-topbar strong {
    font-size: 23px;
  }

  .game-topbar {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .game-controls {
    align-items: stretch;
    flex-direction: column;
    padding: 10px 12px;
  }

  .game-controls button {
    width: 100%;
    min-height: 44px;
  }

  .game-topbar .game-stat {
    grid-template-columns: 1fr auto;
    min-height: 70px;
    padding: 10px 13px;
    text-align: left;
  }

  .game-topbar .game-stat:nth-child(2) {
    border-right: 0;
  }

  .game-topbar .game-stat:nth-child(-n + 2) {
    border-bottom: 1px solid var(--line);
  }

  .game-topbar .game-stat > strong {
    font-size: 23px;
  }

  .game-field {
    height: 500px;
    min-height: 500px;
    background:
      linear-gradient(180deg, rgba(7, 11, 12, 0.03) 0%, rgba(12, 15, 16, 0.05) 54%, rgba(3, 5, 6, 0.7) 100%),
      url("assets/bearman-game-valley-real-v1-mobile.webp") center top / cover no-repeat,
      #77786f;
  }

  .city-zone {
    bottom: -18px;
    width: 112%;
    height: 200px;
  }

  .rockfall-barrier {
    bottom: 136px;
    width: clamp(200px, 58%, 272px);
  }

  .game-message {
    padding: 22px 18px;
  }

  .game-message strong {
    font-size: clamp(43px, 16vw, 66px);
  }

  .project-card,
  .project-card:last-child {
    grid-column: auto;
    min-height: auto;
  }

  .project-visual {
    height: auto;
    aspect-ratio: 3 / 2;
  }

  .field-gallery-grid {
    grid-template-columns: 1fr;
  }

  .field-card,
  .field-card img {
    min-height: 330px;
  }

  .field-gallery-heading > p:last-child {
    grid-column: 1;
  }

  .weather-section-head {
    grid-template-columns: minmax(0, 1fr);
    gap: 25px;
  }

  .weather-section-head > *,
  .hazard-section-head > * {
    min-width: 0;
  }

  .weather-head-copy {
    grid-column: 1;
  }

  .weather-flow-head,
  .weather-flow-active-head,
  .weather-flow-foot {
    align-items: flex-start;
    flex-direction: column;
  }

  .weather-flow-toggle {
    width: 100%;
  }

  .weather-flow-days {
    grid-template-columns: repeat(7, minmax(92px, 1fr));
  }

  .weather-region-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .weather-title-mark {
    width: 70px;
    box-shadow: 7px 7px 0 var(--ink);
  }

  .weather-section-head h2 {
    font-size: clamp(42px, 12vw, 62px);
  }

  .hazard-section-head h2 {
    font-size: clamp(44px, 13vw, 68px);
  }

  .live-data-badge {
    max-width: 100%;
    line-height: 1.4;
    white-space: normal;
  }

  .weather-card-bar {
    align-items: stretch;
    flex-direction: column;
  }

  .weather-layer-controls {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    grid-auto-flow: initial;
    grid-auto-columns: initial;
    width: 100%;
  }

  .weather-layer-controls button {
    min-width: 0;
    padding-inline: 7px;
    font-size: 11px;
  }

  .weather-frame-wrap {
    height: 430px;
    min-height: 430px;
  }

  .dashboard-source-row,
  .hazard-map-meta {
    align-items: flex-start;
    flex-direction: column;
  }

  .weather-info-card {
    min-height: auto;
    box-shadow: 8px 8px 0 rgba(9, 11, 13, 0.92);
  }

  .weather-info-card .official-source-links {
    grid-template-columns: 1fr;
  }

  .dashboard-caution {
    margin-top: 28px;
  }

  .hazard-card-head,
  .recent-card-head {
    flex-direction: column;
  }

  .hazard-filters {
    grid-template-columns: 1fr;
  }

  .hazard-map {
    height: 370px;
    min-height: 370px;
  }

  .hazard-map-meta > span {
    flex: initial;
  }

  .hazard-event-list,
  .recent-event-list {
    grid-template-columns: 1fr;
  }

  .recent-tabs button {
    padding-inline: 6px;
    font-size: 11px;
  }

  .project-copy {
    min-height: 340px;
    padding: 26px 22px 24px;
  }

  .capability-title {
    position: static;
  }

  .contact-form {
    grid-template-columns: 1fr;
  }

  .contact-form label,
  .contact-form .full-field {
    grid-column: 1;
  }

  .request-summary-head {
    align-items: stretch;
    flex-direction: column;
  }

  .site-footer {
    flex-direction: column;
    align-items: flex-start;
  }
}

@media (max-width: 480px) {
  .site-header {
    gap: 8px;
    padding-inline: 12px;
  }

  .brand-cluster {
    gap: 6px;
  }

  .brand {
    gap: 6px;
  }

  .brand-logo {
    width: 40px;
    height: 40px;
  }

  .brand-copy strong {
    font-size: 14px;
  }

  .weather-region-grid {
    grid-template-columns: 1fr;
  }

  .brand-copy small {
    display: none;
  }

  .brand-hazard-link {
    gap: 4px;
    padding-left: 6px;
    font-size: 8.5px;
    letter-spacing: 0.05em;
    line-height: 1.15;
  }

  .brand-hazard-link svg {
    width: 14px;
    height: 14px;
  }

  .brand-hazard-link span {
    width: 46px;
    white-space: normal;
  }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  .reveal-ready [data-reveal] { opacity: 1; transform: none; }
}
