/**
 * hero-monolith.css — Monumental Hero Stage & Kinetic Split-Letter System · DeayanXtra
 * =============================================================================
 * Architecture:
 * - 100vh Full-Viewport Centerpiece Monument
 * - True Anisotropic Lathe Shader with Spatial 3D Pitch/Roll Depth
 * - Kinetic Split-Letter Reveal: DEAYAN [X] TRA on Hover with Pure Metal Typography
 * - Dual-Tone Contrast Architecture (Aerospace Dark vs. Cleanroom Light)
 * - Precision Azimuth Collimator Reticles
 * - Milled Metal Scroll-Cue Navigation Pill
 * =============================================================================
 */

/* ── 1. FULL-VIEWPORT HERO STAGE ─────────────────────────────── */
#dx-hero-stage {
  position: relative;
  z-index: 10;
  width: 100%;
  min-height: 100vh;
  height: 100vh;
  min-height: 640px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  padding: 80px clamp(20px, 5vw, 60px) clamp(20px, 3vh, 36px);
  overflow: hidden;
  user-select: none;
}

#dx-hero-environment {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 0;
  overflow: hidden;
  transition: opacity 0.4s ease;
}

/* ── 2. TOP TELEMETRY PROTOCOL BADGE ─────────────────────────── */
.dx-hero-telemetry-cluster {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  margin-top: 10px;
  z-index: 12;
  pointer-events: none;
}

.dx-hero-protocol-pill {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  height: 28px;
  padding: 0 16px;
  border-radius: var(--radius-pill);
  background: var(--bg-trans);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--line-border);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.25), inset 0 1px 0 rgba(255, 255, 255, 0.15);
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--text-secondary);
}

.dx-protocol-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--text-primary);
  box-shadow: 0 0 8px currentColor;
  opacity: 0.85;
}

/* ── 3. MONUMENTAL 3D MONOLITH EMBLEM & COLLIMATOR ───────────── */
.dx-hero-monument-anchor {
  position: relative;
  /* Dynamically scaled to fit both narrow phones and short 768p/900p laptop screens */
  width: min(520px, 78vw, 44vh);
  aspect-ratio: 1 / 1;
  display: flex;
  align-items: center;
  justify-content: center;
  perspective: 2600px;
  transform-style: preserve-3d;
  margin: auto 0;
  z-index: 11;
  cursor: pointer;
}

/* Collimator Rings & Azimuth Degree Marks */
.dx-monument-collimator {
  position: absolute;
  inset: -28px;
  border-radius: 50%;
  pointer-events: none;
  z-index: 1;
}

.dx-collimator-ring-orbit {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  border: 1px dashed var(--line-border);
  opacity: 0.38;
  animation: dxCollimatorSpinCW 120s linear infinite;
}

.dx-collimator-ring-inner {
  position: absolute;
  inset: 24px;
  border-radius: 50%;
  border: 1px solid var(--line-border);
  opacity: 0.22;
}

@keyframes dxCollimatorSpinCW {
  from { transform: rotate(0deg); }
  to   { transform: rotate(360deg); }
}

.dx-azimuth {
  position: absolute;
  font-family: var(--font-mono);
  font-size: 8.5px;
  font-weight: 700;
  letter-spacing: 0.14em;
  color: var(--text-muted);
  user-select: none;
}
.dx-azimuth.north { top: -20px; left: 50%; transform: translateX(-50%); }
.dx-azimuth.south { bottom: -20px; left: 50%; transform: translateX(-50%); }
.dx-azimuth.east  { right: -30px; top: 50%; transform: translateY(-50%); }
.dx-azimuth.west  { left: -30px; top: 50%; transform: translateY(-50%); }

