@font-face {
  font-family: "Space Grotesk Local";
  src: url("assets/fonts/SpaceGrotesk-Medium.ttf") format("truetype");
  font-style: normal;
  font-weight: 500;
  font-display: swap;
}

@font-face {
  font-family: "Space Grotesk Local";
  src: url("assets/fonts/SpaceGrotesk-SemiBold.ttf") format("truetype");
  font-style: normal;
  font-weight: 600;
  font-display: swap;
}

:root {
  --ink: #08101f;
  --stone: #f5f4f0;
  --gold: #c8a96e;
  --muted: rgba(245, 244, 240, 0.58);
  --faint: rgba(245, 244, 240, 0.08);
  --grid: rgba(200, 169, 110, 0.045);
  --page-pad: clamp(1.5rem, 4vw, 4.5rem);
}

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

html {
  background: var(--ink);
}

body {
  min-width: 20rem;
  margin: 0;
  background-color: var(--ink);
  background-image:
    linear-gradient(var(--grid) 1px, transparent 1px),
    linear-gradient(90deg, var(--grid) 1px, transparent 1px);
  background-size: 4rem 4rem;
  color: var(--stone);
  font-family: "Space Grotesk Local", "Helvetica Neue", Arial, sans-serif;
  font-weight: 500;
}

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

.page-shell {
  display: grid;
  width: 100%;
  min-height: 100dvh;
  grid-template-rows: auto 1fr auto;
  padding: 0 var(--page-pad);
  overflow: hidden;
}

.site-header,
.site-footer,
.hero {
  width: 100%;
  min-width: 0;
}

.site-header,
.site-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.site-header {
  min-height: 7rem;
  border-bottom: 1px solid var(--faint);
}

.brand {
  display: block;
  width: clamp(9.5rem, 14vw, 12.5rem);
}

.brand:focus-visible,
.contact-card:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 0.4rem;
}

.brand img {
  display: block;
  width: 100%;
  height: auto;
}

.header-code,
.site-footer,
.process-head,
.process-list span,
.process-list small {
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  text-transform: uppercase;
}

.header-code {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  margin: 0;
  color: var(--muted);
  font-size: 0.69rem;
}

.status-dot {
  display: block;
  width: 0.4rem;
  height: 0.4rem;
  border-radius: 50%;
  background: var(--gold);
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.28fr) minmax(20rem, 0.72fr);
  gap: clamp(3rem, 7vw, 8rem);
  align-items: center;
  padding: clamp(4rem, 8vh, 7rem) 0;
}

.hero-copy {
  max-width: 58rem;
}

.eyebrow {
  display: flex;
  max-width: 13rem;
  justify-content: space-between;
  margin: 0 0 clamp(2rem, 5vh, 4.5rem);
  color: var(--gold);
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: 0.7rem;
  text-transform: uppercase;
}

h1 {
  max-width: 13ch;
  margin: 0;
  font-size: clamp(3.45rem, 7vw, 6rem);
  font-weight: 500;
  line-height: 0.94;
  text-wrap: balance;
}

h1 em {
  color: var(--gold);
  font-style: normal;
}

.intro {
  margin: clamp(2rem, 4vh, 3rem) 0 0;
  color: var(--muted);
  font-size: clamp(1.05rem, 1.6vw, 1.4rem);
  line-height: 1.5;
  text-wrap: pretty;
}

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

.signal-panel {
  width: 100%;
}

.process-card {
  position: relative;
  border: 1px solid var(--faint);
  background: rgba(8, 16, 31, 0.82);
  padding: 1.5rem;
}

.process-card::before,
.process-card::after,
.card-corners::before,
.card-corners::after {
  position: absolute;
  width: 0.7rem;
  height: 0.7rem;
  content: "";
}

.process-card::before {
  top: -1px;
  left: -1px;
  border-top: 1px solid var(--gold);
  border-left: 1px solid var(--gold);
}

.process-card::after {
  top: -1px;
  right: -1px;
  border-top: 1px solid var(--gold);
  border-right: 1px solid var(--gold);
}

.card-corners::before {
  bottom: -1px;
  left: -1px;
  border-bottom: 1px solid var(--gold);
  border-left: 1px solid var(--gold);
}

.card-corners::after {
  right: -1px;
  bottom: -1px;
  border-right: 1px solid var(--gold);
  border-bottom: 1px solid var(--gold);
}

.process-head {
  display: flex;
  justify-content: space-between;
  color: var(--muted);
  font-size: 0.68rem;
}

.star-field {
  position: relative;
  display: grid;
  min-height: clamp(12rem, 21vw, 17rem);
  place-items: center;
  margin: 1.25rem 0;
  overflow: hidden;
  border-top: 1px solid var(--faint);
  border-bottom: 1px solid var(--faint);
}

