/* ============================================================
   styles-desktop.css — Indivisionary
   ============================================================ */

:root {
  --amber:        #c8882a;
  --amber-light:  #e6a840;
  --crimson:      #b03a2e;
  --cream:        #f5ead0;
  --glass-border: rgba(200, 136, 42, 0.28);
  --text:         rgba(255, 248, 235, 0.92);
  --vein:         rgba(200, 136, 42, 0.6);
  --soil-1:       #1a1208;
  --deep-2:       #080604;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: 'Jost', sans-serif;
  font-size: 125%;
  color: var(--text);
  background-color: #0a0703;
  background-image:
    url('../image/underground.png'),
    url('../image/underground2.png'),
    url('../image/underground3.png');
  background-repeat: no-repeat, no-repeat, repeat-y;
  overflow-x: hidden;
}

/* ============================================================
   INTRO SEQUENCE
   ============================================================ */
#intro-screen {
  position: fixed;
  inset: 0;
  background: #040200;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Intro logo — centered, static */
#intro-logo {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  height: 22vh;
  width: auto;
  object-fit: contain;
  opacity: 0;
  z-index: 101;
  filter: drop-shadow(0 4px 48px rgba(176, 58, 46, 0.65));
}


/* ============================================================
   PERSISTENT NAV
   ============================================================ */
#nav-logo {
  position: fixed;
  top: 2.5vh;
  left: 2.5vw;
  z-index: 50;
  height: 10.5vh;
  width: auto;
  object-fit: contain;
  filter: drop-shadow(0 1px 6px rgba(176,58,46,0.35));
  cursor: pointer;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.6s ease;
}

#nav-logo:hover { opacity: 0.8 !important; }
#nav-logo.visible { opacity: 1; pointer-events: all; }

#nav-name {
  position: fixed;
  top: 2.5vh;
  right: 2.5vw;
  z-index: 50;
  font-family: 'Cormorant Garamond', serif;
  font-weight: 600;
  font-size: clamp(2.32rem, 2.96vw, 3.375rem);
  letter-spacing: 0.12em;
  color: var(--cream);
  text-shadow: 0 1px 6px rgba(0,0,0,0.9);
  cursor: pointer;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.6s ease;
}

#nav-name:hover { opacity: 0.7 !important; }
#nav-name.visible { opacity: 1; pointer-events: all; }


/* ── Menu indicator (3 lines beneath logo) ─────────────────── */
#nav-menu-indicator {
  position: fixed;
  top: calc(2.5vh + 10.5vh + 1.4vh);
  left: 2.5vw;
  z-index: 50;
  display: flex;
  flex-direction: column;
  gap: 4px;
  cursor: pointer;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.6s ease;
  width: 22px;
}

#nav-menu-indicator.visible {
  opacity: 1;
  pointer-events: all;
}

#nav-menu-indicator span {
  display: block;
  height: 1.5px;
  background: rgba(255,248,235,0.6);
  transition: width 0.2s ease, background 0.2s ease;
  transform-origin: left center;
}

#nav-menu-indicator span:nth-child(1) { width: 22px; }
#nav-menu-indicator span:nth-child(2) { width: 15px; }
#nav-menu-indicator span:nth-child(3) { width: 10px; }

#nav-menu-indicator:hover span,
#nav-menu-indicator.active span {
  background: rgba(200,136,42,0.9);
  width: 22px;
}

/* ── Nav dropdown ──────────────────────────────────────────── */
#nav-dropdown {
  position: fixed;
  top: 0;
  left: 2.5vw; /* top set dynamically by JS */
  z-index: 49;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0;
  pointer-events: none;
  opacity: 0;
  transform: translateY(-6px);
  transition: opacity 0.25s ease, transform 0.25s ease;
}

#nav-dropdown.open {
  opacity: 1;
  transform: translateY(0);
  pointer-events: all;
}

