/* =============================================================
   117 Miners Way — Retro 80's Synthwave + Colorado Theme
   ============================================================= */

:root {
  --pink:      #ff3df0;
  --magenta:   #d22dff;
  --purple:    #7a2dff;
  --blue:      #2d6bff;
  --cyan:      #2dffe3;
  --green:     #5cff7a;
  --yellow:    #ffd23d;
  --orange:    #ff7a3d;
  --red:       #ff3d5c;

  --ink:       #ffffff;
  --ink-dim:   #c9b8ff;
  --bg-deep:   #050010;
  --bg-1:      #0a0428;
  --bg-2:      #14063f;
  --bg-3:      #1d0a55;

  --glow-pink:   0 0 6px #ff3df0, 0 0 18px #ff3df0, 0 0 32px rgba(255,61,240,0.6);
  --glow-cyan:   0 0 6px #2dffe3, 0 0 18px #2dffe3, 0 0 32px rgba(45,255,227,0.5);
  --glow-yellow: 0 0 6px #ffd23d, 0 0 18px #ffd23d;

  --rainbow: linear-gradient(
    90deg,
    #ff3d5c 0%,
    #ff7a3d 14%,
    #ffd23d 28%,
    #5cff7a 42%,
    #2dffe3 57%,
    #2d6bff 71%,
    #7a2dff 85%,
    #ff3df0 100%
  );

  --font-display: 'Monoton', 'Audiowide', system-ui, sans-serif;
  --font-accent:  'Audiowide', 'Monoton', system-ui, sans-serif;
  --font-mono:    'VT323', 'Courier New', monospace;
  --font-body:    'Inter', system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  background: var(--bg-deep);
  color: var(--ink);
  font-family: var(--font-body);
  line-height: 1.6;
  overflow-x: hidden;
}

a { color: var(--cyan); text-decoration: none; }
a:hover { color: var(--pink); }

.container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 24px;
}

/* =============================================================
   HERO
   ============================================================= */

.hero {
  position: relative;
  height: 100vh;
  min-height: 720px;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  isolation: isolate;
}

