*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

:root {
  --black: #050505;
  --white: #f5f2ee;
  --off-white: #e8e4df;
  --accent: #c8b89a;
  --muted: rgba(245, 242, 238, 0.45);
  --font-body: Bdogrotesk, Arial, sans-serif;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  background: var(--black);
  color: var(--white);
  font-family: var(--font-body);
  font-weight: 300;
  overflow-x: hidden;
  cursor: none;
}

/* Custom Cursor */
.cursor {
  position: fixed;
  width: 10px;
  height: 10px;
  background: var(--white);
  border-radius: 50%;
  pointer-events: none;
  z-index: 9999;
  transform: translate(-50%, -50%);
  transition: transform 0.1s ease, 
              width 0.3s ease, 
              height 0.3s ease, 
              background 0.3s ease;
  mix-blend-mode: difference;
}

.cursor-ring {
  position: fixed;
  width: 36px;
  height: 36px;
  border: 1px solid rgba(245, 242, 238, 0.4);
  border-radius: 50%;
  pointer-events: none;
  z-index: 9998;
  transform: translate(-50%, -50%);
  transition: transform 0.18s ease, width 0.3s ease, height 0.3s ease;
}

/* Hide cursor on touch devices */
@media (hover: none) and (pointer: coarse) {
  .cursor,
  .cursor-ring {
    display: none !important;
  }

  body {
    cursor: auto !important;
  }
}

/* Navbar */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  padding: 40px 50px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  z-index: 101;
  transform: translateY(-100%);
  opacity: 0;
  transition: transform 0.8s cubic-bezier(0.25, 1, 0.5, 1), opacity 0.8s ease;
}

.navbar.animate-in {
  transform: translateY(0);
  opacity: 1;
}

.logo-img {
  height: 32px;
  width: auto;
  object-fit: contain;
}

/* Menu Button */
.menu-btn {
  display: flex;
  flex-direction: column;
  gap: 6px;
  cursor: none;
  position: relative;
  z-index: 101;
  transition: transform 0.5s cubic-bezier(0.25, 1, 0.5, 1);
}

.menu-btn.open {
  transform: rotate(180deg);
}

.menu-btn .bar {
  width: 32px;
  height: 3px;
  background: rgba(255, 255, 255, 0.7);
  transition: transform 0.4s cubic-bezier(0.25, 1, 0.5, 1), opacity 0.4s ease;
  transform-origin: center;
}

.menu-btn.open .bar:nth-child(1) {
  transform: translateY(9px) rotate(45deg);
}

.menu-btn.open .bar:nth-child(2) {
  opacity: 0;
}

.menu-btn.open .bar:nth-child(3) {
  transform: translateY(-9px) rotate(-45deg);
}

/* Drawer Menu  */
.drawer-menu {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100vh;
  background: rgba(5, 5, 5, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: center;
  transform: translateY(-100%);
  transition: transform 0.8s cubic-bezier(0.8, 0, 0.2, 1);
}

.drawer-menu.open {
  transform: translateY(0);
}

.drawer-nav {
  list-style: none;
  text-align: center;
  display: flex;
  flex-direction: column;
  gap: 30px;
  width: 100%;
}

.drawer-nav li {
  position: relative;
  display: block;
  width: 100%;
}

.drawer-nav a {
  text-decoration: none;
  color: var(--white);
  display: inline-flex;
  align-items: flex-start;
  justify-content: center;
  position: relative;
  z-index: 2;
  transform: translateY(40px);
  opacity: 0;
  transition: transform 0.6s cubic-bezier(0.25, 1, 0.5, 1), opacity 0.6s ease;
}

.drawer-menu.open .drawer-nav li:nth-child(1) a { 
  transition-delay: 0.5s; 
  transform: translateY(0); 
  opacity: 1; 
}

.drawer-menu.open .drawer-nav li:nth-child(2) a { 
  transition-delay: 0.4s; 
  transform: translateY(0); opacity: 1; 
}

.drawer-menu.open .drawer-nav li:nth-child(3) a { 
  transition-delay: 0.3s; 
  transform: translateY(0); opacity: 1; 
}

.drawer-nav .nav-text {
  font-size: clamp(3rem, 6vw, 5rem);
  font-weight: 400;
  letter-spacing: -1px;
}

.drawer-nav .nav-num {
  font-size: 1rem;
  margin-left: 12px;
  margin-top: 10px;
  color: rgba(255, 255, 255, 0.4);
}

.hover-line {
  position: absolute;
  bottom: -5px;
  left: 50%;
  transform: translateX(-50%) scaleX(0);
  width: 100vw;
  height: 1px;
  background: rgba(255, 255, 255, 0.3);
  z-index: 1;
  transition: transform 0.5s cubic-bezier(0.25, 1, 0.5, 1);
  pointer-events: none;
}

.drawer-nav li:hover .hover-line {
  transform: translateX(-50%) scaleX(1);
}

/* Section Header */
.section-header {
  width: 100%;
  margin-bottom: 80px;
}

.header-line {
  width: 100%;
  height: 1px;
  background-color: rgba(255, 255, 255, 0.2);
  margin-bottom: 24px;
}

.header-content {
  display: flex;
  justify-content: space-between;
  font-size: 0.85rem;
  color: var(--white);
  letter-spacing: 0.02em;
}

/* Hero Section */
.hero {
  position: relative;
  width: 100%;
  height: 100vh;
  overflow: hidden;
  display: flex;
  align-items: center;
}

.hero-bg {
  position: absolute;
  top: -3%; left: -3%;
  width: 106%; height: 106%;
  z-index: 0;
  transform: scale(1.15);
  transition: transform 1.5s cubic-bezier(0.25, 1, 0.5, 1);
}

.hero-bg.animate-in {
  transform: scale(1);
}

.hero-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    rgba(5,5,5,0.2) 0%,
    rgba(5,5,5,0.4) 50%,
    rgba(5,5,5,0.85) 100%
  );
}

