/* XR Explorer — site styles.
   Palette is the app's own: ink, paper, clay, teal, ochre. */

:root {
  --ink:        #0D0E0E;
  --ink-raised: #161817;
  --ink-line:   #242726;
  --paper:      #F4F1EA;
  --muted:      #9A9892;
  --clay:       #C2603F;
  --teal:       #2E5D5B;
  --ochre:      #D9A441;

  --rule:       rgba(244, 241, 234, 0.10);
  --rule-soft:  rgba(244, 241, 234, 0.055);

  --measure:    64rem;
  --gutter:     clamp(1rem, 4vw, 3.5rem);
  --section:    clamp(5rem, 11vw, 9.5rem);

  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: 5.5rem;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--ink);
  color: var(--paper);
  font-family: Archivo, "Helvetica Neue", Helvetica, Arial, sans-serif;
  font-size: 1.0625rem;
  line-height: 1.65;
  font-feature-settings: "kern" 1;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img { max-width: 100%; display: block; }
a { color: inherit; }

::selection { background: var(--ochre); color: var(--ink); }

/* ---------- type ---------- */

h1, h2, h3 {
  font-weight: 800;
  letter-spacing: -0.028em;
  line-height: 1.04;
  margin: 0;
  text-wrap: balance;
}

h1 { font-size: clamp(2.6rem, 7.4vw, 5.6rem); }
h2 { font-size: clamp(2rem, 4.6vw, 3.4rem); }
h3 { font-size: 1.25rem; letter-spacing: -0.02em; line-height: 1.25; }

p { margin: 0 0 1.1em; text-wrap: pretty; }
p:last-child { margin-bottom: 0; }

.lede {
  font-size: clamp(1.1rem, 1.9vw, 1.35rem);
  line-height: 1.55;
  color: rgba(244, 241, 234, 0.76);
  max-width: 44ch;
}

.eyebrow {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.17em;
  text-transform: uppercase;
  color: var(--ochre);
  margin: 0 0 1.4rem;
  display: flex;
  align-items: center;
  gap: 0.75rem;
}
.eyebrow::after {
  content: "";
  flex: 1;
  height: 1px;
  background: var(--rule);
}

/* ---------- layout ---------- */

.wrap {
  width: 100%;
  max-width: var(--measure);
  margin-inline: auto;
  padding-inline: var(--gutter);
}
.wrap--wide { max-width: 86rem; }

section { padding-block: var(--section); }

.rule-top { border-top: 1px solid var(--rule-soft); }

/* ---------- skip link ---------- */

.skip {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--ochre);
  color: var(--ink);
  padding: 0.75rem 1.25rem;
  font-weight: 700;
  z-index: 200;
}
.skip:focus { left: 1rem; top: 1rem; }

/* ---------- nav ---------- */

.nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(13, 14, 14, 0.72);
  backdrop-filter: saturate(150%) blur(14px);
  -webkit-backdrop-filter: saturate(150%) blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.3s var(--ease), background 0.3s var(--ease);
}
.nav[data-stuck="true"] {
  border-bottom-color: var(--rule);
  background: rgba(13, 14, 14, 0.9);
}
.nav__inner {
  display: flex;
  align-items: center;
  gap: 2rem;
  height: 4.5rem;
}
.nav__logo { display: flex; align-items: center; text-decoration: none; margin-right: auto; }
.nav__logo img { height: 1.45rem; width: auto; }
.nav__links { display: flex; gap: 2rem; align-items: center; }
.nav__links a {
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 500;
  white-space: nowrap;
  color: rgba(244, 241, 234, 0.66);
  transition: color 0.2s var(--ease);
}
.nav__links a:hover,
.nav__links a:focus-visible { color: var(--paper); }

@media (max-width: 46rem) {
  .nav__links { gap: 1.15rem; }
  .nav__links a { font-size: 0.82rem; }
  .nav__links .nav__hide-sm { display: none; }
}
/* At phone width the remaining labels still wrap onto two lines and double the
   bar's height, so they are pinned to one line and the longest one drops out. */
@media (max-width: 30rem) {
  .nav__links { gap: 0.95rem; }
  .nav__links .nav__hide-xs { display: none; }
}

/* ---------- buttons ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.95rem 1.65rem;
  border-radius: 2rem;
  border: 1px solid transparent;
  font: inherit;
  font-size: 0.95rem;
  font-weight: 600;
  letter-spacing: -0.01em;
  text-decoration: none;
  cursor: pointer;
  transition: transform 0.18s var(--ease), background 0.18s var(--ease),
              border-color 0.18s var(--ease), color 0.18s var(--ease);
}
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }

.btn--primary { background: var(--ochre); color: var(--ink); }
.btn--primary:hover { background: #E7B356; }

.btn--ghost {
  border-color: var(--rule);
  color: var(--paper);
  background: transparent;
}
.btn--ghost:hover { border-color: rgba(244, 241, 234, 0.32); background: rgba(244, 241, 234, 0.04); }

.btn--soon {
  cursor: default;
  background: rgba(244, 241, 234, 0.055);
  border-color: var(--rule);
  color: rgba(244, 241, 234, 0.82);
}
.btn--soon:hover { transform: none; }

.tag {
  font-size: 0.66rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 0.22rem 0.5rem;
  border-radius: 0.3rem;
  background: var(--teal);
  color: var(--paper);
}

/* ---------- hero ---------- */

