/* MANIFESTO-GEMINI.CSS — Flagship Luxury Design System for Maysoon Salah */

/* ===== Header & Studio Brand ===== */
.gemini-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  padding: 1.5rem clamp(2rem, 7vw, 8rem);
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: rgba(44, 47, 50, 0.4);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(215, 232, 188, 0.05);
  transition: all 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

.gemini-header-brand {
  display: flex;
  flex-direction: column;
  text-decoration: none;
}

.gemini-header-name {
  font-family: var(--serif);
  font-size: 1.4rem;
  color: var(--text);
  letter-spacing: -0.02em;
  line-height: 1;
}

.gemini-header-tag {
  font-size: 0.6rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent);
  margin-top: 0.25rem;
  font-family: var(--sans);
  font-weight: 500;
  opacity: 0.85;
}

.gemini-menu-trigger {
  background: transparent;
  border: 1px solid rgba(233, 240, 86, 0.2);
  color: var(--text);
  padding: 0.55rem 1.35rem;
  border-radius: 40px;
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 0.65rem;
  transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  font-family: var(--sans);
}

.gemini-menu-trigger:hover,
.gemini-menu-trigger:focus-visible {
  border-color: var(--accent);
  color: var(--accent);
  background: rgba(233, 240, 86, 0.05);
}

.gemini-menu-trigger .dot {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--accent);
}

/* ===== Flagship OL.Studio Name Opening Hero Sequence ===== */
.studio-hero-title {
  position: relative;
  min-height: 92vh;
  min-height: 92dvh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 6rem clamp(2rem, 8vw, 10rem) 4rem;
  border-bottom: 1px solid rgba(215, 232, 188, 0.06);
}

.studio-name {
  font-family: var(--serif);
  font-size: clamp(4.5rem, 13.5vw, 12rem);
  font-weight: 400;
  line-height: 0.88;
  letter-spacing: -0.035em;
  color: var(--text);
  margin-bottom: 2rem;
  opacity: 0;
  transform: translateY(18vh) scale(1.08);
  animation: studioNameGlideUp 1.6s cubic-bezier(0.16, 1, 0.3, 1) 0.3s forwards;
}

