/* ═══════════════════════════════════════════════════════════════
   PIXIE³ — shared styles
   deep slate-navy · signal orange · editorial serif · pixel wordmark
   palette: #212431 / #4F5D75 / #D6D7D7 / #F5F5F5 / #EA5C1F
   ═══════════════════════════════════════════════════════════════ */

:root {
  --navy:      #D6D7D7;   /* base background (light) */
  --navy-mid:  #E0E1E1;   /* layered section */
  --navy-card: #F5F5F5;   /* cards — light, raised */
  --navy-edge: #FFFFFF;   /* hover / raised edges */
  --slate:     #4F5D75;   /* structural slate blue */
  --amber:     #EA5C1F;   /* signal orange accent */
  --amber-dim: #C24915;
  --amber-glow:#EA5C1F33;
  --cream:     #212431;   /* primary text (dark) */
  --mist:      #4F5D75;   /* secondary text */
  --white:     #212431;   /* headings (dark on light) */

  --ff-display: 'Space Grotesk', 'Outfit', sans-serif;
  --ff-mono:    'DM Mono', 'Courier New', monospace;
  --ff-body:    'Outfit', sans-serif;
  --ff-pixel:   'Silkscreen', monospace;

  --ease-out-expo: cubic-bezier(0.16, 1, 0.3, 1);
}

/* ── DARK THEME (same palette, flipped) ──────────────────────── */
html[data-theme="dark"] {
  --navy:      #212431;   /* base background */
  --navy-mid:  #262A39;
  --navy-card: #2B3040;
  --navy-edge: #394054;
  --cream:     #F5F5F5;
  --mist:      #C6C9D2;
  --white:     #F8F8F8;
}
html[data-theme="dark"] nav {
  background: linear-gradient(to bottom, rgba(33,36,49,0.95) 0%, rgba(33,36,49,0) 100%);
}
html[data-theme="dark"] .cta-band {
  background: linear-gradient(135deg, #252838 0%, #262A39 50%, #212431 100%);
}
html[data-theme="dark"] .btn-ghost {
  background: rgba(79,93,117,0.15);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.06);
}
html[data-theme="dark"] .footer-legal { color: rgba(198,201,210,0.45); }
html[data-theme="dark"] .card:hover { box-shadow: 0 12px 30px rgba(0,0,0,0.3); }
body { transition: background 0.35s, color 0.35s; }

/* theme toggle pill */
.theme-toggle {
  background: var(--navy-card);
  border: 1px solid var(--slate);
  border-radius: 999px;
  width: 38px; height: 38px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  line-height: 1;
  color: var(--amber);
  cursor: pointer;
  margin-left: 1rem;
  box-shadow: 0 3px 10px rgba(33,36,49,0.12), inset 0 1px 0 rgba(255,255,255,0.4);
  transition: transform 0.2s var(--ease-out-expo), box-shadow 0.25s, background 0.3s;
}
.theme-toggle:hover {
  transform: translateY(-1px) rotate(15deg);
  box-shadow: 0 6px 18px rgba(234,92,31,0.3);
}
html[data-theme="dark"] .theme-toggle {
  box-shadow: 0 3px 10px rgba(0,0,0,0.35), inset 0 1px 0 rgba(255,255,255,0.08);
}
.nav-right { display: flex; align-items: center; }

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  background: var(--navy);
  color: var(--cream);
  font-family: var(--ff-body);
  font-weight: 300;
  line-height: 1.6;
  overflow-x: hidden;
}
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }

/* film-grain overlay */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)' opacity='0.03'/%3E%3C/svg%3E");
  pointer-events: none;
  z-index: 1000;
  opacity: 0.4;
}

