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

:root {
  /* ---- spacing scale (8pt grid, 4pt minor for fine details) ---- */
  --space-1: 4px;
  --space-2: 8px;
  --space-3: 12px;
  --space-4: 16px;
  --space-5: 24px;
  --space-6: 32px;
  --space-7: 48px;
  --space-8: 64px;
  --space-9: 96px;
  --space-10: 128px;

  /* ---- type scale ---- */
  --text-xs:   0.75rem;   /* 12 */
  --text-sm:   0.875rem;  /* 14 */
  --text-base: 1rem;      /* 16 */
  --text-md:   1.125rem;  /* 18 */
  --text-lg:   1.25rem;   /* 20 */
  --text-xl:   1.5rem;    /* 24 */
  --text-2xl:  2rem;      /* 32 */
  --text-3xl:  2.5rem;    /* 40 */
  --text-4xl:  3rem;      /* 48 */
  --text-5xl:  4rem;      /* 64 */
  --text-6xl:  6rem;      /* 96 */
  --text-7xl:  8rem;      /* 128 */

  /* ---- radii ---- */
  --radius-sm:   4px;
  --radius:      8px;
  --radius-lg:  12px;
  --radius-pill: 999px;

  /* ---- color palette (synthwave default) ---- */
  --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%
  );

  /* ---- fonts (2-per-theme system: display + body, plus mono for accents) ---- */
  --font-display: 'Monoton', system-ui, sans-serif;
  --font-body:    'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --font-mono:    'VT323', 'Courier New', monospace;

  /* ---- focus ring (themable) ---- */
  --focus-ring:   var(--cyan);
  --focus-offset: 3px;
}

* { 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: var(--space-5);
  max-width: 1000px;
}

.kicker {
  font-family: var(--font-mono);
  font-size: var(--text-sm);
  letter-spacing: 0.4em;
  color: var(--cyan);
  text-shadow: var(--glow-cyan);
  margin-bottom: var(--space-6);
}

.hero-title {
  font-family: var(--font-display);
  font-size: clamp(var(--text-2xl), 10vw, var(--text-7xl));
  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-mono);
  font-size: clamp(var(--text-sm), 2vw, var(--text-lg));
  letter-spacing: 0.5em;
  color: #fff;
  text-shadow: var(--glow-pink);
  margin-top: var(--space-4);
}

.hero-rainbow {
  height: var(--space-1);
  width: min(520px, 80%);
  margin: var(--space-6) auto var(--space-6);
  background: var(--rainbow);
  background-size: 200% auto;
  animation: rainbow-flow 6s linear infinite;
  border-radius: var(--radius-sm);
  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: var(--space-4) var(--space-6);
  font-family: var(--font-mono);
  letter-spacing: 0.25em;
  font-size: var(--text-sm);
  color: #fff;
  text-decoration: none;
  background: rgba(8, 0, 31, 0.55);
  border: 2px solid var(--cyan);
  border-radius: var(--radius-sm);
  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: var(--space-2); }
.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: var(--space-9) 0 var(--space-8);
  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: var(--text-base);
  letter-spacing: 0.3em;
  color: var(--yellow);
  text-shadow: var(--glow-yellow);
  text-align: center;
  margin-bottom: var(--space-4);
}

.section-title {
  font-family: var(--font-display);
  font-size: clamp(var(--text-2xl), 5vw, var(--text-4xl));
  font-weight: 400;
  letter-spacing: 0.04em;
  text-align: center;
  margin: 0 0 var(--space-4);
  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 var(--space-7);
  font-size: var(--text-base);
}

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

.about-grid {
  display: grid;
  grid-template-columns: 1fr 320px;
  gap: var(--space-7);
  margin-top: var(--space-7);
}

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

.about-copy .lede {
  font-size: var(--text-lg);
  color: var(--ink);
  border-left: 4px solid var(--pink);
  padding-left: var(--space-4);
  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: var(--radius);
  padding: var(--space-5) var(--space-5) var(--space-4);
  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: var(--space-1);
  background: var(--rainbow);
  background-size: 200% auto;
  animation: rainbow-flow 6s linear infinite;
  border-radius: var(--radius) var(--radius) 0 0;
}

.fact-card h3 {
  margin: 0 0 var(--space-4);
  font-family: var(--font-mono);
  font-size: var(--text-md);
  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: var(--space-2);
  column-gap: var(--space-4);
  font-family: var(--font-mono);
  font-size: var(--text-md);
}

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

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

.status-pill {
  display: inline-block;
  padding: 2px var(--space-3);
  background: rgba(92, 255, 122, 0.15);
  border: 1px solid var(--green);
  border-radius: var(--radius-pill);
  color: var(--green) !important;
  font-size: var(--text-sm);
  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: var(--space-5);
  margin-top: var(--space-2);
}

.tile {
  display: block;
  position: relative;
  break-inside: avoid;
  margin: 0 0 var(--space-5);
  border-radius: var(--radius);
  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: var(--radius-lg);
  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: var(--space-6) auto 0;
  padding: var(--space-2);
  background: rgba(8, 0, 31, 0.85);
  border-radius: var(--radius);
  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: var(--space-1);
  background: var(--rainbow);
  background-size: 200% auto;
  animation: rainbow-flow 6s linear infinite;
  border-radius: var(--radius) var(--radius) 0 0;
  z-index: 1;
}

.video-wrap video {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 9;
  object-fit: contain;
  border-radius: var(--radius-sm);
  background: #000;
  outline: none;
}

.video-title {
  margin: var(--space-2) var(--space-2) var(--space-3);
  font-family: var(--font-mono);
  font-size: var(--text-md);
  letter-spacing: 0.2em;
  text-transform: uppercase;
  text-align: center;
  color: var(--cyan);
  text-shadow: var(--glow-cyan);
}

