/* Astonix — Under Construction
   WHITE + GREEN + NAVY + GOLD */

:root {
  --ax-green: #07502F;
  --ax-emerald: #14704C;
  --ax-gold: #E9B83F;
  --ax-navy: #071D3A;
  --ax-ink: #041224;
  --ax-text: #E8EEE9;
  --ax-muted: #9AAB9F;
  --ax-white: #FFFFFF;
  --ax-soft: rgba(248, 248, 245, 0.08);
  --ax-line: rgba(233, 184, 63, 0.28);
  --font-display: "Cormorant Garamond", "Times New Roman", serif;
  --font-body: "Manrope", "Segoe UI", sans-serif;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  min-height: 100%;
}

body {
  font-family: var(--font-body);
  color: var(--ax-text);
  background: var(--ax-ink);
  overflow-x: hidden;
}

.uc-page {
  position: relative;
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  isolation: isolate;
}

/* Atmosphere */
.uc-atmosphere {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background:
    radial-gradient(ellipse 80% 60% at 15% 90%, rgba(7, 80, 47, 0.55) 0%, transparent 55%),
    radial-gradient(ellipse 70% 50% at 90% 10%, rgba(20, 112, 76, 0.28) 0%, transparent 50%),
    radial-gradient(ellipse 50% 40% at 50% 50%, rgba(233, 184, 63, 0.07) 0%, transparent 60%),
    linear-gradient(165deg, #061428 0%, #071D3A 42%, #062418 100%);
}

.uc-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(233, 184, 63, 0.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(233, 184, 63, 0.06) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: radial-gradient(ellipse 80% 70% at 50% 45%, #000 20%, transparent 80%);
  animation: gridDrift 40s linear infinite;
}

.uc-vignette {
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at center, transparent 40%, rgba(4, 18, 36, 0.72) 100%);
}

.uc-dust {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

@keyframes gridDrift {
  from { background-position: 0 0; }
  to { background-position: 56px 56px; }
}

/* Hazard tape */
.uc-tape {
  position: relative;
  z-index: 4;
  height: 14px;
  flex-shrink: 0;
  background: repeating-linear-gradient(
    -45deg,
    var(--ax-gold) 0 14px,
    var(--ax-navy) 14px 28px
  );
  box-shadow: 0 0 24px rgba(233, 184, 63, 0.25);
}

.uc-tape--bottom {
  margin-top: auto;
}

/* Shell */
.uc-shell {
  position: relative;
  z-index: 2;
  flex: 1;
  display: flex;
  flex-direction: column;
  width: min(1180px, calc(100% - 40px));
  margin: 0 auto;
  padding: 22px 0 28px;
}

.uc-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.uc-brand {
  display: flex;
  align-items: center;
  text-decoration: none;
}

.uc-brand img {
  display: block;
  height: 72px;
  width: auto;
  max-width: min(240px, 58vw);
  object-fit: contain;
  mix-blend-mode: screen;
}

.uc-live {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  border: 1px solid var(--ax-line);
  background: rgba(7, 80, 47, 0.28);
  color: var(--ax-gold);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  backdrop-filter: blur(10px);
}

.uc-live__dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #3dcc7a;
  box-shadow: 0 0 0 0 rgba(61, 204, 122, 0.7);
  animation: pulse 2s ease-out infinite;
}

@keyframes pulse {
  0% { box-shadow: 0 0 0 0 rgba(61, 204, 122, 0.7); }
  70% { box-shadow: 0 0 0 10px rgba(61, 204, 122, 0); }
  100% { box-shadow: 0 0 0 0 rgba(61, 204, 122, 0); }
}

/* Main split */
.uc-main {
  flex: 1;
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  gap: clamp(24px, 5vw, 64px);
  align-items: center;
  padding: 28px 0 12px;
}

/* Illustration */
.uc-stage {
  position: relative;
  width: 100%;
  aspect-ratio: 1 / 1.05;
  max-height: min(620px, 72vh);
  justify-self: center;
}

.uc-stage svg {
  width: 100%;
  height: 100%;
  display: block;
  overflow: visible;
}

.crane-boom {
  transform-origin: 118px 86px;
  animation: craneSwing 7s ease-in-out infinite;
}

.crane-hook {
  animation: hookTravel 5.5s ease-in-out infinite;
}

.floor {
  transform-box: fill-box;
  transform-origin: bottom;
  animation: floorRise 8s ease-in-out infinite;
}

.floor:nth-child(1) { animation-delay: 0s; }
.floor:nth-child(2) { animation-delay: 0.45s; }
.floor:nth-child(3) { animation-delay: 0.9s; }
.floor:nth-child(4) { animation-delay: 1.35s; }
.floor:nth-child(5) { animation-delay: 1.8s; }

.window-glow {
  animation: windowBlink 3.8s ease-in-out infinite;
}

.window-glow:nth-child(odd) { animation-delay: 0.6s; }
.window-glow:nth-child(even) { animation-delay: 1.4s; }

.spark {
  animation: sparkFall 3.2s linear infinite;
}

@keyframes craneSwing {
  0%, 100% { transform: rotate(-6deg); }
  50% { transform: rotate(8deg); }
}

@keyframes hookTravel {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(28px); }
}

@keyframes floorRise {
  0%, 12% { transform: scaleY(0.15); opacity: 0.25; }
  28%, 72% { transform: scaleY(1); opacity: 1; }
  88%, 100% { transform: scaleY(0.15); opacity: 0.25; }
}