.nav-drop-item {
  text-align: left;
  font-family: 'Jost', sans-serif;
  font-size: 0.72rem;
  font-weight: 400;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: rgba(255,248,235,0.65);
  text-decoration: none;
  padding: 0.55rem 0;
  cursor: pointer;
  transition: color 0.18s ease, letter-spacing 0.18s ease;
  white-space: nowrap;
  border-bottom: 1px solid rgba(200,136,42,0);
  transition: color 0.18s ease, border-color 0.18s ease;
}

.nav-drop-item:hover {
  color: var(--amber-light);
  border-bottom-color: rgba(200,136,42,0.3);
}

.nav-drop-divider {
  width: 100%;
  height: 1px;
  background: rgba(200,136,42,0.15);
  margin: 0.3rem 0;
}


/* ============================================================
   LANDING — video only
   ============================================================ */
#section-landing {
  position: relative;
  width: 100%;
  height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  z-index: 1;
  overflow: hidden;
}

/* Video sits inside landing, not fixed */
.video-container {
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 100vh;
  z-index: 0;
  overflow: hidden;
  clip-path: inset(0 0 0 0);
}

.video-container video {
  width: 100%; height: 100%;
  object-fit: cover;
}

.video-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    rgba(4, 2, 0, 0.1)  0%,
    rgba(4, 2, 0, 0.25) 50%,
    rgba(4, 2, 0, 0.7)  80%,
    rgba(4, 2, 0, 1.0)  100%
  );
}

.scroll-cue { position: relative; z-index: 2; }


/* ============================================================
   UNDERGROUND WORLD — no background needed, body handles it
   ============================================================ */
/* Seam gradient overlays — cover image joins and landing→underground transition */
.seam {
  position: fixed;
  left: 0;
  width: 100%;
  pointer-events: none;
  z-index: 10; /* above video and section content */
  will-change: top;
  backface-visibility: hidden;
  transform: translateY(-50%);
  height: 400px;
  background: linear-gradient(to bottom,
    rgba(10,8,6,0)    0%,
    rgba(10,8,6,0.28) 30%,
    rgba(10,8,6,0.35) 50%,
    rgba(10,8,6,0.28) 70%,
    rgba(10,8,6,0)    100%
  );
}

/* Landing seam: positioned via JS transform, no translateY(-50%) offset */
#seamLanding {
  height: 200px;
  top: 0;
  transform: none;
  will-change: transform;
  background: linear-gradient(to bottom,
    rgba(4,2,0,1) 0%,
    rgba(4,2,0,0) 100%
  );
}


body::before {
  content: '';
  position: fixed;
  inset: 0;
  background: rgba(4, 2, 0, 0.55);
  z-index: 0;
  pointer-events: none;
}

/* All page content above the overlay */
#section-landing,
#section-about,
#section-work,
.stratum {
  position: relative;
  z-index: 1;
}

/* Sections */
#section-about,
#section-work {
  width: 100%;
  height: auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 20vh 0 6vh 0;
}


/* Content inside sections sits above the overlay */
.surface-content {
  position: relative;
  z-index: 1;
  max-width: 680px;
  width: 100%;
  text-align: center;
}

.surface-panel {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2.2vh;
}

.panel-label {
  font-family: 'Jost', sans-serif;
  font-size: 0.82rem;
  font-weight: 500;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--amber-light);
  text-shadow: 0 1px 6px rgba(0,0,0,0.9);
}

.panel-title {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(2.8rem, 5vw, 5.5rem);
  font-weight: 300;
  font-style: italic;
  letter-spacing: 0.04em;
  line-height: 1.05;
  color: var(--cream);
  text-shadow: 0 2px 8px rgba(0,0,0,0.95), 0 0 40px rgba(0,0,0,0.7);
}

.surface-panel p {
  font-family: 'Jost', sans-serif;
  font-weight: 400;
  font-size: clamp(0.95rem, 1.25vw, 1.25rem);
  line-height: 1.85;
  color: rgba(255, 248, 235, 0.97);
  text-shadow: 0 1px 8px rgba(0,0,0,0.95);
  max-width: 620px;
}

/* ============================================================
   WORDMARK & LANDING CONTENT
   ============================================================ */
.site-header {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1vh;
}

.wordmark {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.5vh;
}

