/* ═══════════════════════════════════════════════════════════
   Marmik Soni — Coming Soon
   ═══════════════════════════════════════════════════════════ */

/* ── Trap Font — Self-hosted ───────────────────────────────── */
@font-face { font-family: 'Trap'; src: url('../fonts/Trap-Light.otf') format('opentype'); font-weight: 300; font-display: block; }
@font-face { font-family: 'Trap'; src: url('../fonts/Trap-Regular.otf') format('opentype'); font-weight: 400; font-display: block; }
@font-face { font-family: 'Trap'; src: url('../fonts/Trap-Medium.otf') format('opentype'); font-weight: 500; font-display: block; }
@font-face { font-family: 'Trap'; src: url('../fonts/Trap-SemiBold.otf') format('opentype'); font-weight: 600; font-display: block; }
@font-face { font-family: 'Trap'; src: url('../fonts/Trap-Bold.otf') format('opentype'); font-weight: 700; font-display: block; }
@font-face { font-family: 'Trap'; src: url('../fonts/Trap-ExtraBold.otf') format('opentype'); font-weight: 800; font-display: block; }
@font-face { font-family: 'Trap'; src: url('../fonts/Trap-Black.otf') format('opentype'); font-weight: 900; font-display: block; }

/* ── Design Tokens ─────────────────────────────────────────── */
:root {
  --font:      'Trap', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --canvas:    #ffffff;
  --ink:       #000000;
  --soft:      #777777;
  --m:         clamp(16px, 3vw, 40px);
  --title:     clamp(40px, 13vw, 160px);
  --nav-size:  clamp(22px, 3vw, 32px);
  --sub-size:  clamp(11px, 1.4vw, 13px);
  --body-size: clamp(14px, 1.8vw, 18px);
}