@keyframes windowBlink {
  0%, 100% { opacity: 0.25; }
  50% { opacity: 1; }
}

@keyframes sparkFall {
  0% { transform: translateY(0); opacity: 0; }
  15% { opacity: 1; }
  100% { transform: translateY(46px); opacity: 0; }
}

.uc-stamp {
  position: absolute;
  right: 4%;
  top: 6%;
  width: 92px;
  height: 92px;
  border: 2px solid rgba(233, 184, 63, 0.45);
  border-radius: 50%;
  display: grid;
  place-items: center;
  transform: rotate(18deg);
  color: var(--ax-gold);
  text-align: center;
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  line-height: 1.25;
  opacity: 0.85;
}

.uc-stamp span {
  display: block;
  font-family: var(--font-display);
  font-size: 15px;
  letter-spacing: 0.08em;
  font-weight: 600;
}

/* Copy */
.uc-copy {
  max-width: 540px;
}

.uc-kicker {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 18px;
  color: var(--ax-gold);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.28em;
  text-transform: uppercase;
}

.uc-kicker::before,
.uc-kicker::after {
  content: "";
  height: 1px;
  width: 28px;
  background: var(--ax-gold);
}

.uc-title {
  margin: 0 0 18px;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(46px, 8vw, 86px);
  line-height: 0.9;
  letter-spacing: -0.02em;
  color: var(--ax-white);
}

.uc-title em {
  display: block;
  font-style: italic;
  font-weight: 500;
  color: var(--ax-gold);
}

.uc-lead {
  margin: 0 0 28px;
  font-size: clamp(15px, 2vw, 17px);
  line-height: 1.7;
  color: var(--ax-muted);
  max-width: 38ch;
}

.uc-phases {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 0 0 32px;
  padding: 0;
  list-style: none;
}

.uc-phases li {
  position: relative;
  padding: 10px 16px 10px 18px;
  border: 1px solid rgba(221, 228, 223, 0.12);
  background: var(--ax-soft);
  color: var(--ax-white);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.uc-phases li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 3px;
  background: var(--ax-gold);
}

.uc-phases li.is-active {
  background: rgba(7, 80, 47, 0.45);
  border-color: rgba(233, 184, 63, 0.4);
  color: var(--ax-gold);
}

.uc-progress {
  margin: 0 0 34px;
}

.uc-progress__label {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 10px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ax-muted);
}

.uc-progress__track {
  height: 4px;
  background: rgba(255, 255, 255, 0.08);
  overflow: hidden;
}

.uc-progress__bar {
  height: 100%;
  width: 42%;
  background: linear-gradient(90deg, var(--ax-green), var(--ax-gold));
  animation: workPulse 3.6s ease-in-out infinite;
}

@keyframes workPulse {
  0% { transform: translateX(-80%); }
  100% { transform: translateX(280%); }
}

.uc-contacts {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.uc-contacts a {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 12px 16px;
  border: 1px solid rgba(233, 184, 63, 0.28);
  color: var(--ax-white);
  text-decoration: none;
  font-size: 14px;
  font-weight: 600;
  background: rgba(7, 29, 58, 0.45);
  transition: border-color 0.25s ease, background 0.25s ease, transform 0.25s ease;
}

.uc-contacts a:hover {
  border-color: var(--ax-gold);
  background: rgba(7, 80, 47, 0.45);
  transform: translateY(-2px);
}

.uc-contacts svg {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: var(--ax-gold);
  stroke-width: 1.7;
}

.uc-foot {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 8px 20px;
  padding-top: 8px;
  color: var(--ax-muted);
  font-size: 12px;
  letter-spacing: 0.04em;
}

/* Mobile */
@media (max-width: 900px) {
  .uc-main {
    grid-template-columns: 1fr;
    padding-top: 12px;
  }

  .uc-stage {
    order: -1;
    max-height: 360px;
    aspect-ratio: 16 / 11;
    width: min(100%, 520px);
  }

  .uc-copy {
    text-align: center;
    max-width: none;
  }

  .uc-lead {
    max-width: 46ch;
    margin-left: auto;
    margin-right: auto;
  }

  .uc-phases,
  .uc-contacts {
    justify-content: center;
  }

  .uc-kicker {
    justify-content: center;
  }

  .uc-stamp {
    width: 70px;
    height: 70px;
    font-size: 8px;
  }

  .uc-brand img {
    height: 58px;
  }
}

@media (max-width: 560px) {
  .uc-shell {
    width: calc(100% - 28px);
    padding-top: 16px;
  }

  .uc-header {
    flex-direction: column;
    align-items: flex-start;
  }

  .uc-live {
    align-self: flex-start;
  }

  .uc-title {
    font-size: clamp(40px, 14vw, 58px);
  }

  .uc-stage {
    max-height: 250px;
  }

  .uc-stamp {
    display: none;
  }

  .uc-phases li {
    flex: 1 1 calc(50% - 10px);
    text-align: center;
  }

  .uc-contacts a {
    width: 100%;
    justify-content: center;
  }

  .uc-foot {
    justify-content: center;
    text-align: center;
  }
}

@media (prefers-reduced-motion: reduce) {
  .uc-grid,
  .crane-boom,
  .crane-hook,
  .floor,
  .window-glow,
  .spark,
  .uc-progress__bar,
  .uc-live__dot {
    animation: none;
  }
}