@keyframes studioNameGlideUp {
  0% {
    opacity: 0;
    transform: translateY(18vh) scale(1.08);
  }
  40% {
    opacity: 1;
  }
  100% {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.studio-handwriting-block {
  max-width: 48rem;
  opacity: 0;
  transform: translateY(20px);
  animation: handwritingFadeIn 1.4s cubic-bezier(0.16, 1, 0.3, 1) 1.5s forwards;
}

@keyframes handwritingFadeIn {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.studio-signature-row {
  display: flex;
  align-items: center;
  gap: 1.2rem;
  margin-bottom: 1rem;
}

.signature-mark {
  font-family: 'Instrument Serif', Georgia, serif;
  font-style: italic;
  font-size: clamp(2rem, 4.5vw, 3.4rem);
  color: var(--accent);
  letter-spacing: 0.02em;
  line-height: 1;
}

.sig-placeholder-tag {
  font-size: 0.55rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  background: rgba(233, 240, 86, 0.08);
  color: var(--accent);
  border: 1px solid rgba(233, 240, 86, 0.25);
  padding: 0.2rem 0.55rem;
  border-radius: 4px;
  font-family: var(--sans);
  font-weight: 600;
}

.handwriting-intro-text {
  font-family: 'Instrument Serif', Georgia, serif;
  font-style: italic;
  font-size: clamp(1.25rem, 2.2vw, 1.8rem);
  color: var(--text);
  line-height: 1.45;
  opacity: 0.9;
}

.scroll-enter-indicator {
  margin-top: 3.5rem;
  display: flex;
  align-items: center;
  gap: 1rem;
  font-size: 0.65rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--accent);
  font-weight: 600;
  opacity: 0;
  animation: handwritingFadeIn 1s ease 2.2s forwards;
}

.scroll-enter-indicator::after {
  content: '';
  width: 3rem;
  height: 1px;
  background: var(--accent);
  animation: linePulse 2s infinite ease-in-out;
}

@keyframes linePulse {
  0%, 100% { opacity: 0.3; transform: scaleX(0.7); }
  50% { opacity: 1; transform: scaleX(1); }
}

/* Screen 0 · Prologue Viewport (Pure Typographic Statement) */
.prologue-screen {
  position: relative;
  min-height: 90vh;
  min-height: 90dvh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 8rem clamp(2rem, 8vw, 10rem);
  border-bottom: 1px solid rgba(215, 232, 188, 0.05);
}

.prologue-content {
  max-width: 62rem;
  display: flex;
  flex-direction: column;
  gap: 2.5rem;
}

.prologue-kicker {
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--accent);
  display: flex;
  align-items: center;
  gap: 1rem;
}

.prologue-kicker::after {
  content: '';
  height: 1px;
  width: 4rem;
  background: rgba(233, 240, 86, 0.25);
}

.prologue-line {
  font-family: var(--serif);
  font-size: clamp(2rem, 4.2vw, 3.6rem);
  font-weight: 400;
  line-height: 1.22;
  color: var(--text);
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 1.3s cubic-bezier(0.16, 1, 0.3, 1), transform 1.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.prologue-line.in {
  opacity: 1;
  transform: translateY(0);
}

.prologue-line-1 { transition-delay: 0.2s; }
.prologue-line-2 { transition-delay: 0.8s; }
.prologue-line-3 { transition-delay: 1.4s; }

/* Manifesto Screens (Pristine Whitespace) */
.manifesto-screen {
  position: relative;
  min-height: 95vh;
  min-height: 95dvh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 8rem clamp(2rem, 8vw, 10rem);
  border-bottom: 1px solid rgba(215, 232, 188, 0.04);
}

.roman-numeral-kicker {
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 2.5rem;
  display: flex;
  align-items: center;
  gap: 1.2rem;
}

.roman-numeral-kicker::after {
  content: '';
  height: 1px;
  width: 4.5rem;
  background: rgba(233, 240, 86, 0.25);
}

.manifesto-statement {
  font-family: var(--serif);
  font-size: clamp(2.2rem, 5vw, 4.5rem);
  font-weight: 400;
  line-height: 1.16;
  color: var(--text);
  max-width: 60rem;
  margin-bottom: 2rem;
}

.manifesto-statement-lg {
  font-family: var(--serif);
  font-size: clamp(1.75rem, 3.5vw, 3rem);
  font-weight: 400;
  line-height: 1.32;
  color: var(--text);
  max-width: 66rem;
  margin-bottom: 2.2rem;
}

/* Word Morph Engine (Pure Typographic Swap) */
.morph-slot {
  display: inline-block;
  position: relative;
  color: var(--accent);
  border-bottom: 1px solid rgba(233, 240, 86, 0.35);
  padding: 0 0.1em;
  vertical-align: baseline;
}

.morph-text {
  display: inline-block;
  transition: opacity 0.6s cubic-bezier(0.16, 1, 0.3, 1), transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
  will-change: transform, opacity;
}

.morph-text.entering {
  opacity: 0;
  transform: translateY(14px);
}

.morph-text.active {
  opacity: 1;
  transform: translateY(0);
}

.morph-text.exiting {
  opacity: 0;
  transform: translateY(-14px);
}

/* Supernova Set-piece (Subtle Aura) */
.supernova-stage {
  position: relative;
  display: inline-block;
}

.supernova-word {
  position: relative;
  z-index: 2;
  color: #ffffff;
  text-shadow: 0 0 25px rgba(233, 240, 86, 0.5);
  letter-spacing: 0.04em;
  display: inline-block;
}

.supernova-burst {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) scale(0);
  width: 220px;
  height: 220px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(233,240,86,0.25) 0%, rgba(233,240,86,0.04) 50%, transparent 75%);
  pointer-events: none;
  z-index: 1;
  opacity: 0;
  transition: transform 1.4s cubic-bezier(0.16, 1, 0.3, 1), opacity 1.4s ease;
}

.supernova-stage.active .supernova-burst {
  transform: translate(-50%, -50%) scale(2.2);
  opacity: 1;
}

/* Work Carousel (Quiet Drawer) */
.present-trigger {
  cursor: pointer;
  border-bottom: 1px dotted var(--accent);
  color: var(--accent);
}

.carousel-section {
  margin-top: 4rem;
  background: rgba(53, 56, 64, 0.3);
  border: 1px solid rgba(215, 232, 188, 0.08);
  border-radius: 16px;
  padding: 3rem;
  overflow: hidden;
}

.carousel-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 2rem;
}

.carousel-title {
  font-family: var(--serif);
  font-size: 1.6rem;
  color: var(--text);
}

