/* ─────────────────────────────────────────────
   AoneQLabs — Under Construction
   Pure HTML + CSS. No JavaScript.
   ───────────────────────────────────────────── */

:root {
  --bg: #020617; /* slate-950 */
  --window: #0f172a; /* slate-900 */
  --border: #1e293b; /* slate-800 */
  --block: #334155; /* slate-700 */
  --line: #475569; /* slate-600 */
  --text: #f8fafc; /* slate-50  */
  --text-soft: #e2e8f0; /* slate-200 */
  --muted: #94a3b8; /* slate-400 — 7.9:1 on --bg */
  --amber: #f59e0b;
  --amber-hover: #fbbf24;

  --font: "Inter", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;

  /* One loop of the build animation. */
  --loop: 4s;
}

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

html {
  background: var(--bg);
  color-scheme: dark;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}

/* ── Layout ─────────────────────────────────── */

.page {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  min-height: 100dvh;
  padding-inline: max(1.25rem, env(safe-area-inset-left)) max(1.25rem, env(safe-area-inset-right));
}

.site-header,
.site-footer {
  width: 100%;
  max-width: 64rem;
  margin-inline: auto;
}

.site-header {
  padding-block: max(1.25rem, env(safe-area-inset-top)) 1.25rem;
}

.wordmark {
  font-size: 0.95rem;
  font-weight: 800;
  letter-spacing: -0.05em;
  color: var(--text);
}

.main {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding-block: 1rem;
}

.content {
  width: 100%;
  max-width: 540px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.site-footer {
  border-top: 1px solid var(--border);
  padding-block: 1.25rem max(1.25rem, env(safe-area-inset-bottom));
  text-align: center;
  font-size: 0.8125rem;
  color: var(--muted);
}

.site-footer p {
  margin: 0;
}

/* ── Visual ─────────────────────────────────── */

.visual {
  margin: 0;
  width: 100%;
  /* Shrinks on short screens so the CTA stays above the fold. */
  max-width: min(440px, 40vh);
}

.build {
  display: block;
  width: 100%;
  height: auto;
  overflow: visible;
}

/* ── Typography ─────────────────────────────── */

.label {
  margin: 1.75rem 0 0;
  display: inline-flex;
  align-items: center;
  gap: 0.625rem;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--amber);
}

.label-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--amber);
}

.headline {
  margin: 1.25rem 0 0;
  font-size: clamp(2.125rem, 6vw + 0.5rem, 3rem);
  font-weight: 600;
  line-height: 1.08;
  letter-spacing: -0.035em;
  color: var(--text);
  text-wrap: balance;
}

.description {
  margin: 1.25rem 0 0;
  max-width: 420px;
  font-size: clamp(1rem, 0.5vw + 0.9rem, 1.125rem);
  line-height: 1.65;
  color: var(--muted);
  text-wrap: pretty;
}

/* ── CTA ────────────────────────────────────── */

.cta {
  margin-top: 1.75rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0.875rem 1.75rem;
  border-radius: 999px;
  background: var(--amber);
  color: var(--bg); /* 9.3:1 */
  font-size: 0.9375rem;
  font-weight: 600;
  text-decoration: none;
  transition: background-color 0.2s ease, transform 0.2s ease;
}

.cta:hover {
  background: var(--amber-hover);
}

.cta:active {
  transform: translateY(1px);
}

.alt-contact {
  margin: 1rem 0 0;
  font-size: 0.8125rem;
  color: var(--muted);
}

.alt-contact a {
  color: var(--text-soft);
  text-decoration: underline;
  text-decoration-color: var(--line);
  text-underline-offset: 4px;
  transition: text-decoration-color 0.2s ease;
}

.alt-contact a:hover {
  text-decoration-color: var(--amber);
}

/* Visible keyboard focus everywhere. */
a:focus-visible {
  outline: 2px solid var(--amber);
  outline-offset: 4px;
  border-radius: 999px;
}

.alt-contact a:focus-visible {
  border-radius: 4px;
  outline-offset: 2px;
}

/* ═════════════════════════════════════════════
   BUILD ANIMATION (inline SVG)
   Default styles = the finished, static frame.
   Animations are only added when motion is OK.
   Timeline (4s): blocks slide in 0.2–1.7s · cursor
   arrives ~2.3s · click + repair ~2.45s · progress
   fills 0.2–3.3s · everything fades and resets.
   ═════════════════════════════════════════════ */

.win {
  fill: var(--window);
  stroke: var(--border);
  stroke-width: 1.5;
}
.divider {
  stroke: var(--border);
}
.dot {
  fill: var(--block);
}
.url {
  fill: var(--border);
}

.heading {
  fill: var(--line);
}
.line-1,
.line-2 {
  fill: var(--block);
}
.cta-pill {
  fill: var(--amber);
}

.card-bg {
  fill: var(--border);
}
.card-icon,
.card-line-2 {
  fill: var(--block);
}
.card-line {
  fill: var(--line);
}

.repair-outline {
  fill: none;
  stroke: var(--amber);
  stroke-width: 1.5;
  opacity: 0;
}