/* =============================================================
   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(224px, 1fr));
  gap: var(--space-4);
  margin-top: var(--space-2);
}

.link-card {
  display: block;
  padding: var(--space-5);
  background: rgba(20, 6, 63, 0.7);
  border: 1px solid rgba(122, 45, 255, 0.5);
  border-radius: var(--radius);
  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: var(--space-1);
  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: var(--text-3xl);
  margin-bottom: var(--space-2);
  filter: drop-shadow(0 0 8px rgba(45, 255, 227, 0.5));
}

.link-title {
  font-family: var(--font-mono);
  font-size: var(--text-md);
  letter-spacing: 0.15em;
  color: #fff;
  margin: var(--space-1) 0 var(--space-2);
}

.link-sub {
  font-family: var(--font-mono);
  font-size: var(--text-base);
  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: 128px 1fr;
  gap: var(--space-6);
  align-items: center;
  max-width: 720px;
  margin: var(--space-6) auto 0;
  padding: var(--space-6);
  background: rgba(8, 0, 31, 0.7);
  border: 1px solid rgba(255, 61, 240, 0.35);
  border-radius: var(--radius);
  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: var(--space-1);
  background: var(--rainbow);
  background-size: 200% auto;
  animation: rainbow-flow 6s linear infinite;
}

.realtor-avatar {
  width: 128px;
  height: 128px;
  border-radius: 50%;
  object-fit: cover;
  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: var(--text-5xl);
  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-name {
  font-family: var(--font-display);
  font-size: var(--text-2xl);
  letter-spacing: 0.04em;
  margin: 0;
  color: var(--ink);
}

.realtor-brokerage {
  font-family: var(--font-mono);
  font-size: var(--text-base);
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--yellow);
  text-shadow: var(--glow-yellow);
  margin-top: var(--space-1);
}

.realtor-contact {
  list-style: none;
  margin: var(--space-4) 0 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
}

.realtor-contact a {
  color: var(--ink-dim);
  text-decoration: none;
  font-size: var(--text-md);
  border-bottom: 1px solid transparent;
  transition: color 0.2s ease, border-color 0.2s ease;
}

.realtor-contact a:hover {
  color: var(--ink);
  border-bottom-color: currentColor;
}

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

.footer {
  background: #030008;
  padding: var(--space-6) 0 var(--space-5);
  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: var(--text-xl);
  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: var(--text-base);
  letter-spacing: 0.2em;
  color: var(--ink-dim);
  margin-top: var(--space-2);
}

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

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

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

  .about-grid { grid-template-columns: 1fr; gap: var(--space-6); }
  .gallery { column-count: 2; column-gap: var(--space-4); }
  .tile { margin-bottom: var(--space-4); }
  .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: var(--space-8) 0 var(--space-7); }
}

/* =============================================================
   FOCUS VISIBLE (themable via --focus-ring + --focus-offset)
   ============================================================= */

a:focus-visible,
.cta:focus-visible,
.link-card:focus-visible,
.tile:focus-visible,
.theme-opt:focus-visible,
video:focus-visible {
  outline: 3px solid var(--focus-ring);
  outline-offset: var(--focus-offset);
  border-radius: var(--radius);
}

/* Skip the rounded radius on already-rounded controls so the outline hugs them */
.theme-opt:focus-visible { border-radius: var(--radius-pill); }

/* 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; }
  .theme-thumb { transition: none !important; }
  .cta,
  .link-card,
  .tile,
  .tile img { transition: none !important; }
}

/* =============================================================
   THEME SWITCHER (sliding segmented control, top-right)
   ============================================================= */

/* Subtle theme switcher, parked at the very bottom of the page */
.theme-switch-row {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: var(--space-3);
  margin-top: var(--space-6);
  opacity: 0.55;
  transition: opacity 0.3s ease;
}
.theme-switch-row:hover,
.theme-switch-row:focus-within { opacity: 1; }

.theme-switch-label {
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--ink-dim);
}

.theme-switcher {
  position: relative;
  display: flex;
  padding: var(--space-1);
  border-radius: var(--radius-pill);
  background: rgba(8, 0, 31, 0.7);
  backdrop-filter: blur(10px) saturate(140%);
  -webkit-backdrop-filter: blur(10px) saturate(140%);
  border: 1px solid rgba(255, 61, 240, 0.45);
  box-shadow: 0 4px 16px rgba(0,0,0,0.25);
  font-family: var(--font-mono);
}

.theme-thumb {
  position: absolute;
  top: var(--space-1);
  left: var(--space-1);
  height: calc(100% - var(--space-2));
  width: calc((100% - var(--space-2)) / 4);
  background: linear-gradient(135deg, var(--pink), var(--cyan));
  border-radius: var(--radius-pill);
  opacity: 0.9;
  box-shadow: 0 0 12px var(--pink), 0 0 22px rgba(45,255,227,0.4);
  transition: transform 0.32s cubic-bezier(.5,1.6,.4,1), background 0.3s ease, box-shadow 0.3s ease;
  z-index: 0;
  pointer-events: none;
}

.theme-switcher[data-active-index="0"] .theme-thumb { transform: translateX(0); }
.theme-switcher[data-active-index="1"] .theme-thumb { transform: translateX(100%); }
.theme-switcher[data-active-index="2"] .theme-thumb { transform: translateX(200%); }
.theme-switcher[data-active-index="3"] .theme-thumb { transform: translateX(300%); }

.theme-opt {
  position: relative;
  z-index: 1;
  flex: 1 1 0;
  background: transparent;
  border: 0;
  color: rgba(255, 255, 255, 0.82);
  font-family: inherit;
  font-size: var(--text-xs);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  padding: var(--space-1) var(--space-3);
  min-height: 34px;
  min-width: 40px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  cursor: pointer;
  border-radius: var(--radius-pill);
  white-space: nowrap;
  transition: color 0.25s ease, text-shadow 0.25s ease;
}

