:root {
  color-scheme: dark;
  --bg: #0b1110;
  --panel: #111b18;
  --panel-strong: #17231f;
  --ink: #f4f0e6;
  --muted: #b8c0b2;
  --soft: #7f917f;
  --line: rgba(244, 240, 230, 0.15);
  --accent: #e1b761;
  --accent-2: #72bca5;
  --danger: #d56455;
  --shadow: 0 28px 80px rgba(0, 0, 0, 0.34);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
}

img {
  display: block;
  max-width: 100%;
}

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

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

.site-header {
  align-items: center;
  background: rgba(11, 17, 16, 0.72);
  backdrop-filter: blur(18px);
  border-bottom: 1px solid transparent;
  display: flex;
  justify-content: space-between;
  left: 0;
  padding: 18px clamp(18px, 4vw, 56px);
  position: fixed;
  right: 0;
  top: 0;
  transition: border-color 180ms ease, background 180ms ease;
  z-index: 10;
}

.site-header.is-scrolled {
  background: rgba(11, 17, 16, 0.92);
  border-color: var(--line);
}

.brand,
.nav {
  align-items: center;
  display: flex;
  gap: 12px;
}

.brand {
  font-weight: 800;
  letter-spacing: 0;
}

.brand-mark {
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  border-radius: 50%;
  box-shadow: 0 0 24px rgba(225, 183, 97, 0.4);
  height: 14px;
  width: 14px;
}

.nav {
  color: var(--muted);
  font-size: 0.94rem;
  gap: clamp(12px, 2vw, 28px);
}

.nav a:hover {
  color: var(--ink);
}

.hero {
  min-height: 92vh;
  overflow: hidden;
  position: relative;
}

.hero-art,
.hero-shade {
  inset: 0;
  position: absolute;
}

.hero-art {
  height: 100%;
  object-fit: cover;
  width: 100%;
}

.hero-shade {
  background:
    linear-gradient(90deg, rgba(7, 10, 9, 0.9) 0%, rgba(7, 10, 9, 0.62) 42%, rgba(7, 10, 9, 0.18) 72%),
    linear-gradient(0deg, var(--bg) 0%, rgba(11, 17, 16, 0) 36%);
}

.hero-content {
  display: grid;
  max-width: 760px;
  min-height: 92vh;
  padding: clamp(128px, 18vh, 190px) clamp(20px, 6vw, 76px) 56px;
  place-content: center start;
  position: relative;
}

.kicker {
  color: var(--accent);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.16em;
  margin: 0 0 14px;
  text-transform: uppercase;
}

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

h1 {
  font-size: clamp(4rem, 13vw, 9.5rem);
  letter-spacing: 0;
  line-height: 0.86;
  margin-bottom: 28px;
}

h2 {
  font-size: clamp(2.2rem, 5vw, 4.8rem);
  letter-spacing: 0;
  line-height: 0.94;
  margin-bottom: 20px;
}

h3 {
  font-size: 1.2rem;
  margin-bottom: 12px;
}

p {
  color: var(--muted);
  line-height: 1.65;
}

.hero-copy {
  color: #eee8dc;
  font-size: clamp(1.06rem, 2vw, 1.35rem);
  max-width: 620px;
}

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

.button,
.tab {
  align-items: center;
  border: 1px solid var(--line);
  border-radius: 6px;
  cursor: pointer;
  display: inline-flex;
  justify-content: center;
  min-height: 46px;
  padding: 0 18px;
}

.button.primary {
  background: var(--accent);
  border-color: var(--accent);
  color: #171107;
  font-weight: 800;
}

.button.ghost,
.tab {
  background: rgba(244, 240, 230, 0.06);
  color: var(--ink);
}

.status-strip {
  border-top: 1px solid var(--line);
  display: flex;
  flex-wrap: wrap;
  gap: 22px;
  margin-top: 46px;
  padding-top: 20px;
}

.status-strip span {
  color: var(--muted);
}

.status-strip strong {
  color: var(--ink);
  display: block;
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  margin-bottom: 4px;
  text-transform: uppercase;
}