.carousel-link {
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.carousel-track {
  display: flex;
  gap: 2rem;
  overflow-x: auto;
  scroll-behavior: smooth;
  padding-bottom: 1rem;
}

.carousel-card {
  flex: 0 0 340px;
  background: var(--bg);
  border: 1px solid rgba(215, 232, 188, 0.08);
  border-radius: 12px;
  overflow: hidden;
  text-decoration: none;
  color: inherit;
  transition: border-color 0.3s ease;
}

.carousel-card:hover {
  border-color: rgba(233, 240, 86, 0.3);
}

.carousel-card-img {
  width: 100%;
  height: 220px;
  object-fit: cover;
  display: block;
}

.carousel-card-body {
  padding: 1.5rem;
}

.carousel-card-tag {
  font-size: 0.6rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
  font-weight: 600;
}

.carousel-card-title {
  font-family: var(--serif);
  font-size: 1.2rem;
  margin-top: 0.4rem;
  color: var(--text);
}

/* Drift Box (Screen 3) */
.drift-box-container {
  margin-top: 4rem;
  padding: 4rem;
  background: rgba(53, 56, 64, 0.25);
  border: 1px solid rgba(233, 240, 86, 0.15);
  border-radius: 20px;
}

.drift-box-label {
  font-size: 0.65rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent);
  font-weight: 600;
  margin-bottom: 2rem;
}

.drift-words-area {
  display: flex;
  flex-wrap: wrap;
  gap: 1.2rem;
  align-items: center;
}

.drift-word-chip {
  padding: 0.7rem 1.4rem;
  border-radius: 30px;
  background: rgba(44, 47, 50, 0.6);
  border: 1px solid rgba(215, 232, 188, 0.12);
  font-family: var(--sans);
  font-size: 0.92rem;
  color: var(--text);
  transition: all 0.9s cubic-bezier(0.16, 1, 0.3, 1);
}

.drift-word-chip.transformed {
  background: var(--accent);
  color: var(--caviar);
  border-color: var(--accent);
  font-weight: 600;
}

/* Side Menu Overlay */
.side-menu-overlay {
  position: fixed;
  inset: 0;
  z-index: 2000;
  background: rgba(0, 0, 0, 0.75);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.4s ease, visibility 0.4s ease;
}

.side-menu-overlay.open {
  opacity: 1;
  visibility: visible;
}

.side-menu-drawer {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  width: min(540px, 92vw);
  background: var(--caviar);
  border-left: 1px solid rgba(233, 240, 86, 0.15);
  padding: 5rem 3.5rem;
  overflow-y: auto;
  transform: translateX(100%);
  transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.side-menu-overlay.open .side-menu-drawer {
  transform: translateX(0);
}

.side-menu-close {
  position: absolute;
  top: 2rem;
  right: 2.5rem;
  background: none;
  border: 1px solid rgba(215, 232, 188, 0.2);
  color: var(--text);
  width: 40px;
  height: 40px;
  border-radius: 50%;
  cursor: pointer;
  font-size: 1.2rem;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: border-color 0.2s ease;
}

.side-menu-close:hover {
  border-color: var(--accent);
  color: var(--accent);
}

.side-menu-title {
  font-size: 0.68rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--accent);
  font-weight: 600;
  margin-bottom: 2.5rem;
}

.side-menu-group {
  margin-bottom: 2.5rem;
}

.side-menu-group-label {
  font-size: 0.62rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 1rem;
  display: block;
}

.side-menu-nav {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}

.side-menu-link {
  font-family: var(--serif);
  font-size: 1.55rem;
  color: var(--text);
  text-decoration: none;
  transition: color 0.2s ease, transform 0.2s ease;
  display: inline-block;
}

.side-menu-link:hover {
  color: var(--accent);
  transform: translateX(6px);
}

.side-menu-sublinks {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem 1.4rem;
}

.side-menu-sublink {
  font-family: var(--sans);
  font-size: 0.9rem;
  color: var(--muted);
  text-decoration: none;
  transition: color 0.2s ease;
}

.side-menu-sublink:hover {
  color: var(--text);
}

/* Exhibit Proof Section */
.proof-section-wrapper {
  padding: 8rem clamp(2rem, 8vw, 10rem);
  background: var(--bg);
  border-top: 1px solid rgba(215, 232, 188, 0.06);
}

.proof-exhibit-header {
  margin-bottom: 5rem;
  max-width: 52rem;
}

.proof-headline {
  font-family: var(--serif);
  font-size: clamp(2.4rem, 5.5vw, 4.2rem);
  color: var(--text);
  line-height: 1.12;
  margin-bottom: 1.25rem;
}

