:root{
  --taupe:#c9ab97;
  --taupe-light:#d8bda6;
  --text:#f2efe9;
  --ease:cubic-bezier(0.16,1,0.3,1);
}
*{box-sizing:border-box; margin:0; padding:0;}
html,body{height:100%;}
body{
  background:#1c1c1c;
  font-family:'Helvetica Neue', Arial, sans-serif;
  min-height:100vh;
  overflow-x:hidden;
}
.frame{
  width:100%;
  height:100vh;
  position:relative;
  background:#000;
  overflow:hidden;
}
 
.scene{
  position:absolute;
  inset:0;
  background:#000;
  overflow:hidden;
}

/*  Background image with slow zoom / parallax  */
.bg-image{
  position:absolute;
  inset:0;
  width:105%;
  height:105%;
  top:3%;
  left:-5%;
  object-fit:cover;
  will-change:transform;
  animation:slowZoom 26s ease-in-out infinite alternate;
  transition:transform 0.2s ease-out;
}
@keyframes slowZoom{
  0%{ transform:scale(1) translate(0,0); }
  100%{ transform:scale(1.08) translate(-1%,-1%); }
}

.scene-overlay{
  position:absolute;
  inset:0;
  background:
    linear-gradient(180deg, rgba(0,0,0,0.55) 0%, rgba(0,0,0,0) 22%, rgba(0,0,0,0) 65%, rgba(0,0,0,0.7) 100%),
    linear-gradient(90deg, rgba(0,0,0,0.35) 0%, rgba(0,0,0,0) 40%);
  pointer-events:none;
}

/*  Reveal-on-load animation  */
[data-reveal]{
  opacity:0;
  transform:translateY(24px);
  animation:reveal 0.9s var(--ease) forwards;
}
[data-delay="1"]{ animation-delay:0.25s; }
[data-delay="2"]{ animation-delay:0.55s; }
[data-delay="3"]{ animation-delay:0.75s; }
@keyframes reveal{
  to{ opacity:1; transform:translateY(0); }
}

