*,
*::before,
*::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  height: 100%;
  height: -webkit-fill-available;
  background: #c3b393;
  overflow-x: hidden;
  overscroll-behavior: none;
  scrollbar-width: none;
  -ms-overflow-style: none;
}

body {
  width: 100%;
  min-height: 100%;
  min-height: -webkit-fill-available;
  background: #c3b393;
  font-family: "DM Sans", sans-serif;
  overflow-x: hidden;
  overscroll-behavior: none;
  scrollbar-width: none;
  -ms-overflow-style: none;
}

html::-webkit-scrollbar,
body::-webkit-scrollbar {
  width: 0;
  height: 0;
}

.page {
  position: relative;
  width: 100vw;
  height: 100vh;
  height: 100dvh;
  height: -webkit-fill-available;
  height: var(--app-height, 100dvh);
  overflow: hidden;
  background: #050505;
  isolation: isolate;
}

.bg-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: brightness(0.72);
  transform: scale(1.05);
  opacity: 0;
  transition:
    opacity 0.9s ease,
    transform 1.2s ease,
    filter 0.6s ease;
  z-index: 0;
}

.page::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    135deg,
    rgba(218, 165, 132, 0.45) 0%,
    rgba(186, 128, 78, 0.3) 25%,
    transparent 100%
  );
  opacity: 0;
  z-index: 2;
  pointer-events: none;
  transition: opacity 0.6s ease;
}

.page.video-ready .bg-video {
  opacity: 1;
  transform: scale(1);
  filter: brightness(0.8);
}

.page.video-ready::after {
  opacity: 1;
}

.loading-overlay {
  position: absolute;
  inset: 0;
  z-index: 3;
  background: #050505;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: opacity 0.6s ease;
}

.loading-overlay .spinner {
  width: 34px;
  height: 34px;
  border: 3px solid rgba(255, 255, 255, 0.2);
  border-top-color: #fff;
  border-radius: 50%;
  animation: spin 0.75s linear infinite;
}

.page.video-ready .loading-overlay {
  opacity: 0;
  visibility: hidden;
}

header {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  /* Adds device safe area space to your existing 22px padding */
  padding: 22px 32px;
  padding-top: calc(22px + env(safe-area-inset-top)); 
  animation: fadeDown 0.8s ease both;
}

.logo {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  object-fit: contain;
  margin-right: auto;
  filter: drop-shadow(0 8px 20px rgba(0, 0, 0, 0.35));
}

.clock {
  font-size: 0.72rem;
  color: rgba(255, 255, 255, 0.7);
  letter-spacing: 0.05em;
  margin-right: auto;
}

nav {
  display: flex;
  gap: 28px;
  margin-right: 28px;
}
nav a {
  color: rgba(255, 255, 255, 0.75);
  text-decoration: none;
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  transition: color 0.2s;
}
nav a:hover {
  color: #fff;
}

.btn-cta {
  border: 1px solid rgba(255, 255, 255, 0.6);
  color: #fff;
  text-decoration: none;
  font-size: 0.7rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  padding: 8px 16px;
  transition:
    background 0.2s,
    color 0.2s;
}
.btn-cta:hover {
  background: #fff;
  color: #000;
}

.sound-toggle {
  width: 38px;
  height: 38px;
  border: 1px solid rgba(255, 255, 255, 0.6);
  background: rgba(0, 0, 0, 0.25);
  color: #fff;
  display: grid;
  place-items: center;
  margin-right: 14px;
  cursor: pointer;
  transition:
    background 0.2s,
    border-color 0.2s,
    transform 0.2s;
}

.sound-toggle:hover {
  background: rgba(255, 255, 255, 0.14);
  border-color: rgba(255, 255, 255, 0.9);
}

.sound-toggle:active {
  transform: translateY(1px);
}