/* Grid Overlay */
.grid-overlay {
  justify-content: space-between;
  height: 100%;
  padding-left: 30px;
  padding-right: 30px;
  display: flex;
  position: absolute;
  inset: 0% 0% auto;
}

.grid-line-v {
  background-color: rgba(255, 255, 255, 0.1);
  width: 1px;
  max-width: 100%;
  height: 100%;
  position: relative;
}

.plus-icon {
  position: absolute;
  left: 50%;
  transform: translate(-50%, -50%);
  color: var(--white);
  font-size: 1.2rem;
  font-weight: 200;
  opacity: 1;
}

/* Plus Symbols */
.grid-line-v::after {
  content: '';
  position: absolute;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 16px;
  height: 16px;
  opacity: 0; 
  transition: opacity 0.8s ease;
}

.grid-line-v:nth-child(1)::after,
.grid-line-v:nth-child(3)::after,
.grid-line-v:nth-child(5)::after {
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'><line x1='12' y1='2' x2='12' y2='22' stroke='white' stroke-width='0.8'/><line x1='2' y1='12' x2='22' y2='12' stroke='white' stroke-width='0.8'/></svg>");
  background-repeat: no-repeat;
  background-position: center;
  background-size: contain;
}

.grid-line-v:nth-child(1)::after,
.grid-line-v:nth-child(5)::after {
  top: 72%;
}

.grid-line-v:nth-child(3)::after {
  top: 28%;
}

.grid-line-v.show-plus::after {
  opacity: 1;
}

/* Side Text Layout */
.side-text {
  position: absolute;
  z-index: 10;
  color: var(--white);
  transform: translateY(40px);
  opacity: 0;
  transition: transform 0.8s cubic-bezier(0.25, 1, 0.5, 1), opacity 0.8s ease;
}

.side-text.animate-in {
  transform: translateY(0);
  opacity: 1;
}

.left-text {
  left: 50px;
  max-width: 440px;
  line-height: 24px;
  letter-spacing: 0;
  font-size: 1.4rem;
  font-weight: 300;
  margin-bottom: 280px;
}

.right-text {
  right: 50px;
  text-align: right;
  display: flex;
  flex-direction: column;
  letter-spacing: 0;
  line-height: 28px;
  font-size: 1.4rem;
  margin-bottom: 80px;
}

/* Center Content */
.center-content {
  position: absolute;
  bottom: 12%;
  left: 50%;
  transform: translateX(-50%);
  text-align: center;
  z-index: 10;
  width: 100%;
}

.hero-eyebrow {
  font-size: 2.5rem;
  letter-spacing: 0.05em;
  color: var(--white);
  margin-bottom: 15px;
  font-weight: 300;
  opacity: 0;
  transition: opacity 1s ease;
}

.hero-eyebrow.animate-in {
  opacity: 1;
}

.hero-title {
  font-size: 8rem;
  line-height: 8rem;
  font-weight: 700;
  letter-spacing: -6px;
  text-transform: uppercase;
  color: var(--white);
  margin: 0;
}

/* Individual Character Animation */
.hero-title .char {
  display: inline-block;
  transform: translateY(100px);
  opacity: 0;
  transition: transform 0.8s cubic-bezier(0.25, 1, 0.5, 1), opacity 0.8s ease;
}

.hero-title .char.animate-in {
  transform: translateY(0);
  opacity: 1;
}

/* Text Section */
.text-section {
  position: relative;
  width: 100%;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 130px 50px;
  background: var(--black);
}

