/* ============================================================
   BRINK XR — Dark Stylesheet
   Font stacks: Cormorant Garant (display) · Inter (body)
   ============================================================ */




/*************************************
 * CUSTOM PROPERTIES / DESIGN TOKENS *
 ************************************/
:root {
  --max:          1500px;

  --font-display: 'Cormorant Garant', Georgia, serif;
  --font-body:    'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;

  --fs:           16px;
  --fs-mobile:    15px;
  --fs-title:     1.20rem;
  --fs-lead:      1.05rem;
  --fs-body:      0.95rem;
  --fs-ui:        0.80rem;
  --fs-meta:      0.75rem;
  --fs-micro:     0.65rem;

  --text:        #EEEEEE;
  --text-mid:    #888888;
  --text-dim:    #555555;

  --gold:        #FABE00;
  --gold-dark:   #E69600;
  --gold-dim:    rgba(200, 160, 40, 0.05);
  --gold-border: rgba(200, 160, 40, 0.3);

  --bg:          #0A0A0A;
  --bg-2:        #141416;
  --bg-3:        #111115;

  --border:      rgba(255, 255, 255, 0.05);
  --border-m:    rgba(255, 255, 255, 0.10);

  --radius:       12px;
  --radius-sm:    6px;

  --ease:         cubic-bezier(0.25, 0.1, 0.25, 1);
  --ease-out:     cubic-bezier(0.0, 0.0, 0.2, 1);
}




/****************
 * RESET & BASE *
 ***************/
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  border: 0;
  outline: 0;
}

html {
  scroll-behavior: smooth;
  font-size: var(--fs);
}

body {
  background-color: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-weight: 400;
  line-height: 1.65;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

img {
  display: block;
  max-width: 100%;
  height: auto;
}

a {
  text-decoration: none;
  color: var(--gold);
  transition: color 0.2s;
}

a:hover { color: var(--gold-dark); }

button {
  cursor: pointer;
  border: none;
  background: none;
  font-family: inherit;
}




/**************
 * TYPOGRAPHY *
 *************/
h1, h2, h3 {
  font-family: var(--font-display);
  font-weight: 400;
  line-height: 1.08;
  letter-spacing: -0.02em;
}

h1 { font-size: clamp(3rem, 7.5vw, 6.5rem); }
h2 { font-size: clamp(2.2rem, 4.5vw, 4rem); }
h3 { font-size: clamp(1rem, 1.8vw, 1.4rem); }

em { font-style: italic; }

h2 em { color: var(--gold-dark); }

.eyebrow {
  display: block;
  font-size: var(--fs-ui);
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 1.5rem;
}

p {
  color: var(--text-mid);
  font-size: var(--fs-lead);
  line-height: 1.8;
  margin-bottom: 1.2rem;
}
p:last-child {
  margin-bottom: 0;
}




/*****************
 * SHARED LAYOUT *
 ****************/

/* Sections */
.section-inner {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 2.5rem;
}

.section-header {
  text-align: center;
  margin-bottom: 4rem;
}

.section-header h2 {
  margin-bottom: 1rem;
}

.section-desc {
  max-width: 600px;
  margin: 0 auto;
  color: var(--text-mid);
  font-size: var(--fs-lead);
}

/* Cards */
.card {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.5rem;
  transition: border-color 0.3s, background 0.3s;
}

.card:hover {
  border-color: var(--gold-border);
  background: var(--gold-dim);
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.875rem 2rem;
  font-family: var(--font-body);
  font-size: var(--fs-ui);
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  border-radius: var(--radius-sm);
  transition: all 0.22s var(--ease);
  white-space: nowrap;
}

.btn-primary {
  background: var(--gold-dark);
  color: #000;
  border: 1px solid transparent;
}

.btn-primary:hover {
  background: var(--gold);
  transform: translateY(-2px);
  box-shadow: 0 8px 32px var(--gold-border);
}

.btn:disabled {
  background: #555;
  color: #999;
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
}

/* IFrames */
iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: none;
}

/* Reveal on scroll */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.75s var(--ease-out), transform 0.75s var(--ease-out);
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}




/**************
 * NAVIGATION *
 *************/
#nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  transition: background 0.35s var(--ease), box-shadow 0.35s var(--ease);
}