.hero-sky {
  position: absolute; inset: 0;
  background:
    radial-gradient(ellipse at 50% 80%, rgba(255,61,240,0.35), transparent 60%),
    linear-gradient(180deg,
      #060116 0%,
      #1a0540 30%,
      #4a0e6e 55%,
      #b6256e 75%,
      #ff7a3d 90%,
      #ffd23d 100%);
  z-index: -3;
}

/* Stars */
.hero-sky::before {
  content: "";
  position: absolute; inset: 0;
  background-image:
    radial-gradient(1px 1px at 12% 18%, #fff, transparent),
    radial-gradient(1px 1px at 24% 11%, #fff, transparent),
    radial-gradient(1.5px 1.5px at 37% 26%, #fff, transparent),
    radial-gradient(1px 1px at 52% 15%, #fff, transparent),
    radial-gradient(1px 1px at 68% 8%,  #fff, transparent),
    radial-gradient(1.5px 1.5px at 79% 22%, #fff, transparent),
    radial-gradient(1px 1px at 89% 12%, #fff, transparent),
    radial-gradient(1px 1px at 5% 30%,  #fff, transparent),
    radial-gradient(1px 1px at 45% 35%, #fff, transparent),
    radial-gradient(1px 1px at 60% 32%, #fff, transparent),
    radial-gradient(1.5px 1.5px at 92% 38%, #fff, transparent);
  opacity: 0.6;
  animation: twinkle 5s ease-in-out infinite alternate;
}

@keyframes twinkle {
  from { opacity: 0.35; }
  to   { opacity: 0.75; }
}

/* 80's sun with horizontal slits */
.hero-sun {
  position: absolute;
  left: 50%;
  bottom: 35%;
  transform: translateX(-50%);
  width: 460px;
  height: 460px;
  border-radius: 50%;
  background: linear-gradient(180deg,
    #ffd23d 0%,
    #ff7a3d 40%,
    #ff3d8a 75%,
    #d22dff 100%);
  box-shadow:
    0 0 60px rgba(255, 122, 61, 0.65),
    0 0 140px rgba(255, 61, 138, 0.45);
  z-index: -2;
  -webkit-mask-image: repeating-linear-gradient(
    180deg,
    #000 0px, #000 60%,
    transparent 60%, transparent calc(60% + 6px),
    #000 calc(60% + 6px), #000 calc(60% + 18px),
    transparent calc(60% + 18px), transparent calc(60% + 26px),
    #000 calc(60% + 26px), #000 calc(60% + 38px),
    transparent calc(60% + 38px), transparent calc(60% + 50px),
    #000 calc(60% + 50px), #000 calc(60% + 66px),
    transparent calc(60% + 66px), transparent calc(60% + 82px),
    #000 calc(60% + 82px), #000 calc(60% + 100%)
  );
          mask-image: repeating-linear-gradient(
    180deg,
    #000 0px, #000 60%,
    transparent 60%, transparent calc(60% + 6px),
    #000 calc(60% + 6px), #000 calc(60% + 18px),
    transparent calc(60% + 18px), transparent calc(60% + 26px),
    #000 calc(60% + 26px), #000 calc(60% + 38px),
    transparent calc(60% + 38px), transparent calc(60% + 50px),
    #000 calc(60% + 50px), #000 calc(60% + 66px),
    transparent calc(60% + 66px), transparent calc(60% + 82px),
    #000 calc(60% + 82px), #000 calc(60% + 100%)
  );
}

/* Mountain layers */
.hero-mountains {
  position: absolute;
  left: 0; right: 0;
  bottom: 30%;
  z-index: -1;
  height: 280px;
}

.mtn {
  position: absolute;
  left: 0; right: 0;
  bottom: 0;
  width: 100%;
  height: 100%;
}
.mtn-back  { fill: #2c0f5a; opacity: 0.9; bottom: 30px; height: 75%; }
.mtn-mid   { fill: #1a063a; opacity: 0.95; bottom: 10px; height: 65%; }
.mtn-front { fill: #08001f; height: 55%; }

/* Snowcap highlights via filter */
.mtn-back  { filter: drop-shadow(0 -1px 0 rgba(255,255,255,0.15)); }
.mtn-mid   { filter: drop-shadow(0 -1px 0 rgba(255,255,255,0.18)); }

/* Perspective grid floor */
.hero-grid {
  position: absolute;
  left: -10%; right: -10%;
  bottom: 0;
  height: 30vh;
  min-height: 220px;
  background:
    linear-gradient(transparent 0%, var(--bg-deep) 95%),
    repeating-linear-gradient(
      90deg,
      transparent 0,
      transparent calc(5% - 2px),
      rgba(255, 61, 240, 0.85) calc(5% - 2px),
      rgba(255, 61, 240, 0.85) 5%
    ),
    repeating-linear-gradient(
      0deg,
      transparent 0,
      transparent calc(10% - 2px),
      rgba(45, 255, 227, 0.6) calc(10% - 2px),
      rgba(45, 255, 227, 0.6) 10%
    ),
    linear-gradient(180deg, #1d0a55 0%, #050010 100%);
  transform: perspective(420px) rotateX(58deg);
  transform-origin: bottom;
  z-index: -1;
}

/* Hero content */
.hero-content {
  position: relative;
  text-align: center;
  padding: 24px;
  max-width: 1000px;
}

.kicker {
  font-family: var(--font-accent);
  font-size: 0.85rem;
  letter-spacing: 0.4em;
  color: var(--cyan);
  text-shadow: var(--glow-cyan);
  margin-bottom: 28px;
}

.hero-title {
  font-family: var(--font-display);
  font-size: clamp(3rem, 10vw, 8rem);
  font-weight: 400;
  letter-spacing: 0.05em;
  line-height: 0.95;
  margin: 0;
  color: #fff;
  background: var(--rainbow);
  background-size: 200% auto;
  -webkit-background-clip: text;
          background-clip: text;
  -webkit-text-fill-color: transparent;
  filter:
    drop-shadow(0 0 8px rgba(255, 61, 240, 0.8))
    drop-shadow(0 0 24px rgba(122, 45, 255, 0.6));
  animation: rainbow-flow 8s linear infinite;
  position: relative;
}

@keyframes rainbow-flow {
  from { background-position: 0% center; }
  to   { background-position: 200% center; }
}

.hero-sub {
  font-family: var(--font-accent);
  font-size: clamp(0.9rem, 2vw, 1.4rem);
  letter-spacing: 0.5em;
  color: #fff;
  text-shadow: var(--glow-pink);
  margin-top: 18px;
}

.hero-rainbow {
  height: 4px;
  width: min(520px, 80%);
  margin: 28px auto 32px;
  background: var(--rainbow);
  background-size: 200% auto;
  animation: rainbow-flow 6s linear infinite;
  border-radius: 4px;
  box-shadow: 0 0 18px rgba(255, 61, 240, 0.6), 0 0 30px rgba(45, 255, 227, 0.4);
}

.cta {
  display: inline-block;
  padding: 14px 32px;
  font-family: var(--font-accent);
  letter-spacing: 0.25em;
  font-size: 0.95rem;
  color: #fff;
  text-decoration: none;
  background: rgba(8, 0, 31, 0.55);
  border: 2px solid var(--cyan);
  border-radius: 4px;
  box-shadow:
    0 0 0 1px rgba(45, 255, 227, 0.2),
    0 0 24px rgba(45, 255, 227, 0.4),
    inset 0 0 18px rgba(45, 255, 227, 0.15);
  transition: transform 0.2s ease, box-shadow 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}
.cta span { display: inline-block; margin-left: 8px; }
.cta:hover {
  color: var(--pink);
  border-color: var(--pink);
  box-shadow:
    0 0 0 1px rgba(255, 61, 240, 0.3),
    0 0 28px rgba(255, 61, 240, 0.6),
    inset 0 0 22px rgba(255, 61, 240, 0.2);
  transform: translateY(-2px);
}

/* =============================================================
   SECTIONS
   ============================================================= */

.section {
  position: relative;
  padding: 90px 0 80px;
  background:
    radial-gradient(ellipse at 50% 0%, rgba(122, 45, 255, 0.18), transparent 60%),
    linear-gradient(180deg, var(--bg-1) 0%, var(--bg-deep) 100%);
}

.section-badge {
  font-family: var(--font-mono);
  font-size: 1.05rem;
  letter-spacing: 0.3em;
  color: var(--yellow);
  text-shadow: var(--glow-yellow);
  text-align: center;
  margin-bottom: 14px;
}

.section-title {
  font-family: var(--font-display);
  font-size: clamp(2rem, 5vw, 3.4rem);
  font-weight: 400;
  letter-spacing: 0.04em;
  text-align: center;
  margin: 0 0 18px;
  background: linear-gradient(90deg, #fff, var(--cyan), #fff);
  background-size: 200% auto;
  -webkit-background-clip: text;
          background-clip: text;
  -webkit-text-fill-color: transparent;
  filter: drop-shadow(0 0 8px rgba(45, 255, 227, 0.5));
  animation: rainbow-flow 8s linear infinite;
}

.section-lede {
  text-align: center;
  color: var(--ink-dim);
  max-width: 640px;
  margin: 0 auto 48px;
  font-size: 1.05rem;
}

/* =============================================================
   ABOUT
   ============================================================= */

.about-grid {
  display: grid;
  grid-template-columns: 1fr 320px;
  gap: 48px;
  margin-top: 40px;
}

.about-copy p {
  font-size: 1.08rem;
  color: var(--ink-dim);
}

.about-copy .lede {
  font-size: 1.2rem;
  color: var(--ink);
  border-left: 3px solid var(--pink);
  padding-left: 18px;
  margin-top: 0;
  box-shadow: -3px 0 14px rgba(255, 61, 240, 0.25);
}

.about-copy strong { color: var(--cyan); }
.about-copy em { color: var(--ink-dim); opacity: 0.7; }

.fact-card {
  background: linear-gradient(180deg, rgba(20, 6, 63, 0.85), rgba(8, 0, 31, 0.9));
  border: 1px solid rgba(255, 61, 240, 0.35);
  border-radius: 6px;
  padding: 24px 24px 16px;
  position: relative;
  box-shadow:
    0 0 0 1px rgba(45, 255, 227, 0.08),
    0 0 24px rgba(122, 45, 255, 0.35);
}

.fact-card::before {
  content: "";
  position: absolute;
  top: -1px; left: -1px; right: -1px;
  height: 3px;
  background: var(--rainbow);
  background-size: 200% auto;
  animation: rainbow-flow 6s linear infinite;
  border-radius: 6px 6px 0 0;
}

.fact-card h3 {
  margin: 0 0 14px;
  font-family: var(--font-accent);
  font-size: 1.1rem;
  letter-spacing: 0.2em;
  color: var(--cyan);
  text-shadow: var(--glow-cyan);
}

.fact-card dl {
  margin: 0;
  display: grid;
  grid-template-columns: auto 1fr;
  row-gap: 8px;
  column-gap: 16px;
  font-family: var(--font-mono);
  font-size: 1.15rem;
}

.fact-card dt {
  color: var(--yellow);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-size: 0.95rem;
}

.fact-card dd {
  margin: 0;
  color: var(--ink);
}

.status-pill {
  display: inline-block;
  padding: 1px 10px;
  background: rgba(92, 255, 122, 0.15);
  border: 1px solid var(--green);
  border-radius: 999px;
  color: var(--green) !important;
  font-size: 0.95rem;
  text-shadow: 0 0 6px rgba(92, 255, 122, 0.6);
}

/* =============================================================
   DIVIDER
   ============================================================= */

.divider-rainbow {
  height: 4px;
  background: var(--rainbow);
  background-size: 200% auto;
  animation: rainbow-flow 6s linear infinite;
  box-shadow: 0 0 22px rgba(255, 61, 240, 0.5);
}

/* =============================================================
   GALLERY
   ============================================================= */

.gallery-section {
  background:
    radial-gradient(ellipse at 50% 0%, rgba(255, 61, 240, 0.18), transparent 60%),
    linear-gradient(180deg, var(--bg-2) 0%, var(--bg-1) 100%);
}

/* Masonry-style multi-column gallery — preserves each photo's native aspect ratio */
.gallery {
  column-count: 3;
  column-gap: 22px;
  margin-top: 8px;
}

.tile {
  display: block;
  position: relative;
  break-inside: avoid;
  margin: 0 0 22px;
  border-radius: 6px;
  overflow: hidden;
  isolation: isolate;
  text-decoration: none;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
  background: #0a0428;
  border: 1px solid rgba(45, 255, 227, 0.35);
  box-shadow: 0 0 0 1px rgba(255, 61, 240, 0.05);
}

/* Rainbow border ring */
.tile::before {
  content: "";
  position: absolute;
  inset: -2px;
  border-radius: 8px;
  padding: 2px;
  background: var(--rainbow);
  background-size: 200% auto;
  animation: rainbow-flow 10s linear infinite;
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
          mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
          mask-composite: exclude;
  opacity: 0.6;
  z-index: 2;
  pointer-events: none;
  transition: opacity 0.25s ease;
}

.tile img {
  display: block;
  width: 100%;
  height: auto;
  image-orientation: from-image;
  transition: transform 0.4s ease, filter 0.3s ease;
}

.tile:hover {
  transform: translateY(-4px);
  box-shadow: 0 14px 40px rgba(255, 61, 240, 0.35), 0 0 60px rgba(45, 255, 227, 0.25);
}

.tile:hover::before { opacity: 1; }
.tile:hover img { transform: scale(1.025); filter: saturate(1.1); }

/* =============================================================
   VIDEO TOUR
   ============================================================= */

.video-section {
  background:
    radial-gradient(ellipse at 50% 0%, rgba(45, 107, 255, 0.22), transparent 60%),
    linear-gradient(180deg, var(--bg-1) 0%, var(--bg-2) 100%);
}

.video-wrap {
  position: relative;
  max-width: 960px;
  margin: 30px auto 0;
  padding: 8px;
  background: rgba(8, 0, 31, 0.85);
  border-radius: 10px;
  box-shadow:
    0 0 0 1px rgba(255, 61, 240, 0.35),
    0 0 36px rgba(122, 45, 255, 0.4),
    0 20px 60px rgba(0, 0, 0, 0.5);
  isolation: isolate;
}

.video-wrap::before {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: var(--rainbow);
  background-size: 200% auto;
  animation: rainbow-flow 6s linear infinite;
  border-radius: 10px 10px 0 0;
  z-index: 1;
}

.video-wrap video {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 6px;
  background: #000;
  outline: none;
}

/* =============================================================
   LINKS
   ============================================================= */

.links-section {
  background:
    radial-gradient(ellipse at 50% 0%, rgba(45, 255, 227, 0.18), transparent 60%),
    linear-gradient(180deg, var(--bg-1) 0%, var(--bg-deep) 100%);
}

.links-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 18px;
  margin-top: 8px;
}

.link-card {
  display: block;
  padding: 24px 22px;
  background: rgba(20, 6, 63, 0.7);
  border: 1px solid rgba(122, 45, 255, 0.5);
  border-radius: 8px;
  color: var(--ink);
  text-decoration: none;
  text-align: center;
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease, background 0.2s ease;
  position: relative;
  overflow: hidden;
}

.link-card::before {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: var(--rainbow);
  background-size: 200% auto;
  animation: rainbow-flow 6s linear infinite;
  opacity: 0.85;
}

.link-card:hover {
  transform: translateY(-3px);
  border-color: var(--pink);
  background: rgba(35, 10, 80, 0.85);
  box-shadow: 0 8px 28px rgba(255, 61, 240, 0.35), 0 0 0 1px rgba(45, 255, 227, 0.2);
}

.link-emoji {
  font-size: 2.4rem;
  margin-bottom: 6px;
  filter: drop-shadow(0 0 8px rgba(45, 255, 227, 0.5));
}

.link-title {
  font-family: var(--font-accent);
  letter-spacing: 0.15em;
  color: #fff;
  margin: 4px 0 6px;
}

.link-sub {
  font-family: var(--font-mono);
  font-size: 1rem;
  color: var(--ink-dim);
  letter-spacing: 0.1em;
}

.placeholder-link {
  opacity: 0.7;
  cursor: not-allowed;
}
.placeholder-link:hover { transform: none; border-color: rgba(122, 45, 255, 0.5); box-shadow: none; }
.placeholder-link .link-sub { color: var(--yellow); }

/* =============================================================
   REALTOR
   ============================================================= */

.realtor-section {
  background:
    radial-gradient(ellipse at 50% 0%, rgba(255, 210, 61, 0.12), transparent 60%),
    linear-gradient(180deg, var(--bg-2) 0%, var(--bg-1) 100%);
}

.realtor-card {
  display: grid;
  grid-template-columns: 120px 1fr;
  gap: 28px;
  align-items: center;
  max-width: 720px;
  margin: 30px auto 0;
  padding: 28px;
  background: rgba(8, 0, 31, 0.7);
  border: 1px solid rgba(255, 61, 240, 0.35);
  border-radius: 10px;
  box-shadow: 0 0 32px rgba(122, 45, 255, 0.3);
  position: relative;
  overflow: hidden;
}

.realtor-card::before {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: var(--rainbow);
  background-size: 200% auto;
  animation: rainbow-flow 6s linear infinite;
}

.realtor-avatar {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  background:
    radial-gradient(circle at 30% 30%, #ffd23d, #ff7a3d 50%, #d22dff);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-size: 4rem;
  color: #fff;
  text-shadow: 0 0 16px rgba(0,0,0,0.5);
  box-shadow: 0 0 24px rgba(255, 122, 61, 0.45);
}

.realtor-pending {
  display: inline-block;
  font-family: var(--font-mono);
  letter-spacing: 0.25em;
  color: var(--yellow);
  text-shadow: var(--glow-yellow);
  background: rgba(255, 210, 61, 0.08);
  border: 1px dashed var(--yellow);
  border-radius: 4px;
  padding: 6px 14px;
  margin-bottom: 14px;
}

.realtor-body p {
  margin: 0;
  color: var(--ink-dim);
  font-style: italic;
}

/* =============================================================
   FOOTER
   ============================================================= */

.footer {
  background: #030008;
  padding: 36px 0 20px;
  border-top: 1px solid rgba(122, 45, 255, 0.25);
}

.footer-inner {
  text-align: center;
  position: relative;
}

.footer-brand {
  font-family: var(--font-display);
  font-size: 1.6rem;
  letter-spacing: 0.1em;
  background: var(--rainbow);
  background-size: 200% auto;
  -webkit-background-clip: text;
          background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: rainbow-flow 8s linear infinite;
}

.footer-meta {
  font-family: var(--font-mono);
  font-size: 1.05rem;
  letter-spacing: 0.2em;
  color: var(--ink-dim);
  margin-top: 8px;
}

.footer-rainbow {
  height: 3px;
  width: 240px;
  margin: 18px auto 0;
  background: var(--rainbow);
  background-size: 200% auto;
  animation: rainbow-flow 6s linear infinite;
  border-radius: 3px;
}

/* =============================================================
   RESPONSIVE
   ============================================================= */

@media (max-width: 860px) {
  .hero { min-height: 620px; }
  .hero-sun { width: 320px; height: 320px; bottom: 38%; }
  .hero-mountains { height: 210px; bottom: 32%; }

  .about-grid { grid-template-columns: 1fr; gap: 32px; }
  .gallery { column-count: 2; column-gap: 16px; }
  .tile { margin-bottom: 16px; }
  .realtor-card {
    grid-template-columns: 1fr;
    text-align: center;
    justify-items: center;
  }
  .realtor-avatar { margin: 0 auto; }
}

@media (max-width: 520px) {
  .gallery { column-count: 1; }
  .kicker { letter-spacing: 0.25em; }
  .hero-sub { letter-spacing: 0.3em; }
  .section { padding: 64px 0 56px; }
}

/* Honor reduced motion */
@media (prefers-reduced-motion: reduce) {
  .hero-title,
  .section-title,
  .footer-brand,
  .hero-rainbow,
  .divider-rainbow,
  .fact-card::before,
  .link-card::before,
  .realtor-card::before,
  .tile::before,
  .video-wrap::before,
  .footer-rainbow {
    animation: none !important;
  }
  .hero-sky::before { animation: none !important; }
}
