/* ============================================================
   #MyRedDunes — single-screen cinematic desert experience board
   ============================================================ */

:root {
  --black: #0a0806;
  --charcoal: #17130f;
  --charcoal-2: #201a14;
  --sand: #e8dcc3;
  --offwhite: #f5efe2;
  --orange: #d97a35;
  --dune-red: #a8371f;
  --dune-red-2: #7a2416;
  --gold: #cda05a;
  --line: rgba(245, 239, 226, 0.14);
  --line-soft: rgba(245, 239, 226, 0.08);

  --font-display: "Space Grotesk", "Segoe UI", sans-serif;
  --font-body: "Manrope", "Segoe UI", sans-serif;

  --radius: 20px;
  --gap: clamp(8px, 1vw, 14px);
  --pad: clamp(14px, 2vw, 28px);
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  width: 100%;
  height: 100%;
  background: var(--black);
  color: var(--offwhite);
  font-family: var(--font-body);
  overflow: hidden; /* desktop: no scrolling, ever */
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; text-decoration: none; }
ul { list-style: none; margin: 0; padding: 0; }
h1 { margin: 0; }

/* subtle full-page grain, sits above everything, blocks no interaction */
.grain {
  position: fixed;
  inset: 0;
  z-index: 50;
  pointer-events: none;
  opacity: 0.05;
  mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='140' height='140'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* ---------------- Stage: the single-screen bento grid ---------------- */

.stage {
  width: 100vw;
  height: 100vh;
  padding: var(--pad);
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-template-rows: repeat(3, 1fr);
  grid-template-areas:
    "a hero hero b"
    "c hero hero d"
    "e f g h";
  gap: var(--gap);
}

.tiles { display: contents; }

.tile {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius);
  border: 1px solid var(--line-soft);
  background: var(--charcoal);
  opacity: 0;
  transform: translateY(14px);
  animation: rise 700ms cubic-bezier(.2,.7,.2,1) forwards;
}

@keyframes rise {
  to { opacity: 1; transform: translateY(0); }
}

/* ---------------- Hero / master hashtag tile ---------------- */

.hero {
  grid-area: hero;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: clamp(16px, 2.4vw, 34px);
  animation-delay: 60ms;
  border-color: var(--line);
}

.hero-bg {
  position: absolute;
  inset: 0;
  z-index: -1;
  background-image:
    linear-gradient(180deg, rgba(8,6,4,0.62) 0%, rgba(8,6,4,0.42) 38%, rgba(8,6,4,0.72) 100%),
    linear-gradient(100deg, rgba(20,10,6,0.55) 0%, rgba(20,10,6,0.08) 45%),
    var(--img);
  background-size: cover;
  background-position: center 65%;
  transform: scale(1.03);
}

.hero-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  animation: fadeIn 700ms ease forwards;
  animation-delay: 900ms;
  opacity: 0;
}

.nav {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 14px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(10, 8, 6, 0.35);
  backdrop-filter: blur(6px);
  font-size: clamp(10px, 0.75vw, 12px);
  letter-spacing: 0.06em;
}

.nav-mark { color: var(--orange); font-weight: 700; font-family: var(--font-display); }
.nav-links { display: flex; align-items: center; gap: 8px; color: var(--sand); text-transform: uppercase; }
.nav-links a { opacity: 0.85; transition: opacity 250ms ease, color 250ms ease; }
.nav-links a:hover, .nav-links a:focus-visible { opacity: 1; color: var(--gold); }
.nav .dot { opacity: 0.4; }

.locale {
  font-size: clamp(10px, 0.72vw, 12px);
  letter-spacing: 0.14em;
  color: var(--sand);
  opacity: 0.75;
  border: 1px solid var(--line);
  padding: 8px 12px;
  border-radius: 999px;
  background: rgba(10, 8, 6, 0.35);
  backdrop-filter: blur(6px);
}

.hero-mid {
  text-align: left;
  max-width: 62%;
}

