:root {
  --surface: #f9f9f9;
  --ink: #1a1c1c;
  --ink-strong: #000000;
  --muted-line: #168faa;
  --muted-line-shadow: 0 0 18px rgba(22, 143, 170, 0.18), 0 1px 0 rgba(255, 255, 255, 0.74);
  --logo-text-shadow: none;
  --symbol-ground-shadow: radial-gradient(
    ellipse at center,
    rgba(0, 0, 0, 0.64) 0%,
    rgba(0, 0, 0, 0.37) 36%,
    rgba(0, 0, 0, 0.13) 58%,
    transparent 76%
  );
  color-scheme: light;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.5;
  text-rendering: optimizeLegibility;
}

* {
  box-sizing: border-box;
}

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

body {
  margin: 0;
  overflow-x: hidden;
  background:
    radial-gradient(circle at 8% 6%, rgba(201, 223, 238, 0.42), transparent 30rem),
    radial-gradient(circle at 96% 22%, rgba(227, 242, 238, 0.54), transparent 34rem),
    var(--surface);
  color: var(--ink);
}

img {
  display: block;
  max-width: 100%;
}

.test-stage {
  display: grid;
  position: relative;
  min-height: 100svh;
  place-items: center;
  overflow: hidden;
  background: transparent;
  padding: clamp(28px, 6vw, 80px);
}

.test-stage::before {
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 18% 72%, rgba(22, 143, 170, 0.08), transparent 28rem);
  content: "";
  pointer-events: none;
}

.redirect-fallback {
  position: absolute;
  right: clamp(18px, 4vw, 54px);
  bottom: clamp(18px, 4vw, 46px);
  z-index: 2;
  margin: 0;
  color: var(--muted-line);
  font-size: 0.92rem;
  font-weight: 700;
}

.redirect-fallback a {
  border-bottom: 1px solid currentColor;
  color: inherit;
  text-decoration: none;
  text-underline-offset: 4px;
}

.redirect-fallback a:hover,
.redirect-fallback a:focus-visible {
  color: var(--ink-strong);
}

.orestal-animated-logo {
  --orestal-size: 420px;
  --orestal-mark-size: min(var(--orestal-size), 30vw);
  display: flex;
  position: relative;
  z-index: 1;
  width: min(100%, 1480px);
  align-items: center;
  justify-content: center;
  gap: clamp(6px, 1.5vw, 14px);
  isolation: isolate;
}

.orestal-logo-mark {
  position: relative;
  flex: 0 0 auto;
  width: var(--orestal-mark-size);
  aspect-ratio: 1;
  overflow: visible;
}

.orestal-logo-mark::after {
  position: absolute;
  z-index: 0;
  right: 15%;
  bottom: 3.8%;
  left: 15%;
  height: 7.5%;
  background: var(--symbol-ground-shadow);
  border-radius: 50%;
  content: "";
  filter: blur(7px);
  opacity: 0.92;
  pointer-events: none;
  transform: translateY(calc(42% + 10px)) scaleX(1.08);
  transform-origin: center;
}

.orestal-logo-layer {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  pointer-events: none;
  user-select: none;
}

.orestal-logo-body {
  z-index: 1;
}

.orestal-logo-triangle {
  z-index: 2;
  transform-origin: 72% 50%;
  will-change: transform, filter;
}

.orestal-logo-text {
  display: flex;
  flex: 0 1 auto;
  flex-direction: column;
  align-items: flex-start;
  gap: 10px;
  max-width: min(58vw, 880px);
  margin: 0;
  color: var(--ink);
  filter: none;
  font-family: "Playfair Display", Georgia, "Times New Roman", serif;
  font-weight: 400;
  letter-spacing: 0;
  opacity: 1;
  text-shadow: var(--logo-text-shadow);
  transform: none;
  white-space: normal;
  will-change: opacity, transform, filter;
}

.orestal-logo-line {
  display: block;
  max-width: 100%;
  color: var(--ink);
}

.orestal-logo-line.is-wordmark {
  width: clamp(230px, 25vw, 330px);
  line-height: 1;
  will-change: transform;
}

.orestal-wordmark-picture,
.orestal-wordmark-image {
  display: block;
  width: 100%;
}

.orestal-wordmark-picture {
  aspect-ratio: 1776 / 400;
}

.orestal-wordmark-image {
  height: auto;
  object-fit: contain;
}

.orestal-logo-line.is-primary {
  color: var(--ink-strong);
  font-size: clamp(2.25rem, 4.6vw, 5.4rem);
  font-weight: 700;
  line-height: 0.95;
}

