:root {
  --bg-base: #07090d;
  --bg-radial: #111622;
  --fg-primary: #f6f8fc;
  --fg-muted: #a6b0c3;
  --glow-core: rgba(226, 234, 248, 0.14);
  --glow-rim: rgba(148, 174, 218, 0.08);
  --font-display: "Outfit", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
}

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

html,
body {
  width: 100%;
  height: 100%;
  min-height: 100svh;
  min-height: 100dvh;
  background-color: var(--bg-base);
  color: var(--fg-primary);
  font-family: var(--font-display);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow: hidden;
  user-select: none;
  -webkit-tap-highlight-color: transparent;
}

.ambient-backdrop {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background:
    radial-gradient(
      circle at 50% 44%,
      var(--bg-radial) 0%,
      #0a0d14 42%,
      var(--bg-base) 100%
    );
}

.snow-canvas {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
  pointer-events: none;
  display: block;
}

.stage {
  position: relative;
  z-index: 2;
  width: 100%;
  min-height: 100svh;
  min-height: 100dvh;
  display: grid;
  place-items: center;
  padding:
    max(24px, env(safe-area-inset-top))
    max(20px, env(safe-area-inset-right))
    max(28px, env(safe-area-inset-bottom))
    max(20px, env(safe-area-inset-left));
}

.hero-lockup {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: clamp(18px, 3.6vmin, 34px);
  text-align: center;
  max-width: min(92vw, 760px);
}

.emblem-stage {
  position: relative;
  display: grid;
  place-items: center;
  perspective: 900px;
  padding: 12px;
}

.emblem-glow {
  position: absolute;
  width: clamp(150px, 30vmin, 290px);
  height: clamp(150px, 30vmin, 290px);
  border-radius: 50%;
  background: radial-gradient(
    circle,
    var(--glow-core) 0%,
    var(--glow-rim) 46%,
    transparent 74%
  );
  filter: blur(22px);
  will-change: transform, opacity;
  pointer-events: none;
}

.emblem-card {
  position: relative;
  display: grid;
  place-items: center;
  transform-style: preserve-3d;
  will-change: transform, opacity;
}

.brand-logo {
  display: block;
  width: clamp(104px, 22vmin, 204px);
  height: auto;
  aspect-ratio: 517 / 494;
  object-fit: contain;
  filter:
    drop-shadow(0 12px 28px rgba(0, 0, 0, 0.55))
    drop-shadow(0 0 24px rgba(255, 255, 255, 0.08));
  pointer-events: none;
}

.brand-logo-fallback[hidden] {
  display: none;
}

.status-title {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: center;
  column-gap: 0.36em;
  row-gap: 0.15em;
  font-family: var(--font-display);
  font-size: clamp(1.125rem, 3.1vw, 1.875rem);
  font-weight: 500;
  line-height: 1.35;
  letter-spacing: 0.015em;
  color: var(--fg-primary);
  text-wrap: balance;
  text-shadow: 0 2px 16px rgba(0, 0, 0, 0.6);
  user-select: text;
  will-change: transform, opacity;
}

.domain-name {
  font-weight: 600;
  letter-spacing: -0.01em;
  color: #ffffff;
}

.work-phrase {
  font-family: var(--font-mono);
  font-size: 0.86em;
  font-weight: 400;
  letter-spacing: 0.02em;
  color: var(--fg-muted);
  white-space: nowrap;
}

.work-dots {
  display: inline-flex;
  margin-left: 0.04em;
}

.work-dots .dot {
  display: inline-block;
  will-change: opacity, transform;
}

/* Landscape ultra-short mobile screens (e.g., 667x375 or 844x390) */
@media (max-height: 460px) and (orientation: landscape) {
  .hero-lockup {
    gap: 14px;
  }

  .brand-logo {
    width: clamp(78px, 24vh, 132px);
  }

  .emblem-glow {
    width: clamp(120px, 34vh, 190px);
    height: clamp(120px, 34vh, 190px);
  }

  .status-title {
    font-size: clamp(1rem, 3.8vh, 1.4rem);
  }
}

/* Narrow mobile viewports */
@media (max-width: 380px) {
  .status-title {
    flex-direction: column;
    align-items: center;
    row-gap: 0.28em;
  }
}