#nav-overlay {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 999;
  background: rgba(10, 10, 10, 0.9);
  backdrop-filter: blur(20px);
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4rem;
  padding: 2rem;
}

#nav-overlay.open { display: flex; }

#nav-overlay a {
  font-size: var(--fs-title);
  letter-spacing: 0.1em;
  color: var(--text-mid);
  text-transform: uppercase;
}

#nav-overlay a:hover { color: var(--text); }

#nav.scrolled {
  background: rgba(10, 10, 10, 0.9);
  backdrop-filter: blur(20px);
  box-shadow: 0 1px 0 var(--border);
}

.nav-inner {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 2.5rem;
  height: 68px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
}

.nav-logo {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  transition: opacity 0.2s;
}

.nav-logo:hover { opacity: 0.8; }

.nav-links {
  display: flex;
  align-items: center;
  gap: 2.2rem;
}

.nav-links a {
  font-size: var(--fs-ui);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text);
  transition: color 0.2s;
  position: relative;
}

#nav.scrolled .nav-links a {
  color: var(--text-mid);
  text-shadow: none;
}

#nav.scrolled .nav-links a:hover,
#nav.scrolled .nav-links a.active {
  color: var(--text);
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -3px;
  left: 0;
  right: 0;
  height: 1px;
  background: var(--gold);
  transform: scaleX(0);
  transition: transform 0.2s var(--ease);
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--text);
}

.nav-links a:hover::after,
.nav-links a.active::after {
  transform: scaleX(1);
}

/* Mobile toggle */
.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 36px;
  height: 36px;
  padding: 0.3rem;
}

.nav-toggle span {
  display: block;
  width: 22px;
  height: 1.5px;
  background: var(--text);
  border-radius: 2px;
  transition: all 0.28s var(--ease);
  transform-origin: center;
}

.nav-toggle.open span:nth-child(1) { transform: translateY(6.5px)  rotate(45deg);  }
.nav-toggle.open span:nth-child(2) { opacity: 0; transform: scaleX(0);              }
.nav-toggle.open span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }




/********
 * HERO *
 *******/
#hero {
  position: relative;
  height: 100svh;
  min-height: 680px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

/* Multi-layer depth parallax */
.hero-parallax {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.hero-layer {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 100%;
  will-change: transform;
}

/* Inner wrapper handles Ken-Burns entrance scale, separate from 
   parallax translateY set on the outer .hero-layer by JS. */
.hero-layer-img {
  width: 100%;
  height: 100%;
  transform: scale(1.1);
  transition: transform 5s ease-out;
}

.hero-parallax.loaded .hero-layer-img {
  transform: scale(1);
}

.hero-layer img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 55%;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
  background:
    linear-gradient(
      to bottom,
      rgba(10, 10, 10, 0.2) 0%,
      rgba(10, 10, 10, 0.1) 20%,
      rgba(10, 10, 10, 0.5) 80%,
      rgba(10, 10, 10, 0.9) 100%
    );
}

.hero-overlay::after {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(
    ellipse at 50% 65%,
    rgba(200, 160, 40, 0.07) 0%,
    transparent 55%
  );
}

.hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  padding: 0 2rem;
  max-width: 920px;
}

.hero-content h1 {
  font-weight: 300;
  margin: 1.5rem 0;
  color: var(--text);
  text-shadow: 0 4px 40px rgba(0, 0, 0, 0.45), 0 1px 8px rgba(0, 0, 0, 0.25);
}

.hero-content h1 em {
  color: var(--gold-dark);
}

.hero-subtitle {
  font-size: clamp(1.15rem, 2.2vw, 1.55rem);
  font-weight: 300;
  color: var(--text);
  margin-bottom: 5rem;
  letter-spacing: 0.04em;
  text-shadow: 0 1px 8px rgba(0, 0, 0, 0.6);
}

.hero-ctas {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
}

/* Scroll indicator */
.hero-scroll {
  position: absolute;
  bottom: 2.5rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.6rem;
  color: var(--text-dim);
  font-size: var(--fs-micro);
  font-weight: 500;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  user-select: none;
}

.scroll-line {
  width: 1px;
  height: 52px;
  background: linear-gradient(to bottom, transparent, var(--gold));
  animation: scrollPulse 2.2s ease-in-out infinite;
}

.scroll-label { order: -1; }

