:root {
  color-scheme: dark;
  --navy: #03101f;
  --ink: #061628;
  --white: #f1f4f6;
  --soft: #d0d8df;
  --muted: #9aa9b6;
  --line: rgba(159, 186, 207, .42);
  --gold: #ddb073;
  --cold: #bfd7e7;
}

* {
  box-sizing: border-box;
}

html,
body {
  width: 100%;
  min-height: 100%;
  margin: 0;
  background: var(--navy);
}

body {
  overflow: hidden;
  font-family:
    Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont,
    "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  color: var(--white);
}

button {
  font: inherit;
}

.hero {
  position: relative;
  isolation: isolate;
  width: 100%;
  min-height: 100svh;
  overflow: hidden;
  background: var(--navy);
}

.hero-bg {
  position: absolute;
  inset: -2.2%;
  z-index: -4;
  background:
    image-set(
      url("/assets/bridge-horizon.webp") type("image/webp"),
      url("/assets/bridge-horizon.jpg") type("image/jpeg")
    )
    center center / cover no-repeat;
  transform: scale(1.015);
  animation: background-breathe 26s ease-in-out infinite alternate;
  will-change: transform;
}

.hero-shade {
  position: absolute;
  inset: 0;
  z-index: -3;
  background:
    linear-gradient(180deg,
      rgba(1, 9, 19, .20) 0%,
      rgba(1, 9, 19, .10) 30%,
      rgba(1, 9, 19, .00) 53%,
      rgba(1, 9, 19, .12) 76%,
      rgba(1, 9, 19, .30) 100%),
    radial-gradient(circle at 50% 54%,
      rgba(240, 189, 120, .05) 0,
      rgba(5, 18, 32, 0) 28%);
  pointer-events: none;
}



.horizon-glow {
  position: absolute;
  left: 50%;
  top: 56.5%;
  z-index: -2;
  width: min(36vw, 590px);
  aspect-ratio: 1;
  transform: translate(-50%, -50%);
  border-radius: 50%;
  background: radial-gradient(circle,
      rgba(241, 194, 129, .21) 0,
      rgba(241, 194, 129, .08) 16%,
      rgba(241, 194, 129, 0) 60%);
  filter: blur(4px);
  animation: horizon-pulse 8s ease-in-out infinite;
  pointer-events: none;
}

.topbar {
  position: absolute;
  top: max(30px, env(safe-area-inset-top));
  left: max(42px, env(safe-area-inset-left));
  right: max(42px, env(safe-area-inset-right));
  z-index: 5;
  display: flex;
  align-items: center;
  justify-content: space-between;
  animation: reveal .9s .08s both;
}

.brand {
  color: rgba(241, 244, 246, .92);
  font-size: clamp(.72rem, .84vw, .9rem);
  font-weight: 500;
  letter-spacing: .29em;
  white-space: nowrap;
}

.language {
  display: flex;
  align-items: center;
  gap: .65rem;
}

.lang-button {
  position: relative;
  padding: .25rem 0;
  border: 0;
  background: none;
  color: rgba(218, 226, 232, .61);
  cursor: pointer;
  font-size: clamp(.72rem, .82vw, .88rem);
  letter-spacing: .25em;
  transition: color 300ms ease;
}

.lang-button::after {
  content: "";
  position: absolute;
  left: 0;
  right: .22em;
  bottom: 0;
  height: 1px;
  background: var(--gold);
  transform: scaleX(0);
  transform-origin: center;
  transition: transform 300ms ease;
}

.lang-button:hover,
.lang-button:focus-visible,
.lang-button.is-active {
  color: var(--white);
}

.lang-button.is-active::after {
  transform: scaleX(1);
}

.lang-button:focus-visible {
  outline: 1px solid rgba(221, 176, 115, .8);
  outline-offset: 5px;
}

.lang-separator {
  color: rgba(175, 188, 199, .36);
}

.intro {
  position: absolute;
  top: clamp(14.5%, 17vh, 19.5%);
  left: 50%;
  z-index: 2;
  width: min(82vw, 980px);
  transform: translateX(-50%);
  text-align: center;
  text-shadow: 0 2px 20px rgba(0, 0, 0, .28);
}