.brand {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(2.1rem, 4.6vw, 4.4rem);
  line-height: 1.02;
  letter-spacing: -0.01em;
  background: linear-gradient(100deg, var(--offwhite) 30%, var(--gold) 65%, var(--orange) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  opacity: 0;
  animation: fadeUp 800ms cubic-bezier(.2,.7,.2,1) forwards;
  animation-delay: 260ms;
}

.tagline {
  margin: clamp(8px, 1vw, 14px) 0 0;
  font-size: clamp(0.95rem, 1.3vw, 1.35rem);
  font-weight: 500;
  color: var(--offwhite);
  opacity: 0;
  animation: fadeUp 800ms cubic-bezier(.2,.7,.2,1) forwards;
  animation-delay: 460ms;
}

.subline {
  margin: clamp(8px, 0.9vw, 12px) 0 0;
  font-size: clamp(0.6rem, 0.72vw, 0.75rem);
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--sand);
  opacity: 0;
  animation: fadeUp 800ms cubic-bezier(.2,.7,.2,1) forwards;
  animation-delay: 620ms;
}

.hero-bottom {
  display: flex;
  align-items: center;
  gap: clamp(10px, 1.4vw, 18px);
  flex-wrap: wrap;
  opacity: 0;
  animation: fadeUp 800ms cubic-bezier(.2,.7,.2,1) forwards;
  animation-delay: 1050ms;
}

.cta-primary {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: clamp(10px, 1vw, 15px) clamp(16px, 1.6vw, 24px);
  border-radius: 999px;
  background: linear-gradient(100deg, var(--dune-red) 0%, var(--orange) 100%);
  color: var(--offwhite);
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(0.72rem, 0.85vw, 0.9rem);
  letter-spacing: 0.06em;
  box-shadow: 0 8px 24px rgba(168, 55, 31, 0.35);
  transition: transform 350ms cubic-bezier(.2,.7,.2,1), box-shadow 350ms ease, filter 350ms ease;
}
.cta-primary:hover, .cta-primary:focus-visible {
  transform: translateY(-2px);
  box-shadow: 0 12px 30px rgba(168, 55, 31, 0.45);
  filter: brightness(1.08);
}
.cta-primary span { transition: transform 350ms ease; }
.cta-primary:hover span { transform: translateX(3px); }

.cta-secondary {
  font-size: clamp(0.7rem, 0.8vw, 0.85rem);
  letter-spacing: 0.04em;
  color: var(--sand);
  border-bottom: 1px solid var(--line);
  padding-bottom: 2px;
  transition: color 300ms ease, border-color 300ms ease;
}
.cta-secondary:hover, .cta-secondary:focus-visible { color: var(--gold); border-color: var(--gold); }

.socials {
  display: flex;
  gap: 8px;
  margin-left: auto;
}
.socials a {
  width: 32px;
  height: 32px;
  display: grid;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 50%;
  font-size: 0.62rem;
  letter-spacing: 0.02em;
  color: var(--sand);
  transition: border-color 300ms ease, color 300ms ease, transform 300ms ease;
}
.socials a:hover, .socials a:focus-visible {
  border-color: var(--gold);
  color: var(--gold);
  transform: translateY(-2px);
}

/* ---------------- Experience tiles ---------------- */

.exp {
  cursor: pointer;
  outline: none;
}
.exp[data-area="a"] { grid-area: a; animation-delay: 160ms; }
.exp[data-area="b"] { grid-area: b; animation-delay: 220ms; }
.exp[data-area="c"] { grid-area: c; animation-delay: 280ms; }
.exp[data-area="d"] { grid-area: d; animation-delay: 340ms; }
.exp[data-area="e"] { grid-area: e; animation-delay: 400ms; }
.exp[data-area="f"] { grid-area: f; animation-delay: 460ms; }
.exp[data-area="g"] { grid-area: g; animation-delay: 520ms; }
.exp[data-area="h"] { grid-area: h; animation-delay: 580ms; }

.exp::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: var(--img);
  background-size: cover;
  background-position: center;
  filter: brightness(0.58) saturate(1.05);
  transform: scale(1.08);
  transition: transform 450ms cubic-bezier(.2,.7,.2,1), filter 450ms ease;
}

.exp::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(190deg, rgba(10,8,6,0) 35%, rgba(10,8,6,0.9) 100%);
  transition: background 400ms ease;
}