@keyframes scrollPulse {
  0%, 100% { opacity: 0.3; transform: scaleY(1);    }
  50%       { opacity: 0.9; transform: scaleY(0.85); }
}




/**************
 * PAGES HERO *
 *************/
.page-hero {
  padding: 10rem 0 5rem;
  background:
    linear-gradient(
      rgba(8,8,8,0.7),
      rgba(8,8,8,0.9)
    ),
    url('/website/images/backgrounds/bg_mountain.jpg') center center / cover no-repeat;
  text-align: center;
}

.page-hero .eyebrow { margin-bottom: 1rem; }

.page-hero h1 {
  font-size: clamp(2.2rem, 5vw, 3.8rem);
  margin-bottom: 0.5rem;
}

.page-hero .page-date {
  font-size: var(--fs-ui);
  color: var(--text-mid);
  letter-spacing: 0.08em;
  margin-top: 0;
}




/***********
 * LIBRARY *
 **********/
#library {
  padding: 9rem 0 0;
}

.locations-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 4px;
  background: #000;
  margin-top: 5rem;
  padding: 0 10px;
  mask-image: linear-gradient(to bottom, black 75%, transparent 95%);
  -webkit-mask-image: linear-gradient(to bottom, black 75%, transparent 95%);
}

.library-more {
  text-align: center;
  padding: 0 1rem 3rem;
  font-size: var(--fs-body);
  color: var(--text-mid);
}

.library-more em {
  font-style: normal;
  color: var(--gold);
}

.location-card {
  position: relative;
  aspect-ratio: 4 / 2;
  overflow: hidden;
  cursor: default;
  background: var(--bg-3);
  border-radius: 2px;
}

.location-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.9;
  transition: transform 0.9s var(--ease), filter 0.6s var(--ease);
  will-change: transform;
}

.location-card:hover img {
  transform: scale(1.05);
  filter: brightness(1.05);
}

.location-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to top,
    rgba(0, 0, 0, 0.8) 0%,
    rgba(0, 0, 0, 0.2) 45%,
    transparent 70%
  );
  opacity: 0.5;
  transition: opacity 0.3s var(--ease);
}

.location-card:hover .location-overlay { opacity: 1; }

.location-info {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 1.25rem 1.4rem;
  transform: translateY(6px);
  transition: transform 0.3s var(--ease);
}

.location-card:hover .location-info { transform: translateY(0); }

.location-name {
  font-family: var(--font-display);
  font-size: var(--fs-title);
  font-weight: 500;
  color: #fff;
  line-height: 1.2;
}

.location-coords {
  font-size: var(--fs-meta);
  letter-spacing: 0.12em;
  color: var(--gold);
  margin-top: 0.3rem;
  opacity: 0;
  transition: opacity 0.3s var(--ease) 0.05s;
}

.location-card:hover .location-coords { opacity: 1; }




/**************
 * TECHNOLOGY *
 *************/
#technology {
  padding: 9rem 0 0;
  background: var(--bg-2);
}

.tech-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 7rem;
  align-items: start;
}

.tech-text h2 {
  margin-bottom: 2rem;
}

.tech-features {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.25rem;
}

.tech-features .tech-feature:nth-child(2) { transition-delay: .1s; }
.tech-features .tech-feature:nth-child(3) { transition-delay: .2s; }
.tech-features .tech-feature:nth-child(4) { transition-delay: .3s; }

.tech-feature {
  display: grid;
  grid-template-columns: 30px 1fr;
  grid-template-rows: auto auto;
  column-gap: 0.875rem;
  align-items: center;
  transition: border-color 0.3s, background 0.3s, opacity 0.75s var(--ease-out), transform 0.75s var(--ease-out);
}

.tech-feature-icon {
  grid-row: 1;
  grid-column: 1;
  width: 30px;
  height: 30px;
  color: var(--gold);
}

.tech-feature-icon svg {
  width: 100%;
  height: 100%;
}

.tech-feature h3 {
  grid-row: 1;
  grid-column: 2;
  font-family: var(--font-body);
  font-size: var(--fs-ui);
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text);
}

.tech-feature p {
  grid-row: 2;
  grid-column: 1 / -1;
  font-size: var(--fs-body);
  color: var(--text-mid);
  line-height: 1.65;
  margin-top: 0.75rem;
  margin-bottom: 0;
}