/* ── 4. THE GIANT EXTRUDED ANISOTROPIC EMBLEM (THE "X") ──────── */
.dx-monument-emblem {
  position: relative;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  transform-style: preserve-3d;
  will-change: transform;
  /* Ambient occlusion that moves coherently with the whole 3D body */
  filter: drop-shadow(0 20px 40px rgba(0, 0, 0, 0.55)) drop-shadow(0 4px 10px rgba(0, 0, 0, 0.3));
  z-index: 5;
  transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

/* 3D Extrusion Core (Centered along Z-axis — no fake Y-offset) */
.dx-monument-emblem::before {
  content: '';
  position: absolute;
  inset: 0;
  background: #111014;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 500 500'%3E%3Cpath d='M194.567,232.638c-1.088,-9.35 -12.518,-5.264 -41.068,-9c-13.82,-1.808 -26.96,-6.366 -40.15,-15.099c-18.799,-12.446 -22.592,-27.751 -23.377,-42.069c-3.107,-56.667 59.429,-82.835 98.219,-52.567c27.857,21.738 23.589,49.615 40.379,60.485c14.78,9.569 31.067,8.989 41.883,-0.677c18.116,-16.191 16.749,-35.095 18.604,-59.243c4.872,-63.416 60.775,-84.038 97.566,-72.367c53.183,16.871 61.861,74.567 42.191,107.58c-24.953,41.879 -57.929,35.495 -87.274,46.92c-25.012,9.738 -36.318,23.17 -36.179,41.89c0.126,17.019 10.559,32.59 48.118,40.175c77.341,15.618 100.842,99.1 54.842,146.659c-44.548,46.058 -134.024,31.944 -147.136,-43.759c-5.674,-32.76 0.403,-65.845 -5.962,-84.968c-3.706,-11.132 -16.191,-11.992 -23.531,-8.649c-14.599,6.649 -20,19.633 -22.525,30.279c-2.802,11.813 -1.066,18.889 -1.403,30.278c-0.952,32.155 -21.955,57.889 -45.327,67.847c-71.302,30.381 -132.789,-48.292 -92.383,-109.146c20.184,-30.399 47.037,-31.386 71.368,-38.982c52.028,-16.241 54.01,-28.178 53.147,-35.587Z' fill='%23000'/%3E%3C/svg%3E") no-repeat center / contain;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 500 500'%3E%3Cpath d='M194.567,232.638c-1.088,-9.35 -12.518,-5.264 -41.068,-9c-13.82,-1.808 -26.96,-6.366 -40.15,-15.099c-18.799,-12.446 -22.592,-27.751 -23.377,-42.069c-3.107,-56.667 59.429,-82.835 98.219,-52.567c27.857,21.738 23.589,49.615 40.379,60.485c14.78,9.569 31.067,8.989 41.883,-0.677c18.116,-16.191 16.749,-35.095 18.604,-59.243c4.872,-63.416 60.775,-84.038 97.566,-72.367c53.183,16.871 61.861,74.567 42.191,107.58c-24.953,41.879 -57.929,35.495 -87.274,46.92c-25.012,9.738 -36.318,23.17 -36.179,41.89c0.126,17.019 10.559,32.59 48.118,40.175c77.341,15.618 100.842,99.1 54.842,146.659c-44.548,46.058 -134.024,31.944 -147.136,-43.759c-5.674,-32.76 0.403,-65.845 -5.962,-84.968c-3.706,-11.132 -16.191,-11.992 -23.531,-8.649c-14.599,6.649 -20,19.633 -22.525,30.279c-2.802,11.813 -1.066,18.889 -1.403,30.278c-0.952,32.155 -21.955,57.889 -45.327,67.847c-71.302,30.381 -132.789,-48.292 -92.383,-109.146c20.184,-30.399 47.037,-31.386 71.368,-38.982c52.028,-16.241 54.01,-28.178 53.147,-35.587Z' fill='%23000'/%3E%3C/svg%3E") no-repeat center / contain;
  /* Pure depth extrusion along Z — no detached gap */
  transform: translate3d(0, 0, -8px);
  filter: drop-shadow(0 0 4px rgba(0, 0, 0, 0.8));
}

/* Machined Front Bevel Face */
.dx-monument-emblem::after {
  content: '';
  position: absolute;
  inset: 0;
  background: conic-gradient(from var(--monolith-spec-angle, 195deg) at var(--monolith-spec-x, 50%) var(--monolith-spec-y, 50%),
    #dcdbd6 0deg,
    #ffffff 38deg,
    #aba9a2 85deg,
    #f5f4ef 140deg,
    #dcdbd6 180deg,
    #ffffff 220deg,
    #9e9c95 270deg,
    #f7f6f2 325deg,
    #dcdbd6 360deg
  );
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 500 500'%3E%3Cpath d='M194.567,232.638c-1.088,-9.35 -12.518,-5.264 -41.068,-9c-13.82,-1.808 -26.96,-6.366 -40.15,-15.099c-18.799,-12.446 -22.592,-27.751 -23.377,-42.069c-3.107,-56.667 59.429,-82.835 98.219,-52.567c27.857,21.738 23.589,49.615 40.379,60.485c14.78,9.569 31.067,8.989 41.883,-0.677c18.116,-16.191 16.749,-35.095 18.604,-59.243c4.872,-63.416 60.775,-84.038 97.566,-72.367c53.183,16.871 61.861,74.567 42.191,107.58c-24.953,41.879 -57.929,35.495 -87.274,46.92c-25.012,9.738 -36.318,23.17 -36.179,41.89c0.126,17.019 10.559,32.59 48.118,40.175c77.341,15.618 100.842,99.1 54.842,146.659c-44.548,46.058 -134.024,31.944 -147.136,-43.759c-5.674,-32.76 0.403,-65.845 -5.962,-84.968c-3.706,-11.132 -16.191,-11.992 -23.531,-8.649c-14.599,6.649 -20,19.633 -22.525,30.279c-2.802,11.813 -1.066,18.889 -1.403,30.278c-0.952,32.155 -21.955,57.889 -45.327,67.847c-71.302,30.381 -132.789,-48.292 -92.383,-109.146c20.184,-30.399 47.037,-31.386 71.368,-38.982c52.028,-16.241 54.01,-28.178 53.147,-35.587Z' fill='%23000'/%3E%3C/svg%3E") no-repeat center / contain;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 500 500'%3E%3Cpath d='M194.567,232.638c-1.088,-9.35 -12.518,-5.264 -41.068,-9c-13.82,-1.808 -26.96,-6.366 -40.15,-15.099c-18.799,-12.446 -22.592,-27.751 -23.377,-42.069c-3.107,-56.667 59.429,-82.835 98.219,-52.567c27.857,21.738 23.589,49.615 40.379,60.485c14.78,9.569 31.067,8.989 41.883,-0.677c18.116,-16.191 16.749,-35.095 18.604,-59.243c4.872,-63.416 60.775,-84.038 97.566,-72.367c53.183,16.871 61.861,74.567 42.191,107.58c-24.953,41.879 -57.929,35.495 -87.274,46.92c-25.012,9.738 -36.318,23.17 -36.179,41.89c0.126,17.019 10.559,32.59 48.118,40.175c77.341,15.618 100.842,99.1 54.842,146.659c-44.548,46.058 -134.024,31.944 -147.136,-43.759c-5.674,-32.76 0.403,-65.845 -5.962,-84.968c-3.706,-11.132 -16.191,-11.992 -23.531,-8.649c-14.599,6.649 -20,19.633 -22.525,30.279c-2.802,11.813 -1.066,18.889 -1.403,30.278c-0.952,32.155 -21.955,57.889 -45.327,67.847c-71.302,30.381 -132.789,-48.292 -92.383,-109.146c20.184,-30.399 47.037,-31.386 71.368,-38.982c52.028,-16.241 54.01,-28.178 53.147,-35.587Z' fill='%23000'/%3E%3C/svg%3E") no-repeat center / contain;
  /* Brings front face 8px forward to form a tight, solid 16px metallic slab */
  transform: translate3d(0, 0, 8px);
  filter: drop-shadow(0 1px 1px rgba(255, 255, 255, 0.8));
}

/* Light Theme High-Contrast Polish for Emblem */
[data-theme="light"] .dx-monument-emblem::before {
  background: var(--metal-dark);
  filter: drop-shadow(0 20px 40px rgba(0, 0, 0, 0.22));
}

[data-theme="light"] .dx-monument-emblem::after {
  background: conic-gradient(from var(--monolith-spec-angle, 195deg) at var(--monolith-spec-x, 50%) var(--monolith-spec-y, 50%),
    #2a2930 0deg,
    #5c5a66 38deg,
    #17161c 85deg,
    #4a4854 140deg,
    #2a2930 180deg,
    #696775 220deg,
    #121117 270deg,
    #4e4c58 325deg,
    #2a2930 360deg
  );
  filter: drop-shadow(0 1px 1px rgba(0, 0, 0, 0.4));
}

/* ── 5. KINETIC SPLIT-LETTER SYSTEM (DEAYAN ← [X] → TRA) ──────── */
.dx-monument-wing {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  display: flex;
  align-items: center;
  pointer-events: none;
  z-index: 4;
}

.dx-wing-left {
  right: calc(100% - 30px);
  justify-content: flex-end;
}

.dx-wing-right {
  left: calc(100% - 30px);
  justify-content: flex-start;
}

/* Individual Titanium Letter Glyphs */
.dx-wing-char {
  display: inline-block;
  font-family: var(--font-title);
  font-size: clamp(28px, min(5.4vw, 5.8vh), 66px);
  font-weight: 900;
  letter-spacing: 0.02em;
  line-height: 1;
  text-transform: uppercase;
  
  /* Pure Anisotropic Metal Typography Shader */
  background: conic-gradient(from var(--spec-angle, 195deg) at var(--spec-x, 50%) var(--spec-y, 50%),
    #dcdbd6 0deg, #ffffff 38deg, #aba9a2 85deg, #f5f4ef 140deg,
    #dcdbd6 180deg, #ffffff 220deg, #9e9c95 270deg, #f7f6f2 325deg, #dcdbd6 360deg
  );
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.7));

  /* Resting Collapsed State (Behind the emblem) */
  opacity: 0;
  transform: translateX(0) scale(0.85);
  transition:
    transform 0.65s cubic-bezier(0.16, 1, 0.3, 1),
    opacity 0.5s ease-out;
  transition-delay: calc(var(--char-idx, 0) * 0.025s);
  will-change: transform, opacity;
}