.theme-opt:hover { color: #fff; }
.theme-opt[aria-checked="true"] {
  color: #fff;
  text-shadow: 0 0 6px rgba(255,255,255,0.6);
}

.theme-dot {
  display: inline-block;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  border: 1px solid rgba(0,0,0,0.25);
  box-shadow: 0 0 6px rgba(0,0,0,0.3);
  flex-shrink: 0;
}
.t-dot-alpine    { background: linear-gradient(135deg, #7aa7a3 0%, #9b7145 60%, #2e5a60 100%); }
.t-dot-synthwave { background: linear-gradient(135deg, #ff3df0 0%, #2dffe3 100%); }
.t-dot-daybreak  { background: linear-gradient(135deg, #ffd2a8 0%, #d97c8e 100%); }
.t-dot-arcade    {
  background:
    linear-gradient(135deg, transparent 25%, #ffd900 25% 50%, transparent 50% 75%, #ff0040 75%),
    linear-gradient(45deg, #00ffff, #ff00aa);
  background-size: 6px 6px, 100% 100%;
  border-radius: 2px;
  image-rendering: pixelated;
}

@media (max-width: 520px) {
  .theme-name { display: none; }
  .theme-opt { padding: var(--space-1) var(--space-2); min-width: 40px; }
}

/* =============================================================
   ========== DAYBREAK THEME (light, alpine sunrise) ==========
   ============================================================= */

[data-theme="daybreak"] {
  --pink:      #d97c8e;
  --magenta:   #b97aab;
  --purple:    #8588b8;
  --blue:      #5a7090;
  --cyan:      #94a872;
  --green:     #6b8e6b;
  --yellow:    #d4a82c;
  --orange:    #ff9c70;
  --red:       #c95c4c;

  --ink:       #2c3a5e;
  --ink-dim:   #5d6a85;
  --bg-deep:   #fff8ed;
  --bg-1:      #fdf2e0;
  --bg-2:      #f7e7d3;
  --bg-3:      #ecd6c0;

  --glow-pink:   0 1px 3px rgba(217, 124, 142, 0.35);
  --glow-cyan:   0 1px 3px rgba(148, 168, 114, 0.4);
  --glow-yellow: 0 1px 3px rgba(212, 168, 44, 0.4);

  --rainbow: linear-gradient(
    90deg,
    #ff9c70 0%,
    #ffc69a 20%,
    #ffd590 40%,
    #d4a8c8 60%,
    #94a872 80%,
    #d97c8e 100%
  );

  /* Daybreak two-font system: DM Serif Display (display) + Inter (everything else) */
  --font-display: 'DM Serif Display', Georgia, 'Times New Roman', serif;
  --font-body:    'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --font-mono:    'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;

  --focus-ring:   #2c3a5e;
  --focus-offset: 3px;
}

[data-theme="daybreak"] body {
  background: var(--bg-deep);
  color: var(--ink);
}

[data-theme="daybreak"] .hero-sky {
  background:
    radial-gradient(ellipse at 50% 88%, rgba(255, 168, 107, 0.55), transparent 65%),
    linear-gradient(180deg,
      #c5dff0 0%,
      #d9d2e8 32%,
      #ffd5b5 58%,
      #ffe9d5 82%,
      #fff4e0 100%);
}

[data-theme="daybreak"] .hero-sky::before { display: none; }

[data-theme="daybreak"] .hero-sun {
  background: radial-gradient(circle at 50% 50%, #fff8d8 0%, #ffe1a8 40%, #ffb582 75%, #ff9670 100%);
  box-shadow: 0 0 80px rgba(255, 168, 107, 0.55), 0 0 160px rgba(255, 168, 107, 0.3);
  -webkit-mask-image: none;
          mask-image: none;
  width: 380px;
  height: 380px;
  bottom: 40%;
}

[data-theme="daybreak"] .mtn-back  { fill: #8a9bc2; opacity: 0.7; filter: none; }
[data-theme="daybreak"] .mtn-mid   { fill: #5e7193; opacity: 0.85; filter: none; }
[data-theme="daybreak"] .mtn-front { fill: #364668; }

[data-theme="daybreak"] .hero-grid { display: none; }

[data-theme="daybreak"] .hero::after {
  content: "";
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 140px;
  background: linear-gradient(180deg, transparent, var(--bg-deep));
  z-index: 0;
  pointer-events: none;
}

[data-theme="daybreak"] .kicker {
  color: #5e7193;
  text-shadow: none;
}

[data-theme="daybreak"] .hero-title {
  background: none;
  -webkit-background-clip: initial;
          background-clip: initial;
  -webkit-text-fill-color: #2c3a5e;
  color: #2c3a5e;
  filter: drop-shadow(0 3px 8px rgba(255, 156, 112, 0.4));
  animation: none;
}

[data-theme="daybreak"] .hero-sub {
  color: #2c3a5e;
  text-shadow: none;
}

[data-theme="daybreak"] .hero-rainbow {
  background: linear-gradient(90deg, #ff9c70, #d4a8c8, #94a872, #d97c8e);
  box-shadow: 0 1px 4px rgba(217, 124, 142, 0.3);
  animation: none;
}

[data-theme="daybreak"] .cta {
  background: rgba(255, 255, 255, 0.5);
  border-color: #d97c8e;
  color: #2c3a5e;
  box-shadow:
    0 0 0 1px rgba(217, 124, 142, 0.15),
    0 2px 14px rgba(217, 124, 142, 0.2);
}
[data-theme="daybreak"] .cta:hover {
  color: #c95c4c;
  border-color: #c95c4c;
  background: rgba(255, 255, 255, 0.75);
  box-shadow: 0 4px 18px rgba(217, 124, 142, 0.35);
}

[data-theme="daybreak"] .section {
  background:
    radial-gradient(ellipse at 50% 0%, rgba(217, 124, 142, 0.12), transparent 60%),
    linear-gradient(180deg, var(--bg-1) 0%, var(--bg-deep) 100%);
}
[data-theme="daybreak"] .gallery-section {
  background:
    radial-gradient(ellipse at 50% 0%, rgba(255, 168, 107, 0.18), transparent 60%),
    linear-gradient(180deg, var(--bg-2) 0%, var(--bg-1) 100%);
}
[data-theme="daybreak"] .video-section {
  background:
    radial-gradient(ellipse at 50% 0%, rgba(148, 168, 114, 0.22), transparent 60%),
    linear-gradient(180deg, var(--bg-1) 0%, var(--bg-2) 100%);
}
[data-theme="daybreak"] .links-section {
  background:
    radial-gradient(ellipse at 50% 0%, rgba(133, 136, 184, 0.18), transparent 60%),
    linear-gradient(180deg, var(--bg-1) 0%, var(--bg-deep) 100%);
}
[data-theme="daybreak"] .realtor-section {
  background:
    radial-gradient(ellipse at 50% 0%, rgba(212, 168, 44, 0.16), transparent 60%),
    linear-gradient(180deg, var(--bg-2) 0%, var(--bg-1) 100%);
}

[data-theme="daybreak"] .section-badge {
  color: #b06820;
  text-shadow: none;
  font-family: var(--font-mono);
}

[data-theme="daybreak"] .section-title {
  font-family: 'DM Serif Display', 'Monoton', serif;
  background: none;
  -webkit-background-clip: initial;
          background-clip: initial;
  -webkit-text-fill-color: #2c3a5e;
  color: #2c3a5e;
  filter: none;
  animation: none;
  letter-spacing: 0;
  font-weight: 400;
}

[data-theme="daybreak"] .section-lede { color: var(--ink-dim); }

[data-theme="daybreak"] .about-copy .lede {
  border-left-color: #d97c8e;
  box-shadow: -3px 0 14px rgba(217, 124, 142, 0.15);
  color: #2c3a5e;
}
[data-theme="daybreak"] .about-copy strong { color: #b06820; }
[data-theme="daybreak"] .about-copy em { color: #8a92a6; }

[data-theme="daybreak"] .fact-card {
  background: rgba(255, 255, 255, 0.65);
  border: 1px solid rgba(217, 124, 142, 0.35);
  box-shadow: 0 4px 24px rgba(133, 136, 184, 0.15), 0 0 0 1px rgba(255, 255, 255, 0.6) inset;
}
[data-theme="daybreak"] .fact-card h3 {
  color: #b06820;
  text-shadow: none;
}
[data-theme="daybreak"] .fact-card dt { color: #8a92a6; }
[data-theme="daybreak"] .fact-card dd { color: #2c3a5e; }
[data-theme="daybreak"] .status-pill {
  background: rgba(107, 142, 107, 0.15);
  border-color: #6b8e6b;
  color: #4f7350 !important;
  text-shadow: none;
}

[data-theme="daybreak"] .divider-rainbow {
  background: linear-gradient(90deg, #ff9c70, #d4a8c8, #94a872, #d97c8e);
  box-shadow: 0 1px 6px rgba(217, 124, 142, 0.25);
  animation: none;
  height: 3px;
}

[data-theme="daybreak"] .tile {
  background: #fff;
  border: 1px solid rgba(133, 136, 184, 0.25);
  box-shadow: 0 4px 14px rgba(133, 136, 184, 0.15);
}
[data-theme="daybreak"] .tile::before { display: none; }
[data-theme="daybreak"] .tile:hover {
  box-shadow: 0 12px 32px rgba(217, 124, 142, 0.3), 0 0 0 1px rgba(217, 124, 142, 0.5);
}

[data-theme="daybreak"] .video-wrap {
  background: rgba(255, 255, 255, 0.7);
  border-radius: 10px;
  box-shadow:
    0 0 0 1px rgba(133, 136, 184, 0.25),
    0 8px 28px rgba(133, 136, 184, 0.2);
}
[data-theme="daybreak"] .video-wrap::before {
  background: linear-gradient(90deg, #ff9c70, #d97c8e, #94a872);
  animation: none;
}
[data-theme="daybreak"] .video-title {
  color: #b06820;
  text-shadow: none;
}

[data-theme="daybreak"] .link-card {
  background: rgba(255, 255, 255, 0.7);
  border: 1px solid rgba(133, 136, 184, 0.3);
  color: #2c3a5e;
  box-shadow: 0 2px 10px rgba(133, 136, 184, 0.12);
}
[data-theme="daybreak"] .link-card::before {
  background: linear-gradient(90deg, #ff9c70, #d97c8e, #94a872);
  animation: none;
}
[data-theme="daybreak"] .link-card:hover {
  background: #fff;
  border-color: #d97c8e;
  box-shadow: 0 8px 24px rgba(217, 124, 142, 0.28);
}
[data-theme="daybreak"] .link-emoji { filter: none; }
[data-theme="daybreak"] .link-title { color: #2c3a5e; }
[data-theme="daybreak"] .link-sub { color: #8a92a6; }

[data-theme="daybreak"] .realtor-card {
  background: rgba(255, 255, 255, 0.75);
  border: 1px solid rgba(217, 124, 142, 0.25);
  box-shadow: 0 8px 28px rgba(133, 136, 184, 0.18);
}
[data-theme="daybreak"] .realtor-card::before {
  background: linear-gradient(90deg, #ff9c70, #d97c8e, #94a872);
  animation: none;
}
[data-theme="daybreak"] .realtor-avatar {
  background: radial-gradient(circle at 30% 30%, #fff4d0, #ffc69a 55%, #d97c8e);
  color: #fff;
  box-shadow: 0 4px 16px rgba(217, 124, 142, 0.4);
}
[data-theme="daybreak"] .realtor-brokerage {
  color: #b06820;
  text-shadow: none;
}
[data-theme="daybreak"] .realtor-contact a { color: #5d6a85; }

[data-theme="daybreak"] .footer {
  background: #f3e7d2;
  border-top: 1px solid rgba(133, 136, 184, 0.2);
}
[data-theme="daybreak"] .footer-brand {
  background: linear-gradient(90deg, #c95c4c, #d97c8e, #94a872);
  -webkit-background-clip: text;
          background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: none;
}
[data-theme="daybreak"] .footer-meta { color: #5d6a85; }
[data-theme="daybreak"] .footer-rainbow {
  background: linear-gradient(90deg, #ff9c70, #d97c8e, #94a872);
  animation: none;
}

[data-theme="daybreak"] a { color: #b06820; }
[data-theme="daybreak"] a:hover { color: #c95c4c; }

[data-theme="daybreak"] .theme-switcher {
  background: rgba(255, 255, 255, 0.7);
  border: 1px solid rgba(217, 124, 142, 0.4);
  box-shadow: 0 4px 18px rgba(133, 136, 184, 0.25);
}
[data-theme="daybreak"] .theme-opt { color: #5d6a85; }
[data-theme="daybreak"] .theme-opt:hover { color: #2c3a5e; }
[data-theme="daybreak"] .theme-opt[aria-checked="true"] {
  color: #fff;
  text-shadow: 0 1px 2px rgba(0,0,0,0.2);
}
[data-theme="daybreak"] .theme-thumb {
  background: linear-gradient(135deg, #ff9c70, #d97c8e);
  box-shadow: 0 2px 10px rgba(217, 124, 142, 0.5);
}

/* =============================================================
   ========== ARCADE THEME (chunky 8-bit retro) ==========
   ============================================================= */

[data-theme="arcade"] {
  --pink:      #ff0080;
  --magenta:   #ff00aa;
  --purple:    #8000ff;
  --blue:      #0080ff;
  --cyan:      #00ffff;
  --green:     #00ff80;
  --yellow:    #ffd900;
  --orange:    #ff8800;
  --red:       #ff0040;

  --ink:       #00ffff;
  --ink-dim:   #80cccc;
  --bg-deep:   #0a0f1f;
  --bg-1:      #0d1a2d;
  --bg-2:      #11243f;
  --bg-3:      #143055;

  --glow-pink:   2px 2px 0 #000;
  --glow-cyan:   2px 2px 0 #000;
  --glow-yellow: 2px 2px 0 #000;

  --rainbow: linear-gradient(
    90deg,
    #ff0040 0%,
    #ff0040 14%,
    #ff8800 14%,
    #ff8800 28%,
    #ffd900 28%,
    #ffd900 42%,
    #00ff80 42%,
    #00ff80 57%,
    #00ffff 57%,
    #00ffff 71%,
    #0080ff 71%,
    #0080ff 85%,
    #ff00aa 85%,
    #ff00aa 100%
  );

  /* Arcade two-font system: Press Start 2P (display + accents) + VT323 (body) */
  --font-display: 'Press Start 2P', 'VT323', monospace;
  --font-body:    'VT323', 'Courier New', monospace;
  --font-mono:    'Press Start 2P', 'VT323', monospace;

  --focus-ring:   #fff;
  --focus-offset: 0;
}

[data-theme="arcade"] body {
  background: var(--bg-deep);
  color: var(--ink);
  font-size: var(--text-md);
}

/* CRT scanline overlay */
[data-theme="arcade"] body::after {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background: repeating-linear-gradient(
    0deg,
    rgba(0, 0, 0, 0.18) 0px,
    rgba(0, 0, 0, 0.18) 1px,
    transparent 1px,
    transparent 3px
  );
  z-index: 90;
  mix-blend-mode: multiply;
}

[data-theme="arcade"] .hero-sky {
  background:
    radial-gradient(ellipse at 50% 80%, rgba(255, 0, 128, 0.4), transparent 50%),
    linear-gradient(180deg, #000020 0%, #0a1a3a 60%, #1a0040 100%);
}

[data-theme="arcade"] .hero-sky::before {
  background-image:
    radial-gradient(2px 2px at 12% 18%, #fff, transparent 50%),
    radial-gradient(2px 2px at 24% 11%, #00ffff, transparent 50%),
    radial-gradient(2px 2px at 37% 26%, #fff, transparent 50%),
    radial-gradient(2px 2px at 52% 15%, #ffd900, transparent 50%),
    radial-gradient(2px 2px at 68% 8%,  #fff, transparent 50%),
    radial-gradient(2px 2px at 79% 22%, #ff00aa, transparent 50%),
    radial-gradient(2px 2px at 89% 12%, #fff, transparent 50%),
    radial-gradient(2px 2px at 5% 30%,  #00ff80, transparent 50%),
    radial-gradient(2px 2px at 45% 35%, #fff, transparent 50%),
    radial-gradient(2px 2px at 60% 32%, #00ffff, transparent 50%),
    radial-gradient(2px 2px at 92% 38%, #ffd900, transparent 50%);
  opacity: 0.95;
  animation: none;
  image-rendering: pixelated;
}

[data-theme="arcade"] .hero-sun {
  background: radial-gradient(circle,
    #ff0040 0%,
    #ff0040 22%,
    #ff8800 22%,
    #ff8800 44%,
    #ffd900 44%,
    #ffd900 66%,
    #00ff80 66%,
    #00ff80 88%,
    #00ffff 88%,
    #00ffff 100%);
  box-shadow: 0 0 0 4px #000, 0 0 30px rgba(255, 217, 0, 0.55);
  border-radius: 50%;
  -webkit-mask-image: none;
          mask-image: none;
  width: 360px;
  height: 360px;
  image-rendering: pixelated;
}

[data-theme="arcade"] .mtn-back  { fill: #ff00aa; opacity: 0.75; filter: none; }
[data-theme="arcade"] .mtn-mid   { fill: #8000ff; opacity: 0.9; filter: none; }
[data-theme="arcade"] .mtn-front { fill: #000; }
[data-theme="arcade"] .mtn { image-rendering: pixelated; }

[data-theme="arcade"] .hero-grid {
  background:
    linear-gradient(transparent 0%, var(--bg-deep) 95%),
    repeating-linear-gradient(
      90deg,
      transparent 0,
      transparent calc(5% - 3px),
      #00ffff calc(5% - 3px),
      #00ffff 5%
    ),
    repeating-linear-gradient(
      0deg,
      transparent 0,
      transparent calc(10% - 3px),
      #ff00aa calc(10% - 3px),
      #ff00aa 10%
    ),
    #000;
}

[data-theme="arcade"] .kicker {
  color: #00ff80;
  text-shadow: 2px 2px 0 #000;
  font-family: 'Press Start 2P', monospace;
  font-size: 0.6rem;
  letter-spacing: 0.15em;
}

[data-theme="arcade"] .hero-title {
  background: none;
  -webkit-background-clip: initial;
          background-clip: initial;
  -webkit-text-fill-color: #ffd900;
  color: #ffd900;
  filter: none;
  animation: none;
  font-size: clamp(var(--text-xl), 6vw, var(--text-4xl));
  letter-spacing: 0.02em;
  line-height: 1.1;
  text-shadow:
    4px 4px 0 #ff0040,
    6px 6px 0 #000,
    8px 8px 0 rgba(0,0,0,0.5);
}

[data-theme="arcade"] .hero-sub {
  color: #00ffff;
  text-shadow: 2px 2px 0 #000;
  font-size: clamp(var(--text-xs), 1.2vw, var(--text-sm));
  letter-spacing: 0.18em;
}

[data-theme="arcade"] .hero-rainbow {
  height: 8px;
  border-radius: 0;
  box-shadow: 0 0 0 2px #000;
  animation: none;
}

[data-theme="arcade"] .cta {
  font-family: 'Press Start 2P', monospace;
  font-size: 0.7rem;
  background: #ffd900;
  color: #000;
  border: 3px solid #000;
  border-radius: 0;
  box-shadow: 4px 4px 0 #ff0040, 4px 4px 0 0 #ff0040;
  padding: 14px 24px;
  letter-spacing: 0.15em;
}
[data-theme="arcade"] .cta:hover {
  background: #00ffff;
  color: #000;
  border-color: #000;
  transform: translate(-2px, -2px);
  box-shadow: 6px 6px 0 #ff0040;
}

[data-theme="arcade"] .section {
  background:
    radial-gradient(ellipse at 50% 0%, rgba(255, 0, 170, 0.18), transparent 55%),
    linear-gradient(180deg, var(--bg-1) 0%, var(--bg-deep) 100%);
}
[data-theme="arcade"] .gallery-section {
  background:
    radial-gradient(ellipse at 50% 0%, rgba(0, 255, 255, 0.16), transparent 55%),
    linear-gradient(180deg, var(--bg-2) 0%, var(--bg-1) 100%);
}
[data-theme="arcade"] .video-section {
  background:
    radial-gradient(ellipse at 50% 0%, rgba(255, 217, 0, 0.18), transparent 55%),
    linear-gradient(180deg, var(--bg-1) 0%, var(--bg-2) 100%);
}
[data-theme="arcade"] .links-section {
  background:
    radial-gradient(ellipse at 50% 0%, rgba(0, 255, 128, 0.16), transparent 55%),
    linear-gradient(180deg, var(--bg-1) 0%, var(--bg-deep) 100%);
}
[data-theme="arcade"] .realtor-section {
  background:
    radial-gradient(ellipse at 50% 0%, rgba(255, 136, 0, 0.18), transparent 55%),
    linear-gradient(180deg, var(--bg-2) 0%, var(--bg-1) 100%);
}

[data-theme="arcade"] .section-badge {
  color: #ff00aa;
  text-shadow: 2px 2px 0 #000;
  font-family: 'Press Start 2P', monospace;
  font-size: 0.65rem;
  letter-spacing: 0.15em;
}

[data-theme="arcade"] .section-title {
  background: none;
  -webkit-background-clip: initial;
          background-clip: initial;
  -webkit-text-fill-color: #ffd900;
  color: #ffd900;
  font-family: 'Press Start 2P', monospace;
  font-size: clamp(1.2rem, 3.5vw, 2.4rem);
  letter-spacing: 0;
  filter: none;
  animation: none;
  text-shadow: 3px 3px 0 #ff0040, 5px 5px 0 #000;
  line-height: 1.2;
}

[data-theme="arcade"] .section-lede { color: var(--ink); font-family: 'VT323', monospace; font-size: 1.3rem; }

[data-theme="arcade"] .about-copy p { font-family: 'VT323', monospace; font-size: 1.35rem; color: var(--ink); }
[data-theme="arcade"] .about-copy .lede {
  border-left: 4px solid #ffd900;
  box-shadow: none;
  color: #fff;
  background: rgba(0, 0, 0, 0.3);
  padding: 12px 18px;
}
[data-theme="arcade"] .about-copy strong { color: #ffd900; }
[data-theme="arcade"] .about-copy em { color: #80cccc; font-style: normal; opacity: 0.85; }

[data-theme="arcade"] .fact-card {
  background: rgba(0, 0, 0, 0.6);
  border: 3px solid #00ffff;
  border-radius: 0;
  box-shadow: 6px 6px 0 #ff0040;
}
[data-theme="arcade"] .fact-card::before {
  background: linear-gradient(90deg, #ff0040 0 14%, #ff8800 14% 28%, #ffd900 28% 42%, #00ff80 42% 57%, #00ffff 57% 71%, #0080ff 71% 85%, #ff00aa 85% 100%);
  height: 6px;
  border-radius: 0;
  animation: none;
}
[data-theme="arcade"] .fact-card h3 {
  color: #ffd900;
  text-shadow: 2px 2px 0 #000;
  font-family: 'Press Start 2P', monospace;
  font-size: 0.85rem;
}
[data-theme="arcade"] .fact-card dt { color: #ff00aa; font-family: 'Press Start 2P', monospace; font-size: 0.65rem; }
[data-theme="arcade"] .fact-card dd { color: #fff; font-family: 'VT323', monospace; font-size: 1.3rem; }
[data-theme="arcade"] .status-pill {
  background: #00ff80;
  border: 2px solid #000;
  color: #000 !important;
  text-shadow: none;
  border-radius: 0;
  font-family: 'Press Start 2P', monospace;
  font-size: 0.6rem;
}

[data-theme="arcade"] .divider-rainbow {
  height: 10px;
  background: linear-gradient(90deg, #ff0040 0 14%, #ff8800 14% 28%, #ffd900 28% 42%, #00ff80 42% 57%, #00ffff 57% 71%, #0080ff 71% 85%, #ff00aa 85% 100%);
  box-shadow: 0 0 0 2px #000;
  animation: none;
  image-rendering: pixelated;
}

[data-theme="arcade"] .tile {
  background: #000;
  border: 4px solid #00ffff;
  border-radius: 2px;
  box-shadow: 4px 4px 0 #ff0040;
}
[data-theme="arcade"] .tile::before { display: none; }
[data-theme="arcade"] .tile img { filter: saturate(1.15) contrast(1.05); }
[data-theme="arcade"] .tile:hover {
  transform: translate(-2px, -2px);
  box-shadow: 6px 6px 0 #ff0040, 0 0 0 1px #fff;
}
[data-theme="arcade"] .tile:hover img { transform: none; filter: saturate(1.3) contrast(1.1); }

[data-theme="arcade"] .video-wrap {
  background: #000;
  border: 4px solid #00ffff;
  border-radius: 0;
  box-shadow: 8px 8px 0 #ff0040;
  padding: 6px;
}
[data-theme="arcade"] .video-wrap::before {
  background: linear-gradient(90deg, #ff0040 0 14%, #ff8800 14% 28%, #ffd900 28% 42%, #00ff80 42% 57%, #00ffff 57% 71%, #0080ff 71% 85%, #ff00aa 85% 100%);
  height: 6px;
  border-radius: 0;
  animation: none;
}
[data-theme="arcade"] .video-wrap video { border-radius: 0; }
[data-theme="arcade"] .video-title {
  color: #ffd900;
  text-shadow: 2px 2px 0 #000;
  font-family: 'Press Start 2P', monospace;
  font-size: 0.75rem;
  letter-spacing: 0.1em;
}

[data-theme="arcade"] .link-card {
  background: #000;
  border: 3px solid #ff00aa;
  border-radius: 0;
  color: #fff;
  box-shadow: 4px 4px 0 #ffd900;
}
[data-theme="arcade"] .link-card::before {
  background: #ffd900;
  height: 6px;
  animation: none;
}
[data-theme="arcade"] .link-card:hover {
  transform: translate(-2px, -2px);
  border-color: #00ffff;
  background: #000;
  box-shadow: 6px 6px 0 #ff0040;
}
[data-theme="arcade"] .link-emoji { filter: none; }
[data-theme="arcade"] .link-title { color: #ffd900; font-family: 'Press Start 2P', monospace; font-size: 0.75rem; }
[data-theme="arcade"] .link-sub { color: #00ffff; font-family: 'VT323', monospace; font-size: 1.1rem; }

[data-theme="arcade"] .realtor-card {
  background: #000;
  border: 4px solid #00ffff;
  border-radius: 0;
  box-shadow: 8px 8px 0 #ff0040;
}
[data-theme="arcade"] .realtor-card::before {
  background: linear-gradient(90deg, #ff0040 0 14%, #ff8800 14% 28%, #ffd900 28% 42%, #00ff80 42% 57%, #00ffff 57% 71%, #0080ff 71% 85%, #ff00aa 85% 100%);
  height: 6px;
  border-radius: 0;
  animation: none;
}
[data-theme="arcade"] .realtor-avatar {
  background:
    radial-gradient(circle at 50% 50%, #ff0040 0%, #ff0040 25%, #ff8800 25%, #ff8800 50%, #ffd900 50%, #ffd900 75%, #00ff80 75%);
  color: #000;
  font-family: 'Press Start 2P', monospace;
  font-size: 2.5rem;
  border: 4px solid #000;
  box-shadow: 4px 4px 0 #00ffff;
  image-rendering: pixelated;
}
[data-theme="arcade"] .realtor-avatar { border-radius: 0; }
[data-theme="arcade"] .realtor-name {
  font-size: 1rem;
  line-height: 1.5;
  color: #fff;
  text-shadow: 2px 2px 0 #000;
}
[data-theme="arcade"] .realtor-brokerage {
  color: #ff00aa;
  text-shadow: 2px 2px 0 #000;
  font-family: 'Press Start 2P', monospace;
  font-size: 0.65rem;
}
[data-theme="arcade"] .realtor-contact a {
  color: #80cccc;
  font-family: 'VT323', monospace;
  font-size: 1.3rem;
}

[data-theme="arcade"] .footer {
  background: #000;
  border-top: 4px solid #00ffff;
}
[data-theme="arcade"] .footer-brand {
  background: none;
  -webkit-background-clip: initial;
          background-clip: initial;
  -webkit-text-fill-color: #ffd900;
  color: #ffd900;
  font-family: 'Press Start 2P', monospace;
  font-size: 1rem;
  text-shadow: 3px 3px 0 #ff0040, 4px 4px 0 #000;
  animation: none;
}
[data-theme="arcade"] .footer-meta { color: #00ffff; font-family: 'VT323', monospace; font-size: 1.15rem; }
[data-theme="arcade"] .footer-rainbow {
  background: linear-gradient(90deg, #ff0040 0 14%, #ff8800 14% 28%, #ffd900 28% 42%, #00ff80 42% 57%, #00ffff 57% 71%, #0080ff 71% 85%, #ff00aa 85% 100%);
  box-shadow: 0 0 0 2px #000;
  animation: none;
  height: 8px;
  border-radius: 0;
}

[data-theme="arcade"] a { color: #00ffff; }
[data-theme="arcade"] a:hover { color: #ffd900; }

[data-theme="arcade"] .theme-switcher {
  background: #000;
  border: 3px solid #00ffff;
  border-radius: 0;
  box-shadow: 4px 4px 0 #ff0040;
  padding: 3px;
}
[data-theme="arcade"] .theme-thumb {
  background: #ffd900;
  border-radius: 0;
  box-shadow: 2px 2px 0 #ff0040;
  opacity: 1;
}
[data-theme="arcade"] .theme-opt {
  color: #00ffff;
  font-family: 'Press Start 2P', monospace;
  font-size: 0.55rem;
  border-radius: 0;
  letter-spacing: 0.1em;
}
[data-theme="arcade"] .theme-opt[aria-checked="true"] {
  color: #000;
  text-shadow: none;
}

/* =============================================================
   ========== ALPINE THEME (pro default — Colorado flatscape) ==========
   Palette sampled from raw/coloradomountains.png:
   teal sky, slate peaks, cream snow, golden foothills, spruce forest.
   ============================================================= */

[data-theme="alpine"] {
  --pink:      #b07a43;   /* golden — borders / accents / hovers   */
  --magenta:   #8a6a3b;
  --purple:    #3e6b6e;   /* teal                                  */
  --blue:      #2e5a60;   /* deep teal                             */
  --cyan:      #2f6f6c;   /* teal — links + title accents          */
  --green:     #4a6b4f;   /* spruce                                */
  --yellow:    #9b7145;   /* golden — section badges               */
  --orange:    #b0763f;
  --red:       #a5552f;

  --ink:       #233a40;   /* deep slate text on cream              */
  --ink-dim:   #5d6e70;   /* muted slate                           */
  --bg-deep:   #f3ecdd;   /* warm cream page base                  */
  --bg-1:      #efe7d5;
  --bg-2:      #e9dec8;
  --bg-3:      #ddcfb4;

  --glow-pink:   0 1px 2px rgba(40, 60, 64, 0.18);
  --glow-cyan:   0 1px 2px rgba(40, 60, 64, 0.18);
  --glow-yellow: 0 1px 2px rgba(40, 60, 64, 0.18);

  --rainbow: linear-gradient(90deg, #2f6f6c 0%, #4a6b4f 28%, #9b7145 58%, #c99a5a 80%, #2e5a60 100%);

  /* Pro two-font system: Fraunces (editorial serif display) + Inter (body) */
  --font-display: 'Fraunces', Georgia, 'Times New Roman', serif;
  --font-body:    'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --font-mono:    'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;

  --focus-ring:   #2e5a60;
  --focus-offset: 3px;
}

[data-theme="alpine"] body { background: var(--bg-deep); color: var(--ink); }

/* ---- Hero: the mountain illustration, full-bleed at the top ---- */
[data-theme="alpine"] .hero {
  height: 88vh;
  min-height: 560px;
}
[data-theme="alpine"] .hero-sky {
  background:
    radial-gradient(ellipse 70% 52% at 50% 46%, rgba(18, 30, 22, 0.42), transparent 76%),
    linear-gradient(180deg, rgba(25, 45, 50, 0.40) 0%, rgba(25, 45, 50, 0.28) 50%, rgba(18, 30, 22, 0.64) 100%),
    url('/images/hero-mountains.jpg') center / cover no-repeat;
}
[data-theme="alpine"] .hero-sky::before { display: none; }  /* stars off */
[data-theme="alpine"] .hero-sun        { display: none; }
[data-theme="alpine"] .hero-mountains  { display: none; }   /* photo has its own */
[data-theme="alpine"] .hero-grid       { display: none; }

[data-theme="alpine"] .kicker {
  color: #f0e3c8;
  letter-spacing: 0.4em;
  text-shadow: 0 1px 8px rgba(0, 0, 0, 0.45);
  font-weight: 600;
}
[data-theme="alpine"] .hero-title {
  font-family: var(--font-display);
  font-weight: 600;
  background: none;
  -webkit-background-clip: initial;
          background-clip: initial;
  -webkit-text-fill-color: #fbf4e4;
  color: #fbf4e4;
  filter: none;
  animation: none;
  letter-spacing: 0.01em;
  line-height: 1.0;
  text-shadow: 0 2px 24px rgba(0, 0, 0, 0.45), 0 1px 3px rgba(0, 0, 0, 0.5);
}
[data-theme="alpine"] .hero-sub {
  color: #f0e3c8;
  letter-spacing: 0.35em;
  text-shadow: 0 1px 10px rgba(0, 0, 0, 0.5);
}
[data-theme="alpine"] .hero-rainbow {
  background: linear-gradient(90deg, transparent, #d9b066, transparent);
  box-shadow: none;
  animation: none;
  height: 2px;
  width: min(280px, 60%);
}
[data-theme="alpine"] .cta {
  font-weight: 600;
  letter-spacing: 0.18em;
  color: #2a2113;
  background: #d9b066;
  border: 1px solid #c69a4e;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.28);
}
[data-theme="alpine"] .cta:hover {
  color: #2a2113;
  background: #e6c27e;
  border-color: #e6c27e;
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.34);
  transform: translateY(-2px);
}

/* ---- Sections: warm cream, gentle vertical shifts ---- */
[data-theme="alpine"] .section {
  background: linear-gradient(180deg, var(--bg-1) 0%, var(--bg-deep) 100%);
}
[data-theme="alpine"] .gallery-section {
  background: linear-gradient(180deg, var(--bg-deep) 0%, var(--bg-2) 100%);
}
[data-theme="alpine"] .video-section {
  background: linear-gradient(180deg, var(--bg-2) 0%, var(--bg-1) 100%);
}
[data-theme="alpine"] .links-section {
  background: linear-gradient(180deg, var(--bg-1) 0%, var(--bg-deep) 100%);
}
[data-theme="alpine"] .realtor-section {
  background:
    radial-gradient(ellipse at 50% 0%, rgba(155, 113, 69, 0.10), transparent 60%),
    linear-gradient(180deg, var(--bg-2) 0%, var(--bg-1) 100%);
}

[data-theme="alpine"] .section-badge {
  color: #9b7145;
  text-shadow: none;
  letter-spacing: 0.28em;
  font-weight: 600;
}
[data-theme="alpine"] .section-title {
  font-family: var(--font-display);
  font-weight: 600;
  background: none;
  -webkit-background-clip: initial;
          background-clip: initial;
  -webkit-text-fill-color: #233a40;
  color: #233a40;
  filter: none;
  animation: none;
  letter-spacing: 0;
}
[data-theme="alpine"] .section-lede { color: var(--ink-dim); }

[data-theme="alpine"] .about-copy .lede {
  border-left-color: #9b7145;
  box-shadow: -3px 0 14px rgba(155, 113, 69, 0.12);
  color: #233a40;
}
[data-theme="alpine"] .about-copy strong { color: #9b7145; }
[data-theme="alpine"] .about-copy em { color: #6b7a7c; }

[data-theme="alpine"] .fact-card {
  background: rgba(255, 255, 255, 0.62);
  border: 1px solid rgba(46, 90, 96, 0.22);
  box-shadow: 0 6px 24px rgba(46, 90, 96, 0.12), 0 0 0 1px rgba(255, 255, 255, 0.5) inset;
}
[data-theme="alpine"] .fact-card h3 { color: #2e5a60; text-shadow: none; }
[data-theme="alpine"] .fact-card dt { color: #6b7a7c; }
[data-theme="alpine"] .fact-card dd { color: #233a40; }
[data-theme="alpine"] .status-pill {
  background: rgba(74, 107, 79, 0.14);
  border-color: #4a6b4f;
  color: #3f5a44 !important;
  text-shadow: none;
}

[data-theme="alpine"] .divider-rainbow {
  background: linear-gradient(90deg, #2f6f6c, #9b7145, #2e5a60);
  box-shadow: none;
  animation: none;
  height: 2px;
  opacity: 0.5;
}

[data-theme="alpine"] .tile {
  background: #fff;
  border: 1px solid rgba(46, 90, 96, 0.18);
  box-shadow: 0 4px 16px rgba(46, 90, 96, 0.12);
}
[data-theme="alpine"] .tile::before { display: none; }
[data-theme="alpine"] .tile:hover {
  box-shadow: 0 14px 34px rgba(46, 90, 96, 0.25), 0 0 0 1px rgba(155, 113, 69, 0.4);
}

[data-theme="alpine"] .video-wrap {
  background: rgba(255, 255, 255, 0.65);
  border-radius: 10px;
  box-shadow: 0 0 0 1px rgba(46, 90, 96, 0.18), 0 8px 28px rgba(46, 90, 96, 0.16);
}
[data-theme="alpine"] .video-wrap::before {
  background: linear-gradient(90deg, #2f6f6c, #9b7145, #2e5a60);
  animation: none;
}
[data-theme="alpine"] .video-title { color: #2e5a60; text-shadow: none; }

[data-theme="alpine"] .link-card {
  background: rgba(255, 255, 255, 0.65);
  border: 1px solid rgba(46, 90, 96, 0.20);
  color: #233a40;
  box-shadow: 0 2px 12px rgba(46, 90, 96, 0.10);
}
[data-theme="alpine"] .link-card::before {
  background: linear-gradient(90deg, #2f6f6c, #9b7145, #2e5a60);
  animation: none;
}
[data-theme="alpine"] .link-card:hover {
  background: #fff;
  border-color: #9b7145;
  box-shadow: 0 10px 26px rgba(46, 90, 96, 0.22);
}
[data-theme="alpine"] .link-emoji { filter: none; }
[data-theme="alpine"] .link-title { color: #233a40; }
[data-theme="alpine"] .link-sub { color: #6b7a7c; }

[data-theme="alpine"] .realtor-card {
  background: rgba(255, 255, 255, 0.70);
  border: 1px solid rgba(46, 90, 96, 0.18);
  box-shadow: 0 8px 28px rgba(46, 90, 96, 0.16);
}
[data-theme="alpine"] .realtor-card::before {
  background: linear-gradient(90deg, #2f6f6c, #9b7145, #2e5a60);
  animation: none;
}
[data-theme="alpine"] .realtor-name { color: #233a40; }
[data-theme="alpine"] .realtor-brokerage { color: #9b7145; text-shadow: none; }
[data-theme="alpine"] .realtor-contact a { color: #5d6e70; }
[data-theme="alpine"] .realtor-contact a:hover { color: #2e5a60; }

[data-theme="alpine"] .footer {
  background: #e7dcc6;
  border-top: 1px solid rgba(46, 90, 96, 0.18);
}
[data-theme="alpine"] .footer-brand {
  background: none;
  -webkit-background-clip: initial;
          background-clip: initial;
  -webkit-text-fill-color: #2e5a60;
  color: #2e5a60;
  font-family: var(--font-display);
  animation: none;
}
[data-theme="alpine"] .footer-meta { color: #5d6e70; }
[data-theme="alpine"] .footer-rainbow {
  background: linear-gradient(90deg, #2f6f6c, #9b7145, #2e5a60);
  animation: none;
  opacity: 0.6;
}

[data-theme="alpine"] a { color: #2e5a60; }
[data-theme="alpine"] a:hover { color: #9b7145; }

/* ---- Switcher in alpine: light, quiet ---- */
[data-theme="alpine"] .theme-switcher {
  background: rgba(255, 255, 255, 0.62);
  border: 1px solid rgba(46, 90, 96, 0.25);
  box-shadow: 0 2px 10px rgba(46, 90, 96, 0.15);
}
[data-theme="alpine"] .theme-switch-label { color: #6b7a7c; }
[data-theme="alpine"] .theme-opt { color: #5d6e70; }
[data-theme="alpine"] .theme-opt:hover { color: #233a40; }
[data-theme="alpine"] .theme-opt[aria-checked="true"] {
  color: #fff;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.25);
}
[data-theme="alpine"] .theme-thumb {
  background: linear-gradient(135deg, #3e7a78, #9b7145);
  box-shadow: 0 2px 8px rgba(46, 90, 96, 0.4);
}