/* Technology word marquee */
.tech-marquee {
  border-top: 1px solid var(--border);
  padding: 1.4rem 0;
  overflow: hidden;
  background: var(--bg-2);
}

.tech-marquee-track {
  display: flex;
  width: max-content;
  animation: marqueeLeft 28s linear infinite;
  will-change: transform;
}

.marquee-set {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  flex-shrink: 0;
  padding-right: 1.5rem; /* trailing space = internal gap → seamless loop */
}

.marquee-set span {
  font-size: var(--fs-meta);
  font-weight: 500;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--text-dim);
  white-space: nowrap;
}

.marquee-set .sep {
  color: var(--gold);
  opacity: 0.5;
}

@keyframes marqueeLeft {
  from { transform: translateX(0); }
  to   { transform: translateX(calc(-1 * var(--marquee-shift, 50%))); }
}

/* 3D Model Viewer */
.tech-model-viewer {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 0 0 4rem;
  width: 100%;
}

.model-viewer-row {
  display: flex;
  align-items: flex-end;
  justify-content: center;
  width: 100%;
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 2.5rem;
  box-sizing: border-box;
}

.model-callout {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
  text-align: center;
}

.model-callout-ring {
  width: clamp(180px, 20vw, 240px);
  height: clamp(180px, 20vw, 240px);
  border-radius: 50%;
  overflow: hidden;
  border: 1px solid var(--gold-border);
  flex-shrink: 0;
}

.model-callout-ring img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.model-callout-body {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  align-items: center;
}

.model-callout-label {
  margin-bottom: 1rem;
  font-size: var(--fs-meta);
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gold);
}

.model-callout-text {
  font-size: var(--fs-ui);
  color: var(--text-mid);
  line-height: 1.5;
  max-width: 260px;
}

.model-canvas-wrap {
  position: relative;
  flex: 1;
  min-width: 0;
  display: flex;
  justify-content: center;
}

#tech-model-canvas {
  display: block;
  width: 100%;
  cursor: grab;
  touch-action: none;
}

#tech-model-canvas:active { 
  cursor: grabbing;
}

.model-location-label {
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.25rem;
  pointer-events: none;
  white-space: nowrap;
}

.model-location-name {
  font-family: var(--font-display);
  font-size: clamp(1.25rem, 2.5vw, 2rem);
  font-weight: 300;
  line-height: 1;
  color: #fff;
  letter-spacing: 0.02em;
  text-shadow: 0 2px 8px rgba(0,0,0,0.9), 0 4px 32px rgba(0,0,0,0.7);
}

.model-location-sub {
  font-size: var(--fs-meta);
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gold);
  text-shadow: 0 1px 6px rgba(0,0,0,0.95), 0 2px 16px rgba(0,0,0,0.8);
}

.model-hint {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  margin-top: 0.6rem;
  color: rgba(255, 255, 255, 0.28);
  font-size: var(--fs-meta);
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  user-select: none;
  pointer-events: none;
}

.model-hint svg {
  width: 14px;
  height: 14px;
  flex-shrink: 0;
}




/************************
 * APP — BRINK TRAVELER *
 ***********************/
#app {
  padding: 9rem 0;
  background: var(--bg-2);
}

.app-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6rem;
  align-items: center;
}

/* Device visual */
.app-visual {
  display: flex;
  flex-direction: column;
  max-width: 680px;
  margin: 0 auto;
}

.app-device-wrap {
  position: relative;
  overflow: hidden;
}

.app-device-wrap img { width: 100%; }

.app-stat-row {
  display: flex;
  border-top: 1px solid var(--border);
}

.app-stat-pill {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 1.25rem 0.75rem;
}

.app-stat-src {
  font-size: var(--fs-meta);
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 0.5rem;
}

.app-stat-score {
  display: flex;
  align-items: baseline;
  gap: 0.2rem;
}

.app-stat-num,
.app-stat-unit {
  font-family: var(--font-display);
  font-weight: 300;
  line-height: 1;
}

.app-stat-num  { font-size: 3rem;   color: var(--text); }
.app-stat-unit { font-size: 1.5rem; color: var(--gold); }

.app-stat-lbl {
  font-size: var(--fs-meta);
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-dim);
  margin-top: 0.5rem;
}

