/* MOCKUP ONLY — SpaceX-style homepage restyle. Loaded solely by public/index.html.
   Do not merge to production without an explicit ship decision. */

@font-face {
  font-family: "D-DIN";
  src: url("/mockup-spacex/fonts/D-DIN.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "D-DIN";
  src: url("/mockup-spacex/fonts/D-DIN-Bold.woff2") format("woff2");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

:root {
  --ink: #0e0e0e;
  --ink-2: #111111;
  --white: #ffffff;
  --muted: rgba(255, 255, 255, 0.7);
  --rust: #c45c2a;
  --font: "D-DIN", "Arial Narrow", Arial, sans-serif;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
}

body.sx-mockup {
  margin: 0;
  background: var(--ink);
  color: var(--white);
  font-family: var(--font);
  font-weight: 400;
  line-height: 1.45;
  -webkit-font-smoothing: antialiased;
}

body.sx-mockup a {
  color: inherit;
  text-decoration: none;
}

body.sx-mockup img {
  display: block;
  max-width: 100%;
}

/* —— Header —— */
.sx-header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 100;
  background: transparent;
  transition: background 0.25s ease;
}

.sx-header.is-solid {
  background: rgba(14, 14, 14, 0.92);
}

.sx-header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  max-width: 1400px;
  margin: 0 auto;
  padding: 1.1rem 1.5rem;
}

.sx-logo {
  display: flex;
  align-items: center;
  flex-shrink: 0;
}

.sx-logo-wordmark {
  width: 132px;
  height: auto;
}

.sx-nav {
  display: none;
  align-items: center;
  gap: 1.75rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.sx-nav a,
.sx-nav button {
  font-family: var(--font);
  font-size: 0.78rem;
  font-weight: 400;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--white);
  background: none;
  border: 0;
  padding: 0;
  cursor: pointer;
}

.sx-nav a:hover,
.sx-nav button:hover {
  opacity: 0.75;
}

.sx-nav a:focus-visible,
.sx-nav button:focus-visible,
.sx-menu-btn:focus-visible,
.sx-btn:focus-visible,
.sx-overlay a:focus-visible,
.sx-overlay button:focus-visible {
  outline: 2px solid var(--rust);
  outline-offset: 4px;
}

.sx-menu-btn {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 40px;
  height: 40px;
  padding: 8px;
  background: transparent;
  border: 0;
  cursor: pointer;
}

.sx-menu-btn span {
  display: block;
  height: 1px;
  width: 100%;
  background: var(--white);
}

@media (min-width: 900px) {
  .sx-nav {
    display: flex;
  }

  .sx-menu-btn {
    display: none;
  }
}

/* —— Full-screen mobile overlay —— */
.sx-overlay {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1.5rem;
  background: var(--ink);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.25s ease, visibility 0.25s ease;
}

.sx-overlay.is-open {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.sx-overlay a,
.sx-overlay button {
  font-family: var(--font);
  font-size: 1.15rem;
  font-weight: 400;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--white);
  background: none;
  border: 0;
  cursor: pointer;
  padding: 0.35rem 0.5rem;
}

.sx-overlay-close {
  position: absolute;
  top: 1.1rem;
  right: 1.25rem;
  width: 44px;
  height: 44px;
  font-size: 1.75rem;
  line-height: 1;
}

body.sx-mockup.sx-nav-open {
  overflow: hidden;
}

/* —— Panels —— */
.sx-panel {
  position: relative;
  min-height: 100svh;
  display: flex;
  align-items: flex-end;
  overflow: hidden;
  background: var(--ink-2);
}

.sx-panel-media {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.sx-panel-media img,
.sx-panel-media video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.sx-bg-poster,
.sx-bg-video {
  position: absolute;
  inset: 0;
}

@media (prefers-reduced-motion: reduce) {
  .sx-bg-video {
    display: none;
  }
}

/* Soften AI sidewall lettering on the Built Different clip; text stays on the dark left. */
.sx-panel-media--built::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background:
    linear-gradient(to left, rgba(14, 14, 14, 0.58) 0%, rgba(14, 14, 14, 0.22) 32%, transparent 58%),
    radial-gradient(ellipse 55% 70% at 78% 38%, rgba(14, 14, 14, 0.42) 0%, transparent 70%);
}

