/* ==========================================================================
   CLEOPATRA — LUXURY EDITORIAL DESIGN SYSTEM (GPU OPTIMIZED 60-120 FPS)
   Featuring: Ancient Inscribed Stone Stele Avenue & Falling Stone Debris / Dust
   ========================================================================== */

:root {
  /* Color Palette */
  --bg-void: #020202;
  --bg-primary: #050505;
  --bg-secondary: #080808;
  --bg-card: rgba(14, 14, 14, 0.7);

  --gold-sheen: #fff3cb;
  --gold-bright: #e8c979;
  --gold-primary: #c9a45c;
  --gold-dark: #70582b;
  --gold-muted: rgba(201, 164, 92, 0.4);
  --gold-subtle: rgba(201, 164, 92, 0.12);

  --text-ivory: #f2ede4;
  --text-body: #c7c0b5;
  --text-muted: #797368;

  --border-gold: rgba(201, 164, 92, 0.28);
  --border-subtle: rgba(255, 255, 255, 0.07);

  /* Typography */
  --font-serif: 'Cormorant Garamond', Georgia, serif;
  --font-monument: 'Cinzel', serif;
  --font-sans: 'Montserrat', -apple-system, BlinkMacSystemFont, sans-serif;

  /* Transitions */
  --ease-cinematic: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-smooth: cubic-bezier(0.25, 1, 0.5, 1);
}

/* --------------------------------------------------------------------------
   RESET & BASE
   -------------------------------------------------------------------------- */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-size: 16px;
  background-color: var(--bg-primary);
  color: var(--text-ivory);
  /* scroll-behavior managed by luxury momentum engine */
  text-rendering: optimizeSpeed;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: var(--font-sans);
  background-color: var(--bg-primary);
  overflow-x: hidden;
  position: relative;
  line-height: 1.6;
  user-select: none;
  cursor: default;
}

/* Minimal Scrollbar */
::-webkit-scrollbar { width: 4px; }
::-webkit-scrollbar-track { background: var(--bg-primary); }
::-webkit-scrollbar-thumb { background: var(--gold-dark); border-radius: 2px; }
::-webkit-scrollbar-thumb:hover { background: var(--gold-primary); }

/* --------------------------------------------------------------------------
   CANVAS: FALLING STONES, DUST & SMOKE
   -------------------------------------------------------------------------- */
.particle-canvas {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  pointer-events: none;
  z-index: 2;
  transform: translateZ(0);
}

.ambient-vignette {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 3;
  background: radial-gradient(circle at 50% 50%, transparent 45%, rgba(2, 2, 2, 0.88) 100%);
  transform: translateZ(0);
}

/* --------------------------------------------------------------------------
   CUSTOM LUXURY CURSOR
   -------------------------------------------------------------------------- */
.custom-cursor-dot {
  position: fixed;
  top: 0;
  left: 0;
  width: 5px;
  height: 5px;
  background: var(--gold-bright);
  border-radius: 50%;
  pointer-events: none;
  z-index: 9999;
  transform: translate3d(-50%, -50%, 0);
  transition: opacity 0.3s ease;
  will-change: transform;
}

.custom-cursor-ring {
  position: fixed;
  top: 0;
  left: 0;
  width: 32px;
  height: 32px;
  border: 1px solid rgba(232, 201, 121, 0.5);
  border-radius: 50%;
  pointer-events: none;
  z-index: 9998;
  transform: translate3d(-50%, -50%, 0);
  transition: width 0.3s ease, height 0.3s ease, border-color 0.3s ease, background-color 0.3s ease;
  will-change: transform;
}

body.cursor-hover .custom-cursor-ring {
  width: 50px;
  height: 50px;
  border-color: var(--gold-bright);
  background-color: rgba(201, 164, 92, 0.08);
}

body.cursor-hover .custom-cursor-dot { opacity: 0.4; }

@media (hover: none) and (pointer: coarse) {
  .custom-cursor-dot, .custom-cursor-ring { display: none !important; }
}

/* --------------------------------------------------------------------------
   FIXED EDITORIAL HEADER
   -------------------------------------------------------------------------- */
.luxury-header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 100;
  padding: 1.8rem 3.5rem;
  transition: background-color 0.3s ease, padding 0.3s ease;
  transform: translateZ(0);
}

.luxury-header.scrolled {
  padding: 1rem 3.5rem;
  background-color: rgba(5, 5, 5, 0.92);
  border-bottom: 1px solid var(--border-gold);
}

.header-inner {
  max-width: 1700px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.brand-link {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  text-decoration: none;
  color: var(--text-ivory);
  letter-spacing: 0.35em;
  font-size: 0.82rem;
  font-weight: 400;
}

.brand-monogram {
  color: var(--gold-primary);
  transition: transform 0.4s var(--ease-cinematic);
}

.brand-link:hover .brand-monogram {
  transform: rotate(90deg);
  color: var(--gold-bright);
}

.brand-text {
  font-family: var(--font-monument);
  background: linear-gradient(135deg, #fff, var(--gold-bright));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 2.8rem;
}

.nav-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  text-decoration: none;
  font-size: 0.68rem;
  letter-spacing: 0.28em;
  color: var(--text-muted);
  font-weight: 400;
  position: relative;
  padding: 0.3rem 0;
  transition: color 0.3s ease;
}

.nav-num {
  font-size: 0.6rem;
  color: var(--gold-dark);
  font-feature-settings: 'tnum';
  transition: color 0.3s ease;
}

.nav-item::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  width: 0;
  height: 1px;
  background: var(--gold-bright);
  transition: width 0.3s ease, left 0.3s ease;
}

.nav-item:hover, .nav-item.active { color: var(--text-ivory); }
.nav-item:hover .nav-num, .nav-item.active .nav-num { color: var(--gold-bright); }
.nav-item:hover::after, .nav-item.active::after { width: 100%; left: 0; }

/* ==========================================================================
   SECTION 1: HERO SCROLL-DRIVEN ARCHITECTURE (GPU OPTIMIZED)
   ========================================================================== */
.hero-scroll-track {
  position: relative;
  width: 100%;
  height: 420vh;
  background-color: var(--bg-primary);
}

.hero-sticky-frame {
  position: sticky;
  top: 0;
  left: 0;
  width: 100%;
  height: 100vh;
  min-height: 650px;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: var(--bg-primary);
  z-index: 10;
  transform: translateZ(0);
}

.hero-stage {
  position: relative;
  width: 100%;
  height: 100%;
  perspective: 1200px;
  transform-style: preserve-3d;
  will-change: transform;
}

.hero-layer {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  transform-style: preserve-3d;
  backface-visibility: hidden;
  will-change: transform, opacity;
}

/* Layer 1: Background Glow */
.layer-bg {
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: center;
}