/* App text */
.app-text h2 {
  margin-bottom: 1.75rem;
}

.app-text { transition-delay: .15s; }

.app-trailer {
  position: relative;
  aspect-ratio: 16 / 9;
  border-radius: var(--radius);
  overflow: hidden;
  margin-bottom: 2rem;
  border: 1px solid var(--border);
}

.app-platforms {
  margin-top: 3rem;
}

.store-badges {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
}

.store-badge {
  display: flex;
  align-items: center;
  justify-content: center;
  max-width: 180px;
  width: 100%;
  margin: 0 auto;
  border: 1px solid var(--border-m);
  border-radius: var(--radius);
  opacity: 0.8;
  overflow: hidden;
  transition: opacity 0.2s, transform 0.2s, border-color 0.2s;
}

.store-badge:hover {
  opacity: 1;
  transform: translateY(-2px);
  border-color: var(--gold-border);
}

.store-badge img {
  display: block;
  width: 100%;
  height: auto;
}




/******************
 * REVIEWS TICKER *
 *****************/
#reviews {
  padding: 8rem 0 9rem;
  background: var(--bg);
  overflow: hidden;
}

.reviews-ticker-wrap {
  margin-top: 4rem;
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  overflow: hidden;
  padding-bottom: 4px;
  /* Fade edges */
  -webkit-mask-image: linear-gradient(to right, transparent 0%, black 8%, black 92%, transparent 100%);
  mask-image:         linear-gradient(to right, transparent 0%, black 8%, black 92%, transparent 100%);
}

.reviews-row {
  display: flex;
  gap: 1.25rem;
  width: max-content;
  will-change: transform;
}

.reviews-row-1 { animation: tickerLeft  75s linear infinite; }
.reviews-row-2 { animation: tickerRight 65s linear infinite; }

@keyframes tickerLeft  { from { transform: translateX(0);    } to { transform: translateX(-50%); } }
@keyframes tickerRight { from { transform: translateX(-50%); } to { transform: translateX(0);    } }

.reviews-ticker-wrap:hover .reviews-row { animation-play-state: paused; }

.review-card {
  flex-shrink: 0;
  width: 300px;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.review-stars {
  color: var(--gold);
  font-size: var(--fs-ui);
  letter-spacing: 0.08em;
}

.review-text {
  font-size: var(--fs-body);
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.85);
  flex: 1;
  font-style: italic;
}




/*********
 * PRESS *
 ********/
.reviews-press {
  margin-top: 5rem;
}

/* Press logos */
.press-logos {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 2rem 3rem;
  margin-bottom: 2.5rem;
  padding: 2.5rem 2.5rem 2rem;
  border-top: 1px solid var(--border);
}

.press-logos-label {
  font-size: var(--fs-ui);
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--gold);
  flex-basis: 100%;
  text-align: center;
  margin-bottom: 0.75rem;
}

.press-logo-img {
  height: 28px;
  width: auto;
  object-fit: contain;
  opacity: 0.5;
  filter: grayscale(1) brightness(2);
  transition: opacity 0.2s, filter 0.2s;
}

.press-logo-img:hover {
  opacity: 0.8;
  filter: grayscale(0.3) brightness(1.5);
}

/* Press quotes grid */
.press-quotes {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

.press-quote {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  transition: border-color 0.3s, background 0.3s, opacity 0.75s var(--ease-out), transform 0.75s var(--ease-out);
}

.press-quotes .press-quote:nth-child(2) { transition-delay: .10s; }
.press-quotes .press-quote:nth-child(3) { transition-delay: .20s; }
.press-quotes .press-quote:nth-child(4) { transition-delay: .05s; }
.press-quotes .press-quote:nth-child(5) { transition-delay: .15s; }
.press-quotes .press-quote:nth-child(6) { transition-delay: .25s; }

.press-quote-text {
  font-family: var(--font-display);
  font-size: var(--fs-title);
  font-weight: 400;
  font-style: italic;
  line-height: 1.5;
  color: var(--text);
}

.press-quote-source {
  font-size: var(--fs-meta);
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--gold);
  font-style: normal;
}




/***********
 * MISSION *
 **********/
