:root {
  --bg: #0c0e12;
  --bg-elevated: #141820;
  --text: #e8eaed;
  --text-muted: #9aa3b2;
  --accent-orange: #f57c2a;
  --accent-cyan: #3dd9e8;
  --accent-orange-dim: #c45f1a;
  --border: rgba(61, 217, 232, 0.15);
  /* Desert / canyon (middle sections) */
  --warm-sand: #e9d9bc;
  --warm-dune: #dcc4a0;
  --warm-canyon: #c9a67a;
  --warm-rust: #b8845e;
  --warm-deep: #9a6b47;
  --warm-text: #2a2218;
  --warm-text-muted: #5c4836;
  --warm-title: #1a6d78;
  --warm-border: rgba(74, 48, 28, 0.22);
  --container: 1100px;
  --font: 'Rajdhani', system-ui, sans-serif;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font);
  font-size: 1.125rem;
  line-height: 1.6;
  color: var(--text);
  background: var(--bg);
}

img,
video {
  display: block;
  max-width: 100%;
  height: auto;
}

a {
  color: var(--accent-cyan);
}

.container {
  width: min(100% - 2rem, var(--container));
  margin-inline: auto;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0.75rem 1.75rem;
  font-family: var(--font);
  font-size: 1.125rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  text-decoration: none;
  border: 2px solid transparent;
  border-radius: 2px;
  cursor: pointer;
  transition: background 0.2s, border-color 0.2s, color 0.2s, transform 0.2s;
}

.btn--primary {
  color: var(--bg);
  background: var(--accent-orange);
  border-color: var(--accent-orange);
}

.btn--primary:hover,
.btn--primary:focus-visible {
  background: var(--accent-orange-dim);
  border-color: var(--accent-orange-dim);
}

.btn--ghost {
  color: var(--accent-cyan);
  background: transparent;
  border-color: var(--accent-cyan);
}

.btn--ghost:hover,
.btn--ghost:focus-visible {
  background: rgba(61, 217, 232, 0.1);
}

.btn--large {
  min-height: 56px;
  padding: 1rem 2.25rem;
  font-size: 1.25rem;
}

/* Hero */
.hero {
  position: relative;
  display: flex;
  align-items: flex-end;
  min-height: 100svh;
  overflow: hidden;
}

.hero__bg {
  position: absolute;
  inset: 0;
}

.hero__bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 40%;
}

.hero__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to top,
    var(--bg) 0%,
    rgba(12, 14, 18, 0.85) 35%,
    rgba(12, 14, 18, 0.4) 70%,
    rgba(12, 14, 18, 0.25) 100%
  );
}

.hero__content {
  position: relative;
  z-index: 1;
  padding: 3rem 0 4rem;
}

.hero__eyebrow {
  margin: 0 0 0.5rem;
  font-size: 1rem;
  font-weight: 600;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--accent-cyan);
}

.hero__title {
  margin: 0 0 0.75rem;
  font-size: clamp(2.5rem, 8vw, 4.5rem);
  font-weight: 700;
  line-height: 1.05;
  text-transform: uppercase;
  letter-spacing: 0.02em;
  text-shadow: 0 2px 24px rgba(0, 0, 0, 0.8);
}

.hero__subtitle {
  margin: 0 0 2rem;
  font-size: clamp(1.25rem, 3vw, 1.75rem);
  font-weight: 500;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

/* Sections */
.section {
  padding: 4rem 0;
}

/* Middle band: solid desert tones, sharp edges to dark header/footer */
.section--trailer {
  color: var(--warm-text);
  background: var(--warm-dune);
  border-top: 4px solid var(--bg);
}

.section--about {
  color: var(--warm-text);
  background: var(--warm-canyon);
  border-top: 2px solid var(--warm-deep);
}

.section--gallery {
  color: var(--warm-text);
  background: var(--warm-rust);
  border-top: 2px solid var(--warm-deep);
}

.section--cta {
  text-align: center;
  background: var(--bg);
  border-top: 4px solid var(--bg);
}

.section__title {
  margin: 0 0 2rem;
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--accent-cyan);
}

.section--trailer .section__title,
.section--about .section__title,
.section--gallery .section__title {
  color: var(--warm-title);
}

.section__cta {
  margin-top: 2rem;
  text-align: center;
}

/* Video */
.video-wrap {
  aspect-ratio: 16 / 9;
  border: 1px solid var(--border);
  border-radius: 2px;
  overflow: hidden;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.5);
}

.section--trailer .video-wrap {
  border-color: var(--warm-border);
  box-shadow: 0 8px 28px rgba(58, 38, 22, 0.28);
}

.video {
  display: block;
  width: 100%;
  height: 100%;
  border: 0;
  background: #000;
}

.video-facade {
  position: relative;
  display: block;
  width: 100%;
  height: 100%;
  padding: 0;
  border: 0;
  cursor: pointer;
  background: #000;
}

.video-facade__thumb {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.video-facade__play {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 72px;
  height: 72px;
  border-radius: 50%;
  background: rgba(12, 14, 18, 0.75);
  border: 3px solid var(--accent-orange);
  transform: translate(-50%, -50%);
  transition: background 0.2s, transform 0.2s;
}

.video-facade__play::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 54%;
  transform: translate(-50%, -50%);
  border-style: solid;
  border-width: 14px 0 14px 24px;
  border-color: transparent transparent transparent var(--accent-orange);
}

