/* ============================================
   BLOCKHAVEN ASSETS/CSS/STYLE.CSS - DESKTOP ONLY
   ============================================
   Clean implementation - NO media queries
   All responsive rules go in responsive.css
   ============================================ */

/* ============================================
   CSS VARIABLES & ANIMATIONS
   ============================================ */
:root {
  --apple-ease: cubic-bezier(0.25, 0.46, 0.45, 0.94);
  --apple-ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --apple-ease-in-out: cubic-bezier(0.645, 0.045, 0.355, 1);
}

/* Premium animations */
@keyframes fade-up-premium { 
  from { opacity: 0; transform: translateY(24px) scale(0.98); } 
  to { opacity: 1; transform: translateY(0) scale(1); } 
}

@keyframes slide-in-left { 
  from { opacity: 0; transform: translateX(-32px); } 
  to { opacity: 1; transform: translateX(0); } 
}

@keyframes slide-in-right { 
  from { opacity: 0; transform: translateX(32px); } 
  to { opacity: 1; transform: translateX(0); } 
}

@keyframes scale-in { 
  from { opacity: 0; transform: scale(0.95); } 
  to { opacity: 1; transform: scale(1); } 
}

@keyframes glow-pulse {
  0%, 100% { box-shadow: 0 0 20px rgba(147, 112, 219, 0.1); }
  50% { box-shadow: 0 0 40px rgba(147, 112, 219, 0.2); }
}

@keyframes tile-reveal {
  to { opacity: 1; transform: translateY(0); }
}

@keyframes metric-in { 
  to { opacity: 1; transform: none; } 
}

@keyframes vision-reveal {
  to { opacity: 1; transform: translateY(0); }
}

@keyframes diagnostic-reveal {
  to { opacity: 1; transform: translateY(0); }
}

/* ============================================
   PHILOSOPHY CARDS (Identity Tiles)
   ============================================ */
.identity-tiles-section {
  padding-block: var(--tiles-pad, 88px);
  position: relative;
  background: #FFFFFF;
  outline: none;
  transition: opacity 350ms ease-out, transform 350ms ease-out;
  touch-action: pan-y;
  -ms-touch-action: pan-y;
}

.identity-tiles-section:not(.philosophy-revealed) {
  opacity: 0;
  transform: translateY(10px);
}

.identity-tiles-section.philosophy-revealed {
  opacity: 1;
  transform: translateY(0);
}

.identity-tiles-container {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: calc(2rem + 10px);
  max-width: 1560px;
  margin: 0 auto;
  padding: 0 2rem;
  box-sizing: border-box;
}

.identity-tile {
  --tile-shift: 14px;
  position: relative;
  background: #000000;
  border-radius: 12px;
  min-height: 375px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  overflow: hidden;
  transition: all 0.4s var(--apple-ease-out);
  opacity: 0;
  transform: translateY(32px);
  animation: tile-reveal 0.8s var(--apple-ease-out) forwards;
}

.identity-tile:nth-child(1) { animation-delay: 0.2s; }
.identity-tile:nth-child(2) { animation-delay: 0.4s; }
.identity-tile:nth-child(3) { animation-delay: 0.6s; }

/* Tile Icon - 64px */
.tile-icon {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, calc(-120px + var(--tile-shift)));
  opacity: 1;
  transition: opacity 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  z-index: 4;
}

.tile-icon svg,
.tile-icon img {
  width: 64px;
  height: 64px;
  display: block;
}

/* Vision icon */
.icon-vision {
  width: 64px;
  height: 64px;
  background: no-repeat center / contain url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 64 64' fill='none'><path d='M32 4 Q 38 28 56 32 Q 38 36 32 60 Q 26 36 8 32 Q 28 28 32 4 Z' stroke='%236C5CE7' stroke-width='5.33' stroke-linecap='round' stroke-linejoin='round' fill='none'/></svg>");
}

/* Title */
.tile-title {
  font-family: 'Space Grotesk', system-ui, -apple-system, sans-serif;
  font-size: 1.5rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.02em;
  color: #FFFFFF;
  text-align: center;
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, calc(-40px + var(--tile-shift)));
  width: 100%;
  padding: 0 2rem;
  line-height: 1.2;
  opacity: 1;
  transition: opacity 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  z-index: 3;
}