#mission {
  padding: 9rem 0;
  background:
    linear-gradient(
      rgba(10, 10, 10, 0.85),
      rgba(10, 10, 10, 0.9)
    ),
    url('/website/images/backgrounds/bg_dune.jpg') center / cover no-repeat;
}

.mission-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6rem;
  align-items: center;
}

.mission-img {
  display: flex;
  flex-direction: column;
}

.mission-img img {
  width: 100%;
  height: auto;
}

.mission-text h2 {
  margin-bottom: 2rem;
}

.mission-text { transition-delay: .15s; }

.mission-member {
  margin-top: 2rem;
  margin-bottom: 0;
}




/***********
 * CONTACT *
 **********/
#contact {
  padding: 9rem 0;
}

.contact-form {
  max-width: 800px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.25rem;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.form-group label {
  font-size: var(--fs-meta);
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-dim);
}

.form-group input,
.form-group textarea {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  color: var(--text);
  font-family: var(--font-body);
  font-size: var(--fs-body);
  padding: 0.85rem 1rem;
  outline: none;
  transition: border-color 0.2s, background 0.2s;
  width: 100%;
  resize: vertical;
}

.form-group input::placeholder,
.form-group textarea::placeholder { color: var(--text-dim); }

.form-group input:focus,
.form-group textarea:focus {
  border-color: var(--gold-border);
  background: rgba(200, 160, 40, 0.03);
}

.form-actions {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.5rem;
  margin-top: 0.5rem;
}

.form-alt-contact {
  font-size: var(--fs-ui);
  color: var(--text-dim);
}

.form-success {
  margin-top: 1rem;
  padding: 1rem 1.25rem;
  background: rgba(200, 160, 40, 0.1);
  border: 1px solid var(--gold-border);
  border-radius: var(--radius-sm);
  text-align: center;
  font-size: var(--fs-body);
  color: var(--gold-dark);
}

/* Honeypot anti-spam fields */
.form-group:has(#cf-address) { 
  display: none;
}




/*******************
 * DOCUMENT LAYOUT *
 ******************/
.doc-layout {
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 5rem;
  padding-top: 6rem;
  padding-bottom: 8rem;
  align-items: start;
}

/* TOC sidebar */
.doc-toc {
  position: sticky;
  top: 90px;
}

.doc-toc-label {
  font-size: var(--fs-micro);
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--text-dim);
  margin-bottom: 1rem;
}

.doc-toc a {
  display: block;
  font-size: var(--fs-ui);
  color: rgba(255, 255, 255, 0.35);
  padding: 0.35rem 0 0.35rem 1rem;
  border-left: 1px solid var(--border);
  transition: color 0.2s, border-color 0.2s;
}

.doc-toc a:hover {
  color: var(--text);
  border-left-color: rgba(200, 160, 40, 0.5);
}

.doc-toc a.toc-active {
  color: var(--text);
  border-left-color: var(--gold);
  border-left-width: 2px;
  padding-left: calc(1rem - 1px);
}

/* Document content */
.doc-content { max-width: 900px; }

.doc-content h1 {
  font-size: clamp(1.4rem, 2.5vw, 2rem);
  font-family: var(--font-display);
  font-weight: 400;
  margin-top: 3.5rem;
  margin-bottom: 1rem;
  padding-top: 3.5rem;
  border-top: 1px solid var(--border);
  scroll-margin-top: 90px;
}

.doc-content h1:first-child {
  margin-top: 0;
  padding-top: 0;
  border-top: none;
}

.doc-content h2 {
  font-family: var(--font-body);
  font-size: var(--fs-ui);
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-mid);
  margin-top: 2.5rem;
  margin-bottom: 0.8rem;
}

.doc-content p {
  font-size: var(--fs-body);
  color: rgba(255, 255, 255, 0.65);
  line-height: 1.8;
  margin-bottom: 1rem;
}

.doc-content ul {
  margin: 0.75rem 0 1rem 0;
  padding-left: 0;
  list-style: none;
}

.doc-content ul li {
  font-size: var(--fs-body);
  color: rgba(255, 255, 255, 0.65);
  line-height: 1.75;
  padding: 0.5rem 0 0.5rem 1.25rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
  position: relative;
}

.doc-content ul li::before {
  content: '–';
  position: absolute;
  left: 0;
  color: var(--gold);
  opacity: 0.6;
}

