/* =========================================================
   Galaxy Plaza — Pre-Launch Teaser
   Palette / type inherited from the Digital Blueprint doc.
   ========================================================= */

:root {
  --bg: #efede6;
  --surface: #ffffff;
  --surface-2: #e7e4da;
  --text: #1a1c22;
  --text-muted: #5c5f68;
  --accent: #a97728;
  --accent-soft: #a9772822;
  --accent-2: #2c6864;
  --accent-2-soft: #2c686422;
  --border: #d9d5c8;
  --navy: #121627;
  --navy-deep: #0a0d17;

  /* dusk (dark) tokens — used for hero / countdown / footer, always-on */
  --dusk-bg: #10141f;
  --dusk-surface: #171d2c;
  --dusk-surface-2: #1e263a;
  --dusk-text: #eceef3;
  --dusk-text-muted: #a5aab8;
  --dusk-accent: #dcac5c;
  --dusk-accent-soft: #dcac5c26;
  --dusk-accent-2: #57ada6;
  --dusk-accent-2-soft: #57ada626;
  --dusk-border: #2a3145;

  --ease: cubic-bezier(.22,.9,.32,1);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: 'Manrope', system-ui, sans-serif;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }

h1, h2, h3 {
  font-family: 'Unbounded', system-ui, sans-serif;
  font-weight: 600;
  text-wrap: balance;
  line-height: 1.18;
  margin: 0;
}

.wrap {
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 24px;
}

.eyebrow {
  display: block;
  font-family: 'IBM Plex Mono', monospace;
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 14px;
}

/* ---------------- reveal-on-scroll ---------------- */
.reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity .7s var(--ease), transform .7s var(--ease);
}
.reveal.is-visible { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  * { animation-duration: 0.001ms !important; animation-iteration-count: 1 !important; transition-duration: 0.001ms !important; }
}

/* ---------------- progress bar + cursor glow ---------------- */
.progress-bar {
  position: fixed; top: 0; left: 0; height: 3px; width: 0%;
  background: linear-gradient(90deg, var(--dusk-accent), var(--dusk-accent-2));
  z-index: 200;
  transition: width .1s linear;
}

