/* Wildcreek v5 — light luxury editorial */
:root {
  --bg: #f4f4f4;
  --bg-soft: #eaeaea;
  --bg-white: #fafafa;
  --ink: #141414;
  --ink-soft: #2a2a2a;
  --muted: #6b6b6b;
  --fog: #9a9a9a;
  --gold: #c3a66f;
  --gold-deep: #a88b52;
  --gold-soft: rgba(195, 166, 111, 0.18);
  --line: rgba(20, 20, 20, 0.1);
  --line-strong: rgba(20, 20, 20, 0.16);
  --shadow: 0 18px 50px rgba(20, 20, 20, 0.08);
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --nav-h: 4.25rem;
  --max: 1120px;
}

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

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: "Inter", system-ui, -apple-system, sans-serif;
  font-weight: 400;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
  object-fit: contain;
}

a { color: inherit; text-decoration: none; }
strong { font-weight: 600; }

.skip {
  position: absolute;
  left: -999px;
  top: 0;
  background: var(--gold);
  color: var(--ink);
  padding: 0.5rem 1rem;
  z-index: 100;
}
.skip:focus { left: 1rem; top: 1rem; }

/* ——— Nav ——— */
.site-nav {
  position: fixed;
  inset: 0 0 auto;
  z-index: 50;
  height: var(--nav-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  padding: 0 clamp(1.25rem, 4vw, 3.5rem);
  background: rgba(220, 220, 220, 0.94);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(20, 20, 20, 0.08);
  box-shadow:
    0 10px 24px rgba(20, 20, 20, 0.10),
    0 2px 0 rgba(20, 20, 20, 0.04);
  transition: background 0.35s var(--ease), border-color 0.35s, box-shadow 0.35s;
}

.site-nav.is-solid {
  background: rgba(214, 214, 214, 0.96);
  border-bottom-color: rgba(20, 20, 20, 0.10);
  box-shadow:
    0 14px 32px rgba(20, 20, 20, 0.12),
    0 2px 0 rgba(20, 20, 20, 0.05);
}

.nav-brand {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  color: var(--ink);
  font-family: "Cinzel", serif;
  font-size: 0.88rem;
  letter-spacing: 0.32em;
  text-transform: uppercase;
}
.nav-crest {
  width: 34px;
  height: auto;
  object-fit: contain;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: clamp(1.1rem, 2.6vw, 2.2rem);
}
.nav-links a {
  color: var(--muted);
  font-size: 0.78rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  transition: color 0.25s;
}
.nav-links a:hover,
.nav-links a[aria-current="page"] { color: var(--ink); }

.nav-x {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
  padding: 0;
  color: var(--muted);
  /* optically match uppercase nav text baseline */
  transform: translateY(-0.06em);
}
.nav-x:hover { color: var(--ink); }
.nav-x-icon {
  width: 0.92rem;
  height: 0.92rem;
  display: block;
  vertical-align: middle;
}

.nav-cta {
  font-size: 0.72rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gold-deep);
  border: 1px solid var(--gold);
  padding: 0.55rem 1rem;
  transition: background 0.25s, color 0.25s;
}
.nav-cta:hover {
  background: var(--gold);
  color: var(--ink);
}

/* ——— Buttons ——— */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  font-size: 0.74rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  padding: 0.95rem 1.45rem;
  border: 1px solid transparent;
  transition: background 0.28s var(--ease), color 0.28s, border-color 0.28s, transform 0.28s;
}
.btn:hover { transform: translateY(-1px); }
.btn-gold {
  border-color: var(--gold);
  color: var(--gold-deep);
  background: transparent;
}
.btn-gold:hover {
  background: var(--gold);
  color: var(--ink);
}
.btn-ink {
  border-color: var(--ink);
  color: var(--ink);
  background: transparent;
}
.btn-ink:hover {
  background: var(--ink);
  color: var(--bg-white);
}
.btn-ghost {
  border-color: var(--line-strong);
  color: var(--ink-soft);
}
.btn-ghost:hover {
  border-color: var(--ink);
  color: var(--ink);
}
.btn-gold-solid {
  background: var(--gold);
  color: var(--ink);
  border-color: var(--gold);
}
.btn-gold-solid:hover {
  background: var(--gold-deep);
  border-color: var(--gold-deep);
  color: #fff;
}

.text-link {
  font-size: 0.8rem;
  letter-spacing: 0.08em;
  color: var(--gold-deep);
  border-bottom: 1px solid transparent;
}
.text-link:hover { border-bottom-color: var(--gold); }