.orestal-logo-line.is-muted,
.orestal-logo-line.is-body,
.orestal-logo-line.is-countdown {
  font-size: 28px;
  font-weight: 400;
  line-height: 1.28;
}

.orestal-logo-line.is-muted {
  margin-top: 8px;
  color: var(--muted-line);
  text-shadow: var(--muted-line-shadow);
}

.orestal-logo-line.is-countdown {
  font-variant-numeric: tabular-nums;
}

.orestal-countdown-copy {
  display: inline;
}

.orestal-redirect-loading {
  display: none;
  align-items: center;
  gap: 0.44em;
  white-space: nowrap;
}

.orestal-logo-line.is-countdown.is-loading .orestal-countdown-copy {
  display: none;
}

.orestal-logo-line.is-countdown.is-loading .orestal-redirect-loading {
  display: inline-flex;
}

.orestal-redirect-spinner {
  width: 0.82em;
  aspect-ratio: 1;
  border: 2px solid currentColor;
  border-right-color: transparent;
  border-radius: 50%;
  box-shadow: 0 0 14px rgba(122, 147, 161, 0.28);
  opacity: 0.88;
  animation: orestal-redirect-spin 0.82s linear infinite;
}

@keyframes orestal-redirect-spin {
  to {
    transform: rotate(360deg);
  }
}

.orestal-logo-word {
  display: inline-block;
  white-space: nowrap;
}

.orestal-countdown-number {
  min-width: 0.62em;
  text-align: center;
}

.orestal-logo-letter {
  display: inline-block;
  filter: blur(2px);
  opacity: 0;
  transform: translate3d(0, 0.08em, 0);
  will-change: opacity, transform, filter;
}

.orestal-animated-logo.is-static .orestal-logo-text,
.orestal-animated-logo.is-static .orestal-logo-letter {
  filter: none;
  opacity: 1;
  transform: none;
}

@media (max-width: 820px) {
  .test-stage {
    padding: 28px 18px;
  }

  .orestal-animated-logo {
    --orestal-mark-size: min(var(--orestal-size), 32vw);
    gap: clamp(6px, 1.8vw, 12px);
  }

  .orestal-logo-text {
    max-width: min(58vw, 520px);
    gap: 8px;
  }

  .orestal-logo-line.is-primary {
    font-size: clamp(1.65rem, 6.8vw, 3.8rem);
  }

  .orestal-logo-line.is-wordmark {
    width: clamp(190px, 34vw, 280px);
  }
}

@media (max-width: 520px) {
  .orestal-animated-logo {
    --orestal-mark-size: min(var(--orestal-size), 30vw);
    gap: 6px;
  }

  .orestal-logo-text {
    max-width: 60vw;
    gap: 7px;
  }

  .orestal-logo-line.is-primary {
    font-size: clamp(1.28rem, 6.4vw, 2.2rem);
  }

  .orestal-logo-line.is-wordmark {
    width: min(58vw, 220px);
  }

  .redirect-fallback {
    right: 18px;
    bottom: 18px;
    left: 18px;
    text-align: center;
  }

}

@media (prefers-color-scheme: dark) {
  :root {
    --surface: #070a0d;
    --ink: #e5e9ec;
    --ink-strong: #ffffff;
    --muted-line: #a6c3cf;
    --muted-line-shadow:
      0 0 14px rgba(122, 147, 161, 0.52),
      0 0 32px rgba(103, 194, 220, 0.2),
      0 1px 0 rgba(255, 255, 255, 0.16);
    --logo-text-shadow: 0 18px 48px rgba(0, 0, 0, 0.36);
    --symbol-ground-shadow: radial-gradient(
      ellipse at center,
      rgba(0, 0, 0, 1) 0%,
      rgba(0, 0, 0, 0.58) 40%,
      rgba(0, 0, 0, 0.2) 60%,
      transparent 78%
    );
    color-scheme: dark;
  }

  body {
    background:
      radial-gradient(circle at 8% 6%, rgba(37, 167, 193, 0.2), transparent 30rem),
      radial-gradient(circle at 96% 22%, rgba(91, 211, 138, 0.12), transparent 34rem),
      linear-gradient(180deg, #090d10, #06090b 58%, #040607);
  }

  .test-stage::before {
    background: radial-gradient(circle at 18% 72%, rgba(37, 167, 193, 0.18), transparent 28rem);
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    scroll-behavior: auto !important;
    transition-duration: 0.001ms !important;
  }

  .orestal-logo-triangle,
  .orestal-logo-text {
    filter: none !important;
    opacity: 1 !important;
    transform: none !important;
  }
}