.proof-subline {
  font-size: clamp(1.05rem, 1.9vw, 1.25rem);
  color: var(--muted);
  line-height: 1.6;
}

/* Press Switcher Box */
.press-switch-box {
  margin-top: 2rem;
  margin-bottom: 4rem;
  padding: 2rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
}

.press-toggle-row {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.press-toggle-label {
  font-size: 0.65rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
  font-weight: 700;
}

.press-toggle-btn {
  background: var(--bg);
  border: 1px solid rgba(215, 232, 188, 0.2);
  color: var(--muted);
  padding: 0.35rem 0.9rem;
  border-radius: 20px;
  font-size: 0.72rem;
  font-family: var(--sans);
  cursor: pointer;
  transition: all 0.2s ease;
}

.press-toggle-btn.active {
  background: var(--accent);
  color: var(--caviar);
  border-color: var(--accent);
  font-weight: 600;
}

.press-display-panel {
  font-size: 1rem;
  line-height: 1.65;
  color: var(--text);
}

.press-link {
  color: var(--accent);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.press-footnote-ref {
  vertical-align: super;
  font-size: 0.7em;
  color: var(--accent);
  text-decoration: none;
  font-weight: bold;
  margin-left: 2px;
}

/* 3-Step Grid */
.how-it-works-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
  margin-top: 3.5rem;
}

.step-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 3rem 2.2rem;
}

.step-num {
  font-family: var(--serif);
  font-size: 2.8rem;
  color: var(--accent);
  line-height: 1;
  margin-bottom: 1.25rem;
}

.step-title {
  font-family: var(--serif);
  font-size: 1.4rem;
  color: var(--text);
  margin-bottom: 0.8rem;
}

.step-body {
  font-size: 0.92rem;
  color: var(--muted);
  line-height: 1.6;
}

/* Live Analysis Slider */
.live-analysis-block {
  margin-top: 4rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 3.5rem;
}

.slider-group {
  margin-top: 2rem;
}

.slider-row {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.slider-label {
  display: flex;
  justify-content: space-between;
  font-size: 0.88rem;
  color: var(--text);
}

.slider-input {
  width: 100%;
  accent-color: var(--accent);
  height: 6px;
  border-radius: 3px;
  background: rgba(0,0,0,0.4);
  cursor: pointer;
}

.slider-results {
  margin-top: 2.5rem;
  padding-top: 2.5rem;
  border-top: 1px solid rgba(215, 232, 188, 0.1);
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 2rem;
}

.result-item-val {
  font-family: var(--serif);
  font-size: 2.2rem;
  color: var(--accent);
}

.result-item-lbl {
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--muted);
}

/* Anatomy Grid */
.anatomy-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 1.75rem;
  margin-top: 3.5rem;
}

.anatomy-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 2rem;
}

.anatomy-page-num {
  font-size: 0.68rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
  font-weight: 700;
  margin-bottom: 0.6rem;
}

.anatomy-page-title {
  font-family: var(--serif);
  font-size: 1.3rem;
  color: var(--text);
  margin-bottom: 0.65rem;
}

.anatomy-page-desc {
  font-size: 0.9rem;
  color: var(--muted);
  line-height: 1.55;
}

/* Footer */
.gemini-footer {
  padding: 6rem clamp(2rem, 8vw, 10rem);
  background: var(--caviar);
  border-top: 1px solid rgba(215, 232, 188, 0.08);
  display: flex;
  flex-direction: column;
  gap: 1.8rem;
}

.footer-action-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1.8rem;
  font-family: var(--serif);
  font-size: clamp(1.5rem, 3.2vw, 2.4rem);
  color: var(--text);
}

.footer-phone {
  color: var(--accent);
  text-decoration: none;
}

.footer-copy-text {
  font-size: 0.85rem;
  color: var(--muted);
  font-family: var(--sans);
  line-height: 1.6;
}

/* Reduced Motion */
@media (prefers-reduced-motion: reduce) {
  *, ::before, ::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  .studio-name, .studio-handwriting-block, .prologue-line, .morph-text {
    opacity: 1 !important;
    transform: none !important;
  }
}

@media (max-width: 768px) {
  .studio-hero-title {
    padding-top: 5rem;
    padding-bottom: 3rem;
  }
  .prologue-screen, .manifesto-screen {
    padding: 5rem 1.5rem;
    min-height: 80vh;
  }
  .side-menu-drawer {
    width: 100vw;
  }
}