.wordmark-logo {
  height: 18vh;
  width: auto;
  object-fit: contain;
  filter: drop-shadow(0 2px 14px rgba(176, 58, 46, 0.45));
  animation: fadeDown 1s cubic-bezier(0.16, 1, 0.3, 1) both 0.1s;
}

.wordmark-text {
  font-family: 'Cormorant Garamond', serif;
  font-weight: 700;
  font-size: clamp(3.5rem, 8.1vw, 8.75rem);
  letter-spacing: 0.06em;
  line-height: 1;
  color: var(--cream);
  text-shadow:
    0 2px 4px rgba(0,0,0,0.9),
    0 4px 24px rgba(0,0,0,0.7),
    0 0 60px rgba(0,0,0,0.5);
  animation: fadeDown 1s cubic-bezier(0.16, 1, 0.3, 1) both 0.2s;
}

.tagline {
  font-family: 'Jost', sans-serif;
  font-weight: 400;
  font-size: clamp(0.8rem, 1.1vw, 1.15rem);
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: rgba(255, 245, 215, 0.95);
  margin-top: 0.8vh;
  text-shadow:
    0 1px 3px rgba(0,0,0,1),
    0 3px 16px rgba(0,0,0,0.9),
    0 0 40px rgba(0,0,0,0.7);
  animation: fadeDown 1s cubic-bezier(0.16, 1, 0.3, 1) both 0.25s;
}

/* Scroll cue */
.scroll-cue {
  position: absolute;
  bottom: 4vh;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  animation: fadeDown 1s cubic-bezier(0.16,1,0.3,1) both 0.8s;
}

.scroll-cue span {
  font-family: 'Jost', sans-serif;
  font-size: 0.78rem;
  font-weight: 400;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: rgba(255, 248, 235, 0.9);
  text-shadow: 0 1px 3px rgba(0,0,0,1), 0 2px 12px rgba(0,0,0,0.9);
}

.scroll-cue-line {
  width: 1px;
  height: 48px;
  background: linear-gradient(to bottom, rgba(200,136,42,0.6), transparent);
  animation: scrollPulse 2s ease-in-out infinite;
}

.descend-cue {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  margin-top: 6vh;
  left: auto;
  transform: none;
}

.descend-cue span {
  font-family: 'Jost', sans-serif;
  font-size: 0.78rem;
  font-weight: 400;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: rgba(255,248,235,0.7);
  text-shadow: 0 1px 4px rgba(0,0,0,0.9);
}

/* ============================================================
   UNDERGROUND CONTENT
   ============================================================ */
/* Strata */
.stratum {
  position: relative;
  z-index: 3;
  padding: 10vh 8vw;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

#section-work + .stratum { padding-top: 3vh; }





.stratum-intro {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(1.1rem, 1.6vw, 1.8rem);
  font-weight: 300;
  font-style: italic;
  color: rgba(255, 248, 235, 0.72);
  letter-spacing: 0.08em;
  margin-top: 3vh;
}

.stratum-header {
  display: flex;
  align-items: center;
  gap: 2vw;
  margin-bottom: 3vh;
  width: 100%;
  max-width: 900px;
}

.stratum-line {
  flex: 1;
  height: 1px;
  background: linear-gradient(to right, transparent, var(--vein), transparent);
}

.stratum-label {
  font-family: 'Jost', sans-serif;
  font-size: clamp(0.82rem, 1.05vw, 1.18rem);
  font-weight: 500;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--amber);
  white-space: nowrap;
  flex-shrink: 0;
}

.stratum-description {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(1.35rem, 1.85vw, 2.1rem);
  font-weight: 300;
  font-style: italic;
  color: rgba(255, 248, 235, 0.7);
  line-height: 1.6;
  max-width: 780px;
  margin-bottom: 5vh;
  letter-spacing: 0.03em;
}

/* Paper Grid — flex wrap, partial rows center naturally */
.paper-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 2px;
  width: 100%;
  max-width: 1400px;
}