/* ── NAV ─────────────────────────────────────────────────────── */
nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 900;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.25rem 5vw;
  background: linear-gradient(to bottom, rgba(214,215,215,0.95) 0%, rgba(214,215,215,0) 100%);
  animation: navSlide 0.8s var(--ease-out-expo) both;
}
@keyframes navSlide {
  from { opacity: 0; transform: translateY(-16px); }
  to   { opacity: 1; transform: translateY(0); }
}

.logo {
  font-family: var(--ff-pixel);
  font-weight: 700;
  font-size: 1.15rem;
  letter-spacing: 0.04em;
  color: var(--white);
  display: inline-flex;
  align-items: flex-start;
  gap: 0.1em;
  transition: opacity 0.2s;
}
.logo:hover { opacity: 0.8; }
.logo sup {
  color: var(--amber);
  font-size: 0.6em;
  line-height: 1;
  margin-top: -0.1em;
}

.nav-links {
  display: flex;
  gap: 2.2rem;
  list-style: none;
  font-family: var(--ff-mono);
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--mist);
}
.nav-links a {
  position: relative;
  padding-bottom: 4px;
  transition: color 0.25s;
}
/* sweep underline on hover */
.nav-links a::after {
  content: '';
  position: absolute;
  left: 0; bottom: 0;
  width: 100%; height: 1px;
  background: var(--amber);
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 0.35s var(--ease-out-expo);
}
.nav-links a:hover { color: var(--white); }
.nav-links a:hover::after {
  transform: scaleX(1);
  transform-origin: left;
}
.nav-links a.active { color: var(--amber); }
.nav-links a.active::after { transform: scaleX(1); background: var(--amber-dim); }

.nav-cta {
  font-family: var(--ff-mono);
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  background: var(--amber);
  color: #F5F5F5;
  padding: 0.6rem 1.4rem;
  border-radius: 999px;
  font-weight: 500;
  box-shadow: 0 4px 12px rgba(33,36,49,0.18), inset 0 1px 0 rgba(255,255,255,0.25);
  transition: background 0.2s, transform 0.15s, box-shadow 0.25s;
}
.nav-cta:hover {
  background: #FF6B2B;
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(234,92,31,0.4), inset 0 1px 0 rgba(255,255,255,0.3);
}

/* mobile hamburger */
.nav-toggle {
  display: none;
  background: none;
  border: 1px solid rgba(79,93,117,0.6);
  border-radius: 999px;
  color: var(--amber);
  font-family: var(--ff-mono);
  font-size: 0.65rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 0.5rem 1rem;
  cursor: pointer;
}

/* ── SHARED SECTION PIECES ───────────────────────────────────── */
section { position: relative; }
.section-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 7rem 5vw;
}
.eyebrow {
  font-family: var(--ff-mono);
  font-size: 0.65rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--amber);
  margin-bottom: 1.2rem;
  display: flex;
  align-items: center;
  gap: 0.8em;
}
.eyebrow::after {
  content: '';
  display: block;
  width: 40px;
  height: 1px;
  background: var(--slate);
}

.display-title {
  font-family: var(--ff-display);
  font-weight: 300;
  line-height: 1.12;
}
/* Space Grotesk has no italics: emphasis = color + weight, not faux-italic */
.display-title em { font-style: normal; color: var(--amber); }
.display-title strong { font-weight: 600; font-style: normal; color: var(--amber); }

/* scroll-reveal */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.9s var(--ease-out-expo), transform 0.9s var(--ease-out-expo);
}
.reveal.in { opacity: 1; transform: translateY(0); }