/* ——— Typography helpers ——— */
.eyebrow {
  margin: 0 0 1rem;
  font-size: 0.72rem;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--gold-deep);
}
.gold-kicker {
  margin: 0 0 0.75rem;
  font-size: 0.72rem;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--gold-deep);
}
h1, h2, h3 {
  font-family: "Cinzel", serif;
  font-weight: 500;
  letter-spacing: 0.04em;
  color: var(--ink);
  margin: 0;
}
h1 {
  font-size: clamp(2.1rem, 5.2vw, 3.6rem);
  line-height: 1.12;
}
h1 .line { display: block; }
h1 .accent { color: var(--gold-deep); }
h2 {
  font-size: clamp(1.55rem, 3.2vw, 2.25rem);
  line-height: 1.2;
}
h3 {
  font-size: 1rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin-bottom: 0.65rem;
}
.lede {
  margin: 1.25rem 0 0;
  max-width: 34rem;
  font-size: clamp(1rem, 1.6vw, 1.12rem);
  line-height: 1.7;
  color: var(--muted);
  font-weight: 300;
}
.lede.narrow { max-width: 36rem; margin-left: auto; margin-right: auto; }
.prose p {
  margin: 0 0 1rem;
  color: var(--muted);
  line-height: 1.75;
  font-weight: 300;
  font-size: 1rem;
}
.rule {
  width: 3.5rem;
  height: 1px;
  background: var(--gold);
  margin: 1.15rem 0 1.35rem;
}

/* ——— Brand masthead (crest at TOP) ——— */
.masthead {
  padding: calc(var(--nav-h) + 2.5rem) clamp(1.25rem, 4vw, 3.5rem) 1.5rem;
  background:
    radial-gradient(ellipse 70% 55% at 50% 0%, rgba(195, 166, 111, 0.08), transparent 60%),
    linear-gradient(180deg, #fafafa 0%, var(--bg) 100%);
  text-align: center;
}
.masthead-crest {
  width: min(420px, 72vw);
  margin: 0 auto 1.25rem;
  filter: drop-shadow(0 16px 40px rgba(20, 20, 20, 0.12));
}
.masthead-crest img {
  width: 100%;
  height: auto;
  object-fit: contain;
}
.masthead-word {
  width: min(280px, 55vw);
  margin: 0 auto 0.35rem;
  opacity: 0.92;
}
.masthead-word img {
  width: 100%;
  height: auto;
  object-fit: contain;
}
.masthead-tag {
  margin: 0.85rem 0 0;
  font-size: 0.7rem;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--fog);
}

/* ——— Hero ——— */
.hero {
  position: relative;
  padding: 1rem clamp(1.25rem, 4vw, 3.5rem) 0;
  background: var(--bg);
}
.hero-inner {
  max-width: var(--max);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.05fr 1.1fr;
  gap: clamp(1.5rem, 4vw, 3.5rem);
  align-items: center;
  padding: 2rem 0 2.5rem;
}
.hero-copy h1 { margin-top: 0.15rem; }
.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
  margin-top: 1.75rem;
}
.hero-vehicle {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem 1rem 2rem;
  background:
    radial-gradient(ellipse 65% 50% at 50% 55%, rgba(195, 166, 111, 0.12), transparent 70%),
    linear-gradient(180deg, #f7f7f7, #ececec);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
}
.hero-vehicle::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  box-shadow: inset 0 0 80px rgba(20, 20, 20, 0.03);
}
.hero-vehicle img {
  width: 100%;
  max-width: 560px;
  height: auto;
  object-fit: contain;
  filter: drop-shadow(0 22px 35px rgba(20, 20, 20, 0.18));
}

.feature-bar {
  list-style: none;
  margin: 0 auto;
  padding: 0;
  max-width: var(--max);
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: var(--bg-white);
}
.feature-bar li {
  display: flex;
  gap: 0.9rem;
  align-items: flex-start;
  padding: 1.35rem 1.4rem;
  border-right: 1px solid var(--line);
}
.feature-bar li:last-child { border-right: none; }
.feature-bar strong {
  display: block;
  font-family: "Cinzel", serif;
  font-size: 0.82rem;
  letter-spacing: 0.08em;
  margin-bottom: 0.25rem;
}
.feature-bar span:not(.f-icon) {
  display: block;
  font-size: 0.85rem;
  color: var(--muted);
  line-height: 1.45;
  font-weight: 300;
}
.f-icon {
  flex: 0 0 28px;
  width: 28px;
  height: 28px;
  color: var(--gold-deep);
}
.f-icon svg { width: 100%; height: 100%; }