[data-theme="light"] .dx-wing-char {
  background: conic-gradient(from var(--spec-angle, 195deg) at var(--spec-x, 50%) var(--spec-y, 50%),
    #2a2930 0deg, #5c5a66 38deg, #17161c 85deg, #4a4854 140deg,
    #2a2930 180deg, #696775 220deg, #121117 270deg, #4e4c58 325deg, #2a2930 360deg
  );
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  filter: drop-shadow(0 2px 3px rgba(0, 0, 0, 0.25));
}

/* ── Active Hover Reveal: Smooth Simultaneous Expansion ── */
.dx-hero-monument-anchor:hover .dx-wing-left .dx-wing-char {
  opacity: 1;
  transform: translateX(calc(-12px - (var(--char-idx, 0) * 4px))) scale(1);
}

.dx-hero-monument-anchor:hover .dx-wing-right .dx-wing-char {
  opacity: 1;
  transform: translateX(calc(12px + (var(--char-idx, 0) * 4px))) scale(1);
}

.dx-hero-monument-anchor:hover .dx-monument-emblem {
  transform: scale(1.03);
}

/* ── 6. LOWER TECHNICAL MANIFESTO & SCROLL PILL ──────────────── */
.dx-hero-manifesto-cluster {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: clamp(8px, 1.6vh, 14px);
  z-index: 12;
  text-align: center;
  max-width: 820px;
}