/* Tagline */
.tile-tagline {
  font-family: 'IBM Plex Sans', system-ui, -apple-system, sans-serif;
  font-size: 1rem;
  font-weight: 400;
  color: rgba(255, 255, 255, 0.8);
  text-align: center;
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, calc(10px + var(--tile-shift)));
  width: 100%;
  padding: 0 2rem;
  line-height: 1.4;
  opacity: 1;
  transition: opacity 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  z-index: 3;
}

/* Learn more hint */
.learn-more-hint {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, calc(34px + var(--tile-shift)));
  color: rgba(255, 255, 255, 0.6);
  font-style: italic;
  font-size: 0.9rem;
  line-height: 1.2;
  pointer-events: none;
  z-index: 3;
  transition: opacity 0.3s ease;
}

/* Description */
.tile-description {
  font-family: 'IBM Plex Sans', system-ui, -apple-system, sans-serif;
  font-size: 1.125rem;
  font-weight: 400;
  line-height: 1.5;
  color: rgba(255, 255, 255, 0.95);
  text-align: center;
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 70%;
  max-width: 320px;
  padding: 0 2rem;
  opacity: 0;
  transition: opacity 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  z-index: 2;
  text-shadow: 0 0 20px rgba(108, 92, 231, 0.15);
}

/* Vision content */
.vision-content {
  text-align: center;
  width: 100%;
  max-width: 320px;
}

.vision-main {
  font-size: 1.25rem;
  font-weight: 600;
  line-height: 1.4;
  margin-bottom: 1rem;
  color: rgba(255, 255, 255, 0.95);
}

.vision-mission {
  font-size: 1rem;
  font-weight: 400;
  line-height: 1.5;
  color: rgba(255, 255, 255, 0.8);
  font-style: italic;
}

/* Principles content */
.principles-content {
  text-align: left;
  width: 100%;
  max-width: 320px;
  margin: 0 auto;
}

.principles-intro {
  font-size: 1.25rem;
  font-weight: 600;
  font-style: normal;
  line-height: 1.4;
  margin-bottom: 1rem;
  color: rgba(255, 255, 255, 0.95);
}

.principles-list {
  list-style: none;
  padding: 0;
  margin: 0;
  text-align: left;
  width: 100%;
  max-width: 560px;
}

.principles-list li {
  position: relative;
  padding-left: 1.5rem;
  margin-bottom: 0.56rem; /* Reduced by 25% from 0.75rem for consistent spacing with mobile */
  font-size: 1.125rem;
  line-height: 1.5;
  white-space: normal;
}

.principles-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 14px;
  height: 14px;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='none' stroke='%236C5CE7' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'><path d='M2 8h12'/><path d='M10 4l4 4-4 4'/></svg>");
  background-repeat: no-repeat;
  background-position: center;
  background-size: contain;
}

.principles-list li:last-child {
  margin-bottom: 0;
}

.identity-tile[data-tile="our-principles"] .tile-description {
  text-align: left;
  width: 85%;
  max-width: 560px;
}

/* Desktop hover effects */
.identity-tile:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 32px rgba(0, 0, 0, 0.15);
}

.identity-tile:hover .tile-icon,
.identity-tile:hover .tile-title,
.identity-tile:hover .tile-tagline,
.identity-tile:hover .learn-more-hint {
  opacity: 0;
}

.identity-tile:hover .tile-description {
  opacity: 1;
}


/* Hide carousel dots on desktop */
.carousel-dots {
  display: none;
}

/* Philosophy link styling */
.philosophy-link {
  font-size: 1.2rem;
  font-weight: 600;
  text-decoration: none;
  color: var(--text);
  position: relative;
  display: inline-block;
  transition: color 0.3s ease;
}

.philosophy-link:hover {
  color: var(--accent);
  text-shadow: 0 0 8px rgba(108, 92, 231, 0.4);
}

/* ============================================
   STATISTICS SECTION
   ============================================ */
#manifesto-content {
  position: relative;
  min-height: calc(100vh - var(--nav-height));
  background: #000000;
  overflow: visible;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: center;
}

.statistics-container {
  position: relative;
  width: 100%;
  height: calc(100vh - var(--nav-height));
  display: flex;
  align-items: center;
  justify-content: center;
}