.hero {
  position: relative;
  min-height: min(92svh, 54rem);
  display: flex;
  align-items: flex-end;
  padding-block: clamp(6rem, 14vh, 10rem) clamp(3.5rem, 8vh, 6rem);
  overflow: hidden;
  isolation: isolate;
}
.hero__bg {
  position: absolute;
  inset: 0;
  z-index: -2;
}
.hero__bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 62%;
  transform: scale(1.06);
  animation: heroDrift 26s var(--ease) infinite alternate;
}
@keyframes heroDrift {
  from { transform: scale(1.06) translate3d(0, 0, 0); }
  to   { transform: scale(1.13) translate3d(-1.2%, -1%, 0); }
}
.hero__bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(13,14,14,0.78) 0%, rgba(13,14,14,0.30) 32%, rgba(13,14,14,0.86) 78%, var(--ink) 100%),
    linear-gradient(94deg, rgba(13,14,14,0.86) 0%, rgba(13,14,14,0.18) 62%, rgba(13,14,14,0.05) 100%);
}
.hero__content { position: relative; max-width: 50rem; }
.hero h1 { margin-bottom: 1.5rem; }
.hero h1 em {
  font-style: normal;
  color: var(--ochre);
}
.hero .lede { max-width: 38ch; margin-bottom: 2.4rem; }
.hero__cta { display: flex; flex-wrap: wrap; gap: 0.85rem; align-items: center; }
.hero__note {
  margin-top: 1.6rem;
  font-size: 0.85rem;
  color: var(--muted);
}

/* ---------- stat band ---------- */

.band {
  border-block: 1px solid var(--rule-soft);
  background: var(--ink-raised);
  padding-block: 0;
}
.band__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
}
.band__item {
  padding: 2.2rem 1.5rem;
  border-left: 1px solid var(--rule-soft);
  text-align: center;
}
.band__item:first-child { border-left: 0; }
.band__n {
  display: block;
  font-size: clamp(1.5rem, 3vw, 2.1rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1;
  margin-bottom: 0.45rem;
}
.band__l {
  font-size: 0.74rem;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  color: var(--muted);
}
@media (max-width: 44rem) {
  .band__grid { grid-template-columns: repeat(2, 1fr); }
  .band__item:nth-child(3) { border-left: 0; }
  .band__item:nth-child(n+3) { border-top: 1px solid var(--rule-soft); }
}

/* ---------- feature rows ---------- */

.feature {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(2.5rem, 6vw, 5.5rem);
  align-items: center;
}
.feature + .feature { margin-top: clamp(4.5rem, 10vw, 8rem); }
.feature--flip .feature__media { order: -1; }

.feature__media {
  position: relative;
  border-radius: 0.9rem;
  overflow: hidden;
  background: var(--ink-raised);
  border: 1px solid var(--rule);
  aspect-ratio: 16 / 10;
}
.feature__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.feature__body h2 { margin-bottom: 1.1rem; }
.feature__body p { color: rgba(244, 241, 234, 0.72); max-width: 42ch; }

@media (max-width: 54rem) {
  .feature { grid-template-columns: 1fr; gap: 2rem; }
  .feature--flip .feature__media { order: 0; }
}

/* ---------- list ---------- */

.ticks { list-style: none; margin: 1.6rem 0 0; padding: 0; }
.ticks li {
  position: relative;
  padding-left: 1.65rem;
  margin-bottom: 0.6rem;
  color: rgba(244, 241, 234, 0.72);
}
.ticks li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.68em;
  width: 0.5rem;
  height: 0.5rem;
  border-radius: 50%;
  background: var(--clay);
}

/* ---------- paint demo ---------- */

.paint {
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  gap: clamp(2.5rem, 6vw, 5rem);
  align-items: center;
}
@media (max-width: 54rem) { .paint { grid-template-columns: 1fr; } }

.paint__stage {
  border-radius: 0.9rem;
  overflow: hidden;
  border: 1px solid var(--rule);
  background: var(--ink-raised);
}
.paint__room {
  position: relative;
  aspect-ratio: 4 / 3;
  display: grid;
  grid-template-rows: 11% 1fr 20%;
  transition: background-color 0.55s var(--ease);
  background: #9CAF88;
}
.paint__ceil   { background: rgba(0, 0, 0, 0.30); }
.paint__wall   { position: relative; }
.paint__floor  { background: rgba(0, 0, 0, 0.17); }

