:root {
  color-scheme: dark;
  --ink: #e8e9e6;
  --dim: #888d8b;
  --blue: #5caee0;
  --copper: #b06e4c;
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  min-height: 100%;
  background: #070809;
}

body {
  overflow: hidden;
  font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
  color: var(--ink);
}

.hero {
  position: relative;
  width: 100vw;
  height: 100svh;
  min-height: 560px;
  overflow: hidden;
  background: #070809;
  isolation: isolate;
}

#field,
.grain {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.portal-dots {
  position: absolute;
  z-index: 4;
  inset: 0;
  pointer-events: none;
}

.portal-dot {
  position: absolute;
  width: 3px;
  height: 3px;
  border-radius: 50%;
  background: rgba(190, 211, 213, 0.72);
  box-shadow: 0 0 7px rgba(105, 177, 202, 0.38);
  pointer-events: auto;
  --px: 0px;
  --py: 0px;
  animation: portal-drift 9s ease-in-out infinite, portal-breathe 4.5s ease-in-out infinite;
  transition: background 0.3s ease, box-shadow 0.3s ease;
}

.portal-dot span {
  position: absolute;
  left: 12px;
  top: -13px;
  opacity: 0;
  color: #a9b8b8;
  font-size: 9px;
  letter-spacing: 0.16em;
  white-space: nowrap;
  transform: translateX(-4px);
  transition: opacity 0.3s ease, transform 0.3s ease;
}

.portal-dot:hover,
.portal-dot:focus-visible {
  background: var(--blue);
  box-shadow: 0 0 12px rgba(92, 174, 224, 0.8);
  transform: translate3d(var(--px), var(--py), 0) scale(1.7);
  outline: none;
}

.portal-dot:hover span,
.portal-dot:focus-visible span {
  opacity: 1;
  transform: translateX(0);
}

#particle-spray { position: absolute; inset: 0; z-index: 3; pointer-events: none; overflow: hidden; }
#content-overlay { position: absolute; inset: 0; z-index: 2; pointer-events: none; overflow: hidden; }
#content-overlay { transition: opacity 1s ease, filter 1s ease; }
#content-overlay.content-transitioning { opacity: 0; filter: blur(4px); transition-duration: .5s; }
.content-post { position: absolute; padding: 18px; font-family: inherit; letter-spacing: 0.04em; line-height: 1.45; }
.content-post h2 { margin: 0 0 8px; font-size: 1.35em; font-weight: 400; letter-spacing: 0.08em; }
.content-post p { margin: 0; max-width: 38em; }
.content-post--20956789995-e-entry { display: flex; flex-direction: column; align-items: center; text-align: center; text-transform: uppercase; letter-spacing: .35em; }
.content-post--20956789995-e-entry h2 { order: 2; width: 86%; }
.content-post--20956789995-e-entry .content-post__subtitle { order: 1; }
.content-post--20956789995-e-entry p:last-child { order: 3; width: 100%; }
.content-post--20956789995-e-entry h2 { margin: 22px auto 18px; padding: 22px 0 20px; border-top: 4px solid #ff351c; border-bottom: 4px solid #ff351c; color: #f1f2f1; font-size: clamp(30px, 3.8vw, 68px); font-weight: 300; letter-spacing: .01em; text-shadow: 0 0 12px rgba(255,53,28,.28); }
.content-post--20956789995-e-entry .content-post__subtitle { margin: 0 !important; font-size: clamp(12px, .95vw, 18px); letter-spacing: .65em; }
.content-post--20956789995-e-entry p:last-child { font-size: clamp(10px, .72vw, 14px); letter-spacing: .4em; line-height: 3.4; white-space: nowrap; }
.content-post--20956789995-e-entry .entry-mark { color: #ff351c; text-shadow: 0 0 12px rgba(255,53,28,.65); }
.content-post--20956789995-e-entry .entry-button { display: inline-block; min-width: 20em; margin-top: 18px; padding: 5px 34px; border: 2px solid #ff351c; border-radius: 999px; box-shadow: 0 0 9px rgba(255,53,28,.45), inset 0 0 8px rgba(255,53,28,.1); letter-spacing: .5em; pointer-events: auto; transition: border-color .25s ease, box-shadow .25s ease, background-color .25s ease; }
.content-post--20956789995-e-entry .entry-button b { display: inline-block; color: #ff351c; font-size: 1.55em; line-height: 0; vertical-align: -2px; transition: transform .25s ease; }
.content-post--20956789995-e-entry .entry-button:hover { border-color: #ff6a4f; background: rgba(255,53,28,.05); box-shadow: 0 0 14px rgba(255,53,28,.7), inset 0 0 9px rgba(255,53,28,.14); }
.content-post--20956789995-e-entry .entry-button:hover b { transform: translateX(3px); }
.content-post__subtitle { margin-bottom: 12px !important; font-size: 0.7em; letter-spacing: 0.14em; opacity: 0.7; }
.model-viewer { position: absolute; z-index: 2; transform: translate(-50%, -50%); pointer-events: auto; touch-action: none; transition: opacity 1s ease; }
.model-viewer--outline { outline: 1px dashed rgba(125, 177, 193, 0.65); outline-offset: -1px; }
.spray-particle { position: absolute; width: 2px; height: 2px; border-radius: 50%; background: rgba(190, 211, 213, .8); box-shadow: 0 0 6px rgba(105,177,202,.45); transform: translate(-50%, -50%); }

@keyframes portal-drift {
  0%, 100% { transform: translate3d(var(--px), var(--py), 0); }
  50% { transform: translate3d(calc(var(--px) + 5px), calc(var(--py) - 4px), 0); }
}

@keyframes portal-breathe {
  0%, 100% { opacity: 0.48; }
  50% { opacity: 0.9; }
}

#field {
  z-index: -2;
  display: block;
}

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

.masthead {
  position: absolute;
  inset: 35px 42px auto;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  z-index: 2;
  pointer-events: none;
}

.wordmark,
.nav,
.nav a {
  pointer-events: auto;
}

.wordmark {
  color: var(--ink);
  text-decoration: none;
  letter-spacing: 0.28em;
  font-size: 13px;
  line-height: 1;
}

.wordmark small {
  display: block;
  margin-top: 12px;
  color: var(--dim);
  letter-spacing: 0.18em;
  font-size: 7px;
}

.nav {
  display: grid;
  gap: 10px;
  text-align: right;
}

.nav a {
  color: #aeb2b0;
  text-decoration: none;
  font-size: 9px;
  letter-spacing: 0.2em;
  transition: color 0.3s;
}

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

.statement {
  position: absolute;
  z-index: 1;
  left: 11vw;
  bottom: 17vh;
}

.contact-crawl {
  position: absolute;
  inset: 0;
  z-index: 1;
  display: none;
  overflow: hidden;
  pointer-events: none;
  perspective: 900px;
  perspective-origin: 50% 44%;
  -webkit-mask-image: linear-gradient(to bottom, transparent 0%, #000 18%, #000 78%, transparent 100%);
  mask-image: linear-gradient(to bottom, transparent 0%, #000 18%, #000 78%, transparent 100%);
}

.contact-mode .contact-crawl {
  display: none;
}

.contact-mode .contact-crawl {
  display: block;
  perspective: none;
  -webkit-mask-image: none;
  mask-image: none;
}
.contact-crawl { transition: opacity 1s ease, filter 1s ease; }
.contact-crawl.contact-content-transitioning { opacity: 0; filter: blur(4px); transition-duration: .5s; }

.contact-mode .crawl-track {
  top: 50%;
  bottom: auto;
  transform: translate(-50%, -50%);
  animation: none;
  color: var(--ink);
  font-size: clamp(14px, 1.8vw, 24px);
  line-height: 1.5;
  letter-spacing: 0.12em;
  text-shadow: none;
}

.crawl-track {
  position: absolute;
  left: 50%;
  bottom: -36%;
  width: min(1080px, 82vw);
  transform: translateX(-50%) rotateX(70deg) translateZ(0);
  transform-origin: 50% 100%;
  text-align: center;
  color: rgba(225, 194, 112, 0.9);
  font-size: clamp(30px, 4.8vw, 76px);
  line-height: 1.45;
  letter-spacing: 0.12em;
  text-shadow: 0 0 10px rgba(225, 183, 72, 0.2);
  text-transform: uppercase;
  animation: contact-crawl 10.375s linear infinite;
}

.crawl-track p {
  margin: 0 0 46px;
}

@keyframes contact-crawl {
  0% { opacity: 0; transform: translate(-50%, 24%) rotateX(70deg) translateZ(320px); }
  24% { opacity: 1; transform: translate(-50%, 12%) rotateX(70deg) translateZ(0); }
  48% { opacity: 1; transform: translate(-50%, 4%) rotateX(70deg) translateZ(-700px); }
  72% { opacity: 0.42; transform: translate(-50%, -3%) rotateX(70deg) translateZ(-1400px); }
  100% { opacity: 0; transform: translate(-50%, -12%) rotateX(70deg) translateZ(-2200px); }
}

@media (prefers-reduced-motion: reduce) {
  .crawl-track {
    animation: none;
    transform: translate(-50%, 0) rotateX(70deg) translateZ(-250px);
    opacity: 0.7;
  }
}

.eyebrow {
  display: flex;
  align-items: center;
  gap: 9px;
  margin: 0 0 22px;
  color: #6d7474;
  font-size: 8px;
  letter-spacing: 0.24em;
}

.eyebrow i,
.status i {
  width: 5px;
  height: 5px;
  border: 1px solid var(--copper);
  border-radius: 50%;
  display: inline-block;
}

h1 {
  margin: 0;
  font-weight: 300;
  color: var(--page-title-color, #f1f2ef);
  opacity: var(--page-title-opacity, 1);
  font-family: var(--page-title-font, inherit);
  font-size: var(--page-title-size, clamp(40px, 5.3vw, 82px));
  line-height: 0.92;
  letter-spacing: var(--page-title-spacing, -0.055em);
  transition: opacity var(--title-dissolve-duration, 0.42s) ease, filter var(--title-dissolve-duration, 0.42s) ease, letter-spacing var(--title-dissolve-duration, 0.42s) ease, transform var(--title-dissolve-duration, 0.42s) ease;
}

h1.is-dissolving {
  opacity: 0;
  filter: blur(5px);
  letter-spacing: 0.08em;
  transform: translateY(4px);
}

h1 em {
  color: #bfc3c0;
  font-style: normal;
}

.metadata {
  position: absolute;
  z-index: 2;
  right: 42px;
  bottom: 36px;
  display: grid;
  gap: 5px;
  color: #646b6a;
  font-size: 7px;
  letter-spacing: 0.19em;
  text-align: right;
}

.status {
  position: absolute;
  left: 42px;
  bottom: 38px;
  display: flex;
  align-items: center;
  gap: 8px;
  color: #68706e;
  font-size: 7px;
  letter-spacing: 0.2em;
}

.status i {
  border-color: var(--blue);
}

.cursor-reticle {
  position: fixed;
  z-index: 4;
  display: none;
  pointer-events: none;
  width: 22px;
  height: 22px;
  transform: translate(-50%, -50%);
  border: 1px solid rgba(154, 193, 211, 0.6);
  border-radius: 50%;
}

.cursor-reticle::before,
.cursor-reticle::after {
  content: "";
  position: absolute;
  background: rgba(154, 193, 211, 0.5);
}

.cursor-reticle::before {
  width: 32px;
  height: 1px;
  left: -6px;
  top: 10px;
}

.cursor-reticle::after {
  height: 32px;
  width: 1px;
  top: -6px;
  left: 10px;
}

.cursor-reticle b {
  position: absolute;
  inset: 8px;
  border-radius: 50%;
  background: var(--blue);
  opacity: 0.8;
}

.cursor-reticle span {
  position: absolute;
  top: 20px;
  left: 16px;
  color: #84989d;
  font: 7px/1 monospace;
  white-space: nowrap;
  letter-spacing: 0.08em;
}

@media (pointer: fine) {
  body {
    cursor: none;
  }

  .cursor-reticle {
    display: block;
  }
}

@media (max-width: 640px) {
  .masthead {
    inset: 24px 22px auto;
  }

  .nav {
    gap: 8px;
  }

  .wordmark {
    font-size: 11px;
  }

  .statement {
    left: 22px;
    bottom: 18vh;
  }

  .metadata {
    right: 22px;
    bottom: 23px;
  }

  .status {
    left: 22px;
    bottom: 25px;
  }
}

/* Content-only responsive layout. The Universe shell remains unchanged. */
@media (max-width: 640px) and (orientation: portrait) {
  #content-overlay {
    overflow: hidden;
  }

  .content-post {
    left: 34% !important;
    top: 19vh !important;
    width: 60% !important;
    padding: 12px;
  }

  .model-viewer {
    left: 62% !important;
    top: 39vh !important;
    width: 40vw !important;
    height: 18vh !important;
  }
}

@media (min-width: 641px) and (max-width: 1100px) and (orientation: landscape) {
  .content-post {
    left: 29% !important;
    top: 27vh !important;
    width: 32vw !important;
  }

  .model-viewer {
    left: 55% !important;
    top: 45vh !important;
    width: 22vw !important;
    height: 32vh !important;
  }
}

@media (prefers-reduced-motion: reduce) {
  .cursor-reticle {
    display: none;
  }

  body {
    cursor: auto;
  }
}