/* Paper Card */
.paper-card {
  flex: 0 0 calc(25% - 2px);
  min-width: 240px;
  position: relative;
  padding: 3vh 2.5vw;
  border: 1px solid rgba(200,136,42,0.1);
  background: rgba(0,0,0,0.45);
  display: flex;
  flex-direction: column;
  gap: 1.2vh;
  cursor: pointer;
  transition: background 0.4s ease, border-color 0.4s ease;
}

.paper-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0;
  width: 2px; height: 0;
  background: var(--amber);
  transition: height 0.4s ease;
}

.paper-card:hover { background: rgba(200,136,42,0.08); border-color: rgba(200,136,42,0.3); }
.paper-card:hover::before { height: 100%; }

.paper-num {
  font-family: 'Jost', sans-serif;
  font-size: 0.88rem;
  font-weight: 500;
  letter-spacing: 0.2em;
  color: var(--amber-light);
  opacity: 0.85;
}

.paper-title {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(1.4rem, 1.75vw, 2rem);
  font-weight: 600;
  letter-spacing: 0.03em;
  color: var(--cream);
  line-height: 1.2;
}

.paper-desc {
  font-family: 'Jost', sans-serif;
  font-size: clamp(1rem, 1.1vw, 1.22rem);
  font-weight: 400;
  line-height: 1.75;
  color: rgba(255, 248, 235, 0.72);
  flex: 1;
}

.paper-cta {
  font-family: 'Jost', sans-serif;
  font-size: 0.88rem;
  font-weight: 400;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--amber);
  border-bottom: 1px solid rgba(200,136,42,0.25);
  padding-bottom: 1px;
  width: fit-content;
  opacity: 0;
  transition: opacity 0.3s ease, color 0.2s;
  display: inline-block;
}

.paper-card:hover .paper-cta { opacity: 1; }

/* Contact */
.stratum-contact { padding-top: 8vh; padding-bottom: 12vh; }

.contact-block {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2.5vh;
  margin-top: 4vh;
}

.contact-block p {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(1.1rem, 1.5vw, 1.7rem);
  font-weight: 300;
  font-style: italic;
  color: rgba(255, 248, 235, 0.72);
  letter-spacing: 0.06em;
}

.contact-email {
  font-family: 'Jost', sans-serif;
  font-size: clamp(0.85rem, 1.1vw, 1.2rem);
  font-weight: 300;
  letter-spacing: 0.15em;
  color: var(--amber-light);
  text-decoration: none;
  border-bottom: 1px solid rgba(200,136,42,0.3);
  padding-bottom: 3px;
  transition: color 0.2s, border-color 0.2s;
}

.contact-email:hover { color: var(--cream); border-color: rgba(245,234,208,0.4); }

/* ============================================================
   ANIMATIONS
   ============================================================ */
@keyframes fadeDown {
  from { opacity: 0; translate: 0 -20px; }
  to   { opacity: 1; translate: 0 0; }
}

@keyframes scrollPulse {
  0%, 100% { opacity: 0.4; }
  50%       { opacity: 0.9; }
}

.fade-in-up {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.fade-in-up.visible { opacity: 1; transform: translateY(0); }

/* Parallax layers hidden — image handles background */
.parallax-layer { display: none; }

/* ============================================================
   SCROLLBAR
   ============================================================ */
::-webkit-scrollbar { width: 4px; }
::-webkit-scrollbar-track { background: var(--deep-2); }
::-webkit-scrollbar-thumb { background: rgba(200,136,42,0.3); border-radius: 2px; }

/* ============================================================
   PAPER MODAL
   ============================================================ */
.paper-modal {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.35s ease;
}

.paper-modal.open { opacity: 1; pointer-events: all; }

.modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(4, 3, 1, 0.88);
  backdrop-filter: blur(6px);
}

.modal-window {
  position: relative;
  width: min(1100px, 94vw);
  max-height: 88vh;
  background: #16120a;
  border: 1px solid rgba(200, 136, 42, 0.25);
  border-radius: 2px;
  display: flex;
  flex-direction: column;
  box-shadow: 0 32px 80px rgba(0,0,0,0.7), inset 0 1px 0 rgba(200,136,42,0.1);
  transform: translateY(20px);
  transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1);
  overflow: hidden;
}