.section {
  padding: clamp(76px, 10vw, 132px) clamp(20px, 6vw, 76px);
}

.section-heading {
  max-width: 760px;
}

.pillars,
.gallery {
  display: grid;
  gap: 18px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin-top: 42px;
}

.pillars article {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 26px;
}

.number {
  color: var(--accent-2);
  display: inline-block;
  font-weight: 900;
  margin-bottom: 34px;
}

.split-section {
  align-items: center;
  background: #101815;
  display: grid;
  gap: clamp(32px, 6vw, 76px);
  grid-template-columns: 0.9fr 1.1fr;
}

.tab {
  color: var(--muted);
}

.tab.is-active {
  background: var(--accent-2);
  color: #07100e;
  font-weight: 800;
}

.tab-panel {
  background: var(--panel-strong);
  border: 1px solid var(--line);
  border-radius: 8px;
  margin-top: 20px;
  padding: 24px;
}

.tab-panel ul {
  color: var(--muted);
  line-height: 1.9;
  margin-bottom: 0;
  padding-left: 20px;
}

.system-visual img,
.gallery img {
  aspect-ratio: 16 / 10;
  border-radius: 8px;
  height: 100%;
  width: 100%;
}

.system-visual img {
  object-fit: cover;
}

.system-visual img {
  box-shadow: var(--shadow);
}

.scanner-section {
  align-items: start;
  display: grid;
  gap: clamp(28px, 5vw, 64px);
  grid-template-columns: 0.62fr 1fr;
}

.scanner {
  background: #0a0f0d;
  border: 1px solid rgba(184, 192, 178, 0.24);
  border-radius: 8px;
  padding: 18px;
}

.scanner-topbar {
  align-items: center;
  background: #18221d;
  border: 1px solid rgba(184, 192, 178, 0.22);
  border-bottom: 0;
  border-radius: 6px 6px 0 0;
  color: #aeb9a8;
  display: grid;
  font-family: "Cascadia Mono", Consolas, monospace;
  font-size: 0.72rem;
  gap: 10px;
  grid-template-columns: 1.2fr 0.8fr 0.8fr;
  letter-spacing: 0.08em;
  padding: 10px 12px;
  text-transform: uppercase;
}

.scanner-topbar span:not(:first-child) {
  text-align: right;
}