.magic-mark {
  position: relative;
  z-index: 1;
  display: block;
  width: clamp(7rem, 11vw, 9rem);
  height: clamp(7rem, 11vw, 9rem);
  transform-origin: 50% 78%;
  animation: magic-bounce 2.6s ease-out infinite;
  animation-play-state: paused;
}

.magic-mark.is-visible {
  animation-play-state: running;
}

.magic-mark img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
}

@keyframes magic-bounce {
  0%, 9%, 24%, 100% { transform: translateY(0) scale(1); }
  5% { transform: translateY(-1.25rem) rotate(2deg) scale(0.98, 1.02); }
  10% { transform: translateY(0) rotate(0deg) scale(1.07, 0.93); }
  15% { transform: translateY(-0.5rem) rotate(-1deg) scale(0.99, 1.01); }
  20% { transform: translateY(0) rotate(0deg) scale(1.03, 0.97); }
}

.axis {
  position: absolute;
  display: block;
  background: var(--faint);
}

.axis-horizontal {
  width: 100%;
  height: 1px;
}

.axis-vertical {
  width: 1px;
  height: 100%;
}

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

.process-list li {
  display: grid;
  grid-template-columns: 2rem minmax(0, 1fr) auto;
  gap: 0.75rem;
  align-items: center;
  min-height: 2.75rem;
  border-bottom: 1px solid var(--faint);
  color: var(--muted);
}

.process-list li:last-child {
  border-bottom: 0;
}

.process-list span,
.process-list small {
  font-size: 0.64rem;
}

.process-list strong {
  font-size: 0.75rem;
  font-weight: 500;
}

.process-list small {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  color: inherit;
}

.process-list small i {
  width: 0.32rem;
  height: 0.32rem;
  border-radius: 50%;
  background: var(--gold);
}

.process-list .done small {
  opacity: 0.45;
}

.process-list .pending {
  opacity: 0.42;
}

.process-list .active {
  color: var(--stone);
}

.process-list .active span,
.process-list .active small {
  color: var(--gold);
}

.contact-card {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 0.65rem 1rem;
  padding: 1.5rem 3.5rem 1.5rem 1.5rem;
  margin-top: 1rem;
  border: 1px solid var(--faint);
  color: var(--stone);
  text-decoration: none;
  transition: border-color 160ms ease-out, transform 160ms ease-out;
}

.contact-card:hover {
  transform: translateY(-2px);
  border-color: rgba(200, 169, 110, 0.55);
}

.contact-label {
  grid-column: 1 / -1;
  color: var(--muted);
  font-size: 0.75rem;
}

.contact-email {
  overflow-wrap: anywhere;
  font-size: clamp(0.9rem, 1.25vw, 1.08rem);
}

.contact-arrow {
  position: absolute;
  top: 50%;
  right: 1.5rem;
  color: var(--gold);
  font-size: 1.2rem;
  transform: translateY(-50%);
}

.site-footer {
  min-height: 5.25rem;
  border-top: 1px solid var(--faint);
  color: var(--muted);
  font-size: 0.62rem;
}

.site-footer p {
  margin: 0;
}

.site-footer p:first-child {
  display: flex;
  gap: 0.7rem;
}

.footer-note {
  color: var(--gold);
}

@media (max-width: 900px) {
  .hero {
    grid-template-columns: minmax(0, 1fr);
    gap: 4rem;
  }

  .signal-panel {
    width: 100%;
    max-width: 33rem;
  }
}

@media (max-width: 560px) {
  body {
    background-size: 2.75rem 2.75rem;
  }

  .site-header {
    min-height: 5.75rem;
  }

  .brand {
    width: 8.75rem;
  }

  .header-code {
    font-size: 0.6rem;
  }

  .hero {
    padding: 4.5rem 0 3rem;
  }

  h1 {
    font-size: clamp(2.65rem, 11vw, 3.05rem);
  }

  .eyebrow {
    margin-bottom: 2.25rem;
  }

  .process-card {
    padding: 1.15rem;
  }

  .star-field {
    min-height: 11rem;
  }

  .contact-card {
    padding: 1.25rem 3rem 1.25rem 1.25rem;
  }

  .site-footer {
    align-items: flex-start;
    flex-direction: column;
    justify-content: center;
    gap: 0.5rem;
  }

  .site-footer p:first-child span {
    display: none;
  }

  .site-footer p:first-child {
    display: block;
  }
}

@media (prefers-reduced-motion: reduce) {
  .magic-mark,
  .magic-mark.is-visible {
    animation: none;
  }

  .contact-card {
    transition: none;
  }
}