.progress-track {
  fill: var(--border);
}
.progress-fill {
  fill: var(--amber);
  transform-box: fill-box;
  transform-origin: left center;
  transform: scaleX(0.68);
}

.ripple {
  fill: none;
  stroke: var(--amber);
  stroke-width: 1.5;
  opacity: 0;
  transform-box: fill-box;
  transform-origin: center;
}

.cursor {
  fill: var(--text);
  stroke: var(--bg);
  stroke-width: 1.5;
  stroke-linejoin: round;
  transform-box: fill-box;
  transform-origin: 0 0;
}

.blk,
.card {
  transform-box: fill-box;
  transform-origin: center;
}

@media (prefers-reduced-motion: no-preference) {
  .blk,
  .card,
  .progress-fill,
  .ripple,
  .cursor,
  .repair-outline {
    animation-duration: var(--loop);
    animation-iteration-count: infinite;
    animation-timing-function: cubic-bezier(0.22, 1, 0.36, 1);
    animation-fill-mode: both;
  }

  .heading { animation-name: in-heading; }
  .line-1 { animation-name: in-line-1; }
  .line-2 { animation-name: in-line-2; }
  .cta-pill { animation-name: in-cta; }
  .card-1 { animation-name: in-card-1; }
  .card-2 { animation-name: in-card-2; }
  .card-3 { animation-name: card-repair; }
  .repair-outline { animation-name: repair-outline; }
  .progress-fill { animation-name: progress; }
  .ripple { animation-name: ripple; }
  .cursor { animation-name: cursor; }
}

/* Each block: hidden → slides up & fades in at its start → holds → fades out (85–95%). */
@keyframes in-heading {
  0%, 5.8% { opacity: 0; transform: translateY(16px); }
  18.3%, 85% { opacity: 1; transform: translateY(0); }
  95%, 100% { opacity: 0; transform: translateY(0); }
}
@keyframes in-line-1 {
  0%, 10% { opacity: 0; transform: translateY(16px); }
  22.5%, 85% { opacity: 1; transform: translateY(0); }
  95%, 100% { opacity: 0; transform: translateY(0); }
}
@keyframes in-line-2 {
  0%, 12.5% { opacity: 0; transform: translateY(16px); }
  25%, 85% { opacity: 1; transform: translateY(0); }
  95%, 100% { opacity: 0; transform: translateY(0); }
}
@keyframes in-cta {
  0%, 16.7% { opacity: 0; transform: translateY(16px); }
  29.2%, 85% { opacity: 1; transform: translateY(0); }
  95%, 100% { opacity: 0; transform: translateY(0); }
}
@keyframes in-card-1 {
  0%, 20.8% { opacity: 0; transform: translateY(16px); }
  33.3%, 85% { opacity: 1; transform: translateY(0); }
  95%, 100% { opacity: 0; transform: translateY(0); }
}
@keyframes in-card-2 {
  0%, 25% { opacity: 0; transform: translateY(16px); }
  37.5%, 85% { opacity: 1; transform: translateY(0); }
  95%, 100% { opacity: 0; transform: translateY(0); }
}

/* Card 3 lands crooked, waits for the cursor, then snaps into place. */
@keyframes card-repair {
  0%, 29.2% { opacity: 0; transform: translateY(22px) rotate(4deg); }
  41.7% { opacity: 1; transform: translateY(9px) rotate(4deg); }
  62.5% { opacity: 1; transform: translateY(9px) rotate(4deg); }
  71.7%, 85% { opacity: 1; transform: translateY(0) rotate(0deg); }
  95%, 100% { opacity: 0; transform: translateY(0) rotate(0deg); }
}

@keyframes repair-outline {
  0%, 61.7% { opacity: 0; }
  64.2% { opacity: 1; }
  80%, 100% { opacity: 0; }
}

@keyframes progress {
  0%, 4% { transform: scaleX(0.002); opacity: 1; animation-timing-function: cubic-bezier(0.45, 0, 0.55, 1); }
  81.7% { transform: scaleX(1); opacity: 1; }
  85% { transform: scaleX(1); opacity: 1; }
  95%, 100% { transform: scaleX(1); opacity: 0; }
}

@keyframes ripple {
  0%, 60.8% { opacity: 0; transform: scale(0.1); }
  61.7% { opacity: 0.9; transform: scale(0.15); }
  73.3%, 100% { opacity: 0; transform: scale(1); }
}

/* Cursor glides in, clicks once (scale dip), lingers, drifts away. */
@keyframes cursor {
  0%, 38% { opacity: 0; transform: translate(70px, 110px); }
  45% { opacity: 1; transform: translate(42px, 66px); animation-timing-function: cubic-bezier(0.45, 0, 0.55, 1); }
  58.3% { opacity: 1; transform: translate(0, 0) scale(1); }
  60% { transform: translate(0, 0) scale(0.86); }
  63% { transform: translate(0, 0) scale(1); }
  70.8% { opacity: 1; transform: translate(0, 0); animation-timing-function: cubic-bezier(0.45, 0, 0.55, 1); }
  79% { opacity: 1; transform: translate(30px, 42px); }
  86%, 100% { opacity: 0; transform: translate(46px, 64px); }
}