.video-facade:hover .video-facade__play,
.video-facade:focus-visible .video-facade__play {
  background: rgba(245, 124, 42, 0.9);
  transform: translate(-50%, -50%) scale(1.06);
}

.video-facade:hover .video-facade__play::after,
.video-facade:focus-visible .video-facade__play::after {
  border-left-color: var(--bg);
}

/* About */
.about__text p {
  margin: 0 0 1rem;
  max-width: 65ch;
  color: var(--text-muted);
}

.section--about .about__text p {
  color: var(--warm-text-muted);
}

.about__tagline {
  font-size: 1.35rem;
  font-weight: 600;
  color: var(--accent-orange) !important;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.section--about .about__tagline {
  color: #c45f1a !important;
}

.about__features {
  margin: 2rem 0 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 0.75rem;
}

@media (min-width: 640px) {
  .about__features {
    grid-template-columns: 1fr 1fr;
  }
}

.about__features li {
  position: relative;
  padding: 1rem 1rem 1rem 1.5rem;
  background: rgba(20, 24, 32, 0.8);
  border-left: 3px solid var(--accent-orange);
  font-weight: 500;
}

.section--about .about__features li {
  background: rgba(255, 248, 235, 0.55);
  border-left-color: #c45f1a;
  color: var(--warm-text);
}

/* Gallery */
.gallery {
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(2, 1fr);
}

@media (min-width: 768px) {
  .gallery {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 767px) {
  .gallery {
    display: flex;
    gap: 1rem;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    padding-bottom: 0.5rem;
    -webkit-overflow-scrolling: touch;
  }

  .gallery__item {
    flex: 0 0 85%;
    scroll-snap-align: center;
  }
}

.gallery__item {
  padding: 0;
  border: 1px solid var(--border);
  border-radius: 2px;
  background: var(--bg);
  cursor: pointer;
  overflow: hidden;
  transition: border-color 0.2s, transform 0.2s;
}

.section--gallery .gallery__item {
  border-color: var(--warm-border);
  background: rgba(42, 30, 20, 0.2);
  box-shadow: 0 4px 16px rgba(58, 38, 22, 0.2);
}

.gallery__item:hover,
.gallery__item:focus-visible {
  border-color: var(--accent-cyan);
  transform: translateY(-2px);
}

.section--gallery .gallery__item:hover,
.section--gallery .gallery__item:focus-visible {
  border-color: var(--warm-title);
}

.gallery__item img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
}

/* CTA block */
.cta-block__subtitle {
  margin: -1rem 0 2rem;
  color: var(--text-muted);
  font-size: 1.25rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.section--trailer a:not(.btn),
.section--about a:not(.btn),
.section--gallery a:not(.btn) {
  color: var(--warm-title);
}

/* Footer */
.footer {
  padding: 2.5rem 0;
  border-top: 1px solid var(--border);
  background: var(--bg);
}

.footer__inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.25rem;
  text-align: center;
}

.footer__brand {
  margin: 0;
  font-size: 1.5rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--accent-cyan);
  transition: color 0.2s;
}

.footer__brand:hover,
.footer__brand:focus-visible {
  color: var(--text);
}

.footer__contact {
  font-size: 0.95rem;
  text-decoration: none;
  color: var(--text-muted);
  transition: color 0.2s;
}

.footer__contact:hover,
.footer__contact:focus-visible {
  color: var(--accent-cyan);
}

.footer__copy {
  margin: 0;
  font-size: 0.9rem;
  color: var(--text-muted);
}

/* Lightbox — styles only when open; display:flex on dialog breaks closed state */
.lightbox:not([open]) {
  display: none;
}

.lightbox[open] {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  max-width: 100%;
  height: 100%;
  max-height: 100%;
  margin: 0;
  padding: 3rem;
  border: none;
  background: rgba(0, 0, 0, 0.92);
}

.lightbox::backdrop {
  background: rgba(0, 0, 0, 0.85);
}

.lightbox__img {
  max-width: 100%;
  max-height: calc(100vh - 6rem);
  margin: auto;
  object-fit: contain;
}

.lightbox__close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  width: 48px;
  height: 48px;
  font-size: 2rem;
  line-height: 1;
  color: var(--text);
  background: transparent;
  border: none;
  cursor: pointer;
}

.lightbox__nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 48px;
  height: 48px;
  font-size: 2.5rem;
  color: var(--text);
  background: rgba(12, 14, 18, 0.7);
  border: 1px solid var(--border);
  border-radius: 2px;
  cursor: pointer;
}

.lightbox__nav--prev {
  left: 1rem;
}

.lightbox__nav--next {
  right: 1rem;
}

.lightbox__close:hover,
.lightbox__nav:hover,
.lightbox__close:focus-visible,
.lightbox__nav:focus-visible {
  color: var(--accent-cyan);
  border-color: var(--accent-cyan);
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .btn,
  .gallery__item {
    transition: none;
  }

  .gallery__item:hover,
  .gallery__item:focus-visible {
    transform: none;
  }
}
