:root {
  --ink: #070807;
  --paper: #f2eee5;
  --muted: #9b9b8f;
  --gold: #cdb35d;
  --gold-bright: #f1d879;
  --line: rgba(205, 179, 93, 0.22);
}

* { box-sizing: border-box; }

html {
  min-width: 320px;
  scroll-behavior: smooth;
  background: var(--ink);
}

body {
  min-height: 100svh;
  margin: 0;
  overflow-x: hidden;
  background: var(--ink);
  color: var(--paper);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; }

.site-shell {
  position: relative;
  isolation: isolate;
  display: grid;
  grid-template-rows: auto 1fr auto;
  min-height: 100svh;
  overflow: hidden;
  background:
    radial-gradient(circle at 68% 47%, rgba(205, 179, 93, 0.085), transparent 32rem),
    radial-gradient(circle at 10% 0%, rgba(255, 255, 255, 0.035), transparent 26rem),
    linear-gradient(138deg, #0b0c0a 0%, #060706 52%, #0b0d0a 100%);
}

.site-shell::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  opacity: 0.22;
  background-image: repeating-linear-gradient(115deg, transparent 0 12px, rgba(255,255,255,.018) 13px 14px);
  mix-blend-mode: screen;
}

.atmosphere, .grid-plane, .sweep {
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
}

.grid-plane {
  opacity: 0.26;
  background-image:
    linear-gradient(rgba(205, 179, 93, 0.08) 1px, transparent 1px),
    linear-gradient(90deg, rgba(205, 179, 93, 0.08) 1px, transparent 1px);
  background-size: 72px 72px;
  mask-image: linear-gradient(90deg, transparent 2%, #000 38%, #000 74%, transparent 100%);
}

.radar-ring {
  position: absolute;
  right: clamp(-22rem, -10vw, -7rem);
  top: 50%;
  width: min(74vw, 58rem);
  aspect-ratio: 1;
  border: 1px solid var(--line);
  border-radius: 50%;
  transform: translateY(-50%);
}

.radar-ring::before, .radar-ring::after {
  content: "";
  position: absolute;
  border: 1px solid rgba(205, 179, 93, 0.11);
  border-radius: inherit;
}

.radar-ring::before { inset: 12%; }
.radar-ring::after { inset: 25%; }
.radar-ring-two { inset: auto; right: 8%; top: 50%; width: min(50vw, 38rem); opacity: 0.55; }

.sweep {
  left: auto;
  right: -6%;
  width: min(68vw, 58rem);
  opacity: 0.3;
  background: conic-gradient(from 45deg at 50% 50%, transparent 0 84%, rgba(241, 216, 121, 0.13) 92%, transparent 100%);
  animation: sweep 18s linear infinite;
}

.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: min(100% - 3rem, 90rem);
  margin-inline: auto;
  padding-block: 1.8rem;
  border-bottom: 1px solid rgba(205, 179, 93, 0.16);
}

.brand-link {
  display: inline-flex;
  align-items: center;
  gap: 0.8rem;
  color: var(--paper);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-decoration: none;
  text-transform: uppercase;
}

.brand-glyph {
  display: grid;
  place-items: center;
  width: 2.25rem;
  aspect-ratio: 1;
  border: 1px solid rgba(205, 179, 93, 0.45);
  clip-path: polygon(50% 0, 94% 20%, 88% 76%, 50% 100%, 12% 76%, 6% 20%);
  background: linear-gradient(145deg, rgba(205, 179, 93, .18), rgba(205, 179, 93, .03));
  color: var(--gold-bright);
  font-size: .5rem;
  letter-spacing: .08em;
}

.system-state {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  color: var(--muted);
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 0.62rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.state-light {
  width: 0.42rem;
  height: 0.42rem;
  border-radius: 50%;
  background: var(--gold-bright);
  box-shadow: 0 0 0 4px rgba(205, 179, 93, .08), 0 0 14px rgba(241, 216, 121, .55);
  animation: pulse 3.2s ease-in-out infinite;
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 0.86fr) minmax(0, 1.14fr);
  column-gap: clamp(2.5rem, 5vw, 6rem);
  align-items: center;
  width: min(100% - 3rem, 90rem);
  margin-inline: auto;
  padding-block: clamp(2rem, 5vh, 5.5rem);
}

.hero-copy {
  position: relative;
  z-index: 2;
  min-width: 0;
  padding-left: clamp(0rem, 3vw, 3.5rem);
}

.eyebrow {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin: 0 0 1.4rem;
  color: var(--gold-bright);
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: clamp(0.62rem, 0.9vw, 0.72rem);
  font-weight: 600;
  letter-spacing: 0.26em;
  text-transform: uppercase;
}

.eyebrow::before {
  content: "";
  width: 2.5rem;
  height: 1px;
  background: linear-gradient(90deg, var(--gold), transparent);
}

h1 {
  width: 100%;
  margin: 0;
  color: var(--paper);
  font-family: Impact, Haettenschweiler, "Arial Narrow Bold", sans-serif;
  font-size: clamp(3.6rem, 5vw, 6.6rem);
  font-weight: 900;
  line-height: 0.84;
  letter-spacing: -0.035em;
  text-transform: uppercase;
}