.main-title {
  display: inline-flex;
  align-items: baseline;
  justify-content: center;
  margin: 0;
  color: rgba(245, 247, 248, .96);
  font-size: clamp(2.48rem, 4.9vw, 5.25rem);
  line-height: 1;
  white-space: nowrap;
  animation: reveal 1.05s .16s both;
}

.title-name {
  font-weight: 430;
  letter-spacing: .205em;
  text-shadow:
    0 1px 16px rgba(255, 255, 255, .035),
    0 2px 20px rgba(0, 0, 0, .25);
}

.title-dot {
  display: inline-block;
  margin: 0 .12em 0 .055em;
  color: var(--gold);
  font-weight: 500;
  letter-spacing: 0;
  text-shadow:
    0 0 7px rgba(221, 176, 115, .42),
    0 0 18px rgba(221, 176, 115, .18);
  animation: title-dot-breathe 7s ease-in-out infinite;
}

.title-domain {
  color: rgba(238, 243, 246, .92);
  font-weight: 210;
  letter-spacing: .245em;
  opacity: .94;
}

.tagline {
  margin: clamp(24px, 3.2vh, 34px) 0 0;
  color: rgba(239, 242, 244, .93);
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(1.05rem, 1.72vw, 1.62rem);
  font-weight: 400;
  letter-spacing: .075em;
  line-height: 1.35;
  animation: reveal 1.08s .28s both;
}

.ornament {
  display: block;
  width: 76px;
  height: 1px;
  margin: clamp(18px, 2.3vh, 24px) auto;
  background: linear-gradient(90deg,
    transparent,
    rgba(208, 221, 230, .58),
    transparent);
  animation: reveal 1.1s .38s both;
}

.motto {
  margin: 0;
  color: rgba(218, 225, 231, .9);
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(.87rem, 1.26vw, 1.17rem);
  letter-spacing: .15em;
  line-height: 1.45;
  animation: reveal 1.1s .46s both;
}

.timeline {
  position: absolute;
  left: 8%;
  right: 8%;
  bottom: clamp(13.5%, 17vh, 19%);
  z-index: 2;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  align-items: end;
  animation: reveal 1.15s .58s both;
}

.time-point {
  position: relative;
  min-width: 0;
  text-align: center;
}

.time-label {
  display: block;
  margin-bottom: 12px;
  color: rgba(222, 229, 234, .87);
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(.85rem, 1.12vw, 1.06rem);
  letter-spacing: .12em;
}

.time-line {
  position: absolute;
  top: calc(100% + 3px);
  height: 1px;
  background: linear-gradient(
    90deg,
    rgba(133, 163, 185, .05),
    rgba(151, 179, 199, .52),
    rgba(133, 163, 185, .05)
  );
}

.time-past .time-line {
  left: 0;
  width: 100%;
}

.time-present .time-line {
  left: 0;
  width: 100%;
}

.time-horizon .time-line {
  left: 0;
  width: 100%;
}

.time-dot {
  position: absolute;
  left: 50%;
  top: calc(100% - 1px);
  width: 8px;
  height: 8px;
  transform: translate(-50%, -50%);
  border-radius: 50%;
  background: #eef6fb;
  box-shadow:
    0 0 8px rgba(204, 230, 246, .78),
    0 0 18px rgba(168, 209, 233, .26);
  animation: point-breathe 5.5s ease-in-out infinite;
}

.time-dot.is-present {
  width: 9px;
  height: 9px;
  background: #f0c186;
  box-shadow:
    0 0 8px rgba(241, 193, 134, .92),
    0 0 24px rgba(241, 193, 134, .48);
  animation-duration: 4.2s;
}

.journey {
  position: absolute;
  left: 50%;
  bottom: max(4.4vh, 28px);
  z-index: 2;
  transform: translateX(-50%);
  width: max-content;
  max-width: 88vw;
  text-align: center;
  animation: reveal 1.15s .72s both;
}

.journey p {
  margin: 0;
  color: rgba(218, 224, 229, .84);
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(.78rem, 1.06vw, 1rem);
  letter-spacing: .16em;
}

.journey-mark {
  display: block;
  width: 20px;
  height: 20px;
  margin: 0 auto 8px;
  border-right: 1px solid rgba(221, 176, 115, .5);
  border-bottom: 1px solid rgba(221, 176, 115, .5);
  transform: rotate(45deg) scale(.6);
  animation: journey-mark 4s ease-in-out infinite;
}