.doc-content ul li:last-child { border-bottom: none; }
.doc-content b { color: rgba(255, 255, 255, 0.85); font-weight: 600; }




/****************
 * SUPPORT PAGE *
 ***************/
.faq-section h2,
.support-contact h2 {
  font-size: clamp(1.6rem, 3vw, 2.4rem);
}

/* FAQ */
.faq-section {
  background: var(--bg-2);
  padding: 6rem max(2.5rem, calc((100% - 800px) / 2)) 6rem;
  border-bottom: 1px solid var(--border);
}

.faq-section h2 { margin-bottom: 2.5rem; }

.faq-list {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.faq-item {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  transition: border-color 0.2s;
}

.faq-item:hover { border-color: var(--border-m); }

.faq-question {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  padding: 1.4rem 1.5rem;
  text-align: left;
  background: rgba(255, 255, 255, 0.05);
  cursor: pointer;
  transition: background 0.2s;
}

.faq-question:hover { background: rgba(255, 255, 255, 0.04); }

.faq-question[aria-expanded="true"] {
  background: var(--gold-dim);
  border-bottom: 1px solid var(--border);
}

.faq-question-text {
  font-size: var(--fs-body);
  font-weight: 500;
  color: var(--text);
}

.faq-icon {
  flex-shrink: 0;
  width: 18px;
  height: 18px;
  color: var(--gold);
  transition: transform 0.3s var(--ease);
}

.faq-question[aria-expanded="true"] .faq-icon { transform: rotate(45deg); }

.faq-answer {
  display: none;
  padding: 1.25rem 1.5rem;
}

.faq-answer.open { display: block; }

.faq-answer p,
.faq-answer ol {
  font-size: var(--fs-body);
  color: rgba(255, 255, 255, 0.6);
  line-height: 1.8;
}

.faq-answer .sep { color: var(--gold); }

.faq-answer ol {
  margin: 0.75rem 0;
  padding-left: 1.5rem;
  list-style: none;
  counter-reset: faq-counter;
}

.faq-answer ol li {
  position: relative;
  padding-left: 1.75rem;
  counter-increment: faq-counter;
  margin-bottom: 0.4rem;
}

.faq-answer ol li::before {
  content: counter(faq-counter) ".";
  position: absolute;
  left: 0;
  color: var(--gold);
  font-weight: 600;
}

.faq-video {
  position: relative;
  margin-top: 1.25rem;
  padding-bottom: 56.25%; /* 16:9 */
  height: 0;
  overflow: hidden;
  border-radius: 8px;
}

/* Contact */
.support-contact {
  background: var(--bg);
  padding: 6rem max(2.5rem, calc((100% - 800px) / 2)) 8rem;
}

.support-contact h2 { margin-bottom: 0.75rem; }

.support-contact > p {
  color: var(--text-mid);
  margin-bottom: 2.5rem;
}




/**********
 * FOOTER *
 *********/
#footer {
  background: #050505;
  border-top: 1px solid var(--border);
}

.footer-inner {
  padding-top: 4.5rem;
  padding-bottom: 3rem;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 4rem;
  align-items: start;
}

.footer-brand {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  max-width: 320px;
}

.footer-logo {
  display: inline-flex;
  transition: opacity 0.2s;
}

.footer-logo:hover { opacity: 0.7; }

.footer-tagline {
  font-size: var(--fs-ui);
  color: var(--text-dim);
  line-height: 1.6;
}

.footer-social {
  display: flex;
  gap: 1.2rem;
  align-items: center;
}


.footer-social a {
  color: var(--text-dim);
  display: flex;
  align-items: center;
}

.footer-social a:hover { color: var(--text); }

.footer-base {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 1rem;
}

.footer-links {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 0.6rem;
}

.footer-links a {
  font-size: var(--fs-ui);
  color: rgba(255, 255, 255, 0.4);
}

.footer-links a:hover { color: var(--text); }

.footer-copy {
  width: 100%;
  padding-top: 1rem;
  border-top: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 0.25rem;
  text-align: right;
}

.footer-copy p {
  font-size: var(--fs-meta);
  color: var(--text-dim);
}




/**************************
 * RESPONSIVE BREAKPOINTS *
 *************************/

/* Wide screens — grid steps down from 5 to 4 columns */
@media (max-width: 1600px) {
  .locations-grid { grid-template-columns: repeat(4, 1fr); }
  .locations-grid .location-card:nth-child(25) { display: none; }
}