.rapid-fire-sequence {
  position: relative;
  width: 100%;
  height: 100%;
  max-width: 900px;
  margin: 0 auto;
  padding: 0 2rem;
}

.stat-card {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  opacity: 0;
  transform: translateY(40px);
  transition: all 0.4s cubic-bezier(0.2, 0.8, 0.2, 1);
  padding: 2rem;
}

.stat-card.show {
  opacity: 1;
  transform: translateY(0);
}

.stat-card.hide {
  opacity: 0;
  transform: translateY(-20px);
  transition: all 0.3s ease-out;
}

.stat-number {
  font-family: 'Space Grotesk', system-ui, -apple-system, sans-serif;
  font-size: clamp(56px, 12vw, 160px);
  font-weight: 800;
  letter-spacing: 0.02em;
  line-height: 0.9;
  color: #FFFFFF;
  margin-bottom: 1rem;
  font-variant-numeric: tabular-nums;
}

.stat-text {
  font-family: 'Space Grotesk', system-ui, -apple-system, sans-serif;
  font-size: clamp(18px, 2.2vw, 28px);
  font-weight: 600;
  letter-spacing: 0.01em;
  line-height: 1.25;
  color: #FFFFFF;
  max-width: 800px;
}

.final-statement-card .final-statement-text {
  font-family: 'Space Grotesk', system-ui, -apple-system, sans-serif;
  font-size: clamp(28px, 4vw, 48px);
  font-weight: 700;
  letter-spacing: 0.02em;
  line-height: 1.2;
  color: #FFFFFF;
  max-width: 900px;
}

/* Final stats layout */
.final-stats-layout {
  position: relative;
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 0;
  text-align: center;
  opacity: 0;
  transition: opacity 0.8s cubic-bezier(0.2, 0.8, 0.2, 1);
  box-sizing: border-box;
  overflow: visible;
  margin: 0;
}

.final-stats-layout.show {
  opacity: 1;
}

/* Metrics section footnote */
.metrics-footnote {
  position: absolute;
  left: max(0px, env(safe-area-inset-left)); /* flush to screen edge */
  bottom: 6px; /* tight to the transition to next section */
  display: block;
  width: auto;
  text-align: left;
  margin: 0;
  padding: 0;
  font-family: 'Space Grotesk', system-ui, -apple-system, sans-serif;
  font-size: 6px;              /* drastically reduced size on desktop */
  line-height: 1.15;
  letter-spacing: 0.02em;
  color: rgba(255, 255, 255, 0.6);
  -webkit-text-size-adjust: none;
  text-size-adjust: none;
  pointer-events: none; /* non-interactive note */
}

.stats-grid {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: clamp(1rem, 2.2vw, 3rem);
  margin-bottom: 3rem;
  max-width: 1400px;
  width: 100%;
  position: relative;
}

.final-stat {
  text-align: center;
  opacity: 1;
  transform: none;
  flex: 0 0 auto;
  min-width: 200px;
}