/* ── PAGE HERO (interior pages) ──────────────────────────────── */
.page-hero {
  padding: 11rem 5vw 5rem;
  max-width: 1200px;
  margin: 0 auto;
  position: relative;
}
.page-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(79,93,117,0.10) 1px, transparent 1px),
    linear-gradient(90deg, rgba(79,93,117,0.10) 1px, transparent 1px);
  background-size: 80px 80px;
  mask-image: radial-gradient(ellipse 70% 90% at 30% 20%, black 20%, transparent 100%);
  pointer-events: none;
}
.page-hero h1 {
  font-family: var(--ff-display);
  font-size: clamp(2.4rem, 5.5vw, 4.5rem);
  font-weight: 500;
  line-height: 1.05;
  letter-spacing: -0.02em;
  max-width: 18ch;
  animation: fadeUp 0.9s 0.15s var(--ease-out-expo) both;
}
.page-hero h1 em { font-style: normal; color: var(--amber); }
.page-hero .lede {
  margin-top: 1.8rem;
  max-width: 560px;
  color: var(--mist);
  font-size: 1.05rem;
  line-height: 1.75;
  animation: fadeUp 0.9s 0.35s var(--ease-out-expo) both;
}
.page-hero .eyebrow { animation: fadeUp 0.9s var(--ease-out-expo) both; }

@keyframes fadeUp {
  from { opacity: 0; transform: translateY(24px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ── BUTTONS — soft pill, techie ─────────────────────────────── */
.btn-primary, .btn-ghost, .btn-wa {
  display: inline-flex;
  align-items: center;
  gap: 0.6em;
  font-family: var(--ff-mono);
  font-size: 0.75rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  font-weight: 500;
  padding: 0.9rem 2rem;
  border-radius: 999px;
  transition: background 0.2s, color 0.2s, border-color 0.2s, transform 0.15s, box-shadow 0.25s;
}
.btn-primary {
  background: var(--amber);
  color: #F5F5F5;
  box-shadow: 0 6px 16px rgba(33,36,49,0.18), inset 0 1px 0 rgba(255,255,255,0.28);
}
.btn-primary:hover {
  background: #FF6B2B;
  transform: translateY(-2px);
  box-shadow: 0 10px 28px rgba(234,92,31,0.4), inset 0 1px 0 rgba(255,255,255,0.32);
}
.btn-ghost {
  border: 1px solid var(--slate);
  color: var(--cream);
  background: rgba(245,245,245,0.6);
  box-shadow: 0 3px 10px rgba(33,36,49,0.08), inset 0 1px 0 rgba(255,255,255,0.7);
}
.btn-ghost:hover {
  border-color: var(--amber);
  color: var(--amber);
  background: rgba(234,92,31,0.08);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(234,92,31,0.18);
}
.btn-wa {
  background: #25D366;
  color: #fff;
  padding: 0.95rem 2rem;
  box-shadow: 0 6px 16px rgba(33,36,49,0.15), inset 0 1px 0 rgba(255,255,255,0.25);
}
.btn-wa:hover {
  background: #1ebe5b;
  transform: translateY(-2px);
  box-shadow: 0 10px 28px rgba(37,211,102,0.35);
}
.btn-wa-secondary {
  background: rgba(37,211,102,0.12);
  color: #25D366;
  border: 1px solid rgba(37,211,102,0.3);
  box-shadow: none;
}
.btn-wa-secondary:hover {
  background: rgba(37,211,102,0.2);
  box-shadow: 0 8px 24px rgba(37,211,102,0.12);
}
.wa-icon { width: 16px; height: 16px; flex-shrink: 0; }

/* ── IMAGE FRAME (hover-bracket treatment) ───────────────────── */
.frame {
  position: relative;
  border: 1px solid rgba(79,93,117,0.45);
  border-radius: 10px;
  overflow: hidden;
  background: var(--navy-card);
}
.frame img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 0.8s var(--ease-out-expo), filter 0.5s;
  filter: saturate(0.92);
}
.frame:hover img { transform: scale(1.04); filter: saturate(1.05); }
.frame .corner {
  position: absolute;
  width: 26px; height: 26px;
  z-index: 2;
  opacity: 0.45;
  transition: opacity 0.3s, transform 0.4s var(--ease-out-expo);
  pointer-events: none;
}
.frame .corner.tl { top: 12px; left: 12px; border-top: 2px solid var(--amber); border-left: 2px solid var(--amber); }
.frame .corner.br { bottom: 12px; right: 12px; border-bottom: 2px solid var(--amber); border-right: 2px solid var(--amber); }
.frame:hover .corner { opacity: 1; }
.frame:hover .corner.tl { transform: translate(-4px, -4px); }
.frame:hover .corner.br { transform: translate(4px, 4px); }
.frame .badge {
  position: absolute;
  bottom: 1rem; left: 1rem;
  z-index: 2;
  background: rgba(33,36,49,0.88);
  border: 1px solid rgba(79,93,117,0.5);
  padding: 0.3rem 0.85rem;
  font-family: var(--ff-mono);
  font-size: 0.6rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--amber);
  border-radius: 999px;
}

/* ── CARDS ───────────────────────────────────────────────────── */
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1.5px;
}
.card {
  background: var(--navy-card);
  padding: 2.5rem 2rem;
  position: relative;
  overflow: hidden;
  transition: background 0.3s, transform 0.3s var(--ease-out-expo), box-shadow 0.3s;
}
.card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(234,92,31,0.06) 0%, transparent 50%);
  opacity: 0;
  transition: opacity 0.3s;
}
.card::after {
  content: '';
  position: absolute;
  top: 0; left: 0;
  width: 2px; height: 0;
  background: var(--amber);
  transition: height 0.4s var(--ease-out-expo);
}
.card:hover { background: var(--navy-edge); transform: translateY(-3px); box-shadow: 0 12px 28px rgba(33,36,49,0.14); }
.card:hover::before { opacity: 1; }
.card:hover::after { height: 100%; }