/* Large tablets / small desktops */
@media (max-width: 1280px) {
  .locations-grid {
    grid-template-columns: repeat(3, 1fr);
    mask-image: linear-gradient(to bottom, black 85%, transparent 100%);
    -webkit-mask-image: linear-gradient(to bottom, black 85%, transparent 100%);
  }
}

@media (max-width: 1100px) {
  .tech-inner     { gap: 4rem; }
  .press-quotes   { grid-template-columns: repeat(2, 1fr); }
  .press-quotes .press-quote:nth-child(3) { display: none; }
  .footer-links   { gap: 1rem; }
}

/* Tablets */
@media (max-width: 960px) {
  :root { font-size: var(--fs-mobile); }

  .section-inner,
  .nav-inner { padding-left: 1.5rem; padding-right: 1.5rem; }

  #hero { min-height: 620px; }

  .hero-content { padding: 0 1.5rem; }
  .hero-ctas    { flex-direction: column; align-items: center; }

  .store-badges { grid-template-columns: repeat(2, 1fr); }

  .locations-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 2px;
  }
  .location-card { aspect-ratio: 4 / 3; }
  .location-overlay { opacity: 1; }
  .location-info    { transform: translateY(0); }
  .location-coords  { opacity: 1; }

  #library, #technology { padding-top: 6rem; }
  #app, #reviews, #mission, #contact { padding: 6rem 0; }

  .tech-features  { grid-template-columns: 1fr; }
  .app-stat-pill  { padding: 1rem 0.5rem; }
  .form-row       { grid-template-columns: 1fr; }
  .form-actions   { flex-direction: column; align-items: center; gap: 1rem; }
  .press-logos    { gap: 1.5rem 2rem; }
  .press-logo-img { height: 22px; }
  .section-header { margin-bottom: 2.5rem; }
  .review-card    { width: 260px; }
}

@media (max-width: 900px) {
  .nav-links  { display: none; }
  .nav-toggle { display: flex; }

  .tech-inner    { grid-template-columns: 1fr; gap: 3.5rem; }
  .tech-features { grid-template-columns: 1fr 1fr; }
  .tech-text     { text-align: center; }
  .app-inner     { grid-template-columns: 1fr; gap: 3.5rem; }
  .app-visual    { order: -1; }
  .app-text      { text-align: center; }

  .press-quotes { grid-template-columns: 1fr; }
  .press-logos  { gap: 1.75rem 2.5rem; }

  .mission-inner               { grid-template-columns: 1fr; gap: 3rem; }
  .mission-img                 { order: -1; }
  .mission-img img:last-child  { display: none; }
  .mission-text                { text-align: center; }

  .footer-inner { grid-template-columns: 1fr; gap: 2.5rem; text-align: center; }
  .footer-brand { max-width: 100%; align-items: center; }
  .footer-base  { align-items: center; }
  .footer-links { align-items: center; }
  .footer-copy  { align-items: center; text-align: center; }

  .doc-layout {
    grid-template-columns: 1fr;
    gap: 3rem;
    padding-top: 4rem;
    padding-bottom: 6rem;
  }

  .doc-toc { display: none; }

  .model-viewer-row   { flex-wrap: wrap; gap: 1.5rem; align-items: flex-start; }
  .model-canvas-wrap  { order: -1; flex: 0 0 100%; }
  .model-callout      { flex: 1; min-width: 130px; }
  .model-callout-ring { width: clamp(130px, 30vw, 250px); height: clamp(130px, 30vw, 250px); }
  .model-callout-text { max-width: 220px; }
}

@media (max-width: 600px) {
  .tech-features  { grid-template-columns: 1fr; }
  .support-layout { padding: 4rem 1.5rem 6rem; }
  .location-gps   { display: none; }
}

/* Extra small */
@media (max-width: 400px) {
  .locations-grid { grid-template-columns: 1fr; }
  .location-card  { aspect-ratio: 16 / 9; }
  .store-badges   { grid-template-columns: 1fr; }
}




/******************
 * REDUCED MOTION *
 *****************/
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }

  html { scroll-behavior: auto; }

  .reveal      { opacity: 1; transform: none; }
  .scroll-line { animation: none; }
}