.text-section-inner {
  max-width: 1200px;
  width: 100%;
  display: flex;
  flex-direction: column;
}

.text-block {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  text-align: left;
  max-width: 950px;
  margin: 0 auto;
}

.t-spacer {
  height: 3.5rem;
  width: 100%;
}

.t-line {
  display: block;
  width: 100%;
  text-align: left;
  color: rgb(79, 79, 79);
  font-weight: 500;
  line-height: 3.875rem;
  font-size: 3.5rem;
  letter-spacing: -1px;
  margin: 0;
}

.t-line .scroll-char {
  display: inline;
  transition: color 0.1s ease-out;
}

.t-line .scroll-char.active {
  color: rgb(255, 255, 255);
}

/* Crossfade Wrapper */
.crossfade-wrapper {
  position: relative;
  width: 100%;
  height: 200vh;
  background: var(--black);
}

.crossfade-sticky {
  position: sticky;
  top: 0;
  width: 100%;
  height: 100vh;
  overflow: hidden;
}

/* Image Section */
.image-section {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100vh;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--black);
}

.fiona-section {
  z-index: 10;
}

.lunox-section {
  z-index: 20;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.1s ease-out;
}

.lunox-section.active-click {
  pointer-events: auto;
}

.img-parallax-wrap {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.parallax-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.img-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, rgba(0,0,0,0.1) 0%, rgba(0,0,0,0.4) 50%, rgba(0,0,0,0.85) 100%);
}

.img-label {
  position: absolute;
  inset: 0;
  z-index: 30;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 32px;
  padding: 0 40px;
  opacity: 0;
  transition: opacity 1s ease;
}

.img-label.visible {
  opacity: 1;
}

.img-title {
  font-size: 7.5rem;
  line-height: 7.5rem;
  font-weight: 600;
  letter-spacing: -3px;
  margin-top: 400px;
}

.img-title, .cta-btn {
  transform: translateY(30px);
  transition: transform 1s ease;
}

.img-label.visible .img-title,
.img-label.visible .cta-btn {
  transform: translateY(0);
}

/* Corner Text Positioning */
.corner-text {
  position: absolute;
  color: var(--white);
  font-size: 1rem;
  font-weight: 300;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.corner-text.top-left { 
  top: 40px; 
  left: 50px; 
}

.corner-text.top-right { 
  top: 40px; 
  right: 50px; 
}

.corner-text.bottom-left { 
  bottom: 40px; 
  left: 50px; 
}

.corner-text.bottom-right { 
  bottom: 40px; 
  right: 50px; 
}

/* CTA Button */
.cta-btn {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  padding: 16px 44px;
  border: 1px solid rgba(255,255,255,0.35);
  color: var(--white);
  text-decoration: none;
  font-size: 0.75rem;
  font-weight: 300;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  position: relative;
  overflow: hidden;
  transition: color 0.4s ease, border-color 0.4s ease;
}

.cta-btn::before {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--white);
  transform: translateX(-102%);
  transition: transform 0.5s cubic-bezier(0.7,0,0.3,1);
}

.cta-btn:hover {
  color: var(--black);
  border-color: var(--white);
}

.cta-btn:hover::before {
  transform: translateX(0);
}

.cta-btn span, .cta-btn svg {
  position: relative;
  z-index: 1;
}

/* Onboarding shared styles */
.top-nav {
  display: flex;
  justify-content: flex-end;
  padding: 30px 40px 20px;
}

.page-header .section-header {
  padding: 0 40px;
  margin-bottom: 20px;
}

.page-header .header-line {
  background-color: rgba(255, 255, 255, 0.4);
}

.page-header .header-content {
  font-size: 1rem;
  font-weight: 300;
  letter-spacing: 0.05em;
}

/* Toast Notification */
.toast-notification {
  position: fixed;
  bottom: 40px;
  right: 40px;
  background: rgba(255, 255, 255, 0.03);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.15);
  padding: 24px 32px;
  z-index: 1000;
  transform: translateY(100px);
  opacity: 0;
  transition: transform 0.6s cubic-bezier(0.25, 1, 0.5, 1), opacity 0.6s ease;
  pointer-events: none;
}

.toast-notification.show {
  transform: translateY(0);
  opacity: 1;
}