.dx-hero-manifesto-title {
  font-family: var(--font-title);
  font-size: clamp(18px, 2.6vw, 32px);
  font-weight: 800;
  letter-spacing: -0.02em;
  text-transform: uppercase;
  color: var(--text-primary);
  line-height: 1.15;
  text-shadow: 0 2px 12px rgba(0, 0, 0, 0.4);
}

.dx-hero-workflow-badges {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.dx-workflow-tag {
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 4px 10px;
  border-radius: var(--radius-xs);
  background: var(--bg-trans);
  border: 1px solid var(--line-border);
  color: var(--text-secondary);
  backdrop-filter: blur(12px);
}

/* Milled Anisotropic Scroll Cue Pill */
.dx-hero-scroll-cue {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  height: 38px;
  padding: 0 20px;
  border-radius: var(--radius-pill);
  background: var(--metal-light);
  color: #0d0c11;
  font-family: var(--font-ui);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  text-decoration: none;
  box-shadow: 0 1px 0 #ffffff inset, 0 0 0 1px rgba(0, 0, 0, 0.35), 0 8px 24px rgba(0, 0, 0, 0.35);
  margin-top: 6px;
  cursor: pointer;
  transition: transform 0.2s var(--ease-spring), filter 0.2s ease, box-shadow 0.2s ease;
}

[data-theme="light"] .dx-hero-scroll-cue {
  background: var(--metal-dark);
  color: #f7f6f2;
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.25) inset, 0 0 0 1px rgba(0, 0, 0, 0.4), 0 8px 24px rgba(0, 0, 0, 0.25);
}

.dx-hero-scroll-cue:hover {
  transform: translateY(-2px);
  filter: brightness(1.08);
}

.dx-hero-scroll-cue:active {
  transform: translateY(1px) scale(0.985);
}

.dx-scroll-cue-arrow {
  display: inline-block;
  font-size: 12px;
  animation: dxScrollBounce 2.2s infinite ease-in-out;
}

@keyframes dxScrollBounce {
  0%, 100% { transform: translateY(0); }
  50%      { transform: translateY(3px); }
}

@media (max-width: 768px) {
  #dx-hero-stage {
    padding-top: 75px;
    padding-bottom: 24px;
  }
  .dx-hero-monument-anchor {
    width: min(420px, 90vw);
  }
  .dx-wing-char {
    font-size: 28px;
  }
  .dx-hero-manifesto-title {
    font-size: 18px;
  }
}