.card-num {
  font-family: var(--ff-mono);
  font-size: 0.6rem;
  letter-spacing: 0.15em;
  color: var(--slate);
  margin-bottom: 1.5rem;
}
.card-icon { font-size: 1.8rem; margin-bottom: 1rem; display: block; }
.card-title {
  font-family: var(--ff-display);
  font-size: 1.4rem;
  font-weight: 600;
  color: var(--white);
  margin-bottom: 0.5rem;
}
.card-line { font-size: 0.88rem; color: var(--mist); line-height: 1.55; }

/* ── MATTERPORT EMBED ────────────────────────────────────────── */
.tour-embed {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  border: 1px solid rgba(79,93,117,0.5);
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 0 60px rgba(234,92,31,0.08);
  background: var(--navy-card);
}
.tour-embed iframe {
  position: absolute;
  inset: 0;
  width: 100%; height: 100%;
  border: 0;
}

/* ── CTA BAND ────────────────────────────────────────────────── */
.cta-band {
  background: linear-gradient(135deg, #E6E7E7 0%, #DEDFDF 50%, #D6D7D7 100%);
  border-top: 1px solid rgba(79,93,117,0.35);
  border-bottom: 1px solid rgba(79,93,117,0.35);
  position: relative;
  overflow: hidden;
}
.cta-band::before {
  content: '';
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  width: 800px; height: 400px;
  background: radial-gradient(ellipse, rgba(234,92,31,0.08) 0%, transparent 70%);
}
.cta-band .section-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}
.cta-title {
  font-family: var(--ff-display);
  font-size: clamp(2.2rem, 5vw, 4.2rem);
  font-weight: 500;
  line-height: 1.08;
  letter-spacing: -0.02em;
  max-width: 18ch;
  margin-bottom: 1rem;
}
.cta-title em { font-style: normal; color: var(--amber); }
.cta-sub {
  color: var(--mist);
  font-size: 1rem;
  margin-bottom: 3rem;
  max-width: 46ch;
}
.cta-actions {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  justify-content: center;
}

