/* ============================
   RESET + BASE
============================ */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html,
body {
  width: 100%;
  height: 100%;
  overflow: hidden;
  background: #323232;
  color: #e0ccae;
  font-family: "Space Grotesk", sans-serif;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

@supports (height: 100svh) {
  .scene {
    height: 100svh;
  }
}


/* ============================
   SCENE
============================ */
.scene {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100vh;
  overflow: hidden;
}

/* ============================
   ARTWORK BLADES
============================ */
.blade {
  position: absolute;
  width: 100%;
  left: 0;
  z-index: 1;
  will-change: transform;
  pointer-events: none;
}

.blade-top { top: 0; }
.blade-bottom { bottom: 0; }

.blade img {
  display: block;
  width: 100%;
  height: auto;
}

/* ============================
   CONTENT STACK
============================ */
.content {
  position: relative;
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
}

/* ============================
   TYPEMARK (DESKTOP)
============================ */

.typemark {
  width: 220px;
  position: absolute;
  top: 50vh;                     /* 🔑 must be 50vh for the JS math */
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 3;
  pointer-events: none;
}


/* ============================
   MAIN TEXT (DESKTOP FIXED)
============================ */
.main-text {
  font-size: clamp(40px, 4vw, 52px);
  line-height: 112%;
  max-width: 960px;
  margin-top: clamp(28px, 4vh, 56px);
  padding-left: clamp(24px, 5vw, 90px);
  padding-right: clamp(24px, 5vw, 90px);
  text-align: center;
  position: relative;
  z-index: 2;
}


/* ============================
   TYPE CURSOR
============================ */
.type-cursor {
  display: inline-block;
  font-size: inherit;
  margin-left: 6px;
  opacity: 0;
  animation: blink 1.1s steps(1) infinite;
}

@keyframes blink {
  50% { opacity: 0; }
}

/* ============================
   LOGOMARK
============================ */
.logomark {
  width: 120px;
  position: absolute;
  bottom: 120px;
  left: 50%;
  transform: translateX(-50%);
  opacity: 0;
  z-index: 0;
  pointer-events: none;
  transition: opacity 0.25s linear;
  margin-top: clamp(36px, 6vh, 84px);
}

/* ============================
   EMAIL
============================ */
.email {
  position: absolute;
  bottom: 40px;
  left: 50%;
  transform: translateX(-50%);
  color: #f1f0ee;
  font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
  font-weight: bold;
  font-size: 26px;
  z-index: 3;
  text-decoration: none;
  transition: opacity 0.2s ease;
}

.email:hover { opacity: 0.7; }

/* ============================
   LARGE DESKTOP FINE TUNING
============================ */
@media (min-width: 1400px) {
  .main-text {
    font-size: 58px;
    max-width: 1100px;
  }
}

@media (min-width: 1600px) {
  .logomark {
    bottom: 100px;
  }
}

/* ============================
   ✅ MOBILE (CLEAN, CORRECT)
============================ */
@media (max-width: 768px) {
  html,
  body {
    overflow: hidden;
    height: 100%;
  }

  .scene {
    position: fixed;
    inset: 0;
    width: 100%;
    height: 100svh;
    min-height: 100svh;
  }

  .typemark {
  width: 180px;
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 3;
  pointer-events: none;
}



  .main-text {
    font-size: clamp(22px, 5.6vw, 32px);
    line-height: 120%;
    margin-top: 0px;
    max-width: 375px;
  }

  .logomark {
    width: 90px;
    bottom: 96px;
    margin-top: 24px;
  }

  .email { font-size: 20px; }
}
