:root {
  --ink: #f7f3ea;
  --bg: #123634;
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  background: var(--bg);
  overflow-x: hidden;
}

.hero {
  position: relative;
  width: 100%;
  height: 100vh;
  height: 100dvh;
  overflow: hidden;
}

.hero__bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

/* Full-bleed tonal wash: evens out the photo's brightness range (clear sky
   to bright cloud to foliage) so the centered type has consistent contrast
   everywhere, rather than patching legibility locally around the letters. */
.hero__wash {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    rgba(5, 17, 15, 0.04) 0%,
    rgba(5, 17, 15, 0.26) 38%,
    rgba(5, 17, 15, 0.28) 64%,
    rgba(5, 17, 15, 0.06) 100%
  );
}

/* Decorative HUD corner brackets */
.hud {
  position: absolute;
  width: 140px;
  height: 140px;
  opacity: 0.4;
  animation: hudFade 1.6s cubic-bezier(0.16, 1, 0.3, 1) 2.2s both;
}
.hud--tl { top: 20px; left: 20px; }
.hud--tr { top: 20px; right: 20px; }
.hud--bl { bottom: 20px; left: 20px; }
.hud--br { bottom: 20px; right: 20px; }

.hud-tick {
  position: absolute;
  top: 50%;
  width: 6px;
  height: 260px;
  transform: translateY(-50%);
  opacity: 0.4;
  animation: hudFade 1.6s cubic-bezier(0.16, 1, 0.3, 1) 2.2s both;
}
.hud-tick--left { left: 8%; }
.hud-tick--right { right: 8%; }

/* Logo, top center */
.logo {
  position: absolute;
  top: 48px;
  left: 50%;
  transform: translateX(-50%);
  width: 150px;
  height: auto;
  animation: riseInLogo 1.6s cubic-bezier(0.16, 1, 0.3, 1) 0.4s both;
}

/* Headline, centered in the viewport */
.headline {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: min(920px, calc(100% - 96px));
  margin: 0;
  text-align: center;
  font-family: "Instrument Serif", Georgia, "Times New Roman", serif;
  font-weight: 400;
  font-style: normal;
  font-size: 80px;
  line-height: 1.2;
  letter-spacing: 0;
  color: var(--ink);
  text-wrap: balance;
  animation: riseInHeadline 1.6s cubic-bezier(0.16, 1, 0.3, 1) 0.7s both;
}

/* Looping "loading text" HUD flourish, lower-left, from the original design.
   Cropped via background-position to just the readable terminal-text region
   of the source loop (the full frame is mostly empty canvas). */
.loading-text {
  position: absolute;
  bottom: 44px;
  left: 48px;
  width: 340px;
  height: 104px;
  background-image: url("assets/text-loading.gif");
  background-repeat: no-repeat;
  background-size: 493px 493px;
  background-position: -16px -246px;
  opacity: 0.7;
  animation: hudFade 1.6s cubic-bezier(0.16, 1, 0.3, 1) 1s both;
}

/* Looping diagonal-stripe HUD flourish, lower-right, from the original
   design's "coming soon" badge — kept only for its animation, no copy. */
.loading-bar {
  position: absolute;
  bottom: 54px;
  right: 48px;
  width: 160px;
  padding: 4px;
  background: rgb(255, 134, 53);
  animation: badgeFade 1.6s cubic-bezier(0.16, 1, 0.3, 1) 1s both;
}
.loading-bar img {
  display: block;
  width: 100%;
  height: auto;
  opacity: 0.5;
}

@keyframes riseInLogo {
  from { opacity: 0; transform: translateX(-50%) translateY(30px); }
  to { opacity: 1; transform: translateX(-50%) translateY(0); }
}
@keyframes riseInHeadline {
  from { opacity: 0; transform: translate(-50%, calc(-50% + 30px)); }
  to { opacity: 1; transform: translate(-50%, -50%); }
}
@keyframes hudFade {
  from { opacity: 0; }
  to { opacity: 0.4; }
}
@keyframes badgeFade {
  from { opacity: 0; }
  to { opacity: 1; }
}
@media (prefers-reduced-motion: reduce) {
  .hud, .hud-tick, .logo, .headline, .loading-text, .loading-bar { animation: none; }
}

/* Tablet */
@media (max-width: 1199px) {
  .logo { top: 40px; width: 120px; }
  .headline { width: min(620px, calc(100% - 80px)); font-size: 64px; }
  .loading-text { bottom: 34px; left: 40px; width: 220px; height: 68px; background-size: 319px 319px; background-position: -10px -159px; }
  .loading-bar { bottom: 42px; right: 40px; width: 120px; }
  .hud { width: 110px; height: 110px; }
  .hud-tick { height: 200px; }
}

/* Mobile */
@media (max-width: 809px) {
  .logo { top: 28px; width: 90px; }
  .headline {
    width: calc(100% - 48px);
    font-size: 44px;
  }
  .hud { width: 80px; height: 80px; }
  .hud--tl, .hud--tr { top: 16px; }
  .hud--bl, .hud--br { bottom: 16px; }
  .hud--tl, .hud--bl { left: 16px; }
  .hud--tr, .hud--br { right: 16px; }
  .hud-tick { display: none; }
  /* Hidden on mobile: not enough room without crowding the centered headline */
  .loading-text { display: none; }
  .loading-bar { display: none; }
}