h1 .headline-solid,
h1 .headline-outline {
  display: block;
  width: max-content;
  max-width: 100%;
}

h1 .headline-outline {
  margin-top: 0.14em;
  color: transparent;
  font-size: 0.72em;
  letter-spacing: 0.005em;
  -webkit-text-stroke: 1px rgba(241, 216, 121, 0.72);
  text-shadow: 0 0 26px rgba(205, 179, 93, .08);
}

.signal-list {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.8rem;
  margin-top: 2.25rem;
  color: var(--muted);
  font-size: 0.62rem;
  font-weight: 650;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.signal-list span { display: inline-flex; align-items: center; gap: .8rem; }
.signal-list i { width: 3px; height: 3px; border-radius: 50%; background: var(--gold); }

.mark-stage {
  position: relative;
  display: grid;
  place-items: center;
  min-width: 0;
  justify-self: stretch;
}

.mark-stage::before, .mark-stage::after {
  content: "";
  position: absolute;
  z-index: -1;
  width: 54%;
  aspect-ratio: 1;
  border: 1px solid rgba(205, 179, 93, 0.19);
  transform: rotate(45deg);
}

.mark-stage::after {
  width: 42%;
  border-style: dashed;
  opacity: .55;
  animation: rotate-reticle 34s linear infinite;
}

.mark-aura {
  position: absolute;
  width: 64%;
  aspect-ratio: 1;
  border-radius: 50%;
  background: rgba(205, 179, 93, .12);
  filter: blur(72px);
}

.primary-mark {
  position: relative;
  z-index: 1;
  display: block;
  width: min(100%, 43rem);
  height: auto;
  object-fit: contain;
  filter: drop-shadow(0 2rem 3rem rgba(0, 0, 0, .72)) drop-shadow(0 0 1.5rem rgba(205, 179, 93, .09));
  animation: mark-in 900ms cubic-bezier(.2,.75,.2,1) both;
}

.coordinate {
  position: absolute;
  z-index: 2;
  color: rgba(205, 179, 93, .52);
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: .54rem;
  letter-spacing: .16em;
}

.coordinate-nw { top: 11%; left: 8%; writing-mode: vertical-rl; transform: rotate(180deg); }
.coordinate-se { right: 7%; bottom: 13%; }

.footer {
  display: flex;
  align-items: center;
  width: min(100% - 3rem, 90rem);
  margin-inline: auto;
  padding-block: 1.25rem 1.6rem;
  border-top: 1px solid rgba(205, 179, 93, 0.14);
  color: rgba(242, 238, 229, .42);
  font-size: .55rem;
  font-weight: 600;
  letter-spacing: .16em;
  text-transform: uppercase;
}

.footer-rule { flex: 1; height: 1px; margin-inline: 1rem; background: linear-gradient(90deg, rgba(205,179,93,.18), transparent 86%); }

@keyframes sweep { to { transform: rotate(360deg); } }
@keyframes pulse { 50% { opacity: .48; box-shadow: 0 0 0 7px rgba(205,179,93,.02), 0 0 8px rgba(241,216,121,.3); } }
@keyframes rotate-reticle { to { transform: rotate(405deg); } }
@keyframes mark-in { from { opacity: 0; transform: translateY(1.2rem) scale(.97); } to { opacity: 1; transform: none; } }

@media (max-width: 860px) {
  .hero { grid-template-columns: 1fr; row-gap: 1rem; align-content: center; padding-top: 3.5rem; }
  .hero-copy { padding: 0; text-align: center; }
  .eyebrow, .signal-list { justify-content: center; }
  h1 { width: max-content; max-width: 100%; margin-inline: auto; font-size: clamp(3.25rem, 13vw, 6rem); }
  h1 .headline-solid, h1 .headline-outline { margin-inline: auto; }
  .mark-stage { width: min(100%, 34rem); margin: -1rem auto 0; }
  .coordinate { display: none; }
  .radar-ring { width: 110vw; right: -48vw; }
}

@media (max-width: 520px) {
  .topbar, .hero, .footer { width: min(100% - 2rem, 90rem); }
  .topbar { padding-block: 1.15rem; }
  .brand-link { font-size: .58rem; letter-spacing: .11em; }
  .brand-glyph { width: 1.95rem; }
  .system-state { font-size: .52rem; letter-spacing: .1em; }
  .hero { padding-block: 2.4rem 1rem; }
  h1 { font-size: clamp(2.9rem, 15vw, 4.5rem); }
  .signal-list { gap: .52rem; margin-top: 1.5rem; font-size: .52rem; letter-spacing: .12em; }
  .signal-list span { gap: .52rem; }
  .mark-stage { margin-top: -.25rem; }
  .footer { justify-content: center; text-align: center; }
  .footer-rule, .footer span:last-child { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; }
}

@media (forced-colors: active) {
  h1 span { color: CanvasText; -webkit-text-stroke: 0; }
  .grid-plane, .radar-ring, .sweep, .mark-aura { display: none; }
}