/* ── FOOTER ──────────────────────────────────────────────────── */
footer {
  background: var(--navy);
  padding: 3rem 5vw;
  border-top: 1px solid rgba(79,93,117,0.3);
}
.footer-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  flex-wrap: wrap;
}
.footer-logo {
  font-family: var(--ff-pixel);
  font-weight: 700;
  font-size: 1rem;
  color: var(--white);
}
.footer-logo sup { color: var(--amber); font-size: 0.6em; }
.footer-links {
  display: flex;
  gap: 1.5rem;
  list-style: none;
  flex-wrap: wrap;
  font-family: var(--ff-mono);
  font-size: 0.65rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--mist);
}
.footer-links a { transition: color 0.2s; }
.footer-links a:hover { color: var(--amber); }
.footer-legal {
  font-family: var(--ff-mono);
  font-size: 0.6rem;
  letter-spacing: 0.08em;
  color: rgba(79,93,117,0.65);
  text-align: right;
}

/* ── RESPONSIVE ──────────────────────────────────────────────── */
@media (max-width: 900px) {
  .nav-links {
    display: none;
    position: absolute;
    top: 100%;
    left: 0; right: 0;
    flex-direction: column;
    gap: 0;
    background: rgba(224,225,225,0.98);
    border-bottom: 1px solid rgba(79,93,117,0.25);
    padding: 1rem 5vw 1.5rem;
  }
  .nav-links.open { display: flex; }
  .nav-links li { padding: 0.8rem 0; border-bottom: 1px solid rgba(33,36,49,0.08); }
  .nav-toggle { display: block; }
  .nav-cta { display: none; }
}
@media (max-width: 600px) {
  .section-inner { padding: 5rem 5vw; }
  .footer-legal { text-align: left; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .reveal { opacity: 1; transform: none; }
}

@media (max-width: 900px) {
  html[data-theme="dark"] .nav-links {
    background: rgba(33,36,49,0.98);
    border-bottom: 1px solid var(--navy-edge);
  }
  html[data-theme="dark"] .nav-links li { border-bottom: 1px solid rgba(255,255,255,0.05); }
  .theme-toggle { margin-left: 0.6rem; }
}


/* ── 3D SYSTEM: tilt, depth reveal, hero cube ────────────────── */
[data-tilt] {
  transform-style: preserve-3d;
  will-change: transform;
  transition: transform 0.4s var(--ease-out-expo);
}
[data-tilt] > * { transform: translateZ(1px); }

@media (prefers-reduced-motion: no-preference) {
  .reveal {
    transform: translateY(28px) perspective(900px) rotateX(7deg);
    transform-origin: center bottom;
  }
  .reveal.in { transform: translateY(0) perspective(900px) rotateX(0deg); }
}

/* hero 3D wireframe cube */
.cube3d-wrap {
  display: inline-block;
  width: 16px; height: 16px;
  margin-right: 0.75em;
  vertical-align: -3px;
  perspective: 120px;
}
.cube3d {
  display: block;
  position: relative;
  width: 100%; height: 100%;
  transform-style: preserve-3d;
  animation: spin3d 9s linear infinite;
}
.cube3d i {
  position: absolute;
  inset: 0;
  background: rgba(234,92,31,0.28);
  border: 1px solid var(--amber);
}
.cube3d i:nth-child(1) { transform: translateZ(8px); }
.cube3d i:nth-child(2) { transform: rotateY(180deg) translateZ(8px); }
.cube3d i:nth-child(3) { transform: rotateY(90deg) translateZ(8px); }
.cube3d i:nth-child(4) { transform: rotateY(-90deg) translateZ(8px); }
.cube3d i:nth-child(5) { transform: rotateX(90deg) translateZ(8px); }
.cube3d i:nth-child(6) { transform: rotateX(-90deg) translateZ(8px); }
@keyframes spin3d {
  from { transform: rotateX(-22deg) rotateY(0deg); }
  to   { transform: rotateX(-22deg) rotateY(360deg); }
}
@media (prefers-reduced-motion: reduce) {
  .cube3d { animation: none; transform: rotateX(-22deg) rotateY(35deg); }
}
