:root {
  --bg: #090c0a;
  --bg-soft: #101611;
  --paper: #eee7d8;
  --paper-muted: #aaa394;
  --copper: #c89a5c;
  --copper-soft: rgba(200, 154, 92, 0.35);
  --green: #1d2b21;
  --line: rgba(238, 231, 216, 0.14);
  --shadow: rgba(0, 0, 0, 0.55);
  --serif: "Iowan Old Style", "Palatino Linotype", Palatino, "Book Antiqua", Georgia, serif;
  --sans: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  min-width: 320px;
  min-height: 100%;
  background: var(--bg);
}

body {
  min-width: 320px;
  min-height: 100svh;
  margin: 0;
  overflow: hidden;
  color: var(--paper);
  background:
    radial-gradient(circle at 50% 44%, rgba(39, 57, 43, 0.32), transparent 36%),
    linear-gradient(135deg, #070907 0%, #0d120e 52%, #080a08 100%);
  font-family: var(--sans);
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

::selection {
  color: #11150f;
  background: var(--copper);
}

.page-shell,
.page-shell > * {
  position: fixed;
  inset: 0;
  pointer-events: none;
}

.page-shell {
  overflow: hidden;
}

.ambient {
  width: 42vw;
  height: 42vw;
  border-radius: 999px;
  filter: blur(90px);
  opacity: 0.11;
  will-change: transform;
}

.ambient--one {
  inset: -16vw auto auto -14vw;
  background: #73603e;
  animation: ambientDriftOne 18s ease-in-out infinite alternate;
}

.ambient--two {
  inset: auto -15vw -18vw auto;
  background: #31503b;
  animation: ambientDriftTwo 22s ease-in-out infinite alternate;
}

.trace-field {
  width: 112%;
  height: 112%;
  inset: -6%;
  opacity: 0.75;
  transform: translate3d(var(--parallax-x, 0), var(--parallax-y, 0), 0) scale(1.02);
  transition: transform 300ms ease-out;
}

.trace {
  fill: none;
  stroke: url(#traceGradient);
  stroke-width: 1.05;
  vector-effect: non-scaling-stroke;
  stroke-dasharray: 12 15;
  animation: traceMove 18s linear infinite;
}

.trace--b {
  opacity: 0.52;
  animation-duration: 25s;
  animation-direction: reverse;
}

.trace--c,
.trace--d {
  opacity: 0.22;
  stroke-width: 0.85;
  animation-duration: 31s;
}

.nodes circle {
  fill: var(--copper);
  opacity: 0.72;
  animation: nodePulse 4.8s ease-in-out infinite;
}

.nodes circle:nth-child(2n) { animation-delay: -1.6s; }
.nodes circle:nth-child(3n) { animation-delay: -3.1s; }

.vignette {
  background:
    radial-gradient(circle at center, transparent 18%, rgba(0, 0, 0, 0.12) 54%, rgba(0, 0, 0, 0.73) 110%),
    linear-gradient(to bottom, rgba(0, 0, 0, 0.12), transparent 22%, transparent 78%, rgba(0, 0, 0, 0.2));
}

.grain {
  opacity: 0.09;
  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='.82' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.55'/%3E%3C/svg%3E");
  mix-blend-mode: soft-light;
}

.hero {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-rows: auto 1fr auto;
  width: min(100%, 1600px);
  min-height: 100svh;
  margin: 0 auto;
  padding:
    max(28px, env(safe-area-inset-top))
    clamp(22px, 4vw, 68px)
    max(26px, env(safe-area-inset-bottom));
}

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

.top-line {
  gap: 12px;
  width: fit-content;
  color: rgba(238, 231, 216, 0.78);
  font-size: 0.69rem;
  font-weight: 600;
  letter-spacing: 0.28em;
  text-transform: uppercase;
}

.top-line__mark {
  display: grid;
  width: 36px;
  height: 36px;
  place-items: center;
  border: 1px solid rgba(200, 154, 92, 0.5);
  border-radius: 50%;
  color: var(--copper);
  font-family: var(--serif);
  font-size: 1.08rem;
  font-weight: 400;
  letter-spacing: 0;
  box-shadow: inset 0 0 22px rgba(200, 154, 92, 0.05), 0 0 30px rgba(200, 154, 92, 0.04);
}

.hero__content {
  align-self: center;
  width: 100%;
  margin-top: -1.5vh;
  text-align: center;
}

.eyebrow {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  margin: 0 0 clamp(18px, 2.7vh, 30px);
  color: rgba(200, 154, 92, 0.92);
  font-size: clamp(0.64rem, 0.8vw, 0.76rem);
  font-weight: 600;
  letter-spacing: 0.42em;
  text-transform: uppercase;
}

.eyebrow__line {
  width: clamp(28px, 4.2vw, 72px);
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(200, 154, 92, 0.65));
}

.eyebrow__line:last-child {
  transform: rotate(180deg);
}

.title {
  margin: 0;
  color: var(--paper);
  font-family: var(--serif);
  font-size: clamp(4.2rem, 13vw, 11.6rem);
  font-weight: 400;
  line-height: 0.79;
  letter-spacing: -0.064em;
  text-shadow: 0 22px 70px var(--shadow);
}

.title__dot {
  color: var(--copper);
  text-shadow: 0 0 36px rgba(200, 154, 92, 0.2);
}

.divider {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 11px;
  width: min(420px, 64vw);
  margin: clamp(31px, 5vh, 52px) auto clamp(25px, 3.8vh, 39px);
}

.divider span {
  width: 100%;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--line));
}