.scan-map {
  aspect-ratio: 16 / 9;
  background:
    linear-gradient(90deg, rgba(191, 204, 184, 0.06) 1px, transparent 1px),
    linear-gradient(rgba(191, 204, 184, 0.06) 1px, transparent 1px),
    linear-gradient(135deg, #1b261f 0%, #111a16 54%, #0c1311 100%);
  background-size: 8.333% 16.666%, 8.333% 16.666%, auto;
  border: 1px solid rgba(184, 192, 178, 0.22);
  border-radius: 0 0 6px 6px;
  overflow: hidden;
  position: relative;
  touch-action: none;
}

.scan-map::before {
  background-image:
    linear-gradient(rgba(221, 229, 211, 0.12) 1px, transparent 1px),
    linear-gradient(90deg, rgba(221, 229, 211, 0.12) 1px, transparent 1px);
  background-size: 25% 50%;
  content: "";
  inset: 0;
  position: absolute;
}

.scan-map::after {
  border: 1px solid rgba(214, 178, 94, 0.3);
  content: "";
  inset: 12px;
  pointer-events: none;
  position: absolute;
  z-index: 1;
}

.map-overlay {
  height: 100%;
  inset: 0;
  pointer-events: none;
  position: absolute;
  width: 100%;
  z-index: 1;
}

.map-overlay path {
  fill: none;
  vector-effect: non-scaling-stroke;
}

.contour {
  stroke: rgba(194, 203, 180, 0.3);
  stroke-dasharray: 1.5 2;
  stroke-width: 0.7;
}

.contour.faint {
  opacity: 0.55;
}

.route {
  stroke: rgba(214, 178, 94, 0.54);
  stroke-width: 0.85;
}

.restricted {
  fill: rgba(185, 95, 77, 0.06);
  stroke: rgba(185, 95, 77, 0.54);
  stroke-dasharray: 2 1.5;
  stroke-width: 0.85;
}

.map-label {
  color: rgba(221, 229, 211, 0.52);
  font-family: "Cascadia Mono", Consolas, monospace;
  font-size: clamp(0.54rem, 1.15vw, 0.72rem);
  letter-spacing: 0.08em;
  pointer-events: none;
  position: absolute;
  text-transform: uppercase;
  z-index: 2;
}

.label-a {
  left: 7%;
  top: 12%;
}

.label-b {
  left: 20%;
  top: 44%;
}

.label-c {
  right: 7%;
  top: 13%;
}

.hotspot {
  background: var(--signal, var(--accent));
  border: 1px solid rgba(244, 240, 230, 0.72);
  border-radius: 1px;
  box-shadow: 0 0 0 0 transparent, 0 0 0 transparent;
  height: 11px;
  left: var(--x);
  opacity: 0;
  padding: 0;
  position: absolute;
  top: var(--y);
  transform: translate(-50%, -50%) rotate(45deg);
  transition: opacity 280ms ease;
  width: 11px;
  z-index: 3;
}

.hotspot::after {
  border: 1px solid var(--signal, var(--accent));
  border-radius: 2px;
  content: "";
  inset: -8px;
  opacity: 0;
  position: absolute;
}

.hotspot.is-detected {
  animation: blipFade 2.8s ease forwards;
}

.hotspot.is-detected::after {
  animation: blipRing 900ms ease-out;
}

.scan-map.is-scanning .hotspot {
  opacity: 0.08;
}

.scanner-beam {
  background:
    linear-gradient(90deg, transparent, rgba(181, 200, 177, 0.14), transparent),
    linear-gradient(90deg, transparent 49%, rgba(214, 178, 94, 0.68) 50%, transparent 51%);
  bottom: 0;
  left: 0;
  opacity: 0.38;
  pointer-events: none;
  position: absolute;
  top: 0;
  transform: translateX(-50%);
  transition: opacity 180ms ease;
  width: 18%;
  z-index: 2;
}

.scan-map.is-scanning .scanner-beam {
  opacity: 1;
}

.scan-wave {
  background: linear-gradient(90deg, transparent, var(--wave-color), transparent);
  bottom: 0;
  opacity: 0;
  pointer-events: none;
  position: absolute;
  top: 0;
  transform: translateX(-50%) scaleX(0.2);
  width: 22%;
  z-index: 2;
}

.scan-wave.is-live {
  animation: signalWave 820ms ease-out forwards;
}

.scan-output {
  background: #080d0b;
  border: 1px solid rgba(184, 192, 178, 0.18);
  border-top: 0;
  color: #9fc4aa;
  display: block;
  font-family: "Cascadia Mono", Consolas, monospace;
  font-size: 0.88rem;
  min-height: 52px;
  padding: 14px;
  text-transform: uppercase;
}

@keyframes blipFade {
  0% {
    box-shadow: 0 0 0 7px rgba(244, 240, 230, 0.08);
    opacity: 1;
    transform: translate(-50%, -50%) rotate(45deg) scale(1.5);
  }

  22% {
    opacity: 1;
    transform: translate(-50%, -50%) rotate(45deg) scale(1);
  }

  100% {
    box-shadow: 0 0 0 0 transparent, 0 0 0 transparent;
    opacity: 0;
    transform: translate(-50%, -50%) rotate(45deg) scale(0.85);
  }
}

@keyframes blipRing {
  0% {
    opacity: 0.75;
    transform: scale(0.3);
  }

  100% {
    opacity: 0;
    transform: scale(2.8);
  }
}

@keyframes signalWave {
  0% {
    opacity: 0.34;
    transform: translateX(-50%) scaleX(0.16);
  }

  100% {
    opacity: 0;
    transform: translateX(-50%) scaleX(2.8);
  }
}

.art-section {
  background: #111916;
}

.gallery figure {
  margin: 0;
}

.gallery-trigger {
  background: #0b1110;
  border: 1px solid rgba(244, 240, 230, 0.12);
  border-radius: 8px;
  cursor: zoom-in;
  display: block;
  padding: 0;
  width: 100%;
}

.gallery-trigger:hover {
  border-color: rgba(225, 183, 97, 0.5);
}

.gallery-trigger img {
  background: #080d0b;
  object-fit: contain;
}

.gallery figcaption {
  color: var(--muted);
  margin-top: 12px;
}

.lightbox {
  align-items: center;
  background: rgba(4, 7, 6, 0.94);
  display: grid;
  inset: 0;
  justify-items: center;
  padding: clamp(18px, 4vw, 42px);
  position: fixed;
  z-index: 40;
}

.lightbox[hidden] {
  display: none;
}

.lightbox-frame {
  display: grid;
  gap: 14px;
  margin: 0;
  max-height: 92vh;
  max-width: 96vw;
}

.lightbox-frame img {
  border: 1px solid rgba(244, 240, 230, 0.18);
  border-radius: 8px;
  max-height: 84vh;
  max-width: 96vw;
  object-fit: contain;
}

.lightbox-frame figcaption {
  color: var(--muted);
  font-family: "Cascadia Mono", Consolas, monospace;
  letter-spacing: 0.08em;
  text-align: center;
  text-transform: uppercase;
}

.lightbox-close {
  background: rgba(17, 27, 24, 0.94);
  border: 1px solid rgba(244, 240, 230, 0.22);
  border-radius: 6px;
  color: var(--ink);
  cursor: pointer;
  min-height: 42px;
  padding: 0 16px;
  position: fixed;
  right: clamp(18px, 4vw, 42px);
  top: clamp(18px, 4vw, 42px);
  z-index: 41;
}

.body-locked {
  overflow: hidden;
}

.contact-section {
  align-items: start;
  background:
    linear-gradient(rgba(11, 17, 16, 0.88), rgba(11, 17, 16, 0.96)),
    url("../assets/the_Hollow_concept.PNG") center / cover;
  display: grid;
  gap: clamp(30px, 6vw, 80px);
  grid-template-columns: 0.8fr 1fr;
}

.contact-form {
  background: rgba(17, 27, 24, 0.92);
  border: 1px solid var(--line);
  border-radius: 8px;
  display: grid;
  gap: 18px;
  padding: clamp(22px, 4vw, 34px);
}

label {
  display: grid;
  gap: 8px;
}

label span {
  color: var(--muted);
  font-size: 0.88rem;
}

input,
select,
textarea {
  background: #0b1110;
  border: 1px solid var(--line);
  border-radius: 6px;
  color: var(--ink);
  min-height: 46px;
  padding: 12px 14px;
  width: 100%;
}

textarea {
  resize: vertical;
}

input:focus,
select:focus,
textarea:focus,
button:focus-visible,
a:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}

.form-note {
  color: var(--soft);
  font-size: 0.9rem;
  margin: 0;
}

.footer {
  align-items: center;
  border-top: 1px solid var(--line);
  color: var(--muted);
  display: flex;
  justify-content: space-between;
  padding: 28px clamp(20px, 6vw, 76px);
}

@media (max-width: 880px) {
  .site-header {
    align-items: flex-start;
    gap: 14px;
    position: absolute;
  }

  .nav {
    flex-wrap: wrap;
    justify-content: flex-end;
  }

  .hero-content {
    padding-top: 138px;
  }

  .pillars,
  .gallery,
  .split-section,
  .scanner-section,
  .contact-section {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 560px) {
  .site-header,
  .footer {
    align-items: flex-start;
    flex-direction: column;
  }

  .scanner-topbar {
    grid-template-columns: 1fr;
  }

  .scanner-topbar span:not(:first-child) {
    text-align: left;
  }

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

  .status-strip {
    display: grid;
    grid-template-columns: 1fr;
  }
}
