@font-face {
  font-family: 'Playfair Display';
  src: url('assets/fonts/playfair-display-latin-400-normal.woff2') format('woff2');
  font-display: swap;
  font-style: normal;
  font-weight: 400;
}

@font-face {
  font-family: 'Playfair Display';
  src: url('assets/fonts/playfair-display-latin-400-italic.woff2') format('woff2');
  font-display: swap;
  font-style: italic;
  font-weight: 400;
}

@font-face {
  font-family: 'Open Sans';
  src: url('assets/fonts/open-sans-latin-400-normal.woff2') format('woff2');
  font-display: swap;
  font-style: normal;
  font-weight: 400;
}

@font-face {
  font-family: 'Open Sans';
  src: url('assets/fonts/open-sans-latin-600-normal.woff2') format('woff2');
  font-display: swap;
  font-style: normal;
  font-weight: 600;
}

:root {
  --midnight: #010108;
  --deep-navy: #000018;
  --survey-blue: #174c79;
  --signal-blue: #75baff;
  --ice: #f2f6ff;
  --mist: #a8b5cf;
  --line: rgba(165, 198, 231, 0.16);
  --display: 'Playfair Display', Georgia, serif;
  --sans: 'Open Sans', 'Segoe UI', sans-serif;
  --pointer-x: 0px;
  --pointer-y: 0px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  min-width: 320px;
  color-scheme: dark;
  background: var(--midnight);
}

