:root {
  --bg: #fafaf8;
  --ink: #14212a;
  --muted: #5c6670;
  --accent: #da292d;
  --terminal-bg: #0b1118;
  --terminal-text: #d7dde5;
  --terminal-command: #e36a6d;
  --terminal-success: #7cb89a;
  --terminal-hint: #6b7684;
  --font-sans: "Segoe UI", "Helvetica Neue", Helvetica, Arial, sans-serif;
  --font-mono: ui-monospace, "Cascadia Code", "SF Mono", Menlo, Consolas,
    "Liberation Mono", monospace;
}

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

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

body {
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-sans);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

/* Landing — always in the document for no-JS / SEO / a11y */
.landing {
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: clamp(1.5rem, 5vw, 3rem);
}

.landing__content {
  width: min(100%, 44rem);
  text-align: center;
}

.landing__logo {
  display: block;
  width: min(100%, 42rem);
  height: auto;
  margin: 0 auto;
}

.landing__location {
  margin: clamp(1.75rem, 4vw, 2.5rem) 0 0;
  color: var(--muted);
  font-size: clamp(0.95rem, 2.2vw, 1.125rem);
  font-weight: 400;
  letter-spacing: 0.04em;
  line-height: 1.5;
}

.landing__soon {
  margin: 0.85rem 0 0;
  color: var(--accent);
  font-size: clamp(0.8rem, 1.8vw, 0.95rem);
  font-weight: 600;
  letter-spacing: 0.28em;
  line-height: 1.4;
  text-indent: 0.28em;
}

/* Intro: hide landing until reveal (JS adds .is-intro on body) */
body.is-intro {
  overflow: hidden;
  background: var(--terminal-bg);
}

body.is-intro .landing {
  opacity: 0;
  pointer-events: none;
}

body.is-revealing {
  background: var(--bg);
  transition: background-color 0.55s ease;
}

body.is-revealing .landing {
  opacity: 1;
  transition: opacity 0.65s ease;
  pointer-events: auto;
}

body.is-revealing .terminal {
  opacity: 0;
  transition: opacity 0.45s ease;
  pointer-events: none;
}

/* Terminal overlay */
.terminal {
  position: fixed;
  inset: 0;
  z-index: 10;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: clamp(1.25rem, 4vw, 2.5rem);
  background: var(--terminal-bg);
  color: var(--terminal-text);
  font-family: var(--font-mono);
  font-size: clamp(0.9rem, 2.4vw, 1.05rem);
  line-height: 1.6;
  cursor: pointer;
}

.terminal[hidden] {
  display: none;
}

.terminal__inner {
  width: min(100%, 40rem);
  margin: 0 auto;
}

.terminal__line {
  margin: 0 0 0.35rem;
  white-space: pre-wrap;
  word-break: break-word;
}

.terminal__prompt {
  color: var(--terminal-text);
}

.terminal__command {
  color: var(--terminal-command);
}

.terminal__output {
  color: var(--terminal-text);
}

.terminal__success {
  color: var(--terminal-success);
}

.terminal__cursor {
  display: inline-block;
  width: 0.55ch;
  height: 1.1em;
  margin-left: 0.1ch;
  vertical-align: text-bottom;
  background: var(--terminal-text);
  animation: blink 1s steps(1, end) infinite;
}

.terminal__cursor.is-hidden {
  visibility: hidden;
  animation: none;
}

.terminal__hint {
  position: absolute;
  bottom: clamp(1rem, 3vw, 1.75rem);
  left: 0;
  right: 0;
  margin: 0;
  color: var(--terminal-hint);
  font-size: 0.75rem;
  letter-spacing: 0.06em;
  text-align: center;
  pointer-events: none;
}

@keyframes blink {
  50% {
    opacity: 0;
  }
}

@media (max-width: 480px) {
  .landing__content {
    width: 100%;
  }

  .landing__soon {
    letter-spacing: 0.22em;
    text-indent: 0.22em;
  }
}

@media (prefers-reduced-motion: reduce) {
  .terminal__cursor {
    animation: none;
  }

  body.is-revealing,
  body.is-revealing .landing,
  body.is-revealing .terminal {
    transition: none;
  }
}