.divider span:last-child {
  transform: rotate(180deg);
}

.divider i {
  width: 5px;
  height: 5px;
  flex: 0 0 auto;
  border: 1px solid rgba(200, 154, 92, 0.72);
  transform: rotate(45deg);
}

.message {
  margin: 0;
  color: rgba(238, 231, 216, 0.94);
  font-family: var(--serif);
  font-size: clamp(1.65rem, 3.1vw, 3.1rem);
  font-weight: 400;
  letter-spacing: 0.008em;
}

.submessage {
  margin: 13px 0 0;
  color: var(--paper-muted);
  font-size: clamp(0.74rem, 1vw, 0.88rem);
  font-weight: 400;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.footer {
  gap: 18px;
  color: rgba(238, 231, 216, 0.45);
  font-size: 0.63rem;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.footer p {
  margin: 0;
}

.status {
  display: flex;
  align-items: center;
  gap: 9px;
}

.status__dot {
  position: relative;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--copper);
  box-shadow: 0 0 14px rgba(200, 154, 92, 0.48);
}

.status__dot::after {
  position: absolute;
  inset: -4px;
  border: 1px solid rgba(200, 154, 92, 0.28);
  border-radius: inherit;
  content: "";
  animation: statusPulse 2.5s ease-out infinite;
}

.reveal {
  opacity: 0;
  transform: translateY(18px);
}

body.is-ready .reveal {
  animation: reveal 1.05s cubic-bezier(0.2, 0.72, 0.2, 1) forwards;
}

body.is-ready .reveal--1 { animation-delay: 80ms; }
body.is-ready .reveal--2 { animation-delay: 230ms; }
body.is-ready .reveal--3 { animation-delay: 330ms; }
body.is-ready .reveal--4 { animation-delay: 490ms; }
body.is-ready .reveal--5 { animation-delay: 610ms; }
body.is-ready .reveal--6 { animation-delay: 720ms; }
body.is-ready .reveal--7 { animation-delay: 870ms; }

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

@keyframes traceMove {
  to { stroke-dashoffset: -180; }
}

@keyframes nodePulse {
  0%, 100% { opacity: 0.28; transform: scale(0.88); transform-origin: center; }
  50% { opacity: 0.86; transform: scale(1.14); transform-origin: center; }
}

@keyframes statusPulse {
  0% { opacity: 0.5; transform: scale(0.75); }
  80%, 100% { opacity: 0; transform: scale(1.9); }
}

@keyframes ambientDriftOne {
  to { transform: translate3d(11vw, 8vh, 0) scale(1.12); }
}

@keyframes ambientDriftTwo {
  to { transform: translate3d(-12vw, -8vh, 0) scale(0.9); }
}

@media (max-width: 700px) {
  .hero {
    padding-inline: 22px;
  }

  .top-line__text {
    letter-spacing: 0.22em;
  }

  .title {
    font-size: clamp(4rem, 21vw, 7.4rem);
    line-height: 0.86;
  }

  .eyebrow {
    gap: 12px;
    letter-spacing: 0.34em;
  }

  .message {
    font-size: clamp(1.65rem, 7vw, 2.35rem);
  }

  .submessage {
    max-width: 290px;
    margin-inline: auto;
    line-height: 1.8;
  }

  .footer {
    font-size: 0.55rem;
    letter-spacing: 0.12em;
  }

  .trace-field {
    width: 150%;
    height: 118%;
    inset: -9% -25%;
    opacity: 0.56;
  }
}

@media (max-height: 640px) and (orientation: landscape) {
  .hero {
    padding-block: 18px;
  }

  .top-line__mark {
    width: 30px;
    height: 30px;
  }

  .title {
    font-size: clamp(4.2rem, 15vw, 7rem);
  }

  .eyebrow {
    margin-bottom: 12px;
  }

  .divider {
    margin-block: 18px 14px;
  }

  .submessage {
    margin-top: 8px;
  }
}

@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;
  }

  .trace-field {
    transform: none !important;
  }
}