.sound-toggle svg {
  width: 18px;
  height: 18px;
  stroke: currentColor;
  fill: none;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.sound-toggle .icon-muted {
  display: none;
}

.sound-toggle.is-muted .icon-unmuted {
  display: none;
}

.sound-toggle.is-muted .icon-muted {
  display: block;
}

.hero-name {
  position: absolute;
  bottom: 84px;
  left: 32px;
  z-index: 20;
  line-height: 0.88;
  animation: fadeUp 0.9s ease 0.1s both;
}

.index-tag {
  font-size: 0.75rem;
  color: rgba(255, 255, 255, 0.55);
  letter-spacing: 0.04em;
  margin-bottom: 8px;
}

.hero-name h1 {
  font-family: "Playfair Display", serif;
  font-size: clamp(3.5rem, 8.6vw, 7rem);
  font-weight: 900;
  color: #fff;
  text-transform: uppercase;
  letter-spacing: -0.02em;
  line-height: 0.9;
  text-shadow: 0 4px 40px rgba(0, 0, 0, 0.3);
}

.scroll-indicator {
  position: absolute;
  left: 50%;
  /* Pushes the indicator up above the Safari URL bar */
  bottom: calc(20px + env(safe-area-inset-bottom)); 
  transform: translateX(-50%);
  z-index: 20;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  color: rgba(255, 255, 255, 0.88);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-size: 0.62rem;
  animation: fadeUp 0.9s ease 0.4s both;
}

.scroll-indicator .mouse {
  width: 22px;
  height: 34px;
  border: 1.5px solid rgba(255, 255, 255, 0.72);
  border-radius: 12px;
  position: relative;
}

.scroll-indicator .mouse::before {
  content: "";
  position: absolute;
  left: 50%;
  top: 7px;
  width: 3px;
  height: 7px;
  transform: translateX(-50%);
  border-radius: 99px;
  background: #fff;
  animation: wheelDrop 1.35s ease-in-out infinite;
}

.scroll-indicator .chevrons {
  font-size: 0.7rem;
  line-height: 1;
  opacity: 0.75;
  animation: chevronPulse 1.35s ease-in-out infinite;
}

@media (max-width: 768px) {
  .page {
    position: fixed;
    inset: 0;
    width: auto;
    height: auto;
  }

  .coming-soon {
    margin-top: 100vh;
    margin-top: 100dvh;
    margin-top: var(--app-height, 100dvh);
  }

  header {
    padding: calc(12px + env(safe-area-inset-top)) calc(16px + env(safe-area-inset-right)) 12px calc(16px + env(safe-area-inset-left));
  }

  .hero-name {
    bottom: 0;
    left: 0;
    right: 0;
    top: auto;
    width: 100%;
    height: 34dvh;
    background: linear-gradient(
      to bottom,
      transparent 0%,
      rgba(0, 0, 0, 0.35) 30%,
      rgba(0, 0, 0, 0.6) 100%
    );
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 60px calc(5px + env(safe-area-inset-right)) calc(60px + env(safe-area-inset-bottom)) calc(5px + env(safe-area-inset-left));
    line-height: normal;
  }

  .hero-name h1 {
    font-size: clamp(2.4rem, 10vw, 3.4rem);
    color: #fff;
    text-shadow: 0 2px 20px rgba(0, 0, 0, 0.5);
    line-height: 0.92;
    top: 10vh;
  }

  /* Date sits on the video above the gradient, cream colour */
  .info-box {
    top: auto;
    /* Pushes the date text up above the Safari URL bar */
    bottom: calc(80px + env(safe-area-inset-bottom)); 
    left: 10px;
    text-align: right;
    z-index: 25;
  }

  .info-box br {
    display: none;
  }

  .info-box p {
    color: #e8dcc8;
    font-size: 0.78rem;
    letter-spacing: 0.08em;
    text-shadow: 0 1px 8px rgba(0, 0, 0, 0.4);
  }

  /* Scroll indicator centred */
  .scroll-indicator {
    left: 0;
    right: 0;
    transform: none;
    bottom: calc(14px + env(safe-area-inset-bottom));
    color: rgba(255, 255, 255, 0.55);
  }

  .scroll-indicator .mouse {
    border-color: rgba(255, 255, 255, 0.4);
  }

  .scroll-indicator .mouse::before {
    background: rgba(255, 255, 255, 0.8);
  }
}

.info-box {
  position: absolute;
  bottom: 48px;
  right: 32px;
  z-index: 20;
  text-align: right;
  animation: fadeUp 0.9s ease 0.25s both;
}
.info-box p {
  color: rgba(255, 255, 255, 0.85);
  font-size: 0.85rem;
  font-weight: 300;
  letter-spacing: 0.06em;
  line-height: 1.7;
}

.coming-soon {
  position: relative;
  background: #c3b393;
  color: #201f1b;
  min-height: 100dvh; /* <-- Changed from 100vh */
  display: grid;
  place-items: center;
  padding: 88px 22px;
  overflow: hidden;
}

.coming-soon::before,
.coming-soon::after {
  content: "";
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
}

.coming-soon::before {
  width: 340px;
  height: 340px;
  right: -120px;
  top: -100px;
  background: radial-gradient(
    circle,
    rgba(199, 156, 87, 0.3),
    transparent 70%
  );
}

.coming-soon::after {
  width: 420px;
  height: 420px;
  left: -140px;
  bottom: -170px;
  background: radial-gradient(
    circle,
    rgba(83, 58, 25, 0.08),
    transparent 72%
  );
}

.coming-soon-card {
  position: relative;
  z-index: 1;
  text-align: center;
  max-width: 860px;
  width: min(100%, 860px);
  padding: clamp(28px, 6vw, 56px);
  border: 1px solid rgba(32, 31, 27, 0.16);
  background: rgba(255, 255, 255, 0.55);
  backdrop-filter: blur(3px);
}

.reveal-on-scroll {
  opacity: 0;
  transform: translateY(46px) scale(0.985);
  filter: blur(6px);
  transition:
    opacity 0.45s cubic-bezier(0.2, 0.7, 0.2, 1),
    transform 0.5s cubic-bezier(0.2, 0.7, 0.2, 1),
    filter 0.45s ease;
  will-change: opacity, transform, filter;
}

.reveal-on-scroll.is-visible {
  opacity: 1;
  transform: translateY(0) scale(1);
  filter: blur(0);
}

.coming-soon-kicker {
  font-size: 0.68rem;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: rgba(32, 31, 27, 0.64);
  margin-bottom: 16px;
}

.coming-soon h2 {
  font-family: "Playfair Display", serif;
  font-size: clamp(2rem, 6.8vw, 4.8rem);
  letter-spacing: -0.02em;
  text-transform: uppercase;
  line-height: 0.95;
  margin-bottom: 20px;
}

.coming-soon p {
  font-size: clamp(0.98rem, 1.8vw, 1.2rem);
  line-height: 1.7;
  max-width: 680px;
  margin: 0 auto;
  color: rgba(32, 31, 27, 0.86);
}

.coming-links {
  margin-top: 34px;
  display: flex;
  justify-content: center;
  gap: 12px;
  flex-wrap: wrap;
}

.coming-links a {
  text-decoration: none;
  color: #201f1b;
  border: 1px solid rgba(32, 31, 27, 0.35);
  padding: 10px 16px;
  text-transform: uppercase;
  letter-spacing: 0.13em;
  font-size: 0.68rem;
  transition:
    background 0.22s ease,
    color 0.22s ease,
    transform 0.22s ease,
    border-color 0.22s ease;
}

.reveal-on-scroll .coming-links a {
  opacity: 0;
  transform: translateY(12px);
  transition:
    opacity 0.32s ease,
    transform 0.32s ease,
    background 0.22s ease,
    color 0.22s ease,
    border-color 0.22s ease;
}

.reveal-on-scroll.is-visible .coming-links a {
  opacity: 1;
  transform: translateY(0);
}

.reveal-on-scroll.is-visible .coming-links a:nth-child(1) {
  transition-delay: 0.08s;
}

.reveal-on-scroll.is-visible .coming-links a:nth-child(2) {
  transition-delay: 0.14s;
}

.coming-links a:hover {
  background: #201f1b;
  color: #f6f0e4;
  transform: translateY(-2px);
  border-color: #201f1b;
}

@keyframes fadeDown {
  from {
    opacity: 0;
    transform: translateY(-14px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

@keyframes wheelDrop {
  0% {
    opacity: 0;
    transform: translateX(-50%) translateY(0);
  }
  25% {
    opacity: 1;
  }
  75% {
    opacity: 0.9;
    transform: translateX(-50%) translateY(10px);
  }
  100% {
    opacity: 0;
    transform: translateX(-50%) translateY(12px);
  }
}

@keyframes chevronPulse {
  0%,
  100% {
    opacity: 0.35;
    transform: translateY(0);
  }
  50% {
    opacity: 0.95;
    transform: translateY(3px);
  }
}

@media (max-width: 680px) {
  .coming-soon {
    padding: 64px 16px;
  }

  .coming-soon-card {
    padding: 28px 18px;
  }

  .coming-links {
    gap: 10px;
  }

  .coming-links a {
    width: 100%;
  }
}

@media (prefers-reduced-motion: reduce) {
  .reveal-on-scroll,
  .reveal-on-scroll .coming-links a {
    opacity: 1;
    transform: none;
    filter: none;
    transition: none;
  }
}