.paper-modal.open .modal-window { transform: translateY(0); }

.modal-close {
  position: absolute;
  top: 1.4rem; right: 1.6rem;
  background: none; border: none;
  color: rgba(255,248,235,0.4);
  font-size: 1.6rem; line-height: 1;
  cursor: pointer; padding: 4px;
  transition: color 0.2s; z-index: 2;
  font-family: 'Jost', sans-serif;
}

.modal-close:hover { color: var(--cream); }

.modal-body {
  overflow-y: auto;
  padding: 4rem 4.5rem;
  flex: 1;
}

.modal-body::-webkit-scrollbar { width: 3px; }
.modal-body::-webkit-scrollbar-track { background: transparent; }
.modal-body::-webkit-scrollbar-thumb { background: rgba(200,136,42,0.3); border-radius: 2px; }

.modal-body h1 {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(2.5rem, 4.2vw, 4rem);
  font-weight: 300; font-style: italic;
  color: var(--cream);
  letter-spacing: 0.04em; line-height: 1.1;
  margin-bottom: 0.5em;
}

.modal-body h1 + p { margin-top: 0; margin-bottom: 0; }

.modal-body h1 + p em {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.25rem;
  color: rgba(255,248,235,0.65);
  letter-spacing: 0.1em; font-style: italic;
}

.modal-body hr {
  border: none;
  border-top: 1px solid rgba(200,136,42,0.22);
  margin: 1.4em 0 2.2em 0;
}

.modal-body h2 {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(1.8rem, 2.6vw, 2.6rem);
  font-weight: 600; color: var(--amber-light);
  letter-spacing: 0.04em;
  margin-top: 2.4em; margin-bottom: 0.5em;
  line-height: 1.2;
}

.modal-body h3 {
  font-family: 'Jost', sans-serif;
  font-size: clamp(1.08rem, 1.35vw, 1.4rem);
  font-weight: 500; letter-spacing: 0.18em;
  text-transform: uppercase; color: var(--amber);
  margin-top: 2em; margin-bottom: 0.5em;
}

.modal-body p {
  font-family: 'Jost', sans-serif;
  font-weight: 300;
  font-size: clamp(1.15rem, 1.45vw, 1.5rem);
  line-height: 1.88;
  color: rgba(255,248,235,0.97);
  margin-bottom: 1.3em;
}

.modal-body strong { color: var(--cream); font-weight: 500; }
.modal-body em { font-style: italic; color: rgba(255,248,235,0.8); }

.modal-body ul, .modal-body ol { padding-left: 1.4em; margin-bottom: 1.3em; }

.modal-body ul li, .modal-body ol li {
  font-family: 'Jost', sans-serif;
  font-weight: 300;
  font-size: clamp(1.15rem, 1.45vw, 1.5rem);
  line-height: 1.8;
  color: rgba(255,248,235,0.97);
  margin-bottom: 0.3em;
  list-style: none; padding-left: 1em; position: relative;
}

.modal-body ul li::before {
  content: "—"; position: absolute; left: -0.2em;
  color: var(--amber); font-size: 0.85em;
}

.modal-body ol { counter-reset: ol-counter; }
.modal-body ol li { counter-increment: ol-counter; }
.modal-body ol li::before {
  content: counter(ol-counter) ".";
  position: absolute; left: -1.4em;
  color: var(--amber); font-size: 0.85em;
  font-family: 'Jost', sans-serif;
}

.modal-body blockquote {
  border-left: 2px solid var(--amber);
  margin: 1.8em 0; padding: 0.5em 0 0.5em 1.8em;
}

.modal-body blockquote p {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(1.3rem, 1.9vw, 1.85rem);
  font-style: italic; color: rgba(255,248,235,0.85); margin: 0;
}

.modal-body code {
  font-family: 'Courier New', monospace;
  font-size: 0.9em;
  background: rgba(200,136,42,0.08);
  color: var(--amber-light);
  padding: 2px 6px; border-radius: 2px;
}