/* ——— Editorial sections ——— */
.editorial {
  padding: clamp(3.5rem, 8vw, 6rem) clamp(1.25rem, 4vw, 3.5rem);
  max-width: calc(var(--max) + 7rem);
  margin: 0 auto;
}
.story-grid {
  display: grid;
  grid-template-columns: 0.95fr 1.05fr;
  gap: clamp(2rem, 5vw, 4rem);
  align-items: center;
}
.story-brand {
  background: linear-gradient(160deg, #fafafa, #ececec);
  border: 1px solid var(--line);
  padding: clamp(1.5rem, 3vw, 2.5rem);
  box-shadow: var(--shadow);
}
.crest-lg {
  width: 100%;
  max-width: 460px;
  margin: 0 auto;
  object-fit: contain;
  filter: drop-shadow(0 12px 28px rgba(20, 20, 20, 0.1));
}
.inline-ctas {
  display: flex;
  flex-wrap: wrap;
  gap: 1.1rem;
  align-items: center;
  margin-top: 1.5rem;
}

.cab-editorial {
  margin: clamp(2.5rem, 6vw, 4.5rem) 0 0;
  padding: clamp(1.5rem, 3vw, 2.5rem);
  background: var(--bg-white);
  border: 1px solid var(--line);
  text-align: center;
}
.cab-editorial img {
  width: min(720px, 100%);
  margin: 0 auto;
  object-fit: contain;
  filter: drop-shadow(0 18px 32px rgba(20, 20, 20, 0.12));
}
.cab-editorial figcaption {
  display: flex;
  justify-content: center;
  gap: 1.5rem;
  align-items: baseline;
  margin-top: 1.25rem;
  flex-wrap: wrap;
}
.cinzel-label {
  font-family: "Cinzel", serif;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  font-size: 0.78rem;
}
.cap-meta {
  font-size: 0.72rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--fog);
}

/* ——— Coming soon ——— */
.coming {
  padding: clamp(3.5rem, 7vw, 5.5rem) clamp(1.25rem, 4vw, 3.5rem);
  background:
    linear-gradient(180deg, var(--bg-soft), #e4e4e4);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  text-align: center;
}
.coming-inner {
  max-width: 40rem;
  margin: 0 auto;
}
.coming p {
  color: var(--muted);
  line-height: 1.7;
  font-weight: 300;
  margin: 1rem auto 0;
  max-width: 34rem;
}
.coming-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.85rem;
  margin-top: 1.75rem;
}

/* ——— WK seal ——— */
.seal-band {
  padding: clamp(3rem, 6vw, 5rem) 1.5rem;
  display: flex;
  justify-content: center;
  background: var(--bg);
}
.wk-seal {
  width: min(220px, 42vw);
  height: auto;
  object-fit: contain;
  opacity: 0.92;
  filter: drop-shadow(0 10px 24px rgba(20, 20, 20, 0.1));
}
.wk-seal-sm { width: min(140px, 32vw); }

/* ——— Cybercab page ——— */
.page-hero {
  padding: calc(var(--nav-h) + 3.5rem) clamp(1.25rem, 4vw, 3.5rem) 3rem;
  text-align: center;
  background:
    radial-gradient(ellipse 60% 50% at 50% 0%, rgba(195, 166, 111, 0.1), transparent 65%),
    linear-gradient(180deg, #fafafa, var(--bg));
  border-bottom: 1px solid var(--line);
}
.page-hero-inner { max-width: 44rem; margin: 0 auto; }
.page-body { padding-top: clamp(2.5rem, 5vw, 4rem); }

.explain-grid {
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  gap: clamp(1.75rem, 4vw, 3.5rem);
  align-items: center;
}
.explain-visual {
  margin: 0;
  padding: clamp(1.25rem, 3vw, 2rem);
  background: linear-gradient(160deg, #fafafa, #ececec);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
}
.explain-visual img {
  width: 100%;
  object-fit: contain;
  filter: drop-shadow(0 16px 28px rgba(20, 20, 20, 0.12));
}

.wordmark-row {
  display: flex;
  justify-content: center;
  margin: clamp(2.5rem, 5vw, 3.5rem) 0;
  padding: 1.5rem 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.cyber-wordmark {
  width: min(320px, 60vw);
  opacity: 0.88;
  object-fit: contain;
}

.feature-cards {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
  margin-top: 0.5rem;
}
.card {
  padding: 1.5rem 1.4rem;
  background: var(--bg-white);
  border: 1px solid var(--line);
}
.card p {
  margin: 0;
  color: var(--muted);
  font-weight: 300;
  line-height: 1.6;
  font-size: 0.95rem;
}

.page-cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
  justify-content: center;
  margin: 1.75rem 0 0.5rem;
}

.crest-footer {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: clamp(1.5rem, 4vw, 3rem);
  flex-wrap: wrap;
  padding-top: 1rem;
}
.crest-md {
  width: min(280px, 55vw);
  object-fit: contain;
  filter: drop-shadow(0 10px 22px rgba(20, 20, 20, 0.1));
}

/* ——— Footer ——— */
.site-footer {
  padding: 2.75rem clamp(1.25rem, 4vw, 3.5rem) 2rem;
  background: #ececec;
  border-top: 1px solid var(--line);
  color: var(--muted);
}
.footer-grid {
  max-width: var(--max);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.2fr 1.4fr 1fr;
  gap: 2rem;
}
.footer-brand {
  margin: 0;
  font-family: "Cinzel", serif;
  font-size: 0.95rem;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--ink);
}
.footer-tag {
  margin: 0.45rem 0 0;
  font-size: 0.8rem;
  letter-spacing: 0.06em;
}
.footer-contact {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  font-size: 0.88rem;
}
.footer-contact a:hover { color: var(--gold-deep); }
.footer-contact p { margin: 0.35rem 0 0; line-height: 1.55; }

.footer-contact a {
  display: block;
}
.footer-contact a + a {
  margin-top: 0.45rem;
}
.footer-links {
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
  align-items: flex-start;
  font-size: 0.82rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.footer-links a:hover { color: var(--ink); }
.disclaimer {
  max-width: var(--max);
  margin: 2rem auto 0;
  padding-top: 1.25rem;
  border-top: 1px solid var(--line);
  font-size: 0.72rem;
  line-height: 1.6;
  color: var(--fog);
}

/* ——— Reveal ——— */
.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
}
.reveal.is-in {
  opacity: 1;
  transform: none;
}
.reveal-delay { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.18s; }
.reveal-delay-3 { transition-delay: 0.26s; }

@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
}