.radial-gold-glow {
  width: 75vw;
  height: 75vw;
  max-width: 900px;
  max-height: 900px;
  background: radial-gradient(circle at 50% 50%, rgba(201, 164, 92, 0.1) 0%, rgba(112, 88, 43, 0.03) 40%, transparent 68%);
  border-radius: 50%;
  transform: translateY(-8%) translateZ(0);
}





/* ==========================================================================
   3D ANCIENT STONE STELE INSCRIBED MONOLITHS AVENUE
   Positioned in Depth Behind Cleopatra (z-index: 4)
   ========================================================================== */
.hero-3d-corridor {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  perspective: 1100px;
  transform-style: preserve-3d;
  z-index: 4;
  pointer-events: none;
  overflow: visible;
  will-change: transform;
}

/* Ancient Smoke & Dust Atmospheric Haze */
.ancient-smoke-haze {
  position: absolute;
  top: 20%;
  left: 10%;
  right: 10%;
  height: 60%;
  background: radial-gradient(ellipse at 50% 50%, rgba(232, 201, 121, 0.06) 0%, rgba(112, 88, 43, 0.02) 50%, transparent 80%);
  pointer-events: none;
  opacity: 0.8;
  transform: translateZ(-150px);
}

.monoliths-avenue {
  position: absolute;
  inset: 0;
  transform-style: preserve-3d;
  will-change: transform;
}

/* Individual Ancient Inscribed Stone Stele */
.stone-monolith-card {
  position: absolute;
  top: 42%;
  left: 50%;
  width: 260px;
  height: 480px;
  transform-style: preserve-3d;
  backface-visibility: hidden;
  will-change: transform, opacity;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-end;
}

.monolith-img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center bottom;
  display: block;
  background: transparent;
  /* Ultra-smooth GPU accelerated without CPU re-rasterization bottleneck */
  transform: translateZ(0);
  backface-visibility: hidden;
  will-change: transform;
}

/* Subtle Ancient Warm Spotlight on Monoliths */
.monolith-spotlight {
  position: absolute;
  top: -20px;
  left: 20%;
  right: 20%;
  height: 40px;
  background: radial-gradient(ellipse at 50% 0%, rgba(232, 201, 121, 0.25) 0%, transparent 80%);
  pointer-events: none;
}

/* Initial 3D Positions for the 6 Monoliths flanking the corridor */
.mono-l1 { transform: translate3d(-380px, -50%, -60px) rotateY(26deg); }
.mono-r1 { transform: translate3d(120px, -50%, -60px) rotateY(-26deg); }
.mono-l2 { transform: translate3d(-420px, -55%, -260px) rotateY(30deg); }
.mono-r2 { transform: translate3d(160px, -55%, -260px) rotateY(-30deg); }
.mono-l3 { transform: translate3d(-460px, -60%, -460px) rotateY(34deg); }
.mono-r3 { transform: translate3d(200px, -60%, -460px) rotateY(-34deg); }

/* --------------------------------------------------------------------------
   HERO LAYER 2: EDITORIAL MICROCOPY
   -------------------------------------------------------------------------- */
.layer-microcopy {
  z-index: 20;
  max-width: 1700px;
  left: 50%;
  transform: translateX(-50%) translateZ(0);
}

.editorial-block {
  position: absolute;
  display: flex;
  flex-direction: column;
  color: var(--text-muted);
  font-size: 0.68rem;
  letter-spacing: 0.25em;
  line-height: 1.6;
  opacity: 1;
  transition: opacity 1.2s ease, transform 1.2s ease;
}

body.loading .editorial-block {
  opacity: 0;
  transform: translateY(15px);
}

.editorial-block.top-left { top: 14vh; left: 5vw; }
.micro-sub { font-size: 0.72rem; letter-spacing: 0.32em; color: var(--text-ivory); }
.micro-sub.highlight { color: var(--gold-bright); }
.gold-arrow-glyph { margin-top: 0.6rem; font-size: 0.65rem; color: var(--gold-primary); letter-spacing: 0.2em; }

.editorial-block.top-right { top: 14vh; right: 5vw; align-items: flex-end; text-align: right; }
.micro-quote { font-size: 0.68rem; letter-spacing: 0.26em; color: var(--text-muted); line-height: 1.5; }
.gold-hairline { width: 45px; height: 1px; background: var(--gold-primary); margin: 0.7rem 0; opacity: 0.6; }

.badge-year {
  width: 38px;
  height: 38px;
  border: 1px solid var(--border-gold);
  border-radius: 50%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  font-size: 0.6rem;
  letter-spacing: 0.12em;
  color: var(--gold-bright);
}
.year-divider { width: 14px; height: 1px; background: var(--border-gold); margin: 1px 0; }

.editorial-block.mid-left { top: 46vh; left: 5vw; }
.egyptian-marker { display: flex; flex-direction: column; align-items: center; gap: 0.5rem; }
.pyramid-glyph { font-size: 0.55rem; color: var(--gold-primary); }
.hash-ticks { display: flex; flex-direction: column; gap: 3px; }
.hash-ticks span { display: block; width: 10px; height: 1px; background: var(--text-muted); }
.coord-val { font-size: 0.65rem; color: var(--gold-bright); letter-spacing: 0.2em; margin-top: 0.3rem; }

.editorial-block.mid-right { top: 46vh; right: 5vw; text-align: left; }
.philosophy-micro { max-width: 160px; }
.gold-plus { color: var(--gold-bright); font-size: 0.8rem; margin-bottom: 0.3rem; display: block; }
.block-kicker { font-size: 0.62rem; letter-spacing: 0.3em; color: var(--gold-primary); margin-bottom: 0.3rem; display: block; }
.block-body { font-size: 0.65rem; letter-spacing: 0.18em; color: var(--text-muted); line-height: 1.6; }

/* --------------------------------------------------------------------------
   HERO LAYER 3: CENTRAL CLEOPATRA SCULPTURE (TRANSPARENT, ZERO BOX)
   -------------------------------------------------------------------------- */
.layer-subject {
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: center;
}

.subject-inner {
  position: relative;
  height: 56vh;
  max-height: 580px;
  aspect-ratio: 3 / 4;
  margin-top: -12vh;
  transform-style: preserve-3d;
  backface-visibility: hidden;
  will-change: transform;
}

.portrait-container {
  position: relative;
  width: 100%;
  height: 100%;
  overflow: visible;
  transform-style: preserve-3d;
  backface-visibility: hidden;
  background: transparent;
}