.paint__win {
  position: absolute;
  top: 16%;
  right: 11%;
  width: 24%;
  height: 56%;
  background: linear-gradient(170deg, #BBD6EE, #E8F1F8 62%, #D4E4F1);
  border: 0.45rem solid rgba(244, 241, 234, 0.92);
  box-shadow: 0 0 0 1px rgba(0,0,0,0.2), -1.6rem 1.6rem 3rem rgba(0,0,0,0.18);
}
.paint__win::before,
.paint__win::after {
  content: "";
  position: absolute;
  background: rgba(244, 241, 234, 0.92);
}
.paint__win::before { left: 50%; top: 0; bottom: 0; width: 0.28rem; margin-left: -0.14rem; }
.paint__win::after  { top: 50%; left: 0; right: 0; height: 0.28rem; margin-top: -0.14rem; }

.paint__art {
  position: absolute;
  top: 24%;
  left: 12%;
  width: 27%;
  aspect-ratio: 4 / 3;
  background: linear-gradient(180deg, #1C2440 0%, #5C3A40 56%, #C2603F 62%, #121722 64%, #0C1018 100%);
  border: 0.4rem solid rgba(244, 241, 234, 0.14);
  outline: 1px solid rgba(0,0,0,0.35);
  box-shadow: -0.9rem 0.9rem 2rem rgba(0,0,0,0.22);
}

.paint__bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.85rem 1.1rem;
  border-top: 1px solid var(--rule);
  background: var(--ink);
  font-size: 0.85rem;
}
.paint__name { font-weight: 600; }
.paint__hex {
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  color: var(--muted);
  letter-spacing: 0.04em;
}

.swatches {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.6rem;
  margin-top: 2rem;
  max-width: 24rem;
}
.swatch {
  aspect-ratio: 1;
  border: 1px solid rgba(0, 0, 0, 0.35);
  border-radius: 0.4rem;
  cursor: pointer;
  padding: 0;
  position: relative;
  transition: transform 0.16s var(--ease), box-shadow 0.16s var(--ease);
}
.swatch:hover { transform: translateY(-3px) scale(1.04); z-index: 2; }
.swatch[aria-pressed="true"] {
  box-shadow: 0 0 0 2px var(--ink), 0 0 0 4px var(--ochre);
  z-index: 3;
}
.swatch:focus-visible { outline: 2px solid var(--ochre); outline-offset: 3px; }

/* ---------- gallery ---------- */

.gallery {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 0.85rem;
}
.shot {
  position: relative;
  border-radius: 0.7rem;
  overflow: hidden;
  border: 1px solid var(--rule);
  background: var(--ink-raised);
  cursor: zoom-in;
  padding: 0;
  display: block;
  width: 100%;
}
.shot img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s var(--ease), opacity 0.3s var(--ease);
}
.shot:hover img { transform: scale(1.045); }
.shot:focus-visible { outline: 2px solid var(--ochre); outline-offset: 3px; }
.shot figcaption {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  padding: 2.5rem 1rem 0.85rem;
  font-size: 0.8rem;
  color: rgba(244, 241, 234, 0.92);
  background: linear-gradient(180deg, transparent, rgba(13,14,14,0.88));
  text-align: left;
  opacity: 0;
  transform: translateY(0.4rem);
  transition: opacity 0.3s var(--ease), transform 0.3s var(--ease);
}
.shot:hover figcaption,
.shot:focus-visible figcaption { opacity: 1; transform: translateY(0); }

.shot--wide { grid-column: span 4; aspect-ratio: 2 / 1; }
/* The street capture gives a third of its frame to road. Crop from the bottom
   so the tile is houses rather than asphalt. */
.shot--wide img { object-position: center 36%; }
.shot--tall { grid-column: span 2; aspect-ratio: 1; }
.shot--half { grid-column: span 3; aspect-ratio: 16 / 10; }
.shot--third { grid-column: span 2; aspect-ratio: 1; }

@media (max-width: 54rem) {
  .gallery { grid-template-columns: repeat(2, 1fr); }
  .shot--wide, .shot--half { grid-column: span 2; }
  .shot--tall, .shot--third { grid-column: span 1; }
}

/* ---------- lightbox ---------- */

.lightbox {
  position: fixed;
  inset: 0;
  z-index: 300;
  display: none;
  place-items: center;
  padding: var(--gutter);
  background: rgba(8, 9, 9, 0.93);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}