/* ——— Responsive ——— */
@media (max-width: 900px) {
  .nav-links { display: none; }
  .hero-inner,
  .story-grid,
  .explain-grid {
    grid-template-columns: 1fr;
  }
  .hero-copy { text-align: center; }
  .lede { margin-left: auto; margin-right: auto; }
  .hero-actions { justify-content: center; }
  .feature-bar { grid-template-columns: 1fr; }
  .feature-bar li {
    border-right: none;
    border-bottom: 1px solid var(--line);
  }
  .feature-bar li:last-child { border-bottom: none; }
  .feature-cards { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; gap: 1.5rem; }
  .inline-ctas { justify-content: center; }
  .story-copy { text-align: center; }
  .rule { margin-left: auto; margin-right: auto; }
}

@media (max-width: 520px) {
  .masthead { padding-top: calc(var(--nav-h) + 1.75rem); }
  .masthead-crest { width: min(300px, 78vw); }
  .hero-vehicle { padding: 1rem 0.75rem 1.5rem; }
}


.story-grid-flip {
  direction: ltr;
}
.truck-band {
  padding-top: clamp(2.5rem, 6vw, 4.5rem);
}
.truck-band .truck-home {
  width: min(100%, 760px);
  height: auto;
  display: block;
  margin-inline: auto;
  background: transparent;
  filter: drop-shadow(0 22px 18px rgba(20, 20, 20, 0.22));
}


/* Cybertruck page — seamless vehicle on page bg */
.explain-grid-truck {
  grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr);
  gap: clamp(2.25rem, 5vw, 3.75rem);
  align-items: end;
}
.truck-visual {
  margin: 0;
  padding: 0 0 1.85rem;
  background: var(--bg);
  border: none;
  box-shadow: none;
  position: relative;
  overflow: visible; /* never clip the front of the truck */
}
.truck-visual::after {
  content: "";
  position: absolute;
  left: 10%;
  right: 10%;
  bottom: 0.35rem;
  height: 1.35rem;
  background: radial-gradient(ellipse at center, rgba(20, 20, 20, 0.32) 0%, rgba(20, 20, 20, 0.12) 42%, transparent 72%);
  filter: blur(5px);
  z-index: 0;
  pointer-events: none;
}
.truck-visual img {
  position: relative;
  z-index: 1;
  display: block;
  width: 100%;
  max-width: 100%;
  height: auto;
  margin: 0;
  object-fit: contain;
  object-position: center bottom;
  background: transparent;
  /* enlarge without cropping — scale from center, stay in column */
  transform: scale(1.12);
  transform-origin: center bottom;
  filter: drop-shadow(0 22px 18px rgba(20, 20, 20, 0.22));
}
.explain-grid-truck .explain-copy {
  position: relative;
  z-index: 2; /* keep words above any scaled truck edge */
  padding-left: 0.25rem;
}
@media (max-width: 860px) {
  .explain-grid-truck {
    grid-template-columns: 1fr;
  }
  .truck-visual img {
    transform: scale(1.06);
    transform-origin: center bottom;
  }
}