.noscript-note {
  position: fixed;
  left: 50%;
  bottom: 8px;
  z-index: 20;
  transform: translateX(-50%);
  margin: 0;
  padding: 6px 10px;
  background: rgba(3, 16, 31, .72);
  color: rgba(235, 239, 242, .75);
  font-size: .72rem;
}

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

@keyframes background-breathe {
  from {
    transform: scale(1.012) translate3d(0, 0, 0);
  }
  to {
    transform: scale(1.026) translate3d(0, -0.2%, 0);
  }
}

@keyframes horizon-pulse {
  0%, 100% {
    opacity: .54;
    transform: translate(-50%, -50%) scale(.96);
  }
  50% {
    opacity: .82;
    transform: translate(-50%, -50%) scale(1.05);
  }
}

@keyframes title-dot-breathe {
  0%, 100% {
    opacity: .86;
    text-shadow:
      0 0 6px rgba(221, 176, 115, .32),
      0 0 15px rgba(221, 176, 115, .12);
  }
  50% {
    opacity: 1;
    text-shadow:
      0 0 8px rgba(221, 176, 115, .52),
      0 0 22px rgba(221, 176, 115, .23);
  }
}

@keyframes point-breathe {
  0%, 100% { opacity: .74; }
  50% { opacity: 1; }
}

@keyframes journey-mark {
  0%, 100% {
    opacity: .28;
    transform: rotate(45deg) translate(0, 0) scale(.6);
  }
  50% {
    opacity: .64;
    transform: rotate(45deg) translate(2px, 2px) scale(.6);
  }
}

/* Wide but short displays. */
@media (max-height: 760px) and (min-width: 760px) {
  .intro {
    top: 14%;
  }

  .tagline {
    margin-top: 18px;
  }

  .ornament {
    margin-top: 13px;
    margin-bottom: 13px;
  }

  .timeline {
    bottom: 14%;
  }

  .journey {
    bottom: 2.8vh;
  }
}

/* Mobile portrait / narrow displays. */
@media (max-width: 720px) {
  body {
    overflow: auto;
  }

  .hero {
    min-height: 100svh;
  }

  .hero-bg {
    inset: -3%;
    background-position: 50% 54%;
  }

  .topbar {
    top: max(22px, env(safe-area-inset-top));
    left: max(20px, env(safe-area-inset-left));
    right: max(20px, env(safe-area-inset-right));
  }

  .brand {
    font-size: .68rem;
    letter-spacing: .22em;
  }

  .language {
    gap: .42rem;
  }

  .lang-button {
    font-size: .68rem;
    letter-spacing: .17em;
  }

  .intro {
    top: 16.2%;
    width: 91vw;
  }

  .main-title {
    font-size: clamp(1.92rem, 10.2vw, 3.08rem);
  }

  .title-name {
    letter-spacing: .115em;
  }

  .title-domain {
    letter-spacing: .15em;
  }

  .title-dot {
    margin-left: .04em;
    margin-right: .10em;
  }

  .tagline {
    max-width: 88vw;
    margin: 22px auto 0;
    font-size: clamp(1rem, 4.7vw, 1.25rem);
    letter-spacing: .04em;
  }

  .motto {
    font-size: .82rem;
    letter-spacing: .10em;
  }

  .timeline {
    left: 5%;
    right: 5%;
    bottom: 15%;
  }

  .time-label {
    margin-bottom: 10px;
    font-size: .78rem;
    letter-spacing: .07em;
  }

  .journey {
    bottom: max(4.2vh, 22px);
  }

  .journey p {
    font-size: .74rem;
    letter-spacing: .11em;
  }
}

@media (max-width: 430px) {
  .brand {
    max-width: 44vw;
    overflow: hidden;
  }

  .title-name {
    letter-spacing: .085em;
  }

  .title-domain {
    letter-spacing: .11em;
  }

  .tagline {
    font-size: .98rem;
  }

  .motto {
    font-size: .76rem;
  }

  .timeline {
    bottom: 14%;
  }

  .time-label {
    font-size: .7rem;
  }
}

/* Accessibility: animations become effectively static. */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation-duration: .001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .001ms !important;
  }
}


/* Matomo no-JavaScript fallback beacon. */
.matomo-beacon {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  opacity: 0;
  pointer-events: none;
}