.lightbox[open] { display: grid; }
.lightbox img {
  max-width: min(100%, 72rem);
  max-height: 82vh;
  border-radius: 0.6rem;
  object-fit: contain;
}
.lightbox__cap {
  margin-top: 1rem;
  text-align: center;
  font-size: 0.88rem;
  color: var(--muted);
}
.lightbox__close {
  position: absolute;
  top: 1.2rem;
  right: 1.4rem;
  width: 2.75rem;
  height: 2.75rem;
  border-radius: 50%;
  border: 1px solid var(--rule);
  background: rgba(244, 241, 234, 0.06);
  color: var(--paper);
  font-size: 1.4rem;
  line-height: 1;
  cursor: pointer;
}
.lightbox__close:hover { background: rgba(244, 241, 234, 0.14); }

/* ---------- get it ---------- */

.stores {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(16rem, 1fr));
  gap: 1rem;
  margin-top: 2.6rem;
}
.store {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1.35rem 1.5rem;
  border: 1px solid var(--rule);
  border-radius: 0.8rem;
  background: var(--ink-raised);
  text-decoration: none;
  transition: border-color 0.2s var(--ease), background 0.2s var(--ease), transform 0.2s var(--ease);
}
.store[href]:hover {
  border-color: rgba(244, 241, 234, 0.3);
  transform: translateY(-3px);
}
.store__icon {
  width: 2.5rem;
  height: 2.5rem;
  flex: 0 0 auto;
  border-radius: 0.5rem;
  display: grid;
  place-items: center;
  background: rgba(244, 241, 234, 0.07);
}
.store__icon svg { width: 1.3rem; height: 1.3rem; fill: var(--paper); }
.store__t { font-weight: 600; font-size: 0.98rem; display: block; }
.store__s { font-size: 0.8rem; color: var(--muted); }

/* ---------- spec table ---------- */

.spec {
  width: 100%;
  border-collapse: collapse;
  margin-top: 2.2rem;
  font-size: 0.95rem;
}
.spec th, .spec td {
  text-align: left;
  padding: 0.95rem 0.6rem;
  border-bottom: 1px solid var(--rule-soft);
  vertical-align: top;
}
.spec th {
  width: 36%;
  font-weight: 500;
  color: var(--muted);
}
.spec tr:last-child th, .spec tr:last-child td { border-bottom: 0; }

/* ---------- footer ---------- */

.foot {
  border-top: 1px solid var(--rule-soft);
  padding-block: 3.5rem 2.5rem;
  font-size: 0.88rem;
  color: var(--muted);
}
.foot__top {
  display: flex;
  flex-wrap: wrap;
  gap: 2rem;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 2.5rem;
}
.foot img { height: 1.3rem; width: auto; opacity: 0.85; }
.foot__links { display: flex; flex-wrap: wrap; gap: 1.6rem; }
.foot__links a { text-decoration: none; transition: color 0.2s var(--ease); }
.foot__links a:hover { color: var(--paper); }
.foot__bottom { display: flex; flex-wrap: wrap; gap: 1rem; justify-content: space-between; }

/* ---------- prose (privacy) ---------- */

.page-head {
  padding-block: clamp(4rem, 10vw, 7rem) clamp(2rem, 4vw, 3rem);
  border-bottom: 1px solid var(--rule-soft);
}
.page-head h1 { font-size: clamp(2.2rem, 5.5vw, 3.8rem); margin-bottom: 1rem; }
.page-head .meta { color: var(--muted); font-size: 0.9rem; }

.prose { max-width: 40rem; padding-block: clamp(3rem, 7vw, 5rem); }
.prose h2 {
  font-size: clamp(1.35rem, 2.4vw, 1.7rem);
  margin: 3rem 0 1rem;
  padding-top: 2rem;
  border-top: 1px solid var(--rule-soft);
}
.prose h2:first-of-type { margin-top: 0; padding-top: 0; border-top: 0; }
.prose p, .prose li { color: rgba(244, 241, 234, 0.76); }
.prose strong { color: var(--paper); font-weight: 600; }
.prose ul { padding-left: 1.2rem; margin: 0 0 1.1em; }
.prose li { margin-bottom: 0.5rem; }
.prose a { color: var(--ochre); text-underline-offset: 0.2em; }

.callout {
  border-left: 2px solid var(--ochre);
  background: var(--ink-raised);
  padding: 1.3rem 1.5rem;
  border-radius: 0 0.5rem 0.5rem 0;
  margin: 2rem 0;
}
.callout p { color: rgba(244, 241, 234, 0.88); }

/* ---------- reveal ---------- */

.rv {
  opacity: 0;
  transform: translateY(1.5rem);
  transition: opacity 0.8s var(--ease), transform 0.8s var(--ease);
}
.rv.in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .rv { opacity: 1; transform: none; transition: none; }
  .hero__bg img { animation: none; transform: scale(1.04); }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
}

/* ---------- a11y helper ---------- */
.visually-hidden {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}