/*  Nav  */
.nav{
  position:absolute;
  top:0; left:0; right:0;
  display:flex;
  align-items:center;
  justify-content:space-between;
  padding:26px 42px;
  z-index:10;
}
.logo{
  display:flex;
  align-items:center;
  gap:10px;
  cursor:pointer;
}
.logo-mark{
  width:22px;
  height:22px;
  flex-shrink:0;
  animation:spinSlow 18s linear infinite;
  transition:filter 0.3s ease;
}
.logo:hover .logo-mark{
  filter:drop-shadow(0 0 6px rgba(255,255,255,0.7));
}
@keyframes spinSlow{
  from{ transform:rotate(0deg); }
  to{ transform:rotate(360deg); }
}
.logo-text{
  position:relative;
  font-size:15px;
  font-weight:600;
  letter-spacing:0.2px;
  background:linear-gradient(
    100deg,
    #fff 0%,
    #fff 38%,
    var(--taupe-light) 48%,
    #fff 58%,
    #fff 100%
  );
  background-size:220% 100%;
  background-position:100% 0;
  -webkit-background-clip:text;
  background-clip:text;
  color:transparent;
  transition:transform 0.3s var(--ease);
  animation:logoShimmer 5s ease-in-out infinite;
}
@keyframes logoShimmer{
  0%{ background-position:160% 0; }
  45%{ background-position:-40% 0; }
  100%{ background-position:-40% 0; }
}
.logo:hover .logo-text{
  transform:translateX(2px);
  animation-duration:1.6s;
}
.nav-links{
  display:flex;
  gap:38px;
  list-style:none;
}
.nav-links a{
  position:relative;
  color:rgba(255,255,255,0.88);
  text-decoration:none;
  font-size:13px;
  font-weight:400;
  letter-spacing:0.2px;
  padding-bottom:4px;
}
.nav-links a::after{
  content:'';
  position:absolute;
  left:0; bottom:0;
  width:0%;
  height:1px;
  background:var(--taupe);
  transition:width 0.35s var(--ease);
}
.nav-links a:hover{ color:#fff; }
.nav-links a:hover::after{ width:100%; }

.menu-icon{
  display:flex;
  flex-direction:column;
  gap:5px;
  cursor:pointer;
  background:none;
  border:none;
  padding:4px;
  z-index:30;
}
.menu-icon span{
  width:20px;
  height:2px;
  background:#fff;
  display:block;
  transition:transform 0.3s var(--ease), opacity 0.3s ease;
}
.menu-icon.open span:nth-child(1){ transform:translateY(7px) rotate(45deg); }
.menu-icon.open span:nth-child(2){ opacity:0; }
.menu-icon.open span:nth-child(3){ transform:translateY(-7px) rotate(-45deg); }

/*  Mobile menu  */
.mobile-menu{
  position:absolute;
  inset:0;
  background:rgba(5,5,5,0.92);
  backdrop-filter:blur(6px);
  display:flex;
  align-items:center;
  justify-content:center;
  z-index:20;
  opacity:0;
  pointer-events:none;
  transition:opacity 0.4s var(--ease);
}
.mobile-menu.open{
  opacity:1;
  pointer-events:auto;
}
.mobile-menu ul{
  list-style:none;
  text-align:center;
  display:flex;
  flex-direction:column;
  gap:26px;
}
.mobile-menu a{
  color:#f2efe9;
  text-decoration:none;
  font-size:26px;
  font-weight:300;
  letter-spacing:0.5px;
  opacity:0;
  transform:translateY(14px);
  transition:opacity 0.4s ease, transform 0.4s ease;
}
.mobile-menu.open a{
  opacity:1;
  transform:translateY(0);
}
.mobile-menu.open li:nth-child(1) a{ transition-delay:0.08s; }
.mobile-menu.open li:nth-child(2) a{ transition-delay:0.16s; }
.mobile-menu.open li:nth-child(3) a{ transition-delay:0.24s; }
.mobile-menu.open li:nth-child(4) a{ transition-delay:0.32s; }
.mobile-menu a:hover{ color:var(--taupe); }

/*  Hero text  */
.hero-text{
  position:absolute;
  left:42px;
  top:38%;
  z-index:10;
  user-select:none;
}
.title-line{
  display:flex;
  position:relative;
}
.title-line span{
  font-family:'Arial Black', Arial, sans-serif;
  font-weight:900;
  font-size:64px;
  line-height:0.92;
  color:var(--taupe);
  letter-spacing:1px;
  display:inline-block;
  text-shadow:0 2px 12px rgba(0,0,0,0.6);
  transition:transform 0.35s var(--ease), color 0.35s ease;
}
.title-line.scatter span:nth-child(1){ transform:rotate(-2deg) translateY(0px); }
.title-line.scatter span:nth-child(2){ transform:rotate(3deg) translateY(4px); color:#b7a89c; }
.title-line.scatter span:nth-child(3){ transform:rotate(-6deg) translateY(10px); color:#8f877f; --op:0.9;}
.title-line.scatter span:nth-child(4){ transform:rotate(8deg) translateY(2px); color:#7c746c; --op:0.75;}
.title-line.scatter span:nth-child(5){ transform:rotate(-10deg) translateY(14px); color:#665f59; --op:0.55;}
.title-line.scatter span:nth-child(6){ transform:rotate(9deg) translateY(20px); color:#544d47; --op:0.4;}

.tw-letter{
  opacity:0;
  visibility:hidden;
  transition:opacity 0.45s ease;
}
.tw-letter.shown{
  opacity:var(--op, 1);
  visibility:visible;
}
.letter-hover:hover{
  color:#fff !important;
  opacity:1 !important;
  transform:scale(1.08) translateY(-6px) !important;
}

/*  Bottom bar  */
.bottom-bar{
  position:absolute;
  left:0; right:0; bottom:0;
  z-index:10;
  display:flex;
  align-items:flex-end;
  justify-content:space-between;
  padding:0 42px 34px 42px;
}

.bottom-left{
  display:flex;
  flex-direction:column;
  gap:22px;
}
.carousel-arrows{
  display:flex;
  gap:16px;
}
.arrow-btn{
  background:none;
  border:1px solid rgba(255,255,255,0);
  color:rgba(255,255,255,0.75);
  font-size:20px;
  cursor:pointer;
  padding:4px 10px;
  border-radius:50%;
  transition:color 0.2s ease, border-color 0.3s ease, transform 0.2s ease, background 0.3s ease;
  font-family:Arial, sans-serif;
}
.arrow-btn:hover{
  color:#fff;
  border-color:rgba(255,255,255,0.4);
  background:rgba(255,255,255,0.08);
  transform:scale(1.1);
}
.arrow-btn:active{ transform:scale(0.92); }

.tagline{
  color:#e9e6e0;
  font-size:15px;
  font-weight:400;
  letter-spacing:0.2px;
  min-height:20px;
  text-shadow:0 0 10px rgba(255,255,255,1.5);
  transition:opacity 0.35s ease, transform 0.35s ease;

}
.tagline.fade{
  opacity:0;
  transform:translateY(6px);
}

.explore-btn{
  display:flex;
  align-items:center;
  gap:14px;
  background:var(--taupe);
  color:#2b2620;
  border:none;
  padding:20px 34px;
  font-size:14px;
  line-height:1;
  letter-spacing:4px;
  font-weight:500;
  text-transform:uppercase;
  cursor:pointer;
  position:relative;
  overflow:hidden;
  transition:background 0.25s ease, transform 0.2s ease, box-shadow 0.3s ease;
}
.explore-btn::before{
  content:'';
  position:absolute;
  inset:0;
  background:rgba(255,255,255,0.25);
  transform:translateX(-110%);
  transition:transform 0.5s var(--ease);
}
.explore-btn:hover::before{ transform:translateX(0); }
.explore-btn:hover{
  background:var(--taupe-light);
  transform:translateY(-3px);
  box-shadow:0 14px 30px rgba(201,171,151,0.35);
}
.explore-btn:active{ transform:translateY(-1px) scale(0.98); }
.explore-btn span, .explore-btn svg{
  position:relative;
  z-index:1;
  display:block;
}
.explore-btn span{
  transition:color 0.3s ease;
  margin-right:-4px;
  transform:translateY(1px);
}
.explore-btn svg{
  width:16px;
  height:16px;
  flex-shrink:0;
  transform:translateY(0px);
}
.explore-btn:hover svg{
  animation:arrowLoop 1s ease-in-out infinite;
}
@keyframes arrowLoop{
  0%{ transform:translateX(0); }
  50%{ transform:translateX(10px); }
  100%{ transform:translateX(0); }
}
.explore-btn.clicked svg{
  animation:shoot 0.5s ease;
}
@keyframes shoot{
  0%{ transform:translateX(0); opacity:1; }
  50%{ transform:translateX(20px); opacity:0; }
  51%{ transform:translateX(-20px); opacity:0; }
  100%{ transform:translateX(6px); opacity:1; }
}

/*  Cursor glow follows mouse (desktop only)  */
.cursor-glow{
  position:absolute;
  width:260px;
  height:260px;
  border-radius:50%;
  background:radial-gradient(circle, rgba(255,255,255,0.06) 0%, rgba(255,255,255,0) 70%);
  pointer-events:none;
  transform:translate(-50%,-50%);
  z-index:5;
  opacity:0;
  transition:opacity 0.3s ease;
}

/*  Suck-into-black-hole transition  */
.warp-target{
  transition:transform 0.9s cubic-bezier(0.6,0,0.9,0.4), opacity 0.8s ease, filter 0.8s ease;
  will-change:transform, opacity, filter;
}
.warp-overlay{
  position:absolute;
  inset:0;
  background:#000;
  opacity:0;
  pointer-events:none;
  z-index:50;
  transition:opacity 0.9s ease 0.25s;
}
.warp-overlay.active{
  opacity:1;
}
.bg-image.warping{
  transition:transform 1s cubic-bezier(0.6,0,0.85,0.35), filter 1s ease;
  filter:brightness(1.6);
}

@media (max-width:760px){
  .nav-links{ display:none; }
  .title-line span{ font-size:38px; }
  .hero-text{ top:34%; }
  .bottom-bar{ flex-direction:column; align-items:flex-start; gap:26px; padding-bottom:26px; }
  .explore-btn{ padding:16px 24px; letter-spacing:2px; }
  .cursor-glow{ display:none; }
}

@media (prefers-reduced-motion: reduce){
  .bg-image{ animation:none; }
  .logo-mark{ animation:none; }
  [data-reveal]{ animation:none; opacity:1; transform:none; }
}