.toast-content {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.toast-title {
  font-family: 'Epilogue', sans-serif;
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.15em;
  color: var(--white);
  text-transform: uppercase;
}

.toast-message {
  font-family: 'Epilogue', sans-serif;
  font-size: 0.95rem;
  font-weight: 300;
  color: rgba(255, 255, 255, 0.6);
  letter-spacing: 0.02em;
}

/* Tablets (max-width: 1024px) */
@media (max-width: 1024px) {
  .hero-title {
    font-size: 6rem;
    line-height: 6rem;
    letter-spacing: -4px;
  }

  .hero-eyebrow {
    font-size: 2rem;
  }

  .left-text {
    font-size: 1.15rem;
    max-width: 320px;
    left: 36px;
    margin-bottom: 240px;
  }

  .right-text {
    font-size: 1.15rem;
    right: 36px;
  }

  .t-line {
    font-size: 2.8rem;
    line-height: 3.2rem;
  }

  .t-spacer {
    height: 2.5rem;
  }

  .img-title {
    font-size: 5.5rem;
    line-height: 5.5rem;
    letter-spacing: -2px;
    margin-top: 300px;
  }
}

/* Mobile Landscape / Small Tablets (max-width: 768px) */
@media (max-width: 768px) {

  .navbar {
    padding: 28px 24px;
  }

  .logo-img {
    height: 26px;
  }

  .hero-title {
    font-size: clamp(3.2rem, 12vw, 5rem);
    line-height: clamp(3.2rem, 12vw, 5rem);
    letter-spacing: -2px;
  }

  .hero-eyebrow {
    font-size: 1.4rem;
    margin-bottom: 10px;
  }

  .left-text,
  .right-text {
    display: none;
  }

  .center-content {
    bottom: 10%;
    padding: 0 20px;
  }

  .text-section {
    padding: 80px 24px;
    min-height: auto;
  }

  .section-header {
    margin-bottom: 48px;
  }

  .t-line {
    font-size: clamp(1.6rem, 5.5vw, 2.2rem);
    line-height: clamp(2rem, 7vw, 2.8rem);
    letter-spacing: -0.5px;
  }

  .t-spacer {
    height: 1.8rem;
  }

  .img-title {
    font-size: clamp(2.8rem, 10vw, 4.5rem);
    line-height: clamp(2.8rem, 10vw, 4.5rem);
    letter-spacing: -1.5px;
    margin-top: 200px;
  }

  .corner-text.top-left {
    top: 24px;
    left: 24px;
  }

  .corner-text.top-right {
    top: 24px;
    right: 24px;
  }

  .corner-text.bottom-left {
    bottom: 24px;
    left: 24px;
  }

  .corner-text.bottom-right {
    bottom: 24px;
    right: 24px;
  }

  .corner-text {
    font-size: 0.75rem;
  }

  .img-label {
    gap: 20px;
    padding: 0 24px;
  }

  .cta-btn {
    padding: 14px 32px;
    font-size: 0.7rem;
  }

  .grid-line-v:nth-child(2),
  .grid-line-v:nth-child(4) {
    display: none;
  }

  .top-nav {
    padding: 24px 24px 16px;
  }

  .page-header .section-header {
    padding: 0 24px;
  }

  .toast-notification {
    bottom: 24px;
    right: 24px;
    left: 24px; 
    padding: 20px 24px;
  }
}

/* Small Mobile (max-width: 480px) */
@media (max-width: 480px) {

  /* Hero */
  .hero-title {
    font-size: clamp(2.8rem, 14vw, 3.8rem);
    line-height: clamp(2.8rem, 14vw, 3.8rem);
    letter-spacing: -1.5px;
  }

  .hero-eyebrow {
    font-size: 1.1rem;
  }

  .center-content {
    bottom: 8%;
  }

  .navbar {
    padding: 20px 18px;
  }

  .logo-img {
    height: 22px;
  }

  .menu-btn .bar {
    width: 26px;
    height: 2px;
  }

  .text-section {
    padding: 60px 18px;
  }

  .t-line {
    font-size: clamp(1.35rem, 5vw, 1.7rem);
    line-height: clamp(1.8rem, 6.5vw, 2.2rem);
    letter-spacing: 0;
  }

  .t-spacer {
    height: 1.4rem;
  }

  .img-title {
    font-size: clamp(2.2rem, 11vw, 3.2rem);
    line-height: clamp(2.2rem, 11vw, 3.2rem);
    letter-spacing: -1px;
    margin-top: 160px;
  }

  .corner-text {
    font-size: 0.65rem;
  }

  .corner-text.top-left,
  .corner-text.bottom-left {
    left: 16px;
  }

  .corner-text.top-right,
  .corner-text.bottom-right {
    right: 16px;
  }

  .corner-text.top-left,
  .corner-text.top-right {
    top: 16px;
  }

  .corner-text.bottom-left,
  .corner-text.bottom-right {
    bottom: 16px;
  }

  .drawer-nav .nav-text {
    font-size: clamp(2.4rem, 10vw, 3.5rem);
  }

  .top-nav {
    padding: 18px 18px 12px;
  }

  .page-header .section-header {
    padding: 0 18px;
  }
}