/* System fonts and CSS-only motion: no external requests or JavaScript. */
:root {
  color-scheme: dark;
  --background: #161819;
  --text: #f3f1ed;
  --muted: #a5a6a5;
  --gold: #d2bb85;
  --line: #333536;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

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

body {
  margin: 0;
  background: var(--background);
  color: var(--text);
  -webkit-font-smoothing: antialiased;
}

p,
h1 {
  margin: 0;
}

::selection {
  background: var(--gold);
  color: var(--background);
}

.page {
  display: flex;
  flex-direction: column;
  width: min(100%, 1600px);
  min-height: 100vh;
  min-height: 100svh;
  margin-inline: auto;
  padding: 28px 24px 22px;
  padding-top: max(28px, env(safe-area-inset-top));
  padding-bottom: max(22px, env(safe-area-inset-bottom));
  padding-left: max(24px, env(safe-area-inset-left));
  padding-right: max(24px, env(safe-area-inset-right));
}

.header {
  display: flex;
  flex-direction: column;
  gap: 25px;
  position: relative;
  z-index: 1;
}

.brand {
  display: flex;
  align-items: center;
  gap: 15px;
}

.brand__symbol {
  flex-shrink: 0;
  color: var(--gold);
}

.brand__name {
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.16em;
  line-height: 1.65;
}

.brand__name span {
  display: block;
  color: var(--gold);
  font-size: 10px;
  letter-spacing: 0.35em;
}

.region {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.7;
}

.region__break {
  display: none;
}

.hero {
  display: grid;
  flex: 1;
  align-content: center;
  position: relative;
  min-width: 0;
  padding-block: 68px 80px;
}

.hero__content {
  position: relative;
  z-index: 1;
  min-width: 0;
}

.eyebrow {
  margin-bottom: 24px;
  color: var(--gold);
  font-size: 9px;
  font-weight: 500;
  letter-spacing: 0.13em;
  line-height: 1.7;
  text-transform: uppercase;
  animation-delay: 80ms;
}

.hero__title {
  font-size: clamp(29px, 9.05vw, 60px);
  font-weight: 400;
  letter-spacing: -0.055em;
  line-height: 1.16;
  animation-delay: 160ms;
}

.hero__title span {
  color: var(--gold);
}

.error-title {
  font-size: clamp(36px, 8vw, 96px);
  font-weight: 400;
  letter-spacing: -0.045em;
  line-height: 1.2;
}

.home-link {
  padding-block: 12px;
  color: var(--gold);
  text-decoration-thickness: 1px;
  text-underline-offset: 5px;
}

.home-link:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 6px;
}

.announcement {
  display: flex;
  align-items: baseline;
  gap: 12px;
  margin-top: 36px;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.7;
  animation-delay: 240ms;
}

.announcement__dot {
  flex-shrink: 0;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--gold);
  transform: translateY(-2px);
}

.installation {
  position: absolute;
  z-index: 0;
  top: 50%;
  right: -12px;
  width: min(78%, 370px);
  opacity: 0.18;
  transform: translateY(-43%);
  pointer-events: none;
  animation-delay: 320ms;
}

.installation__drawing {
  display: block;
  width: 100%;
  height: auto;
}

.footer {
  display: flex;
  align-items: center;
  gap: 18px;
  color: var(--muted);
  font-size: 11px;
  letter-spacing: 0.08em;
  line-height: 1.6;
  animation-delay: 320ms;
}

.footer__line {
  flex: 1;
  height: 1px;
  background: var(--line);
}

/* Content stays visible even when animation or JavaScript is unavailable. */
.reveal {
  animation-name: appear;
  animation-duration: 900ms;
  animation-timing-function: ease-out;
  animation-fill-mode: backwards;
}

@keyframes appear {
  from { opacity: 0; }
  to { opacity: 1; }
}

@media (min-width: 480px) {
  .page {
    padding: 36px;
  }

  .hero__title {
    font-size: clamp(43px, 8.7vw, 68px);
  }

  .eyebrow {
    font-size: 10px;
    letter-spacing: 0.18em;
  }

  .announcement__break {
    display: none;
  }
}

@media (min-width: 768px) {
  .page {
    padding: 44px 48px 30px;
  }

  .header {
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    gap: 32px;
  }

  .region {
    text-align: right;
  }

  .region__break {
    display: initial;
  }

  .hero {
    padding-block: 100px 112px;
  }

  .hero__title {
    font-size: clamp(60px, 7.3vw, 108px);
  }

  .eyebrow {
    margin-bottom: 30px;
  }

  .announcement {
    margin-top: 44px;
    font-size: 15px;
  }

  .installation {
    right: -12px;
    width: 48%;
    max-width: 540px;
    opacity: 0.6;
    transform: translateY(-50%);
  }

  .footer {
    gap: 24px;
    font-size: 12px;
  }
}

@media (min-width: 1200px) {
  .page {
    padding: 48px 80px 32px;
  }

  .region {
    font-size: 13px;
  }

  .hero {
    min-height: 650px;
  }

  .installation {
    right: 0;
    opacity: 1;
  }
}

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