.portrait-img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center top;
  display: block;
  background: transparent;
  transform: translateZ(0);
  -webkit-mask-image: radial-gradient(ellipse 68% 84% at 50% 48%, #000 68%, transparent 100%);
  mask-image: radial-gradient(ellipse 68% 84% at 50% 48%, #000 68%, transparent 100%);
}

body.loading .portrait-img {
  opacity: 0;
}




/* visor sheen removed */

/* scroll flare removed */

/* --------------------------------------------------------------------------
   -------------------------------------------------------------------------- */






















/* --------------------------------------------------------------------------
   HERO LAYER 5: LOWER TYPOGRAPHY (CLEAR OF BUST)
   -------------------------------------------------------------------------- */
.layer-typography {
  z-index: 30;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  padding-bottom: 2.2vh;
  will-change: transform, opacity;
}

.hero-bottom-content {
  width: 100%;
  max-width: 1700px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  pointer-events: auto;
}

.main-title {
  font-family: var(--font-serif);
  font-size: clamp(2.6rem, 6.2vw, 5.8rem);
  font-weight: 300;
  letter-spacing: 0.42em;
  text-indent: 0.42em;
  line-height: 0.95;
  margin-bottom: 0.5rem;
  display: flex;
  justify-content: center;
  position: relative;
}

.main-title .letter {
  display: inline-block;
  background: linear-gradient(180deg, #ffffff 0%, #ecd9ab 40%, #c9a45c 80%, #70582b 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  transition: transform 1s var(--ease-cinematic), opacity 1s ease;
}

body.loading .main-title .letter {
  opacity: 0;
  transform: translateY(25px);
}

.hero-subtitle {
  font-size: clamp(0.62rem, 0.95vw, 0.8rem);
  letter-spacing: 0.45em;
  text-indent: 0.45em;
  color: var(--gold-bright);
  font-weight: 400;
  margin-bottom: 0.6rem;
  opacity: 1;
  transition: opacity 1.2s ease 1s, transform 1.2s ease 1s;
}

body.loading .hero-subtitle {
  opacity: 0;
  transform: translateY(10px);
}

.hero-edition-line {
  font-size: 0.55rem;
  letter-spacing: 0.35em;
  color: var(--text-muted);
  margin-bottom: 0.8rem;
  opacity: 0.8;
}

.hero-monogram-wrap {
  margin-bottom: 1.2rem;
}

.monogram-seal {
  width: 34px;
  height: 34px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--gold-primary);
  cursor: pointer;
  transition: transform 0.3s ease;
}

.monogram-seal:hover {
  transform: scale(1.08) rotate(45deg);
  color: var(--gold-bright);
}

.hero-footer-grid {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 5vw;
}

.footer-block {
  display: flex;
  flex-direction: column;
  font-size: 0.6rem;
  letter-spacing: 0.22em;
  line-height: 1.5;
  color: var(--text-muted);
}

.footer-block.left { text-align: left; }
.footer-block.right { text-align: right; }

.dot-cluster { display: flex; gap: 4px; margin-top: 0.4rem; }
.dot-cluster span { width: 3px; height: 3px; background: var(--gold-primary); border-radius: 50%; opacity: 0.6; }
.arrow-cluster { margin-top: 0.4rem; color: var(--gold-primary); letter-spacing: 0.25em; font-size: 0.55rem; }

.hero-scroll-indicator {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.4rem;
  opacity: 0.85;
}

.indicator-text {
  font-size: 0.55rem;
  letter-spacing: 0.32em;
  color: var(--gold-bright);
}

.indicator-line {
  width: 1px;
  height: 28px;
  background: rgba(201, 164, 92, 0.25);
  position: relative;
  overflow: hidden;
}

.indicator-drop {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 10px;
  background: linear-gradient(to bottom, transparent, var(--gold-bright));
  animation: dropSlide 2.2s cubic-bezier(0.65, 0, 0.35, 1) infinite;
}

@keyframes dropSlide {
  0% { transform: translateY(-100%); }
  100% { transform: translateY(300%); }
}

/* FINAL REVEAL LAYER */
.layer-final-reveal {
  z-index: 35;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  padding-bottom: 7vh;
  opacity: 0;
  pointer-events: none;
  will-change: opacity, transform;
}

.final-reveal-inner {
  text-align: center;
  max-width: 800px;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.final-pretitle {
  font-size: 0.64rem;
  letter-spacing: 0.42em;
  color: var(--gold-primary);
  margin-bottom: 0.6rem;
}

.final-title {
  font-family: var(--font-serif);
  font-size: clamp(2.2rem, 4.5vw, 4.4rem);
  font-weight: 300;
  letter-spacing: 0.25em;
  line-height: 1.1;
  background: linear-gradient(180deg, #fff 0%, var(--gold-bright) 60%, var(--gold-dark) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  margin-bottom: 1.2rem;
}

.final-gold-line {
  width: 160px;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--gold-bright), transparent);
  margin-bottom: 1rem;
}

.final-subtitle {
  font-size: 0.64rem;
  letter-spacing: 0.3em;
  color: var(--text-muted);
}

.hero-scrub-bar {
  position: absolute;
  right: 2rem;
  top: 50%;
  transform: translateY(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
  z-index: 50;
  pointer-events: none;
}

.scrub-track {
  width: 2px;
  height: 120px;
  background: rgba(255, 255, 255, 0.08);
  border-radius: 1px;
  overflow: hidden;
  position: relative;
}

.scrub-fill {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 0%;
  background: linear-gradient(to bottom, var(--gold-primary), var(--gold-bright));
}

.scrub-label {
  writing-mode: vertical-rl;
  font-size: 0.5rem;
  letter-spacing: 0.3em;
  color: var(--gold-dark);
  text-transform: uppercase;
}

/* ==========================================================================
   DOWNSTREAM SECTIONS (SECTIONS 2, 3, 4)
   ========================================================================== */
.cinematic-section {
  position: relative;
  width: 100%;
  min-height: 100vh;
  padding: 8rem 5vw;
  display: flex;
  flex-direction: column;
  justify-content: center;
  background-color: var(--bg-primary);
  z-index: 20;
}

.section-container {
  max-width: 1500px;
  width: 100%;
  margin: 0 auto;
}

.section-header {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  margin-bottom: 4.5rem;
}

.section-tag {
  font-size: 0.72rem;
  letter-spacing: 0.35em;
  color: var(--text-ivory);
  font-weight: 500;
}

.gold-num {
  color: var(--gold-bright);
  font-feature-settings: 'tnum';
}

.header-divider-gold {
  flex: 1;
  max-width: 120px;
  height: 1px;
  background: linear-gradient(90deg, var(--gold-primary), transparent);
}

.section-subtext {
  font-size: 0.65rem;
  letter-spacing: 0.28em;
  color: var(--text-muted);
}

.gold-gradient-text {
  background: linear-gradient(135deg, #fff 0%, var(--gold-bright) 50%, var(--gold-primary) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  display: inline-block;
}

/* Section 2: Philosophy */
.philosophy-section {
  background-color: var(--bg-secondary);
  border-top: 1px solid var(--border-subtle);
  border-bottom: 1px solid var(--border-subtle);
}

.section-ambient-glow {
  position: absolute;
  top: 20%;
  left: 10%;
  width: 50vw;
  height: 50vw;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(201, 164, 92, 0.04) 0%, transparent 70%);
  pointer-events: none;
}

.philosophy-statement-wrap {
  margin-bottom: 5.5rem;
}

.philosophy-quote {
  font-family: var(--font-serif);
  font-size: clamp(2.6rem, 6.2vw, 6.5rem);
  font-weight: 300;
  line-height: 1.12;
  letter-spacing: 0.04em;
  color: var(--text-ivory);
}

.philosophy-quote .word {
  display: inline-block;
  margin-right: 0.22em;
  opacity: 0.2;
  transform: translateY(20px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.philosophy-quote.in-view .word {
  opacity: 1;
  transform: translateY(0);
}

.philosophy-quote .word:nth-child(1) { transition-delay: 0.05s; }
.philosophy-quote .word:nth-child(2) { transition-delay: 0.1s; }
.philosophy-quote .word:nth-child(3) { transition-delay: 0.15s; }
.philosophy-quote .word:nth-child(4) { transition-delay: 0.2s; }
.philosophy-quote .word:nth-child(5) { transition-delay: 0.25s; }
.philosophy-quote .word:nth-child(6) { transition-delay: 0.3s; }

.philosophy-quote .highlight-word {
  font-style: italic;
  color: var(--gold-bright);
}

.philosophy-grid {
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: 6rem;
  align-items: center;
}

.royal-seal-interactive {
  position: relative;
  width: 260px;
  height: 260px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
}

.seal-outer-ring {
  position: absolute;
  inset: 0;
  border: 1px solid var(--border-gold);
  border-radius: 50%;
  animation: sealSpin 32s linear infinite;
}

.seal-outer-ring::before {
  content: '';
  position: absolute;
  top: -4px;
  left: 50%;
  width: 8px;
  height: 8px;
  background: var(--gold-bright);
  border-radius: 50%;
  transform: translateX(-50%);
}

.seal-inner-geometry {
  position: relative;
  width: 140px;
  height: 140px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.geo-tri {
  position: absolute;
  width: 0;
  height: 0;
  border-left: 60px solid transparent;
  border-right: 60px solid transparent;
}

.geo-tri.up { border-bottom: 104px solid rgba(201, 164, 92, 0.2); top: 10px; }
.geo-tri.down { border-top: 104px solid rgba(232, 201, 121, 0.25); bottom: 10px; }

.geo-core-orb {
  width: 24px;
  height: 24px;
  background: radial-gradient(circle, var(--gold-bright) 0%, var(--gold-dark) 100%);
  border-radius: 50%;
  z-index: 2;
}

.seal-caption {
  position: absolute;
  bottom: -2.5rem;
  font-size: 0.6rem;
  letter-spacing: 0.26em;
  color: var(--text-muted);
  white-space: nowrap;
}

@keyframes sealSpin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

.editorial-lead {
  font-family: var(--font-serif);
  font-size: 1.55rem;
  font-weight: 300;
  line-height: 1.6;
  color: var(--text-ivory);
  margin-bottom: 2rem;
}

.editorial-detail-line {
  width: 60px;
  height: 1px;
  background: var(--gold-primary);
  margin-bottom: 2rem;
}

.editorial-body {
  font-size: 0.95rem;
  color: var(--text-body);
  line-height: 1.8;
  font-weight: 300;
  margin-bottom: 2.8rem;
}

.quote-signature {
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
  border-left: 1px solid var(--gold-primary);
  padding-left: 1.2rem;
}

.sig-name {
  font-family: var(--font-monument);
  font-size: 0.8rem;
  letter-spacing: 0.22em;
  color: var(--gold-bright);
}

.sig-title {
  font-size: 0.62rem;
  letter-spacing: 0.18em;
  color: var(--text-muted);
}

/* Section 3: Legacy */
.legacy-section {
  background-color: var(--bg-primary);
}

.legacy-editorial-layout {
  display: grid;
  grid-template-columns: 1.15fr 1fr;
  gap: 6.5rem;
  align-items: center;
}

.legacy-headline-group {
  display: flex;
  align-items: baseline;
  gap: 2rem;
  margin-bottom: 2rem;
}

.legacy-oversized-num {
  font-family: var(--font-serif);
  font-size: clamp(3.5rem, 7vw, 6.8rem);
  font-weight: 300;
  line-height: 0.8;
  color: var(--gold-primary);
  opacity: 0.8;
  font-feature-settings: 'tnum';
}

.legacy-main-heading {
  font-family: var(--font-serif);
  font-size: clamp(1.8rem, 3.2vw, 3rem);
  font-weight: 300;
  line-height: 1.15;
  letter-spacing: 0.08em;
}

.legacy-intro-p {
  font-size: 0.95rem;
  color: var(--text-body);
  line-height: 1.75;
  font-weight: 300;
  margin-bottom: 3rem;
  max-width: 580px;
}

.pillars-list {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}

.pillar-card {
  position: relative;
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  padding: 1.4rem 1.8rem;
  cursor: pointer;
  transition: border-color 0.3s ease, background 0.3s ease;
  overflow: hidden;
}

.pillar-card:hover, .pillar-card.active {
  border-color: var(--border-gold);
  background: rgba(20, 20, 20, 0.85);
}

.pillar-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.pillar-index {
  font-family: var(--font-monument);
  font-size: 0.72rem;
  color: var(--gold-dark);
  letter-spacing: 0.15em;
  transition: color 0.3s ease;
}

.pillar-title {
  font-family: var(--font-monument);
  font-size: 0.92rem;
  letter-spacing: 0.22em;
  font-weight: 400;
  color: var(--text-ivory);
  flex: 1;
  margin-left: 1.2rem;
  transition: color 0.3s ease;
}

.pillar-status-glyph {
  font-size: 1rem;
  color: var(--gold-primary);
  transition: transform 0.3s ease;
}

.pillar-card.active .pillar-status-glyph {
  transform: rotate(45deg);
  color: var(--gold-bright);
}

.pillar-card.active .pillar-index,
.pillar-card.active .pillar-title {
  color: var(--gold-bright);
}

.pillar-body {
  max-height: 0;
  opacity: 0;
  overflow: hidden;
  transition: max-height 0.4s ease, opacity 0.3s ease, margin-top 0.3s ease;
}

.pillar-card.active .pillar-body {
  max-height: 140px;
  opacity: 1;
  margin-top: 1rem;
}

.pillar-body p {
  font-size: 0.85rem;
  color: var(--text-body);
  line-height: 1.7;
  font-weight: 300;
}

.pillar-gold-track {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--gold-dark), var(--gold-bright));
  transition: width 0.4s ease;
}

.pillar-card.active .pillar-gold-track { width: 100%; }

.editorial-visual-frame {
  position: relative;
  width: 100%;
  max-width: 520px;
  margin: 0 auto;
  border: 1px solid var(--border-gold);
  padding: 1.2rem;
  background: var(--bg-card);
}

.frame-corner {
  position: absolute;
  width: 8px;
  height: 8px;
  border-color: var(--gold-bright);
}
.corner-tl { top: -1px; left: -1px; border-top: 2px solid var(--gold-bright); border-left: 2px solid var(--gold-bright); }
.corner-tr { top: -1px; right: -1px; border-top: 2px solid var(--gold-bright); border-right: 2px solid var(--gold-bright); }
.corner-bl { bottom: -1px; left: -1px; border-bottom: 2px solid var(--gold-bright); border-left: 2px solid var(--gold-bright); }
.corner-br { bottom: -1px; right: -1px; border-bottom: 2px solid var(--gold-bright); border-right: 2px solid var(--gold-bright); }

.frame-badge {
  position: absolute;
  top: -0.6rem;
  right: 2rem;
  background: var(--bg-primary);
  border: 1px solid var(--border-gold);
  padding: 0.15rem 0.6rem;
  font-size: 0.55rem;
  letter-spacing: 0.22em;
  color: var(--gold-bright);
}

.frame-image-wrapper {
  position: relative;
  width: 100%;
  aspect-ratio: 3 / 4;
  overflow: hidden;
}

.legacy-portrait-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.frame-caption-footer {
  display: flex;
  justify-content: space-between;
  margin-top: 1rem;
  font-size: 0.58rem;
  letter-spacing: 0.22em;
  color: var(--text-muted);
}

.caption-id { color: var(--gold-primary); }

/* Section 4: Monument */
.monument-section {
  min-height: 100vh;
  background: radial-gradient(circle at 50% 50%, #080808 0%, #030303 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.monument-content {
  position: relative;
  z-index: 10;
  max-width: 900px;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.monument-orb-aura {
  position: relative;
  width: 80px;
  height: 80px;
  margin-bottom: 2rem;
  display: flex;
  align-items: center;
  justify-content: center;
}

.aura-glow {
  position: absolute;
  inset: 0;
  background: radial-gradient(circle, rgba(232, 201, 121, 0.25) 0%, transparent 70%);
  border-radius: 50%;
}

.aura-ring {
  position: absolute;
  border-radius: 50%;
  border: 1px solid var(--border-gold);
}

.aura-ring.ring-1 {
  width: 50px;
  height: 50px;
  border-style: dashed;
  animation: sealSpin 20s linear infinite reverse;
}

.aura-ring.ring-2 {
  width: 75px;
  height: 75px;
  border-color: rgba(201, 164, 92, 0.2);
  animation: sealSpin 35s linear infinite;
}

.monument-pretitle {
  font-size: 0.65rem;
  letter-spacing: 0.4em;
  color: var(--gold-primary);
  margin-bottom: 0.8rem;
  display: block;
}

.monument-title {
  font-family: var(--font-serif);
  font-size: clamp(3.5rem, 8vw, 7.5rem);
  font-weight: 300;
  letter-spacing: 0.42em;
  text-indent: 0.42em;
  line-height: 1;
  margin-bottom: 2.2rem;
  background: linear-gradient(180deg, #ffffff 0%, var(--gold-bright) 60%, var(--gold-dark) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.monument-gold-draw {
  position: relative;
  width: 240px;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--gold-bright), transparent);
  margin-bottom: 2.2rem;
  transition: width 1.2s var(--ease-cinematic);
}

.line-center-dot {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 5px;
  height: 5px;
  background: var(--gold-bright);
  border-radius: 50%;
  transform: translate(-50%, -50%);
}

.monument-section.in-view .monument-gold-draw { width: 480px; }

.monument-epitaph {
  font-size: clamp(0.72rem, 1.2vw, 0.95rem);
  letter-spacing: 0.45em;
  text-indent: 0.45em;
  color: var(--gold-bright);
  margin-bottom: 1.6rem;
  font-weight: 400;
}

.monument-desc {
  font-family: var(--font-serif);
  font-size: clamp(1rem, 1.6vw, 1.4rem);
  font-style: italic;
  line-height: 1.8;
  color: var(--text-muted);
  margin-bottom: 3.5rem;
}

.monument-action { margin-bottom: 5rem; }

.return-top-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.8rem;
  text-decoration: none;
  border: 1px solid var(--border-gold);
  padding: 0.85rem 2rem;
  border-radius: 40px;
  color: var(--text-ivory);
  font-size: 0.68rem;
  letter-spacing: 0.26em;
  transition: all 0.3s ease;
}

.return-top-btn:hover {
  background: rgba(201, 164, 92, 0.12);
  border-color: var(--gold-bright);
  color: var(--gold-bright);
  transform: translateY(-3px);
}

.btn-arrow { font-size: 0.9rem; transition: transform 0.3s ease; }
.return-top-btn:hover .btn-arrow { transform: translateY(-3px); }

.monument-footer {
  width: 100%;
  border-top: 1px solid var(--border-subtle);
  padding-top: 2rem;
}

.meta-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1.2rem;
  font-size: 0.58rem;
  letter-spacing: 0.22em;
  color: var(--text-muted);
}

.meta-separator { color: var(--gold-dark); }

/* Responsive */
@media (max-width: 1280px) {
  .luxury-header { padding: 1.5rem 2.5rem; }
  .philosophy-grid { gap: 4rem; }
  .legacy-editorial-layout { gap: 4rem; }
}

@media (max-width: 1024px) {
  .luxury-header { padding: 1.2rem 2rem; }
  .nav-links { gap: 1.8rem; }
  .editorial-block.top-left, .editorial-block.top-right { top: 12vh; }
  .editorial-block.mid-left, .editorial-block.mid-right { display: none; }
  .philosophy-grid { grid-template-columns: 1fr; gap: 3.5rem; }
  .royal-seal-interactive { margin-bottom: 2rem; }
  .legacy-editorial-layout { grid-template-columns: 1fr; gap: 4rem; }
  .editorial-visual-frame { max-width: 440px; }
  .stone-monolith-card { width: 200px; height: 380px; }
}

@media (max-width: 768px) {
  .luxury-header { padding: 1rem 1.5rem; }
  .nav-links { display: none; }
  .hero-scroll-track { height: 320vh; }
  .subject-inner { height: 48vh; margin-top: -12vh; }
  
  .editorial-block.top-left, .editorial-block.top-right { display: none; }
  .hero-footer-grid { padding: 0 1.5rem; }
  .footer-block.left, .footer-block.right { display: none; }
  .hero-scrub-bar { display: none; }
  .cinematic-section { padding: 6rem 1.5rem; }
  .meta-row { flex-direction: column; gap: 0.5rem; }
  .meta-separator { display: none; }
  .monument-section.in-view .monument-gold-draw { width: 260px; }
  .stone-monolith-card { width: 160px; height: 300px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
  
}


/* ==========================================================================
   SACRED EGYPTIAN CELESTIAL ORBITALS & MYSTICAL RELICS (GPU OPTIMIZED 60-120FPS)
   ========================================================================== */
/* A shared elliptical path keeps all five relics in one plane. */
.relic-orbit {
  position:absolute; left:50%; top:48%; z-index:0;
  width:min(148%, 93vw); aspect-ratio:2.25;
  transform:translate(-50%,-50%) rotate(-12deg); pointer-events:none;
}
.orbit-track {
  position:absolute; inset:0; border-radius:50%;
  border:1px solid rgba(210,177,111,.5);
  border-top-color:rgba(210,177,111,.26);
}
.orbit-node {
  position:absolute; top:50%; left:50%; display:grid; justify-items:center;
  gap:3px; pointer-events:none; will-change:transform;
}
.relic-svg { display:block; width:clamp(18px,2vw,29px); height:clamp(22px,2.5vw,34px); }
.node-caption { color:var(--gold-bright); font:8px/1 'Cinzel',serif; letter-spacing:.15em; }

/* Hardware Accelerated Layer Optimization */
html, body {
  -webkit-overflow-scrolling: touch;
}

.hero-sticky-frame,
.hero-stage,
.hero-corridor,
.monoliths-avenue,
.stone-monolith-card,
.subject-inner,
.portrait-container {
  -webkit-transform-style: preserve-3d;
  transform-style: preserve-3d;
  -webkit-backface-visibility: hidden;
  backface-visibility: hidden;
  will-change: transform;
}


/* ==========================================================================
   AWWWARDS GSAP SCROLLYTELLING & CANVAS SEQUENCE ARCHITECTURE
   ========================================================================== */

/* 1. EDITORIAL PRELOADER */
.preloader {
  position: fixed;
  inset: 0;
  background: #030304;
  z-index: 99999;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 1;
  visibility: visible;
  transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1), visibility 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.preloader.hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.preloader-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 2rem;
}

.preloader-monogram {
  color: var(--gold-bright);
  margin-bottom: 1.25rem;
  animation: preloaderPulse 2.4s infinite ease-in-out;
}

@keyframes preloaderPulse {
  0%, 100% { transform: scale(1); opacity: 0.8; }
  50% { transform: scale(1.08); opacity: 1; filter: drop-shadow(0 0 12px rgba(243, 215, 132, 0.4)); }
}

.preloader-title {
  font-family: var(--font-monument);
  font-size: 1.5rem;
  letter-spacing: 0.35em;
  color: var(--text-ivory);
  margin-bottom: 0.35rem;
}

.preloader-sub {
  font-family: var(--font-sans);
  font-size: 0.7rem;
  letter-spacing: 0.25em;
  color: var(--gold-primary);
  margin-bottom: 1.75rem;
  text-transform: uppercase;
}

.preloader-bar-wrap {
  width: 200px;
  height: 2px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 2px;
  overflow: hidden;
  position: relative;
  margin-bottom: 0.75rem;
}

.preloader-bar {
  width: 0%;
  height: 100%;
  background: linear-gradient(90deg, var(--gold-dark), var(--gold-bright));
  transition: width 0.15s ease-out;
}

.preloader-status {
  font-family: var(--font-sans);
  font-size: 0.75rem;
  letter-spacing: 0.15em;
  color: var(--text-muted);
}

/* 2. HIGH-DPI SEQUENCE CANVAS & LIQUID FX */
.sequence-canvas,
.liquid-fx-canvas {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  pointer-events: none;
  border-radius: 4px;
  -webkit-mask-image: radial-gradient(ellipse 72% 86% at 50% 48%, #000 70%, transparent 100%);
  mask-image: radial-gradient(ellipse 72% 86% at 50% 48%, #000 70%, transparent 100%);
  will-change: transform, opacity;
}

.liquid-fx-canvas {
  z-index: 3;
  mix-blend-mode: screen;
}

.sequence-canvas {
  z-index: 2;
}

.fallback-portrait {
  z-index: 1;
  transition: opacity 0.6s ease;
}

body.sequence-ready .fallback-portrait {
  opacity: 0;
  pointer-events: none;
}

/* 3. MASTER CINEMATIC SUBTITLES (BOTTOM OF SCREEN - ZERO EYE OBSTRUCTION) */
.cinematic-subtitles {
  position: absolute;
  bottom: 4.8vh;
  left: 50%;
  transform: translateX(-50%);
  width: 90%;
  max-width: 820px;
  height: 110px;
  pointer-events: none;
  z-index: 45;
  text-align: center;
}

.subtitle-phase {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transform: translateY(18px);
  pointer-events: none;
  transition: none; /* Controlled exclusively by GSAP */
  will-change: opacity, transform, filter;
}

.subtitle-phase.active {
  /* Default initial visibility before GSAP binds */
  opacity: 1;
  transform: translateY(0);
}

.sub-kicker {
  font-family: var(--font-sans);
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.28em;
  color: var(--gold-bright);
  text-transform: uppercase;
  margin-bottom: 0.35rem;
  text-shadow: 0 0 10px rgba(243, 215, 132, 0.4);
}

.sub-heading {
  font-family: var(--font-monument);
  font-size: clamp(1.25rem, 2.2vw, 2.05rem);
  font-weight: 500;
  letter-spacing: 0.14em;
  color: var(--text-ivory);
  margin-bottom: 0.35rem;
  line-height: 1.22;
  text-shadow: 0 4px 20px rgba(0, 0, 0, 0.95);
}

.sub-desc {
  font-family: var(--font-serif);
  font-size: clamp(0.95rem, 1.2vw, 1.18rem);
  font-style: italic;
  color: var(--text-body);
  max-width: 660px;
  margin: 0 auto;
  line-height: 1.45;
  text-shadow: 0 2px 14px rgba(0, 0, 0, 0.9);
}

/* 4. REAL-TIME HUD INDICATOR */
.timeline-hud {
  position: absolute;
  bottom: 3.5vh;
  left: 2.5rem;
  display: flex;
  align-items: center;
  gap: 0.85rem;
  padding: 0.45rem 0.9rem;
  background: rgba(8, 8, 10, 0.72);
  border: 1px solid rgba(201, 164, 92, 0.22);
  border-radius: 4px;
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  z-index: 50;
  pointer-events: none;
}

.hud-phase-tag {
  font-family: var(--font-sans);
  font-size: 0.62rem;
  letter-spacing: 0.2em;
  color: var(--gold-bright);
  font-weight: 600;
  text-transform: uppercase;
}

.hud-phase-title {
  font-family: var(--font-monument);
  font-size: 0.75rem;
  letter-spacing: 0.14em;
  color: var(--text-ivory);
  white-space: nowrap;
}

.hud-progress-track {
  width: 50px;
  height: 2px;
  background: rgba(255, 255, 255, 0.12);
  border-radius: 2px;
  overflow: hidden;
}

.hud-progress-fill {
  width: 0%;
  height: 100%;
  background: linear-gradient(90deg, var(--gold-primary), var(--gold-bright));
  transition: width 0.08s linear;
}

.hud-progress-val {
  font-family: var(--font-sans);
  font-size: 0.68rem;
  letter-spacing: 0.08em;
  color: var(--text-muted);
  min-width: 36px;
  text-align: right;
}

/* 5. GSAP SCROLLTRIGGER PINNED STABILITY */
.hero-scroll-track {
  position: relative;
  width: 100%;
  height: 520vh;
  background-color: var(--bg-primary);
}

.hero-sticky-frame {
  position: relative;
  width: 100%;
  height: 100vh;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

.subject-inner {
  position: relative;
  width: 100%;
  max-width: 840px;
  height: 64vh;
  max-height: 660px;
  aspect-ratio: 16 / 10;
  margin-top: -6vh;
  transform-style: preserve-3d;
  backface-visibility: hidden;
  will-change: transform;
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .hero-scroll-track {
    height: 380vh;
  }
  .subject-inner {
    height: 50vh;
    max-width: 95vw;
    margin-top: -8vh;
  }
  .cinematic-subtitles {
    bottom: 3.5vh;
    height: 90px;
  }
  .timeline-hud {
    bottom: 1.2rem;
    left: 1rem;
    padding: 0.35rem 0.65rem;
    gap: 0.5rem;
  }
  .hud-progress-track {
    width: 35px;
  }
}

/* Clean Transparent Canvas Rules */
.sequence-canvas {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  pointer-events: none;
  background: transparent !important;
  border: none !important;
  box-shadow: none !important;
  filter: drop-shadow(0 15px 35px rgba(0, 0, 0, 0.9));
}

.portrait-container {
  background: transparent !important;
  border: none !important;
  box-shadow: none !important;
}

.subject-inner {
  background: transparent !important;
}

/* Hide pillars completely */
.hero-3d-corridor,
.monoliths-avenue,
.stone-monolith-card {
  display: none !important;
  opacity: 0 !important;
  pointer-events: none !important;
}

/* Keep the sculpture and tear layer registered at every viewport size. */
.hero-sticky-frame { min-height: 0; height: 100svh; }
.hero-scroll-track { height: 355svh; }
.subject-inner {
  width: min(88vw, 54svh);
  height: auto;
  max-height: none;
  aspect-ratio: 896 / 1200;
  margin-top: -8svh;
}
.portrait-img, .sequence-canvas { mask-image: none; filter: none; object-position: center; }
/* Flatten the rings into one background layer before compositing the Higgsfield portrait. */
.subject-inner { isolation:isolate; transform-style:flat; }
.portrait-container { z-index: 1; }
.hero-subtitle { transition: none; }
.hero-monogram-wrap { display: none; }
.hero-footer-grid { margin-top: .65rem; }
.hero-scroll-indicator, .pillar-header { background: transparent; color: inherit; border: 0; cursor: pointer; font: inherit; }
.pillar-header { width: 100%; text-align: left; }
.pillar-card.active .pillar-body { max-height: none; }
.hero-scroll-indicator:focus-visible, .pillar-header:focus-visible, a:focus-visible, button:focus-visible {
  outline: 1px solid var(--gold-bright); outline-offset: 5px;
}
.pillar-title, .brand-monogram, .btn-arrow { transition: transform .24s cubic-bezier(.23,1,.32,1); }
@media (hover: hover) and (pointer: fine) {
  .pillar-card:hover .pillar-title { transform: translateX(5px); }
  .brand-link:hover .brand-monogram { transform: rotate(45deg); }
  .return-top-btn:hover .btn-arrow { transform: translateY(-3px); }
}
.static-stage { height: 100svh; }
@media (max-width: 768px) {
  .hero-scroll-track:not(.static-stage) { height: 295svh; }
  .hero-footer-grid { justify-content: center; }
  .main-title { letter-spacing: .16em; text-indent: .16em; }
  .hero-subtitle { letter-spacing: .23em; }
  .cinematic-subtitles { bottom: 7svh; }
}

/* The next chapter rises into the lower edge after the gold comes to rest. */
.hero-scroll-track:not(.static-stage) + .philosophy-section {
  margin-top: -18svh;
  border-top: 0;
  background: linear-gradient(to bottom, transparent, var(--bg-secondary) 18svh);
}

/* Studio portfolio */
.main-title .letter { white-space: nowrap; }
.gallery-heading { display:flex; align-items:baseline; justify-content:space-between; gap:2rem; flex-wrap:wrap; margin-bottom:3rem; }
.studio-link, .mobile-book { color:var(--gold-bright); text-decoration:underline; text-underline-offset:.4em; }
.work-grid { display:grid; grid-template-columns:repeat(4,minmax(0,1fr)); gap:clamp(.8rem,2vw,2rem); }
.work :is(button,a) { width:100%; background:none; cursor:zoom-in; display:block; overflow:hidden; border:1px solid var(--border-gold); }
.work img { width:100%; height:auto; display:block; transition:transform .28s cubic-bezier(.23,1,.32,1); }
.work figcaption { margin-top:.7rem; font:500 clamp(1.1rem,1.8vw,1.7rem)/1.25 var(--font-serif); }
.studio-contact { min-height:75svh; border-top:1px solid var(--border-subtle); background:var(--bg-secondary); }
.studio-contact address { line-height:1.85; font-style:normal; margin:1.6rem 0 .8rem; }
.studio-contact address a { color:inherit; text-underline-offset:.25em; }
.booking-button { display:inline-flex; align-items:center; gap:2rem; background:var(--gold-bright); color:#181208; padding:.85rem 1.4rem; margin-top:1.5rem; text-decoration:none; }
.booking-button span { transition:transform .2s ease; }
.mobile-book { display:none; }
@media (hover:hover) and (pointer:fine) {
  .booking-button:hover span { transform:translate(2px,-2px); }
}
@media (max-width:768px) {
  .work-grid { grid-template-columns:repeat(2,minmax(0,1fr)); row-gap:1.8rem; }
  .mobile-book { display:inline; font-size:.78rem; }
  .gallery-heading { gap:1rem; margin-bottom:1.8rem; }
  .main-title { font-size:clamp(1.8rem,8vw,3.6rem); }
}


.work img { aspect-ratio:4 / 5; object-fit:cover; }
html.gallery-active { overflow:hidden; }
.photo-viewer {
  margin:auto; padding:0; width:min(90vw,64rem); max-width:100vw; max-height:100dvh;
  border:1px solid var(--border-gold); color:var(--text-ivory); background:#0b0a09;
}
.photo-viewer::backdrop { background:rgba(4,4,4,.94); }
.photo-frame { position:relative; padding:clamp(.5rem,2vw,1.5rem); }
.photo-large { display:block; width:100%; height:min(72dvh,800px); object-fit:contain; touch-action:pan-y pinch-zoom; }
.photo-viewer button { width:44px; height:44px; color:var(--gold-bright); border:1px solid var(--border-gold); background:#14120f; border-radius:50%; font:1.5rem/1 var(--font-serif); cursor:pointer; }
.photo-viewer button:hover { background:#33291a; }
.photo-close { position:absolute; right:.7rem; top:.7rem; }
.photo-controls { display:grid; grid-template-columns:auto 1fr auto; align-items:center; gap:.7rem; margin:.8rem auto 0; max-width:35rem; text-align:center; }
.photo-caption { font:1.25rem/1.2 var(--font-serif); }
.photo-position { display:block; color:var(--gold-bright); font-variant-numeric:tabular-nums; }
@media(max-width:600px) { .photo-viewer { width:96vw; } .photo-large { height:65dvh; } }

.gallery-page { justify-content:flex-start; padding-top:2rem; }
.gallery-nav { display:flex; align-items:center; justify-content:space-between; gap:1rem; padding-bottom:1.5rem; margin-bottom:clamp(3rem,7vw,6rem); border-bottom:1px solid var(--border-gold); }
.gallery-nav .brand-text { color:var(--text-ivory); text-decoration:none; }
.featured-works a { cursor:pointer; }
@media (min-width:1000px) {
  .featured-works { grid-template-columns:repeat(5,minmax(0,1fr)); }
}
@media (hover:hover) and (pointer:fine) and (prefers-reduced-motion:no-preference) {
  .work :is(a,button):hover img { animation:photo-sway 2.8s ease-in-out infinite; }
  @keyframes photo-sway {
    0%,100% { transform:scale(1.04) translate(0,0); }
    25% { transform:scale(1.04) translate(2px,-2px) rotate(.3deg); }
    75% { transform:scale(1.04) translate(-2px,2px) rotate(-.3deg); }
  }
}

/* The tear atlas covers only this part of the source portrait. */
#sequence-canvas {
  left:28.571429%; top:32.5%; width:42.857143%; height:36%;
  mask-image:none; border-radius:0;
}

#philosophy, #galeri, #iletisim { min-height:auto; padding-block:clamp(4.5rem,8vw,8rem); }
#philosophy { padding-top:max(21svh,6rem); }
.studio-story, .contact-layout { display:grid; grid-template-columns:1.12fr 1fr; gap:clamp(2rem,6vw,7rem); align-items:center; }
.studio-photo { position:relative; overflow:hidden; border:1px solid var(--border-gold); }
.studio-photo img { width:100%; height:auto; display:block; }
.studio-photo figcaption { position:absolute; inset:auto 0 0; background:linear-gradient(transparent,rgba(9,7,4,.86)); padding:2.5rem 1.3rem 1rem; color:#fff; font:1.5rem var(--font-serif); }
.studio-photo figcaption span { font-size:1rem; color:#eee0c9; }
.studio-story-copy .philosophy-quote, .contact-invite .philosophy-quote { font-size:clamp(2.6rem,5vw,5.6rem); line-height:1.05; }
.studio-story-copy p, .contact-invite p { margin-top:1.35rem; }
.studio-gallery { background:linear-gradient(155deg,#17130e,#090908 58%); }
.contact-layout { padding:clamp(1.2rem,4vw,4rem); border:1px solid var(--border-gold); background:radial-gradient(ellipse at 5% 0%,#292116,transparent 65%),#0e0d0c; }
.contact-seal { width:45px; height:32px; margin-bottom:1.5rem; }
.contact-directory address { margin:0; }
.contact-directory a { display:flex; justify-content:space-between; gap:.65rem; align-items:baseline; padding:1rem 0; color:var(--text-ivory); text-decoration:none; border-bottom:1px solid var(--border-gold); }
.contact-directory a:hover { color:var(--gold-bright); }
.contact-directory small { color:var(--gold-primary); }
.contact-directory address a { flex-wrap:wrap; text-decoration:none; overflow-wrap:anywhere; }
@media(min-width:1000px) { .featured-works .work:nth-child(even) { margin-top:2rem; } }
@media(max-width:800px) { .studio-story,.contact-layout { grid-template-columns:1fr; } }
/* A fine gold rule ties the studio photograph to the gallery captions. */
.work figcaption { display:flex; align-items:baseline; gap:.55rem; }
.work figcaption::before { content:""; flex:0 0 1.2rem; height:1px; background:var(--gold-primary); align-self:center; transform-origin:left; }
.studio-photo::after { content:""; position:absolute; bottom:0; left:0; width:100%; height:2px; background:linear-gradient(90deg,#846030,#f2d997 55%,transparent); transform-origin:left; pointer-events:none; }
@media (prefers-reduced-motion:no-preference) {
  .reveal-waiting { opacity:0; transform:translateY(16px); }
  .reveal-waiting:focus-within { opacity:1; transform:none; }
  .revealed { animation:photo-arrive .68s cubic-bezier(.2,.75,.25,1) backwards; }
  .studio-photo.revealed img { animation:studio-settle .95s cubic-bezier(.2,.7,.25,1); }
  .studio-photo.revealed::after, .work.revealed figcaption::before { animation:gold-rule .75s ease-out backwards; }
  @keyframes photo-arrive { from { opacity:0; transform:translateY(16px); } to { opacity:1; transform:none; } }
  @keyframes studio-settle { from { transform:scale(1.045); } to { transform:none; } }
  @keyframes gold-rule { from { transform:scaleX(0); } to { transform:scaleX(1); } }
}
@media (min-width:801px) and (prefers-reduced-motion:no-preference) {
  .work:nth-child(2n).revealed { animation-delay:55ms; }
}
@media (max-width:800px) and (prefers-reduced-motion:no-preference) {
  .revealed { animation-duration:.42s; }
  .studio-photo.revealed img { animation:none; }
}

.studio-form { display:grid; min-width:0; align-content:start; padding:clamp(1rem,2.8vw,2.5rem); border:1px solid var(--border-gold); background:#12100e; }
.studio-form h3 { margin-bottom:.4rem; font:400 clamp(1.9rem,3vw,2.7rem)/1.1 var(--font-serif); }
.studio-form label { margin:1rem 0 .35rem; font-size:.85rem; color:var(--text-ivory); }
.studio-form :is(input,select,textarea) { width:100%; min-width:0; padding:.68rem .8rem; border:1px solid #615442; color:var(--text-ivory); background:#0c0b0a; color-scheme:dark; font:inherit; user-select:text; }
.studio-form :is(input,select,textarea):focus-visible { outline:2px solid var(--gold-bright); outline-offset:2px; }
.studio-form textarea { resize:vertical; min-height:6rem; }
.studio-form button { justify-self:start; border:0; font:inherit; }
.studio-form button:disabled { background:#4e4537; color:#e6dece; cursor:not-allowed; }
#contact-status { margin-top:.8rem; color:#c3b9ab; font-size:.83rem; }
.contact-invite .contact-directory { margin-top:1.6rem; }