.sx-panel-media--map img {
  object-fit: contain;
  object-position: center;
  padding: 4rem 1.5rem 6rem;
  filter: drop-shadow(0 0 1.25px rgba(255, 255, 255, 0.35));
  opacity: 1;
}

/* Keep text readable at the bottom without crushing the lane lines. */
#where .sx-panel-shade {
  background:
    linear-gradient(
      to top,
      rgba(14, 14, 14, 0.9) 0%,
      rgba(14, 14, 14, 0.45) 28%,
      rgba(14, 14, 14, 0.12) 58%,
      rgba(14, 14, 14, 0.28) 100%
    );
}

.sx-photo-ph {
  width: 100%;
  height: 100%;
  display: grid;
  place-items: center;
  background:
    linear-gradient(160deg, #161616 0%, #0a0a0a 55%, #121212 100%);
  border: 0;
}

.sx-photo-ph span {
  font-family: var(--font);
  font-size: 0.75rem;
  font-weight: 400;
  letter-spacing: 0.35em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.28);
  border: 1px solid rgba(255, 255, 255, 0.18);
  padding: 0.55rem 1rem;
}

.sx-panel-shade {
  position: absolute;
  inset: 0;
  z-index: 1;
  background:
    linear-gradient(
      to top,
      rgba(14, 14, 14, 0.92) 0%,
      rgba(14, 14, 14, 0.55) 42%,
      rgba(14, 14, 14, 0.25) 70%,
      rgba(14, 14, 14, 0.35) 100%
    );
  pointer-events: none;
}

.sx-panel-content {
  position: relative;
  z-index: 2;
  width: min(720px, 100%);
  padding: 6.5rem 1.5rem 4.5rem;
  margin-right: auto;
}

@media (min-width: 900px) {
  .sx-panel-content {
    padding: 7rem 4rem 5.5rem;
  }
}

.sx-kicker,
.sx-headline,
.sx-line,
.sx-actions {
  margin: 0;
}

.sx-headline {
  font-family: var(--font);
  font-weight: 400;
  font-size: clamp(2.1rem, 5.6vw, 3.6rem);
  line-height: 1.05;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  max-width: 16ch;
}

.sx-line {
  margin-top: 1rem;
  font-size: clamp(0.95rem, 1.6vw, 1.1rem);
  font-weight: 400;
  letter-spacing: 0.02em;
  color: var(--muted);
  max-width: 36ch;
}

.sx-actions {
  margin-top: 1.75rem;
}

.sx-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 2.75rem;
  padding: 0.7rem 1.6rem;
  font-family: var(--font);
  font-size: 0.8rem;
  font-weight: 400;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--white);
  background: var(--rust);
  border: 1px solid var(--rust);
  cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.sx-btn:hover {
  background: transparent;
  color: var(--white);
}

/* —— Fade-in: visible by default; motion only when JS marks readiness —— */
.sx-reveal {
  opacity: 1;
  transform: none;
}

@media (prefers-reduced-motion: no-preference) {
  body.sx-js .sx-reveal:not(.is-in) {
    opacity: 0;
    transform: translateY(14px);
  }

  body.sx-js .sx-reveal {
    transition: opacity 0.7s ease, transform 0.7s ease;
  }

  body.sx-js .sx-reveal.is-in {
    opacity: 1;
    transform: none;
  }
}

/* —— Footer —— */
.sx-footer {
  background: var(--ink);
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding: 2.5rem 1.5rem 2rem;
}

.sx-footer-inner {
  max-width: 1400px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.sx-footer-brand {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.sx-footer-logo {
  width: 160px;
  height: auto;
}

.sx-powered {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.45rem 0.65rem;
  font-size: 0.7rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.65);
}

.sx-powered img {
  width: 78px;
  height: 12px;
}

.sx-footer-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem 1.5rem;
  align-items: center;
  justify-content: space-between;
  font-size: 0.75rem;
  letter-spacing: 0.04em;
  color: rgba(255, 255, 255, 0.55);
}