/* ── Reset ─────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { height: 100%; overflow-x: hidden; }
body { min-height: 100dvh; overflow-x: hidden; overscroll-behavior-y: none; }

::selection {
  background: rgba(128, 128, 128, 0.25);
  color: inherit;
}
::-moz-selection {
  background: rgba(128, 128, 128, 0.25);
  color: inherit;
}

/* ── Body ──────────────────────────────────────────────────── */
body {
  background:      var(--canvas);
  color:           var(--ink);
  font-family:     var(--font);
  font-weight:     400;
  display:         flex;
  flex-direction:  column;
  justify-content: space-between;
  padding:         var(--m);
  padding-top:     clamp(48px, 8vw, 64px);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Subtle Grain Overlay */
body::after {
  content: "";
  position: fixed;
  top: 0; left: 0; width: 100%; height: 100%;
  background-image: url('data:image/svg+xml,%3Csvg viewBox="0 0 200 200" xmlns="http://www.w3.org/2000/svg"%3E%3Cfilter id="noiseFilter"%3E%3CfeTurbulence type="fractalNoise" baseFrequency="0.65" numOctaves="3" stitchTiles="stitch"/%3E%3C/filter%3E%3Crect width="100%25" height="100%25" filter="url(%23noiseFilter)"/%3E%3C/svg%3E');
  opacity: 0.04;
  pointer-events: none;
  z-index: 9998;
}


a {
  color:           inherit;
  text-decoration: none;
}

/* ── Editorial Layout ────────────────────────────────────────── */
.editorial-layout {
  flex-grow: 1;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  width: 100%;
}

.top-section {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  width: 100%;
}

.top-left {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 12px;
}


.contact-block {
  margin-top: 16px;
}

.top-right {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
}

.social-nav {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  padding-bottom: 4px;
}

.social-link {
  font-size: var(--nav-size);
  font-weight: 500;
  text-transform: lowercase;
  letter-spacing: 0.05em;
  position: relative;
  padding: 4px 0;
  display: inline-block;
}

.social-link::after {
  content: '';
  position: absolute;
  width: 100%;
  transform: scaleX(0);
  height: 1px;
  bottom: -2px;
  left: 0;
  background-color: currentColor;
  transform-origin: bottom right;
  transition: transform 0.3s cubic-bezier(0.19, 1, 0.22, 1);
}

.social-link:hover::after {
  transform: scaleX(1);
  transform-origin: bottom left;
}

.bottom-section {
  display: flex;
  flex-direction: column;
  align-items: center;
  position: relative;
  width: 100%;
}

.giant-text-wrap {
  width: 100%;
  text-align: left;
  overflow: hidden;
}

.giant-text {
  font-size: 12.5vw;
  font-weight: 400;
  line-height: 1.1;
  letter-spacing: -0.05em;
  margin: 0 0 -0.15em -0.05em;
  white-space: nowrap;
}

.subtext-wrap {
  width: 100%;
  text-align: left;
  overflow: hidden;
}

.subtext {
  font-size: clamp(16px, 1.8vw, 20px);
  color: var(--soft);
  font-weight: 400;
  line-height: 1.2;
  transition: color 0.3s ease;
}

.subtext:hover {
  color: var(--ink);
}

.meta-footer {
  position: absolute;
  bottom: 4px;
  right: 0;
  width: 100%;
  display: flex;
  justify-content: flex-end;
  font-size: var(--sub-size);
  color: var(--soft);
  text-transform: uppercase;
}

@media (max-width: 1024px) and (orientation: portrait), (max-width: 768px) {
  .editorial-layout {
    flex-direction: column-reverse;
    justify-content: flex-end;
  }
  .bottom-section {
    margin-top: 16vh;
    margin-bottom: 40px;
  }
  .giant-text {
    font-size: 15vw;
    margin-bottom: 0;
  }
  .top-section {
    flex-direction: column-reverse;
  }
  .top-right {
    margin-top: 0;
    margin-bottom: 40px;
    align-items: flex-end;
    align-self: flex-end;
  }
  .social-nav {
    align-items: flex-end;
  }
  
  /* Mobile Sequence */
  .bottom-section .reveal-text { animation-delay: 0.40s; }
  .social-nav .reveal-wrap:nth-child(1) .reveal-text { animation-delay: 0.50s; }
  .social-nav .reveal-wrap:nth-child(2) .reveal-text { animation-delay: 0.55s; }
  .social-nav .reveal-wrap:nth-child(3) .reveal-text { animation-delay: 0.60s; }
  .social-nav .reveal-wrap:nth-child(4) .reveal-text { animation-delay: 0.65s; }
  .top-left .reveal-wrap:nth-child(1) .reveal-text { animation-delay: 0.70s; }
  .top-left .reveal-wrap:nth-child(2) .reveal-text { animation-delay: 0.75s; }
}

/* Text Reveal Animation */
.reveal-wrap {
  overflow: hidden;
}
.reveal-text {
  transform: translateY(120%);
  animation: revealUp 1.8s cubic-bezier(0.19, 1, 0.22, 1) forwards;
}

/* Desktop Sequence */
.bottom-section .reveal-text { animation-delay: 0.40s; }
.social-nav .reveal-wrap:nth-child(1) .reveal-text { animation-delay: 0.50s; }
.social-nav .reveal-wrap:nth-child(2) .reveal-text { animation-delay: 0.55s; }
.social-nav .reveal-wrap:nth-child(3) .reveal-text { animation-delay: 0.60s; }
.social-nav .reveal-wrap:nth-child(4) .reveal-text { animation-delay: 0.65s; }
.top-left .reveal-wrap:nth-child(1) .reveal-text { animation-delay: 0.70s; }
.top-left .reveal-wrap:nth-child(2) .reveal-text { animation-delay: 0.75s; }

@keyframes revealUp {
  from { transform: translateY(120%); }
  to { transform: translateY(0); }
}


/* ── Email Button ──────────────────────────────────────────── */
.email-button {
  background:     none;
  border:         none;
  color:          var(--ink);
  font:           inherit;
  font-weight:    700;
  cursor:         pointer;
  padding:        0;
  position:       relative;
  display:        inline-flex;
  text-transform: inherit;
  letter-spacing: inherit;
  transition: transform 0.4s cubic-bezier(0.2, 0.8, 0.2, 1);
  will-change: transform;
}

.email-button:hover {
  transition: transform 0.1s linear;
}

.email-text { position: relative; }

.email-text::after {
  content:          '';
  position:         absolute;
  width:            100%;
  transform:        scaleX(0);
  height:           1px;
  bottom:           -2px;
  left:             0;
  background-color: currentColor;
  transform-origin: bottom right;
  transition:       transform 0.5s cubic-bezier(0.19, 1, 0.22, 1);
}

.email-button:hover .email-text::after {
  transform:        scaleX(1);
  transform-origin: bottom left;
}

/* ── Toast ─────────────────────────────────────────────────── */
.toast {
  position:       fixed;
  bottom:         clamp(24px, 4vw, 48px);
  left:           50%;
  transform:      translateX(-50%) translateY(20px);
  background:     var(--ink);
  color:          var(--canvas);
  padding:        12px 22px;
  border-radius:  100px;
  font-size:      13px;
  font-weight:    500;
  letter-spacing: 0.02em;
  opacity:        0;
  pointer-events: none;
  transition:     opacity 0.4s cubic-bezier(0.16, 1, 0.3, 1),
                  transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  white-space:    nowrap;
  text-transform: none;
  z-index:        100;
}

.toast.show {
  opacity:   1;
  transform: translateX(-50%) translateY(0);
}

/* ── Custom Cursor ─────────────────────────────────────────── */
@media (pointer: fine) {
  body, a, button {
    cursor: none;
  }
}

.custom-cursor {
  position: fixed;
  top: 0;
  left: 0;
  width: 36px;
  height: 36px;
  background-color: var(--canvas);
  border-radius: 50%;
  pointer-events: none;
  z-index: 9999;
  mix-blend-mode: difference;
  will-change: transform, width, height, opacity, background-color;
  transition: width 0.7s cubic-bezier(0.16, 1, 0.3, 1), 
              height 0.7s cubic-bezier(0.16, 1, 0.3, 1),
              background-color 0.7s ease,
              opacity 0.3s ease;
  display: flex;
  justify-content: center;
  align-items: center;
  color: var(--canvas);
}

.custom-cursor.hovering {
  width: 72px;
  height: 72px;
}

.custom-cursor.hidden {
  opacity: 0;
}