.cursor-glow {
  position: fixed;
  top: 0; left: 0;
  width: 420px; height: 420px;
  margin-left: -210px; margin-top: -210px;
  border-radius: 50%;
  background: radial-gradient(circle, #dcac5c22, transparent 70%);
  pointer-events: none;
  z-index: 1;
  opacity: 0;
  transition: opacity .4s ease;
  will-change: transform;
}
.cursor-glow.active { opacity: 1; }
@media (hover: none), (pointer: coarse) {
  .cursor-glow { display: none; }
}

/* ---------------- nav ---------------- */
.site-nav {
  position: fixed; top: 0; left: 0; right: 0;
  z-index: 100;
  padding: 18px 0;
  transition: background .35s var(--ease), padding .35s var(--ease), border-color .35s var(--ease);
  border-bottom: 1px solid transparent;
}
.site-nav.scrolled {
  background: #10141fcc;
  backdrop-filter: blur(10px);
  padding: 12px 0;
  border-bottom: 1px solid #ffffff14;
}
.nav-inner {
  max-width: 1120px; margin: 0 auto; padding: 0 24px;
  display: flex; align-items: center; justify-content: space-between; gap: 20px;
}
.wordmark {
  font-family: 'Unbounded', sans-serif;
  font-weight: 700;
  font-size: 1.05rem;
  color: #f7f5ef;
  letter-spacing: -0.01em;
}
.wordmark span { color: var(--dusk-accent); }

.nav-links { display: flex; gap: 28px; }
.nav-links a {
  font-size: 0.86rem; color: #c7cadb;
  position: relative; padding: 4px 0;
  transition: color .2s ease;
}
.nav-links a:hover { color: #f7f5ef; }
.nav-links a::after {
  content: ""; position: absolute; left: 0; bottom: -2px;
  width: 0; height: 1px; background: var(--dusk-accent);
  transition: width .25s var(--ease);
}
.nav-links a:hover::after { width: 100%; }

.nav-actions { display: flex; align-items: center; gap: 14px; }

.nav-toggle {
  display: none;
  flex-direction: column; justify-content: center; gap: 5px;
  width: 34px; height: 34px;
  background: none; border: none; cursor: pointer; padding: 0;
}
.nav-toggle span { display: block; height: 2px; width: 100%; background: #f0eee8; border-radius: 2px; transition: transform .25s ease, opacity .25s ease; }
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ---------------- buttons ---------------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  font-family: 'Manrope', sans-serif; font-weight: 700; font-size: 0.92rem;
  padding: 14px 26px; border-radius: 999px;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform .3s var(--ease), box-shadow .3s var(--ease), background .25s ease, color .25s ease, border-color .25s ease;
}
.btn span { transform: translateZ(0); }
.btn-primary {
  background: var(--dusk-accent); color: #16110a;
  box-shadow: 0 8px 24px -8px #dcac5c66;
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 14px 30px -8px #dcac5c8a; }
.btn-outline {
  background: transparent; color: #f0eee8; border-color: #ffffff33;
}
.btn-outline:hover { border-color: #dcac5c; color: #dcac5c; transform: translateY(-2px); }
.btn-ghost {
  background: #ffffff12; color: #f0eee8; border-color: #ffffff22;
}
.btn-ghost:hover { background: #ffffff20; }
.btn-sm { padding: 9px 18px; font-size: 0.82rem; }

/* dark-section outline buttons need light variants inside light sections */
.section-alt .btn-outline, .section .btn-outline {
  color: var(--text); border-color: var(--border);
}
.section-alt .btn-outline:hover, .section .btn-outline:hover { color: var(--accent); border-color: var(--accent); }

/* ---------------- shared dusk bg (hero + countdown) ---------------- */
.hero-bg { position: absolute; inset: 0; overflow: hidden; z-index: 0; }
.hero-bg .sky {
  position: absolute; inset: 0;
  background:
    radial-gradient(ellipse 900px 600px at 82% -10%, #dcac5c22, transparent 60%),
    radial-gradient(ellipse 700px 500px at 10% 10%, #57ada61a, transparent 55%),
    linear-gradient(180deg, var(--dusk-bg) 0%, #0d1120 60%, var(--navy-deep) 100%);
}
.hero-bg .glow-horizon {
  position: absolute; left: 0; right: 0; bottom: 0; height: 40%;
  background: linear-gradient(180deg, transparent, #dcac5c14 100%);
}
.hero-bg .grain {
  position: absolute; inset: 0;
  opacity: .05; mix-blend-mode: overlay; pointer-events: none;
  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' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* ---------------- hero ---------------- */
.hero {
  position: relative;
  min-height: 100svh;
  display: flex; flex-direction: column; justify-content: center;
  padding: 140px 0 60px;
  color: #f2f0ea;
  overflow: hidden;
}
.hero-grid {
  position: relative; z-index: 2;
  display: grid; grid-template-columns: 1.05fr 0.95fr; gap: 48px;
  align-items: center;
}
.hero .eyebrow { color: var(--dusk-accent); }

.hero-title { font-size: clamp(2.4rem, 5.6vw, 4.2rem); margin: 6px 0 22px; }
.kinetic-line { display: block; color: #f7f5ef; }
.kinetic-accent { color: var(--dusk-accent); }

.hero-sub { font-size: 1.08rem; color: #c7cadb; max-width: 46ch; margin: 0 0 8px; }
.hero-sub-ur { font-size: 1.1rem; color: #9aa0b5; margin-bottom: 26px; }

.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; margin-bottom: 40px; }

.factstrip {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px;
  background: #ffffff14; border: 1px solid #ffffff1f; border-radius: 12px; overflow: hidden;
}
.fact { background: #ffffff08; padding: 14px 16px; }
.fact .k { font-family: 'IBM Plex Mono', monospace; font-size: 0.64rem; letter-spacing: 0.08em; text-transform: uppercase; color: #9aa0b5; margin-bottom: 5px; }
.fact .v { font-size: 0.86rem; color: #f0eee8; }

/* ---------------- hero tower art ---------------- */
.hero-art { position: relative; display: flex; flex-direction: column; align-items: center; }
.tower {
  display: flex; flex-direction: column-reverse;
  align-items: center; gap: 4px;
  filter: drop-shadow(0 30px 60px #00000066);
}
.tower-floor {
  position: relative;
  background: linear-gradient(180deg, var(--dusk-surface-2), var(--dusk-surface));
  border: 1px solid #ffffff1a;
  border-radius: 6px;
  display: grid;
  gap: 4px;
  padding: 8px;
}
.tower-floor .win {
  width: 9px; height: 12px;
  border-radius: 1px;
  background: #ffffff0a;
  opacity: .25;
}
.tower-floor .win.lit {
  background: var(--win-color, var(--dusk-accent));
  box-shadow: 0 0 6px 1px var(--win-color, var(--dusk-accent));
  animation: flicker 5s ease-in-out infinite;
}
.tower-floor .flabel {
  position: absolute; left: -34px; top: 50%; transform: translateY(-50%);
  font-family: 'IBM Plex Mono', monospace; font-size: 0.66rem; color: #9aa0b5;
}
@keyframes flicker {
  0%, 100% { opacity: .55; }
  45% { opacity: 1; }
  50% { opacity: .35; }
  55% { opacity: .95; }
}
.art-caption {
  margin-top: 22px;
  font-family: 'IBM Plex Mono', monospace;
  font-size: 0.7rem; letter-spacing: .03em;
  color: #7a7f92; text-align: center;
}

.scroll-cue {
  position: absolute; bottom: 26px; left: 50%; transform: translateX(-50%);
  z-index: 2;
  width: 22px; height: 36px; border: 1px solid #ffffff44; border-radius: 20px;
}
.scroll-cue span {
  position: absolute; top: 6px; left: 50%; transform: translateX(-50%);
  width: 4px; height: 8px; border-radius: 2px; background: var(--dusk-accent);
  animation: scrollcue 1.8s ease-in-out infinite;
}
@keyframes scrollcue {
  0% { top: 6px; opacity: 1; }
  70% { top: 18px; opacity: 0; }
  71% { top: 6px; opacity: 0; }
  100% { top: 6px; opacity: 1; }
}

/* ---------------- marquee ---------------- */
.marquee {
  background: var(--dusk-accent); color: #16110a;
  overflow: hidden; white-space: nowrap;
  padding: 12px 0;
}
.marquee-track {
  display: inline-flex; gap: 14px;
  font-family: 'IBM Plex Mono', monospace;
  font-size: 0.78rem; letter-spacing: .08em; text-transform: uppercase;
  animation: marquee 26s linear infinite;
}
.marquee .dot { opacity: .55; }
@keyframes marquee {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

/* ---------------- sections ---------------- */
.section { position: relative; padding: 100px 0; }
.section-tight { padding: 0 0 100px; }
.section-alt { background: var(--surface); border-top: 1px solid var(--border); }
.countdown-section { color: #f2f0ea; overflow: hidden; padding: 110px 0; }
.countdown-section .wrap { position: relative; z-index: 2; }

.section-head { max-width: 640px; margin-bottom: 44px; }
.section-head.center { max-width: 620px; margin-left: auto; margin-right: auto; text-align: center; }
.section-head h2 { font-size: clamp(1.7rem, 3.2vw, 2.4rem); margin-bottom: 14px; }
.section-lede { color: var(--text-muted); font-size: 1.02rem; margin: 0; }
.section-lede.center { margin-left: auto; margin-right: auto; }
.countdown-section .section-lede { color: #b7bad0; }

/* ---------------- vertical cards ---------------- */
.vgrid {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px;
}
.vcard {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 24px 22px;
  transition: transform .35s var(--ease), box-shadow .35s var(--ease), border-color .35s var(--ease);
}
.vcard:hover {
  transform: translateY(-5px);
  border-color: var(--vc);
  box-shadow: 0 18px 36px -18px #00000022;
}
.vcard-top { display: flex; align-items: flex-start; justify-content: space-between; margin-bottom: 16px; }
.vicon {
  width: 42px; height: 42px; border-radius: 11px;
  display: flex; align-items: center; justify-content: center;
  background: color-mix(in srgb, var(--vc) 14%, transparent);
  color: var(--vc);
}
.vicon svg { width: 22px; height: 22px; }
.floor-tag {
  font-family: 'IBM Plex Mono', monospace; font-size: 0.64rem; letter-spacing: .05em;
  color: var(--text-muted); border: 1px solid var(--border); border-radius: 999px;
  padding: 3px 9px; text-transform: uppercase; align-self: flex-start;
}
.vcard h3 { font-size: 1.02rem; margin-bottom: 8px; }
.vcard p { font-size: 0.88rem; color: var(--text-muted); margin: 0; }

/* ---------------- wayfinding panel ---------------- */
.wayfind-panel {
  background: var(--navy);
  color: #f2f0ea;
  border-radius: 20px;
  padding: 44px;
}
.wayfind-head { max-width: 560px; margin-bottom: 30px; }
.wayfind-head h2 { color: #f7f5ef; font-size: clamp(1.5rem, 2.8vw, 2rem); margin-bottom: 12px; }
.floorlist { display: flex; flex-direction: column; gap: 2px; }
.frow {
  display: grid; grid-template-columns: 56px 1fr 1fr; align-items: center; gap: 18px;
  padding: 16px 18px;
  background: #ffffff06;
  border-left: 3px solid #ffffff1f;
  border-radius: 8px;
  transition: background .25s ease, border-color .25s ease;
}
.frow:hover { background: #ffffff0d; }
.frow-accent { border-left-color: var(--dusk-accent-2); }
.fnum { font-family: 'IBM Plex Mono', monospace; color: #9aa0b5; font-size: 0.85rem; }
.fname { font-weight: 600; font-size: 0.96rem; color: #f0eee8; }
.fdesc { color: #9aa0b5; font-size: 0.84rem; }

/* ---------------- flip clock ---------------- */
.flipclock {
  display: flex; align-items: flex-start; justify-content: center;
  gap: 14px; flex-wrap: wrap; margin: 10px 0 20px;
}
.flip-group { display: flex; flex-direction: column; align-items: center; gap: 12px; }
.flip-digits { display: flex; gap: 6px; }
.flip-colon { font-family: 'IBM Plex Mono', monospace; font-size: clamp(1.6rem, 4vw, 2.6rem); color: #5b6072; align-self: center; margin-top: -20px; }
.flip-label { font-family: 'IBM Plex Mono', monospace; font-size: 0.68rem; letter-spacing: .1em; text-transform: uppercase; color: #9aa0b5; }

.flip-digit {
  position: relative;
  width: clamp(42px, 7vw, 62px);
  height: clamp(58px, 9.5vw, 84px);
  perspective: 300px;
  font-family: 'IBM Plex Mono', monospace;
  font-size: clamp(1.6rem, 4vw, 2.6rem);
  font-weight: 500;
  color: #f7f5ef;
}
.flip-digit .face {
  position: absolute; inset: 0;
  display: flex; align-items: center; justify-content: center;
  background: linear-gradient(180deg, var(--dusk-surface-2), var(--dusk-surface));
  border: 1px solid #ffffff1a;
  border-radius: 8px;
  backface-visibility: hidden;
}
.flip-digit .face-front { transform: rotateX(0deg); z-index: 2; }
.flip-digit .face-back { transform: rotateX(180deg); }
.flip-digit.flipping .face-front { transition: transform .5s cubic-bezier(.5,0,.5,1); transform: rotateX(-180deg); }
.flip-digit.flipping .face-back { transition: transform .5s cubic-bezier(.5,0,.5,1); transform: rotateX(0deg); }
.flip-digit::after {
  content: ""; position: absolute; left: 0; right: 0; top: 50%; height: 1px;
  background: #00000055; z-index: 3;
}

.countdown-follow { text-align: center; color: #9aa0b5; font-size: 0.9rem; margin-top: 8px; }
.countdown-follow a { color: var(--dusk-accent-2); font-weight: 600; }

/* ---------------- careers ---------------- */
.careers-grid {
  display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 48px; align-items: center;
}
.careers-grid h2 { font-size: clamp(1.7rem, 3vw, 2.3rem); margin: 10px 0 14px; }
.role-tags { display: flex; flex-wrap: wrap; gap: 10px; }
.role-tags span {
  font-family: 'IBM Plex Mono', monospace; font-size: 0.76rem; letter-spacing: .03em;
  padding: 10px 16px; border-radius: 999px;
  background: var(--accent-2-soft); color: var(--accent-2);
  border: 1px solid transparent;
}
.role-tags span:nth-child(even) { background: var(--accent-soft); color: var(--accent); }

/* ---------------- visit ---------------- */
.visit-grid { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: 32px; }
.visit-info { display: flex; flex-direction: column; gap: 18px; }
.vi-row { display: flex; flex-direction: column; gap: 4px; padding-bottom: 14px; border-bottom: 1px solid var(--border); }
.vi-k { font-family: 'IBM Plex Mono', monospace; font-size: 0.66rem; letter-spacing: .08em; text-transform: uppercase; color: var(--text-muted); }
.vi-v { font-size: 1rem; font-weight: 600; }
.vi-v a:hover { color: var(--accent-2); }
.visit-map {
  border-radius: 16px; overflow: hidden; border: 1px solid var(--border);
  min-height: 320px; background: var(--surface-2);
}
.visit-map iframe { width: 100%; height: 100%; min-height: 320px; border: 0; }

/* ---------------- footer ---------------- */
.site-footer { background: var(--navy-deep); color: #cfd2e0; padding: 56px 0 0; }
.footer-grid {
  display: grid; grid-template-columns: 1.2fr 1fr 1fr; gap: 24px;
  padding-bottom: 40px; border-bottom: 1px solid #ffffff14;
}
.footer-tagline { color: #8b90a3; font-size: 0.88rem; margin: 10px 0 0; }
.footer-links, .footer-contact { display: flex; flex-direction: column; gap: 10px; }
.footer-links a, .footer-contact a { color: #b7bad0; font-size: 0.9rem; transition: color .2s ease; }
.footer-links a:hover, .footer-contact a:hover { color: var(--dusk-accent); }
.footer-bottom {
  display: flex; justify-content: space-between; flex-wrap: wrap; gap: 8px;
  padding: 20px 24px 26px;
  font-family: 'IBM Plex Mono', monospace; font-size: 0.72rem; color: #6b7086;
  max-width: 1120px; margin: 0 auto;
}

/* ---------------- responsive ---------------- */
@media (max-width: 980px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-art { order: -1; transform: scale(.85); margin-bottom: -20px; }
  .vgrid { grid-template-columns: repeat(2, 1fr); }
  .careers-grid { grid-template-columns: 1fr; }
  .visit-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; gap: 28px; }
}

@media (max-width: 760px) {
  .nav-links { display: none; }
  .nav-toggle { display: flex; }
  .site-nav.menu-open .nav-links {
    display: flex; flex-direction: column; gap: 0;
    position: absolute; top: 100%; left: 0; right: 0;
    background: #10141fee; backdrop-filter: blur(10px);
    padding: 10px 24px 20px; border-bottom: 1px solid #ffffff14;
  }
  .site-nav.menu-open .nav-links a { padding: 12px 0; border-bottom: 1px solid #ffffff10; }
  .vgrid { grid-template-columns: 1fr; }
  .factstrip { grid-template-columns: 1fr; }
  .hero { padding-top: 120px; }
  .wayfind-panel { padding: 26px; }
  .frow { grid-template-columns: 40px 1fr; row-gap: 4px; }
  .fdesc { grid-column: 2 / 3; }
}