.sx-footer-meta a {
  color: rgba(255, 255, 255, 0.7);
}

.sx-footer-meta a:hover {
  color: var(--white);
}

.sx-footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem 1.25rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.sx-footer-links a {
  font-size: 0.72rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

/* Contact: plain black background (Brandon, 2026-11-16) */
.sx-panel--black { background: #000; }

/* —— Subpages: /services, /about —— */
.sx-panel--sub { min-height: 62svh; }
.sx-label { margin: 0 0 0.75rem; font-size: 0.75rem; letter-spacing: 0.3em; text-transform: uppercase; color: var(--rust); }
.sx-body { background: var(--ink); padding: 4rem 1.5rem 5rem; }
.sx-body > * { max-width: 1200px; margin-left: auto; margin-right: auto; }
@media (min-width: 900px) { .sx-body { padding: 5rem 4rem 6rem; } }
.sx-grid { display: grid; gap: 1px; grid-template-columns: 1fr; }
.sx-grid .sx-card { box-shadow: 0 0 0 1px rgba(255,255,255,0.08); }
@media (min-width: 700px) { .sx-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1000px) { .sx-grid { grid-template-columns: repeat(3, 1fr); } .sx-grid--4 { grid-template-columns: repeat(4, 1fr); } }
.sx-card { background: var(--ink); padding: 2rem 1.75rem; }
.sx-card h2 { margin: 0 0 0.75rem; font-family: var(--font); font-weight: 400; font-size: 1.15rem; letter-spacing: 0.1em; text-transform: uppercase; }
.sx-card p { margin: 0; color: var(--muted); line-height: 1.6; }
.sx-card .sx-step { color: var(--rust); font-size: 0.75rem; letter-spacing: 0.25em; margin-bottom: 0.75rem; }
.sx-body .sx-actions { margin-top: 2.5rem; }
.sx-tagline { font-size: clamp(1.4rem, 3vw, 2rem); letter-spacing: 0.04em; text-transform: uppercase; margin: 0 auto 2.5rem; }
.sx-accent { color: var(--rust); }
.sx-about { display: grid; gap: 3rem; }
@media (min-width: 900px) { .sx-about { grid-template-columns: 1.4fr 1fr; } }
.sx-about-text p { color: var(--muted); line-height: 1.7; margin: 0 0 1.25rem; max-width: 62ch; }
.sx-about-text a { color: var(--white); text-decoration: underline; text-underline-offset: 3px; }
.sx-about-text .sx-sign { color: var(--white); letter-spacing: 0.14em; text-transform: uppercase; font-size: 0.85rem; margin-top: 2rem; }
.sx-about-side { display: grid; gap: 1px; align-content: start; }
.sx-about-photo { margin: 0 0 1.5rem; }
.sx-about-photo img { width: 100%; height: auto; display: block; filter: grayscale(0.15); }
.sx-about-side .sx-card { border: 1px solid rgba(255,255,255,0.08); }
.sx-section { margin-top: 4.5rem; }
.sx-h2 { font-family: var(--font); font-weight: 400; font-size: clamp(1.5rem, 3vw, 2.1rem); letter-spacing: 0.06em; text-transform: uppercase; margin: 0 0 0.75rem; }
.sx-subline { color: var(--muted); max-width: 60ch; line-height: 1.6; margin: 0 0 2rem; }
.sx-about-text .sx-h2 { margin-bottom: 1.5rem; }
html { scroll-padding-top: 5rem; }

/* footer social icons */
.sx-social { display: flex; gap: 1rem; margin-top: 0.9rem; }
.sx-social-link { display: inline-flex; width: 20px; height: 20px; color: rgba(255,255,255,0.7); }
.sx-social-link:hover, .sx-social-link:focus-visible { color: #fff; }
.sx-social-link svg { width: 100%; height: 100%; }