.final-number {
  font-family: 'Space Grotesk', system-ui, -apple-system, sans-serif;
  font-size: clamp(36px, 5vw, 120px);
  font-weight: 800;
  letter-spacing: 0.02em;
  line-height: 0.9;
  color: #FFFFFF;
  margin-bottom: 1rem;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

.final-text {
  font-family: 'Space Grotesk', system-ui, -apple-system, sans-serif;
  font-size: clamp(12px, 2.2vw, 22px);
  font-weight: 600;
  letter-spacing: 0.01em;
  line-height: 1.25;
  color: #FFFFFF;
  white-space: normal;
}

.final-statement {
  font-family: 'Space Grotesk', system-ui, -apple-system, sans-serif;
  color: #FFFFFF;
  text-align: center;
  display: block;
  margin: 50px auto 0 auto;
  opacity: 1;
  transform: none;
  position: relative;
  background: transparent;
  border: 10px solid #FFFFFF;
  border-radius: 32px;
  box-sizing: border-box;
  padding: 30px 60px;
  max-width: calc(100vw - 40px);
  left: 50%;
  transform: translateX(-50%);
}

.statement-line-one {
  font-size: clamp(18px, 2.6vw, 34px);
  font-weight: 600;
  letter-spacing: 0.01em;
  line-height: 1.2;
  opacity: 0.9;
  position: relative;
  z-index: 3;
  white-space: nowrap;
}

.statement-line-two {
  font-size: clamp(30px, 5.2vw, 78px);
  font-weight: 800;
  letter-spacing: 0.02em;
  line-height: 1.1;
  opacity: 1;
  position: relative;
  z-index: 3;
  background: linear-gradient(135deg, #FFFFFF 0%, #E8E8E8 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  white-space: nowrap;
}

.statement-line-two .period {
  color: #FFFFFF;
  background: none;
  -webkit-background-clip: unset;
  background-clip: unset;
  font-size: 1em;
  position: static;
}

/* ============================================
   HERO STARFIELD
   ============================================ */
.hero-bg {
  display: block !important;
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
}

.hero-headline {
  text-transform: none !important;
}

.hero-content {
  position: relative;
  z-index: 5;
}

.starfield {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 3;
}

.star {
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
}

.star.faint {
  background-color: #C8A2C8;
  opacity: 0.3;
  width: 1px;
  height: 1px;
  box-shadow: 0 0 2px #C8A2C8;
}

.star.dim {
  background-color: #9370DB;
  opacity: 0.5;
  width: 1.5px;
  height: 1.5px;
  box-shadow: 0 0 3px #9370DB;
}

.star.bright {
  background-color: #6C5CE7;
  opacity: 0.7;
  width: 2px;
  height: 2px;
  box-shadow: 0 0 4px #6C5CE7;
}

.star.brilliant {
  background-color: #6C5CE7;
  opacity: 0.9;
  width: 2.5px;
  height: 2.5px;
  box-shadow: 0 0 6px #6C5CE7, 0 0 12px rgba(108, 92, 231, 0.3);
}

/* Twinkling animations */
@keyframes twinkle-soft {
  0%, 100% { opacity: var(--base-opacity); transform: scale(1); }
  50% { opacity: calc(var(--base-opacity) * 1.4); transform: scale(1.1); }
}

@keyframes twinkle-gentle {
  0%, 100% { opacity: var(--base-opacity); }
  25% { opacity: calc(var(--base-opacity) * 0.7); }
  75% { opacity: calc(var(--base-opacity) * 1.2); }
}

@keyframes drift-subtle {
  0% { transform: translateX(0) translateY(0); }
  33% { transform: translateX(0.5px) translateY(-0.3px); }
  66% { transform: translateX(-0.3px) translateY(0.5px); }
  100% { transform: translateX(0) translateY(0); }
}

.star.twinkle-1 {
  --base-opacity: 0.3;
  animation: twinkle-soft 3.2s ease-in-out infinite;
  animation-delay: 0s;
}

.star.twinkle-2 {
  --base-opacity: 0.5;
  animation: twinkle-gentle 4.1s ease-in-out infinite;
  animation-delay: 1.2s;
}

.star.twinkle-3 {
  --base-opacity: 0.7;
  animation: twinkle-soft 2.8s ease-in-out infinite;
  animation-delay: 2.1s;
}

.star.drift {
  animation: drift-subtle 8s ease-in-out infinite;
}

/* ============================================
   SCROLL ANIMATIONS
   ============================================ */
.scroll-fade-in-section {
  opacity: 0;
  animation: fade-up-premium 1.2s var(--apple-ease-out) forwards;
  animation-delay: 0.1s;
}

.scroll-fade-in-section:nth-child(even) {
  animation-delay: 0.2s;
}

/* ============================================
   REDUCED MOTION SUPPORT
   ============================================ */
@media (prefers-reduced-motion: reduce) {
  * { 
    animation: none !important; 
    transition: none !important; 
  }
  
  .identity-tiles-section {
    transition: none !important;
    opacity: 1 !important;
    transform: none !important;
  }
  
  .identity-tiles-section:not(.philosophy-revealed) {
    opacity: 1;
    transform: none;
  }
  
  .star { 
    animation: none !important; 
  }
  
  .stat-card,
  .final-stats-layout,
  .final-stat,
  .final-statement {
    transition: none !important;
    animation: none !important;
    opacity: 1 !important;
    transform: none !important;
  }
}