body {
  margin: 0;
  min-width: 320px;
  min-height: 100vh;
  min-height: 100svh;
  overflow-x: hidden;
  color: var(--ice);
  background:
    radial-gradient(circle at 70% 44%, rgba(11, 54, 92, 0.26), transparent 31rem),
    linear-gradient(128deg, #010108 0%, #020318 54%, #000006 100%);
  font-family: var(--sans);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

body::before {
  position: fixed;
  inset: 0;
  z-index: 10;
  pointer-events: none;
  content: '';
  border: 1px solid rgba(190, 218, 246, 0.14);
}

.site-shell {
  position: relative;
  isolation: isolate;
  display: grid;
  grid-template-rows: auto 1fr auto;
  min-height: 100vh;
  min-height: 100svh;
  padding: clamp(1.5rem, 4vw, 3.5rem) clamp(1.25rem, 5.4vw, 6rem) clamp(1.4rem, 3vw, 2.5rem);
  overflow: hidden;
}

.site-shell::before,
.site-shell::after {
  position: absolute;
  z-index: -1;
  content: '';
  pointer-events: none;
}

.site-shell::before {
  inset: 0;
  background:
    linear-gradient(rgba(126, 178, 224, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(126, 178, 224, 0.035) 1px, transparent 1px);
  background-size: clamp(54px, 5vw, 82px) clamp(54px, 5vw, 82px);
  mask-image: linear-gradient(to right, rgba(0, 0, 0, 0.8), transparent 86%);
}

.site-shell::after {
  inset: 0;
  background:
    linear-gradient(to bottom, rgba(1, 1, 8, 0.13), transparent 19%, transparent 76%, rgba(1, 1, 8, 0.5)),
    linear-gradient(to right, rgba(1, 1, 8, 0.16), transparent 42%);
}

.survey-field {
  position: absolute;
  inset: -2%;
  z-index: -4;
  width: 104%;
  height: 104%;
  pointer-events: none;
  transform: translate3d(calc(var(--pointer-x) * -0.25), calc(var(--pointer-y) * -0.25), 0);
  transition: transform 1.2s cubic-bezier(0.22, 1, 0.36, 1);
}

.contour-lines,
.parcel-lines,
.coordinate-lines {
  fill: none;
  vector-effect: non-scaling-stroke;
}

.contour-lines {
  stroke: rgba(142, 180, 214, 0.09);
  stroke-width: 1;
}

.parcel-lines {
  stroke: rgba(153, 192, 226, 0.14);
  stroke-width: 1.15;
}

.coordinate-lines {
  stroke: rgba(170, 205, 235, 0.11);
  stroke-dasharray: 4 9;
  stroke-width: 1;
}

.active-trace {
  fill: none;
  stroke: url('#trace-gradient');
  stroke-dasharray: 0.26 0.74;
  stroke-linecap: round;
  stroke-width: 1.6;
  vector-effect: non-scaling-stroke;
}

.active-trace--secondary {
  opacity: 0.48;
  stroke-dasharray: 0.16 0.84;
}

.plot-glow {
  opacity: 0.45;
}

.reticle {
  position: absolute;
  top: 44.2%;
  left: 69%;
  z-index: -2;
  width: clamp(25rem, 44vw, 47rem);
  aspect-ratio: 1;
  border-radius: 50%;
  pointer-events: none;
  transform: translate3d(calc(-50% + var(--pointer-x)), calc(-50% + var(--pointer-y)), 0);
  transition: transform 1.4s cubic-bezier(0.22, 1, 0.36, 1);
}

.reticle__city {
  position: absolute;
  inset: 2.5%;
  z-index: 0;
  overflow: hidden;
  border-radius: 50%;
  opacity: 0.46;
  background: #020514;
  -webkit-mask-image: radial-gradient(circle, #000 0 70%, rgba(0, 0, 0, 0.94) 84%, transparent 100%);
  mask-image: radial-gradient(circle, #000 0 70%, rgba(0, 0, 0, 0.94) 84%, transparent 100%);
}

.reticle__city::after {
  position: absolute;
  inset: 0;
  content: '';
  background:
    radial-gradient(circle at 50% 50%, transparent 0 42%, rgba(1, 4, 18, 0.08) 68%, rgba(0, 1, 10, 0.44) 100%),
    linear-gradient(115deg, rgba(8, 45, 76, 0.08), rgba(0, 1, 12, 0.18));
}

.reticle__city img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: brightness(0.92) contrast(1.1) saturate(0.86) hue-rotate(2deg);
  transform: scale(1.04);
  transform-origin: 50% 58%;
}

.reticle__sweep,
.reticle__ring,
.reticle__axis,
.reticle__origin {
  z-index: 2;
}

.reticle__ring {
  position: absolute;
  inset: 0;
  border: 1px solid var(--line);
  border-radius: 50%;
}

.reticle__ring::before,
.reticle__ring::after {
  position: absolute;
  background: var(--signal-blue);
  content: '';
}

.reticle__ring::before {
  top: -2px;
  left: 50%;
  width: 1px;
  height: 5px;
}

.reticle__ring::after {
  top: 50%;
  right: -2px;
  width: 5px;
  height: 1px;
}

.reticle__ring--outer {
  border-style: dashed;
  opacity: 0.64;
}

.reticle__ring--middle {
  inset: 19%;
  opacity: 0.72;
}

.reticle__ring--inner {
  inset: 40%;
  border-color: rgba(175, 214, 249, 0.25);
}

.reticle__axis {
  position: absolute;
  top: 50%;
  left: 50%;
  background: linear-gradient(90deg, transparent, rgba(126, 185, 236, 0.16), transparent);
}

.reticle__axis--x {
  width: 116%;
  height: 1px;
  transform: translate(-50%, -50%);
}

.reticle__axis--y {
  width: 1px;
  height: 116%;
  background: linear-gradient(transparent, rgba(126, 185, 236, 0.16), transparent);
  transform: translate(-50%, -50%);
}

.reticle__sweep {
  position: absolute;
  inset: 1px;
  border-radius: 50%;
  opacity: 0.48;
  background: conic-gradient(
    from 268deg,
    transparent 0deg,
    transparent 319deg,
    rgba(106, 179, 242, 0.03) 329deg,
    rgba(106, 179, 242, 0.24) 357deg,
    rgba(190, 225, 255, 0.75) 359deg,
    transparent 360deg
  );
  mask-image: radial-gradient(circle, transparent 0 9%, #000 9.4% 100%);
  transform: rotate(0deg);
  transform-origin: center;
}

.reticle__origin {
  position: absolute;
  top: 50%;
  left: 50%;
  display: flex;
  align-items: center;
  gap: 0.65rem;
  transform: translate(-0.32rem, -0.32rem);
}

.reticle__origin i {
  display: block;
  width: 0.64rem;
  height: 0.64rem;
  border: 1px solid rgba(219, 238, 255, 0.86);
  border-radius: 50%;
  background: rgba(117, 186, 255, 0.6);
  box-shadow: 0 0 1rem rgba(117, 186, 255, 0.9), 0 0 3rem rgba(117, 186, 255, 0.45);
}

.reticle__origin span {
  color: rgba(215, 232, 249, 0.48);
  font-size: 0.54rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  white-space: nowrap;
}

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

.site-header,
.site-footer {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.brand {
  width: clamp(17rem, 26vw, 23.5rem);
  height: auto;
}

.system-status,
.reintroduction,
.territory,
.edge-label,
.eyebrow {
  margin: 0;
  text-transform: uppercase;
  font-size: 0.64rem;
  font-weight: 600;
  letter-spacing: 0.22em;
}

.system-status,
.reintroduction {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  color: rgba(222, 234, 249, 0.68);
}

.system-status > span,
.reintroduction > span {
  position: relative;
  display: block;
  width: 0.42rem;
  height: 0.42rem;
  border-radius: 50%;
  background: var(--signal-blue);
  box-shadow: 0 0 0.75rem rgba(117, 186, 255, 0.95);
}

.hero {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  padding: clamp(4.5rem, 10vh, 8rem) 0 clamp(4rem, 9vh, 6rem);
}

.hero__copy {
  width: min(60rem, 77vw);
  margin-left: clamp(0rem, 4vw, 4rem);
}

.eyebrow {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  margin-bottom: clamp(1.25rem, 2.5vh, 2rem);
  color: rgba(191, 211, 235, 0.72);
}

.eyebrow span {
  display: block;
  width: 2.25rem;
  height: 1px;
  background: rgba(146, 195, 238, 0.7);
}

h1 {
  max-width: 15ch;
  margin: 0;
  color: var(--ice);
  font-family: var(--display);
  font-size: clamp(4rem, 7.35vw, 8.1rem);
  font-weight: 400;
  letter-spacing: -0.052em;
  line-height: 0.87;
  text-wrap: balance;
}

h1 span,
h1 em {
  display: block;
}

h1 em {
  margin-left: clamp(0rem, 4.4vw, 4.6rem);
  color: transparent;
  font-weight: 400;
  -webkit-text-stroke: 1px rgba(218, 234, 249, 0.58);
  text-shadow: 0 0 2.5rem rgba(66, 132, 189, 0.12);
}

.lede {
  max-width: 36rem;
  margin: clamp(2rem, 4vh, 3rem) 0 0 clamp(0rem, 4.4vw, 4.6rem);
  color: rgba(233, 240, 251, 0.9);
  font-family: var(--display);
  font-size: clamp(1.06rem, 1.5vw, 1.35rem);
  line-height: 1.65;
}

.teaser {
  max-width: 34rem;
  margin: 0.8rem 0 0 clamp(0rem, 4.4vw, 4.6rem);
  color: var(--mist);
  font-size: clamp(0.78rem, 0.95vw, 0.94rem);
  line-height: 1.8;
}

.site-footer {
  align-self: end;
}

.territory {
  display: flex;
  align-items: center;
  gap: clamp(0.55rem, 1.3vw, 1rem);
  color: rgba(182, 199, 221, 0.44);
  letter-spacing: 0.17em;
}

.territory i {
  display: block;
  width: 2px;
  height: 2px;
  border-radius: 50%;
  background: currentColor;
}

.edge-label {
  position: absolute;
  z-index: 1;
  top: 50%;
  color: rgba(183, 209, 233, 0.25);
  letter-spacing: 0.52em;
  writing-mode: vertical-rl;
}

.edge-label--left {
  left: 1.1rem;
  transform: translateY(-50%) rotate(180deg);
}

.edge-label--right {
  right: 0.85rem;
  transform: translateY(-50%);
}

.no-js .active-trace {
  stroke-dashoffset: 0.15;
}

@media (prefers-reduced-motion: no-preference) {
  .js .site-header,
  .js .site-footer,
  .js .eyebrow,
  .js h1 span,
  .js h1 em,
  .js .lede,
  .js .teaser {
    opacity: 0;
    animation: reveal 0.9s cubic-bezier(0.22, 1, 0.36, 1) forwards;
  }

  .js .site-header { animation-delay: 0.08s; }
  .js .eyebrow { animation-delay: 0.22s; }
  .js h1 span { animation-delay: 0.34s; }
  .js h1 em { animation-delay: 0.46s; }
  .js .lede { animation-delay: 0.62s; }
  .js .teaser { animation-delay: 0.74s; }
  .js .site-footer { animation-delay: 0.88s; }

  .reticle__sweep {
    animation: scan 17s linear infinite;
  }

  .reticle__city {
    will-change: opacity;
    animation: city-signal 15s ease-in-out infinite;
  }

  .reticle__city img {
    animation: city-drift 19s ease-in-out infinite alternate;
  }

  .reticle__ring--outer {
    animation: counter-scan 50s linear infinite;
  }

  .reticle__origin i,
  .system-status > span,
  .reintroduction > span {
    animation: signal 3.4s ease-in-out infinite;
  }

  .active-trace {
    animation: trace 8s linear infinite;
  }

  .active-trace--secondary {
    animation-duration: 12s;
    animation-delay: -4s;
  }

  @keyframes reveal {
    from { opacity: 0; transform: translateY(1rem); }
    to { opacity: 1; transform: translateY(0); }
  }

  @keyframes scan {
    to { transform: rotate(360deg); }
  }

  @keyframes counter-scan {
    to { transform: rotate(-360deg); }
  }

  @keyframes signal {
    0%, 100% { opacity: 0.55; box-shadow: 0 0 0.5rem rgba(117, 186, 255, 0.54); }
    50% { opacity: 1; box-shadow: 0 0 1.2rem rgba(117, 186, 255, 0.95); }
  }

  @keyframes city-signal {
    0%, 10%, 100% { opacity: 0.02; }
    32%, 68% { opacity: 0.78; }
    86% { opacity: 0.1; }
  }

  @keyframes city-drift {
    from { transform: scale(1.04) translate3d(-0.35%, 0.2%, 0); }
    to { transform: scale(1.085) translate3d(0.4%, -0.35%, 0); }
  }

  @keyframes trace {
    to { stroke-dashoffset: -1; }
  }
}

@media (max-width: 760px) {
  .site-shell {
    padding: 1.55rem 1.35rem 1.35rem;
  }

  .site-header {
    justify-content: center;
  }

  .brand {
    width: min(17.5rem, 78vw);
  }

  .system-status {
    position: absolute;
    top: 3.25rem;
    left: 50%;
    width: max-content;
    transform: translateX(-50%);
  }

  .hero {
    align-items: flex-end;
    padding: 8rem 0 4.5rem;
  }

  .hero__copy {
    width: 100%;
    margin: 0;
  }

  .eyebrow {
    max-width: 20rem;
    margin-bottom: 1.2rem;
    font-size: 0.56rem;
    line-height: 1.6;
  }

  h1 {
    max-width: 12ch;
    font-size: clamp(3.35rem, 16.7vw, 5.25rem);
    line-height: 0.9;
  }

  h1 em {
    margin-top: 0.14em;
    margin-left: 0;
  }

  .lede,
  .teaser {
    margin-left: 0;
  }

  .lede {
    max-width: 29rem;
    margin-top: 1.7rem;
    font-size: 1rem;
    line-height: 1.58;
  }

  .teaser {
    max-width: 29rem;
    margin-top: 0.7rem;
    line-height: 1.65;
  }

  .reticle {
    top: 35%;
    left: 77%;
    width: 35rem;
    opacity: 0.78;
  }

  .reticle__origin span {
    display: none;
  }

  .survey-field {
    inset: -10% -40%;
    width: 180%;
    height: 120%;
  }

  .site-footer {
    justify-content: center;
  }

  .territory,
  .edge-label {
    display: none;
  }

  .reintroduction {
    font-size: 0.58rem;
  }
}

@media (max-height: 710px) and (min-width: 761px) {
  .site-shell {
    padding-top: 1.8rem;
    padding-bottom: 1.5rem;
  }

  .hero {
    padding-top: 2.5rem;
    padding-bottom: 2.5rem;
  }

  h1 {
    font-size: clamp(3.8rem, 6.5vw, 6.8rem);
  }

  .lede {
    margin-top: 1.6rem;
  }
}

@media (max-height: 740px) and (max-width: 760px) {
  .site-shell {
    min-height: 100svh;
  }

  .hero {
    padding-top: 5.2rem;
    padding-bottom: 1.8rem;
  }
}

@media (max-height: 620px) and (max-width: 760px) {
  .hero {
    padding-top: 4.5rem;
    padding-bottom: 1.25rem;
  }

  h1 {
    font-size: clamp(3rem, 14vw, 4rem);
  }

  .lede {
    margin-top: 1.15rem;
    font-size: 0.92rem;
    line-height: 1.48;
  }

  .teaser {
    margin-top: 0.45rem;
    font-size: 0.72rem;
    line-height: 1.5;
  }
}

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

@media (forced-colors: active) {
  .grain,
  .survey-field,
  .reticle {
    display: none;
  }

  h1 em {
    color: CanvasText;
    -webkit-text-stroke: 0;
  }
}
