html, body {
  margin: 0;
  min-height: 100%;
  background: #11161d;
}

body {
  min-height: 100vh;
}

.welcome-app {
  min-height: 100vh;
}

.welcome-noscript {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 2rem;
  color: #f3ede2;
  font: 600 1rem/1.4 "Segoe UI", "Helvetica Neue", Arial, sans-serif;
  background:
    radial-gradient(circle at top left, rgba(217, 164, 65, 0.16), transparent 35%),
    linear-gradient(135deg, #11161d 0%, #0d1015 100%);
}

.ws {
  position: relative;
  min-height: 100vh;
  overflow: hidden;
  color: #f6f0e8;
  user-select: none;
  --serif: "Iowan Old Style", "Palatino Linotype", "Book Antiqua", Georgia, serif;
  --brass: #d9a441;
  --btn-from: #f6cd57;
  --btn-to: #e0aa2e;
  --btn-text: #1c160c;
  background: #12171e;
}

.ws-hero {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.ws-hero img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 1;
  transform: scale(1);
}

@keyframes wsHeroReveal {
  0% { opacity: 0; transform: scale(1.14); }
  14% { opacity: 1; }
  100% { opacity: 1; transform: scale(1); }
}

.ws-scrim,
.ws-grain {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.ws-scrim {
  z-index: 1;
}

.ws-grain {
  z-index: 2;
  opacity: 0.5;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='120'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2'/%3E%3C/filter%3E%3Crect width='120' height='120' filter='url(%23n)' opacity='0.035'/%3E%3C/svg%3E");
  mix-blend-mode: overlay;
}

.ws-top {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  z-index: 4;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.5rem 2.125rem;
  font-size: 0.78125rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-weight: 700;
  opacity: 1;
}

.ws-mark,
.ws-status {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}

.ws-mark__dot,
.ws-status__led {
  width: 0.4375rem;
  height: 0.4375rem;
  border-radius: 999px;
}

.ws-mark__dot {
  background: var(--brass);
  box-shadow: 0 0 0 0.1875rem rgba(217, 164, 65, 0.18);
}

.ws-status {
  opacity: 0.82;
}

.ws-status__led {
  background: #6fae7e;
  box-shadow: 0 0 0.5rem #6fae7e;
}

.ws[data-phase="entering"] .ws-status__led {
  background: var(--brass);
  box-shadow: 0 0 0.5rem var(--brass);
  animation: wsBlink 1s steps(2) infinite;
}

@keyframes wsBlink {
  50% { opacity: 0.25; }
}

.ws-body {
  position: absolute;
  inset: 0;
  z-index: 3;
  display: flex;
  align-items: flex-end;
  padding: 0 4rem 4.5rem;
}

.ws-content {
  max-width: 45rem;
}

.ws-content > * {
  opacity: 1;
  transform: translateY(0);
}

@keyframes wsRise {
  from { opacity: 0; transform: translateY(22px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes wsFadeIn {
  to { opacity: 1; }
}

.ws-eyebrow {
  display: flex;
  align-items: center;
  gap: 0.875rem;
  margin: 0 0 1.125rem;
  font-size: 0.8125rem;
  font-weight: 800;
  letter-spacing: 0.26em;
  text-transform: uppercase;
  color: var(--brass);
}

.ws-eyebrow__rule {
  width: 2.625rem;
  height: 0.125rem;
  background: var(--brass);
  display: inline-block;
}

.ws-title {
  margin: 0 0 1rem;
  font-family: var(--serif);
  font-weight: 600;
  font-size: clamp(3rem, 5vw, 4.25rem);
  line-height: 1.03;
  letter-spacing: -0.012em;
  text-wrap: balance;
}

.ws-desc {
  margin: 0 0 2rem;
  font-size: clamp(1.125rem, 1.85vw, 1.3125rem);
  line-height: 1.55;
  max-width: 33ch;
}

.ws-actions {
  display: flex;
  align-items: center;
  gap: 1rem 1.375rem;
  flex-wrap: wrap;
}

.ws-btn,
.ws-link {
  font: inherit;
}

.ws-btn {
  cursor: pointer;
  border: none;
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  padding: 1rem 1.875rem;
  border-radius: 999px;
  font-size: 1rem;
  font-weight: 800;
  letter-spacing: 0.02em;
  transition: transform 0.16s ease, box-shadow 0.16s ease, filter 0.16s ease;
}

.ws-btn--primary {
  color: var(--btn-text);
  background: linear-gradient(180deg, var(--btn-from), var(--btn-to));
  border: 1.5px solid rgba(111, 77, 13, 0.55);
  box-shadow: 0 0.875rem 1.875rem rgba(120, 80, 10, 0.34), inset 0 1px 0 rgba(255, 255, 255, 0.45);
}

.ws-btn--primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 1.25rem 2.5rem rgba(120, 80, 10, 0.42), inset 0 1px 0 rgba(255, 255, 255, 0.5);
}

.ws-btn--primary:disabled {
  opacity: 0.55;
  cursor: default;
  transform: none;
  box-shadow: none;
  filter: saturate(0.7);
}

.ws-btn__arrow {
  font-size: 1.125rem;
  transition: transform 0.18s ease;
}

.ws-btn--primary:hover .ws-btn__arrow {
  transform: translateX(0.25rem);
}

.ws-link {
  cursor: pointer;
  border: 0;
  background: none;
  color: inherit;
  font-size: 0.9375rem;
  font-weight: 700;
  letter-spacing: 0.01em;
  text-decoration: none;
  padding: 0 0 0.125rem;
  border-bottom: 1.5px solid transparent;
  transition: border-color 0.16s ease, opacity 0.16s ease;
}

.ws-link:hover {
  border-bottom-color: currentColor;
}

.ws-tour-note {
  margin: 1rem 0 0;
  font-size: 0.9375rem;
  line-height: 1.5;
  max-width: 38ch;
  opacity: 0.88;
}

.ws-tour-note {
  color: inherit;
  opacity: 0.96;
}

.ws-init {
  position: absolute;
  inset: 0;
  z-index: 8;
  display: grid;
  place-items: center;
  opacity: 0;
  pointer-events: none;
  background: rgba(12, 16, 22, 0.76);
  backdrop-filter: blur(3px);
  transition: opacity 0.5s ease;
}

.ws-init:not([hidden]) {
  opacity: 1;
  pointer-events: auto;
}

.ws-init__inner {
  width: min(35rem, 72%);
  text-align: left;
}

.ws-init__eyebrow {
  margin: 0 0 1.125rem;
  font-size: 0.875rem;
  font-weight: 800;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--brass);
}

.ws-init__bar {
  height: 0.3125rem;
  border-radius: 999px;
  overflow: hidden;
  background: rgba(127, 127, 127, 0.28);
}

.ws-init__bar > span {
  display: block;
  height: 100%;
  width: 0;
  background: linear-gradient(90deg, var(--btn-to), var(--btn-from));
  transition: width 0.55s cubic-bezier(0.4, 0, 0.1, 1);
}

.ws-init__row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 1rem;
  margin-top: 0.875rem;
  font-size: 0.875rem;
  font-variant-numeric: tabular-nums;
}

.ws-init__step {
  letter-spacing: 0.01em;
  opacity: 0.9;
}

.ws-init__pct {
  font-weight: 800;
  letter-spacing: 0.04em;
}

.ws--control {
  color: #f6f0e8;
  background: #12171e;
}

.ws--control .ws-scrim {
  background:
    linear-gradient(76deg, rgba(15, 19, 26, 0.92) 0%, rgba(15, 19, 26, 0.62) 34%, rgba(15, 19, 26, 0) 64%),
    linear-gradient(to top, rgba(13, 17, 23, 0.95) 2%, rgba(13, 17, 23, 0.35) 32%, rgba(13, 17, 23, 0) 60%);
}

.ws--control .ws-link {
  color: #e7decf;
}

.ws--tech {
  color: #eaf1f7;
  background: #0f161f;
  --brass: #79a8cc;
}

.ws--tech .ws-scrim {
  background:
    linear-gradient(82deg, rgba(15, 22, 31, 0.96) 0%, rgba(17, 26, 38, 0.78) 32%, rgba(17, 26, 38, 0.18) 60%, rgba(17, 26, 38, 0) 88%),
    linear-gradient(to top, rgba(13, 19, 28, 0.9) 4%, rgba(13, 19, 28, 0) 52%);
}

.ws--tech .ws-eyebrow__rule {
  background: #79a8cc;
}

.ws--tech .ws-mark__dot {
  background: #79a8cc;
  box-shadow: 0 0 0 0.1875rem rgba(121, 168, 204, 0.18);
}

.ws--tech .ws-link {
  color: #cfe0ee;
}

.ws--tech .ws-btn--primary {
  --btn-from: #f6cd57;
  --btn-to: #e0aa2e;
}

.ws--tech .ws-init__eyebrow {
  color: #9cc4e2;
}

.ws--field {
  color: #20252b;
  background: #f8f3eb;
  --brass: #a9761f;
}

.ws--field .ws-scrim {
  background:
    linear-gradient(274deg, rgba(248, 243, 235, 0.97) 0%, rgba(248, 243, 235, 0.92) 30%, rgba(248, 243, 235, 0.5) 52%, rgba(248, 243, 235, 0) 78%),
    linear-gradient(to top, rgba(244, 238, 229, 0.88) 2%, rgba(244, 238, 229, 0) 42%);
}

.ws--field .ws-grain {
  mix-blend-mode: multiply;
  opacity: 0.35;
}

.ws--field .ws-eyebrow__rule {
  background: #a9761f;
}

.ws--field .ws-mark {
  color: #f4ede1;
  text-shadow: 0 1px 4px rgba(0, 0, 0, 0.55);
}

.ws--field .ws-mark__dot {
  background: #e7c071;
  box-shadow: 0 0 0 0.1875rem rgba(231, 192, 113, 0.22);
}

.ws--field .ws-status {
  color: #4a4640;
}

.ws--field .ws-link {
  color: #6a4a23;
}

.ws--field .ws-init {
  background: rgba(247, 242, 234, 0.82);
  backdrop-filter: blur(3px);
}

.ws--field .ws-init__bar {
  background: rgba(32, 37, 43, 0.14);
}

.ws--align-right .ws-body {
  justify-content: flex-end;
}

.ws--align-right .ws-content {
  text-align: right;
}

.ws--align-right .ws-eyebrow {
  flex-direction: row-reverse;
}

.ws--align-right .ws-desc,
.ws--align-right .ws-tour-note {
  margin-left: auto;
}

.ws--align-right .ws-actions {
  justify-content: flex-end;
}

@media (prefers-reduced-motion: no-preference) {
  .ws.is-playing .ws-hero img {
    animation: wsHeroReveal 17s cubic-bezier(0.22, 0.61, 0.36, 1) both;
  }

  .ws.is-playing .ws-top {
    animation: wsFadeIn 0.9s ease 0.5s both;
  }

  .ws.is-playing .ws-content > * {
    animation: wsRise 1s cubic-bezier(0.2, 0.7, 0.2, 1) both;
  }

  .ws.is-playing .ws-eyebrow {
    animation-delay: 1.05s;
  }

  .ws.is-playing .ws-title {
    animation-delay: 1.3s;
  }

  .ws.is-playing .ws-desc {
    animation-delay: 1.62s;
  }

  .ws.is-playing .ws-actions {
    animation-delay: 2s;
  }
}

@media (prefers-reduced-motion: reduce) {
  .ws-hero img,
  .ws-content > *,
  .ws-top {
    animation-duration: 0.01ms !important;
    animation-delay: 0s !important;
  }

  .ws-hero img {
    transform: scale(1.02);
  }
}

@media (max-width: 860px) {
  .ws-top {
    padding: 1rem 1.125rem;
    font-size: 0.72rem;
    letter-spacing: 0.12em;
  }

  .ws-body {
    align-items: flex-end;
    padding: 0 1.125rem 4rem;
  }

  .ws-content {
    max-width: 100%;
  }

  .ws-title {
    font-size: clamp(2.35rem, 9vw, 3.45rem);
  }

  .ws-actions {
    gap: 0.875rem 1rem;
  }

  .ws-btn {
    padding: 0.9rem 1.35rem;
    font-size: 0.95rem;
  }

  .ws-tour-note {
    max-width: 100%;
  }

  .ws-init__inner {
    width: min(38rem, 86%);
  }
}

@media (max-width: 560px) {
  .ws-top {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.5rem;
  }

  .ws-actions {
    align-items: stretch;
  }

  .ws-btn,
  .ws-link {
    width: 100%;
    justify-content: center;
  }

}