.exp:hover::before,
.exp:focus-visible::before,
.exp.active::before {
  transform: scale(1.14);
  filter: brightness(0.42) saturate(1.15);
}

.exp:hover, .exp:focus-visible, .exp.active {
  transform: translateY(-3px);
  box-shadow: 0 14px 30px rgba(0,0,0,0.4);
}
.exp { transition: transform 400ms cubic-bezier(.2,.7,.2,1), box-shadow 400ms ease; }
.exp:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; }

.tag {
  position: absolute;
  left: clamp(12px, 1.1vw, 18px);
  bottom: clamp(12px, 1.1vw, 18px);
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(0.72rem, 1vw, 1.05rem);
  color: var(--offwhite);
  z-index: 1;
  transition: transform 400ms cubic-bezier(.2,.7,.2,1);
}
.exp:hover .tag, .exp:focus-visible .tag, .exp.active .tag {
  transform: translateY(-22px);
}

.reveal {
  position: absolute;
  left: clamp(12px, 1.1vw, 18px);
  bottom: clamp(10px, 1vw, 16px);
  z-index: 1;
  font-size: clamp(0.62rem, 0.72vw, 0.78rem);
  color: var(--gold);
  letter-spacing: 0.02em;
  opacity: 0;
  transform: translateY(8px);
  transition: opacity 400ms ease, transform 400ms cubic-bezier(.2,.7,.2,1);
}
.exp:hover .reveal, .exp:focus-visible .reveal, .exp.active .reveal {
  opacity: 1;
  transform: translateY(0);
}

@keyframes fadeIn { to { opacity: 1; } }
@keyframes fadeUp { from { transform: translateY(10px); } to { opacity: 1; transform: translateY(0); } }

/* ---------------- Responsive desktop scaling (still no scroll) ---------------- */

@media (max-width: 1440px) {
  :root { --radius: 16px; }
  .hero-mid { max-width: 68%; }
}

@media (max-width: 1180px) {
  .stage {
    grid-template-columns: repeat(4, 1fr);
    grid-template-rows: repeat(3, 1fr);
  }
  .hero-mid { max-width: 78%; }
  .nav-links a:nth-child(5) { display: none; }
}

@media (max-height: 760px) {
  .brand { font-size: clamp(1.7rem, 4vw, 3rem); }
  .tagline { font-size: clamp(0.8rem, 1.1vw, 1.1rem); }
}

/* ---------------- Tablet ---------------- */

@media (max-width: 980px) {
  html, body { overflow: hidden; }
  .stage {
    grid-template-columns: repeat(4, 1fr);
    grid-template-rows: 1.15fr 1fr 1fr;
    grid-template-areas:
      "hero hero hero hero"
      "a b c d"
      "e f g h";
    padding: clamp(10px, 2vw, 20px);
  }
  .hero-mid { max-width: 100%; }
  .nav-links { display: none; }
  .socials { display: none; }
}

/* ---------------- Mobile: distinct composition, scroll allowed ---------------- */

@media (max-width: 640px) {
  html, body { height: auto; overflow-y: auto; overflow-x: hidden; }

  .stage {
    display: flex;
    flex-direction: column;
    height: auto;
    min-height: 100vh;
    padding: 14px;
    gap: 14px;
  }

  .hero {
    min-height: 92vh;
    padding: 18px 16px 22px;
  }

  .hero-mid { max-width: 100%; }
  .brand { font-size: clamp(2.1rem, 11vw, 2.8rem); }
  .tagline { font-size: 0.95rem; }

  .nav-links { display: none; }
  .locale { font-size: 9px; padding: 6px 10px; }

  .hero-bottom { gap: 12px; }
  .socials { margin-left: 0; }

  .tiles {
    display: flex;
    gap: 10px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    padding-bottom: 4px;
    -webkit-overflow-scrolling: touch;
  }
  .tiles::-webkit-scrollbar { display: none; }

  .exp {
    flex: 0 0 62vw;
    height: 42vh;
    scroll-snap-align: start;
    grid-area: unset !important;
  }

  /* on touch, reveal state is driven by .active class from JS, not :hover */
}

@media (min-width: 641px) and (max-width: 980px) {
  .exp .reveal { display: none; }
}
