/* The coming-soon page (site.config.json, comingSoon): one screen, a drawing sheet in blueprint blue, under construction. */
@property --p { syntax: '<number>'; inherits: true; initial-value: 99; }
@property --n { syntax: '<integer>'; inherits: true; initial-value: 99; }

:root {
  --deep: #0b1726;
  --ink: #14202b;
  --teal: #8ee3e8;
  --amber: #fbbf24;
  --soft: rgba(255, 255, 255, 0.76);
  --faint: rgba(255, 255, 255, 0.5);
  --sans: 'IBM Plex Sans', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --mono: 'IBM Plex Mono', ui-monospace, Consolas, monospace;
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
  --hazard: linear-gradient(-45deg, var(--amber) 25%, var(--ink) 25% 50%, var(--amber) 50% 75%, var(--ink) 75%);
}

* { box-sizing: border-box; }
html { background: var(--deep); }
body {
  margin: 0; min-height: 100vh; min-height: 100svh; display: grid; grid-template-rows: 1fr auto; overflow-x: hidden;
  color: #fff; font: 400 17px/1.6 var(--sans); -webkit-font-smoothing: antialiased;
  background:
    radial-gradient(70vmax 60vmax at 50% 34%, rgba(30, 76, 128, 0.95), rgba(16, 42, 69, 0.55) 45%, transparent 75%),
    radial-gradient(60vmax 45vmax at 90% 110%, rgba(19, 92, 108, 0.6), transparent 70%),
    var(--deep);
}
/* The sheet: a drafting grid, fading out to the edges. */
body::after {
  content: ''; position: fixed; inset: 0; z-index: 0; pointer-events: none;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.07) 1px, transparent 1px), linear-gradient(90deg, rgba(255, 255, 255, 0.07) 1px, transparent 1px),
    linear-gradient(rgba(255, 255, 255, 0.028) 1px, transparent 1px), linear-gradient(90deg, rgba(255, 255, 255, 0.028) 1px, transparent 1px);
  background-size: 120px 120px, 120px 120px, 24px 24px, 24px 24px;
  background-position: center;
  -webkit-mask-image: radial-gradient(75vmax 65vmax at 50% 38%, #000 15%, transparent 80%);
  mask-image: radial-gradient(75vmax 65vmax at 50% 38%, #000 15%, transparent 80%);
}
/* The tape across the top. */
body::before {
  content: ''; position: fixed; top: 0; left: 0; right: 0; height: 6px; z-index: 3;
  background: var(--hazard); background-size: 24px 24px; opacity: 0.92; animation: tape 1.6s linear infinite;
}
@keyframes tape { to { background-position: 24px 0; } }

.field { position: fixed; inset: 0; width: 100%; height: 100%; z-index: 0; opacity: 0; transition: opacity 1.8s ease; }
.field.on { opacity: 1; }
.sheet { position: fixed; inset: 20px; z-index: 1; pointer-events: none; }
.sheet i { position: absolute; width: 18px; height: 18px; border: 0 solid rgba(255, 255, 255, 0.35); }
.sheet i:nth-child(1) { top: 0; left: 0; border-width: 1px 0 0 1px; }
.sheet i:nth-child(2) { top: 0; right: 0; border-width: 1px 1px 0 0; }
.sheet i:nth-child(3) { bottom: 0; left: 0; border-width: 0 0 1px 1px; }
.sheet i:nth-child(4) { bottom: 0; right: 0; border-width: 0 1px 1px 0; }

.soon { position: relative; z-index: 2; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; padding: 72px 24px 32px; }

/* The fixed point: a dot that does not move, rings that move around it. */
.point { position: relative; width: clamp(140px, 27vmin, 250px); margin-bottom: clamp(18px, 4vh, 40px); animation: arrive 1.8s var(--ease) both; }
.soon-mark { display: block; width: 100%; height: auto; overflow: visible; }
.soon-mark .disc { fill: rgba(255, 255, 255, 0.03); stroke: rgba(255, 255, 255, 0.12); }
.soon-mark .ticks { stroke: rgba(255, 255, 255, 0.4); stroke-width: 1.2; }
.soon-mark .orbit { fill: none; stroke: rgba(255, 255, 255, 0.5); stroke-width: 1.4; stroke-dasharray: 3 9; transform-box: fill-box; transform-origin: center; animation: spin 60s linear infinite; }
.soon-mark .rings { fill: none; stroke: #fff; stroke-width: 2.4; transform-box: fill-box; transform-origin: center; animation: breathe 5s ease-in-out infinite; }
.soon-mark .core { fill: #fff; }
.soon-mark .leader { fill: none; stroke: rgba(142, 227, 232, 0.7); stroke-width: 1.2; stroke-dasharray: 113; animation: draw 1s ease 1.2s both; }
.callout { position: absolute; left: 88.46%; top: 29.23%; transform: translate(8px, -50%); font: 500 12px/1 var(--mono); letter-spacing: 0.04em; color: var(--teal); white-space: nowrap; animation: show 0.8s ease 1.9s both; }
@keyframes arrive { from { opacity: 0; transform: scale(0.6) rotate(-30deg); } }
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes breathe { 50% { transform: scale(1.035); } }
@keyframes draw { from { stroke-dashoffset: 113; } }
@keyframes show { from { opacity: 0; } }

.status { display: inline-flex; align-items: center; gap: 12px; margin: 0 0 14px; font: 500 0.74rem/1.4 var(--mono); letter-spacing: 0.2em; text-transform: uppercase; color: var(--amber); }
.beacon { width: 8px; height: 8px; border-radius: 50%; background: var(--amber); animation: beacon 1.4s ease-out infinite; }
@keyframes beacon {
  0% { box-shadow: 0 0 0 0 rgba(251, 191, 36, 0.6); opacity: 1; }
  50% { opacity: 0.35; }
  100% { box-shadow: 0 0 0 12px rgba(251, 191, 36, 0); opacity: 1; }
}

h1 { margin: 0; font-size: clamp(2.6rem, 8.4vw, 5.8rem); font-weight: 600; line-height: 1; letter-spacing: -0.035em; color: #fff; text-wrap: balance; filter: drop-shadow(0 0 32px rgba(142, 227, 232, 0.22)); }
@supports ((-webkit-background-clip: text) or (background-clip: text)) {
  h1 { background: linear-gradient(180deg, #fff 35%, #bcd9ee); -webkit-background-clip: text; background-clip: text; color: transparent; }
}
.tagline { margin: 18px 0 0; max-width: 27em; color: var(--soft); font-size: clamp(1.02rem, 2.2vw, 1.22rem); text-wrap: balance; }

/* The build: 99%, and the final 1% still blinking. */
.build { position: relative; width: min(380px, 100%); margin-top: clamp(28px, 5vh, 46px); text-align: left; }
.build-head { display: flex; justify-content: space-between; margin: 0 0 9px; font: 500 0.72rem/1 var(--mono); letter-spacing: 0.18em; text-transform: uppercase; color: var(--faint); }
.count { color: #fff; counter-reset: n var(--n); }
.count::after { content: counter(n) '%'; }
.bar { position: relative; height: 12px; padding: 2px; border: 1px solid rgba(255, 255, 255, 0.38); border-radius: 2px; }
.fill { display: block; width: calc(var(--p) * 1%); height: 100%; background: linear-gradient(90deg, rgba(142, 227, 232, 0.25), var(--teal) 72%, #fff); box-shadow: 0 0 18px rgba(142, 227, 232, 0.45); }
.bar::after { content: ''; position: absolute; top: 2px; bottom: 2px; right: 2px; width: max(4px, 1%); background: var(--amber); animation: blink 1s steps(1) infinite; }
.bar::before { content: ''; position: absolute; top: 50%; right: -10px; width: 26px; height: 26px; border: 1px dashed var(--amber); border-radius: 50%; transform: translateY(-50%); animation: detail 0.6s var(--ease) 3.6s both; }
.build-note { margin: 12px 0 0; text-align: right; color: var(--soft); font-size: 0.92rem; }
.build-note em { font-style: normal; color: var(--amber); }
@keyframes blink { 50% { opacity: 0.15; } }
@keyframes detail { from { opacity: 0; transform: translateY(-50%) scale(2.2); } }
@keyframes build { from { --p: 0; --n: 0; } }

.actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin-top: clamp(28px, 5vh, 42px); }
.btn { display: inline-flex; align-items: center; min-height: 48px; padding: 0 24px; border: 1px solid #fff; border-radius: 999px; background: #fff; color: var(--ink); font-weight: 500; text-decoration: none; transition: box-shadow 0.3s, transform 0.3s var(--ease); }
.btn:hover { transform: translateY(-1px); box-shadow: 0 0 0 6px rgba(142, 227, 232, 0.16), 0 0 44px rgba(142, 227, 232, 0.4); }
.btn.quiet { background: transparent; color: #fff; border-color: rgba(255, 255, 255, 0.45); }
.pending { margin: 0; padding: 12px 20px; border: 1px dashed rgba(255, 255, 255, 0.3); border-radius: 999px; font: 400 0.85rem var(--mono); color: var(--faint); }
:focus-visible { outline: 2px solid var(--teal); outline-offset: 4px; }

.foot { position: relative; z-index: 2; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 6px 16px; padding: 0 48px 36px; font: 400 0.72rem/1.4 var(--mono); letter-spacing: 0.08em; color: var(--faint); }

/* The page arrives in order: the point first, then the words around it. */
.status, h1, .tagline, .actions, .foot { animation: rise 1s var(--ease) both; }
.status { animation-delay: 0.4s; }
h1 { animation-delay: 0.5s; }
.tagline { animation-delay: 0.62s; }
.build { animation: rise 1s var(--ease) 0.74s both, build 2.8s cubic-bezier(0.2, 0.7, 0.1, 1) 1s both; }
.actions { animation-delay: 0.86s; }
.foot { animation-delay: 1.1s; }
@keyframes rise { from { opacity: 0; transform: translateY(14px); } }

@media (max-width: 560px) {
  body::before { height: 5px; }
  .sheet { inset: 12px; }
  .soon { padding: 60px 20px 24px; }
  .callout { font-size: 10px; transform: translate(5px, -50%); }
  .foot { justify-content: center; text-align: center; padding: 0 24px 28px; }
}
@media (max-height: 640px) and (orientation: landscape) {
  .soon { padding-top: 40px; }
  .point { width: clamp(96px, 24vh, 160px); }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .field { opacity: 1; }
}
@media (forced-colors: active) {
  h1 { background: none; color: CanvasText; }
}
