:root {
  --ground: #F1F3F6;
  --ink: #0F1217;
  --muted: #5A6371;
  --line: rgba(15, 18, 23, 0.075);
  --blue: #48C9EC;
  --orange: #FF9E03;
  --red: #FF3236;

  --display: "Unbounded", "Arial Black", system-ui, sans-serif;
  --body: "Instrument Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  --mono: "IBM Plex Mono", ui-monospace, "Cascadia Mono", Consolas, monospace;

  --pad: clamp(20px, 4vw, 48px);
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);

  color-scheme: light dark;
}

@media (prefers-color-scheme: dark) {
  :root {
    --ground: #0C0F14;
    --ink: #EEF1F5;
    --muted: #8A94A3;
    --line: rgba(238, 241, 245, 0.06);
  }
}

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

html, body { margin: 0; }

body {
  min-height: 100vh;
  min-height: 100svh;
  display: grid;
  grid-template-rows: auto 1fr auto;
  padding: var(--pad);
  background: var(--ground);
  color: var(--ink);
  font-family: var(--body);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

/* Isometric grid — the same 30° geometry the mark is cut from */
.grid {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: -1;
  pointer-events: none;
  -webkit-mask-image: radial-gradient(ellipse 70% 65% at 22% 72%, #000 0%, transparent 75%);
  mask-image: radial-gradient(ellipse 70% 65% at 22% 72%, #000 0%, transparent 75%);
}
.grid path {
  fill: none;
  stroke: var(--line);
  stroke-width: 1;
  vector-effect: non-scaling-stroke;
}

/* Header + footer: quiet utility type */
.top,
.foot {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 8px 24px;
  font-family: var(--mono);
  font-size: 0.75rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}
.top .name { color: var(--ink); font-weight: 500; }

.status { display: inline-flex; align-items: center; gap: 10px; }
.dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--orange);
  box-shadow: 0 0 0 0 rgba(255, 158, 3, 0.5);
  animation: pulse 2.4s ease-out infinite;
}
@keyframes pulse {
  0%   { box-shadow: 0 0 0 0 rgba(255, 158, 3, 0.45); }
  70%  { box-shadow: 0 0 0 9px rgba(255, 158, 3, 0); }
  100% { box-shadow: 0 0 0 0 rgba(255, 158, 3, 0); }
}

/* Stage */
.stage {
  align-self: end;
  padding-block: clamp(48px, 10vh, 120px) clamp(28px, 7vh, 80px);
}

.soon {
  margin: 0;
  font-family: var(--display);
  font-weight: 600;
  font-size: clamp(4.25rem, 21vw, 17.5rem);
  line-height: 0.9;
  letter-spacing: -0.045em;
  white-space: nowrap;
  display: flex;
  align-items: baseline;
}

/* The mark stands in for the second O */
.mark {
  flex: none;
  height: 0.8em;
  width: calc(0.8em * 519 / 599);
  margin: 0 0.04em 0 0.025em;
  align-self: flex-end;
  transform: translateY(-0.055em);
  overflow: visible;
}

.tm {
  align-self: flex-start;
  font-size: 0.17em;
  letter-spacing: 0;
  margin-left: 0.25em;
  margin-top: 0.3em;
  color: var(--muted);
}

.lede {
  max-width: 36ch;
  margin: clamp(20px, 3.2vw, 40px) 0 0;
  font-size: clamp(1.05rem, 1.55vw, 1.35rem);
  line-height: 1.5;
  color: var(--muted);
  text-wrap: pretty;
}

/* Mark pieces — exploded by --load (page entry) plus --hover (pointer proximity) */
.mark { --hover: 0; }
.mark .p {
  --load: 0;
  transform-box: fill-box;
  transform: translate(
    calc(var(--dx) * (var(--load) + var(--hover)) * 1px),
    calc(var(--dy) * (var(--load) + var(--hover)) * 1px)
  );
}

/* Entry choreography (only when JS is present) */
.js .mark .p {
  --load: 9;
  opacity: 0;
  transition:
    transform 1.4s var(--ease-out) calc(420ms + var(--d)),
    opacity 0.5s ease calc(420ms + var(--d));
}
.js.is-ready .mark .p { --load: 0; opacity: 1; }
.js.is-settled .mark .p {
  transition: transform 0.55s cubic-bezier(0.2, 0.7, 0.2, 1);
}

.js .reveal {
  opacity: 0;
  transform: translateY(0.35em);
  transition:
    opacity 0.8s ease calc(var(--i) * 90ms),
    transform 1s var(--ease-out) calc(var(--i) * 90ms);
}
.js .soon .reveal { display: inline-block; }
.js.is-ready .reveal { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  .js .mark .p,
  .js .reveal { transition: none; }
  .js .mark .p { --load: 0; opacity: 1; }
  .js .reveal { opacity: 1; transform: none; }
  .dot { animation: none; }
}

@media (max-width: 520px) {
  .grid {
    -webkit-mask-image: radial-gradient(ellipse 110% 60% at 30% 70%, #000 0%, transparent 75%);
    mask-image: radial-gradient(ellipse 110% 60% at 30% 70%, #000 0%, transparent 75%);
  }
}
