/* ==========================================================================
   AURA FORMS // LUXURY SWISS EDITORIAL DESIGN SYSTEM
   Warm Alabaster canvas, tactile matte obsidian 3D sculpture,
   exponential backlight diffusion, 3D card tilt, and architectural typography.
   ========================================================================== */

:root {
  /* Canvas Palette */
  --bg-canvas: #f8f8fa;
  --bg-pure: #ffffff;
  --bg-subtle: #f2f2f5;
  --bg-card: rgba(255, 255, 255, 0.72);
  --bg-card-hover: rgba(255, 255, 255, 0.94);
  
  /* Precision Glassmorphism */
  --glass-bg: rgba(255, 255, 255, 0.78);
  --glass-border: 1px solid rgba(0, 0, 0, 0.06);
  --glass-blur: blur(28px);
  --shadow-subtle: 0 20px 48px -12px rgba(0, 0, 0, 0.04);
  --shadow-glow: 0 0 50px rgba(255, 85, 0, 0.22);

  /* Typography Colors */
  --text-primary: #121214;
  --text-headline: #0a0a0c;
  --text-secondary: #68686e;
  --text-tertiary: #8e8e95;
  --accent-orange: #ff5500; /* Luminous Deep Coral */
  --accent-amber: #ff8800;

  /* Fonts */
  --font-display: -apple-system, BlinkMacSystemFont, "SF Pro Display", "Helvetica Neue", "Neue Haas Grotesk", Arial, sans-serif;
  --font-mono: ui-monospace, "SF Mono", Menlo, Monaco, Consolas, monospace;

  /* Transitions */
  --ease-apple: cubic-bezier(0.16, 1, 0.3, 1);
  --duration-fast: 0.18s;
  --duration-normal: 0.35s;
  --duration-slow: 0.75s;
}

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

html {
  font-size: 16px;
  background-color: var(--bg-canvas);
  color: var(--text-primary);
  font-family: var(--font-display);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  overflow-x: hidden;
  background-color: var(--bg-canvas);
  min-height: 100vh;
  position: relative;
  line-height: 1.5;
}

/* Accessible Skip Link */
.skip-link {
  position: fixed;
  top: 1rem;
  left: 1rem;
  z-index: 10000;
  padding: 0.6rem 1.2rem;
  background: var(--text-primary);
  color: #ffffff;
  font-size: 0.8125rem;
  font-weight: 600;
  text-decoration: none;
  border-radius: 980px;
  transform: translateY(-200%);
  transition: transform var(--duration-fast) var(--ease-apple);
}

.skip-link:focus {
  transform: translateY(0);
}

/* Fixed WebGL Container */
#webgl-container {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  z-index: 1;
  pointer-events: none;
  touch-action: none;
}

#webgl-container.interactive {
  pointer-events: auto;
  cursor: grab;
}

#webgl-container.interactive:active {
  cursor: grabbing;
}

/* Studio Vignette */
.ambient-vignette {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  z-index: 2;
  pointer-events: none;
  background: radial-gradient(circle at center, transparent 45%, rgba(0, 0, 0, 0.02) 100%);
}

/* Ambient Radial Orange Halo */
.hero-ambient-glow {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 70vw;
  height: 70vh;
  z-index: 2;
  pointer-events: none;
  background: radial-gradient(circle at center, rgba(255, 85, 0, 0.09) 0%, rgba(255, 136, 0, 0.04) 45%, transparent 70%);
  filter: blur(80px);
  transition: background var(--duration-slow) var(--ease-apple);
}

/* Precision Floating Glass Navigation */
.apple-nav {
  position: fixed;
  top: 1.5rem;
  left: 50%;
  transform: translateX(-50%);
  width: calc(100% - 3.5rem);
  max-width: 980px;
  z-index: 100;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.65rem 1.6rem;
  background: var(--glass-bg);
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
  border: var(--glass-border);
  border-top: 1px solid rgba(255, 255, 255, 0.95);
  border-radius: 980px;
  box-shadow: 0 10px 32px rgba(0, 0, 0, 0.03);
  transition: all var(--duration-normal) var(--ease-apple);
}

.nav-brand {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  text-decoration: none;
  color: var(--text-primary);
}

.brand-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--accent-orange);
  box-shadow: 0 0 12px rgba(255, 85, 0, 0.7);
}

.nav-product-name {
  font-size: 0.875rem;
  font-weight: 600;
  letter-spacing: -0.01em;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 2rem;
}

.nav-links a {
  font-size: 0.8125rem;
  font-weight: 500;
  color: var(--text-secondary);
  text-decoration: none;
  transition: color var(--duration-fast) var(--ease-apple);
}

.nav-links a:hover {
  color: var(--text-primary);
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

/* Precision Tactile Pill Buttons */
.pill-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  padding: 0.45rem 1.1rem;
  font-size: 0.8125rem;
  font-weight: 500;
  border-radius: 980px;
  text-decoration: none;
  cursor: pointer;
  border: 1px solid transparent;
  transition: all var(--duration-fast) var(--ease-apple);
}

.pill-btn-primary {
  background: var(--text-primary);
  color: #ffffff;
}

.pill-btn-primary:hover {
  background: #000000;
  transform: scale(1.02);
}

.pill-btn-secondary {
  background: rgba(0, 0, 0, 0.035);
  color: var(--text-primary);
  border: 1px solid rgba(0, 0, 0, 0.06);
}

.pill-btn-secondary:hover {
  background: rgba(0, 0, 0, 0.07);
  border-color: rgba(0, 0, 0, 0.12);
}

.pill-btn.active {
  background: var(--accent-orange);
  color: #ffffff;
  border-color: transparent;
  box-shadow: 0 0 20px rgba(255, 85, 0, 0.35);
}

/* ==========================================================================
   PINNED KEYNOTE PRESENTATION (SWISS EDITORIAL & ZERO OVERLAP)
   ========================================================================== */

.pinned-keynote-container {
  position: relative;
  width: 100%;
  height: 100vh;
  overflow: hidden;
  z-index: 10;
}

.keynote-stage {
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 100%;
  height: 100%;
  max-width: 1320px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 3rem;
  pointer-events: none;
}

/* Narrative Story Panels */
.story-panel {
  position: absolute;
  pointer-events: none;
  opacity: 0;
  will-change: transform, opacity;
}

.story-panel.active-panel {
  pointer-events: auto;
}

/* Stage 0: Hero */
#panel-hero {
  position: absolute;
  top: 5.25rem;
  left: 50%;
  transform: translateX(-50%);
  width: 100%;
  max-width: 860px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  opacity: 1;
  pointer-events: auto;
}

/* Left Narrative Cards */
#panel-torus {
  left: 3.5rem;
  max-width: 440px;
  text-align: left;
}

/* Right Narrative Cards */
#panel-blob,
#panel-corner {
  right: 3.5rem;
  max-width: 440px;
  text-align: left;
}

/* Top Center Narrative Cards */
#panel-poly,
#panel-macro {
  top: 5.5rem;
  max-width: 700px;
  text-align: center;
}

/* Swiss Metadata Tag */
.eyebrow {
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--text-secondary);
  margin-bottom: 0.75rem;
}

.eyebrow-accent {
  color: var(--accent-orange);
}

.hero-title {
  font-size: clamp(3.5rem, 8vw, 7rem);
  font-weight: 700;
  line-height: 0.95;
  letter-spacing: -0.045em;
  color: var(--text-headline);
  margin-bottom: 0.75rem;
}

.hero-tagline {
  font-size: clamp(1.4rem, 2.8vw, 2.25rem);
  font-weight: 600;
  line-height: 1.2;
  letter-spacing: -0.025em;
  background: linear-gradient(180deg, #121214 0%, #707078 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  max-width: 760px;
  margin-bottom: 1rem;
}

.hero-subtext {
  font-size: clamp(0.9375rem, 1.2vw, 1.125rem);
  color: var(--text-secondary);
  max-width: 540px;
  line-height: 1.6;
  margin-bottom: 1.75rem;
}

.scroll-cue {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.4rem;
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  letter-spacing: 0.08em;
  color: var(--text-tertiary);
}

.scroll-line {
  width: 1px;
  height: 32px;
  background: linear-gradient(180deg, var(--text-tertiary) 0%, transparent 100%);
  animation: scroll-pulse 2s infinite ease-in-out;
}

@keyframes scroll-pulse {
  0%, 100% { opacity: 0.25; transform: scaleY(0.5); }
  50% { opacity: 1; transform: scaleY(1); }
}

/* Ghost Glass Studio Cards */
.studio-card {
  background: var(--bg-card);
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
  border: var(--glass-border);
  border-top: 1px solid rgba(255, 255, 255, 0.95);
  border-radius: 28px;
  padding: 2.75rem;
  box-shadow: var(--shadow-subtle);
}

.card-title {
  font-size: clamp(1.85rem, 3.2vw, 2.5rem);
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.035em;
  color: var(--text-headline);
  margin-bottom: 0.85rem;
}

.card-description {
  font-size: 0.95rem;
  color: var(--text-secondary);
  line-height: 1.65;
  margin-bottom: 1.75rem;
}

.metric-row {
  display: flex;
  gap: 2.5rem;
  padding-top: 1.25rem;
  border-top: 1px solid rgba(0, 0, 0, 0.05);
}

.metric-box {
  display: flex;
  flex-direction: column;
}

.metric-num {
  font-size: 1.85rem;
  font-weight: 700;
  letter-spacing: -0.03em;
  color: var(--text-primary);
}

.metric-label {
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  letter-spacing: 0.05em;
  color: var(--text-secondary);
  text-transform: uppercase;
}

/* ==========================================================================
   FLOWING CONTENT SECTIONS (BENTO ARCHIVE & ESSAYS)
   ========================================================================== */

.flowing-content {
  position: relative;
  z-index: 20;
  width: 100%;
}

.flowing-section {
  width: 100%;
  max-width: 1240px;
  margin: 0 auto;
  padding: 10rem 2rem 6rem;
}

.bento-header {
  text-align: center;
  max-width: 720px;
  margin: 0 auto 4rem;
}

.bento-grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 1.5rem;
  width: 100%;
  perspective: 1000px;
}

/* Interactive 3D Tilt Bento Cards */
.bento-card {
  position: relative;
  background: var(--bg-card);
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
  border: var(--glass-border);
  border-top: 1px solid rgba(255, 255, 255, 0.95);
  border-radius: 28px;
  padding: 2.75rem;
  box-shadow: var(--shadow-subtle);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  overflow: hidden;
  transform-style: preserve-3d;
  transition: transform 0.15s ease-out, background var(--duration-normal) var(--ease-apple), box-shadow var(--duration-normal) var(--ease-apple);
}

.bento-card:hover {
  background: var(--bg-card-hover);
  box-shadow: 0 24px 56px -12px rgba(0, 0, 0, 0.07);
}

/* Specular Sheen Reflection Overlay */
.card-sheen {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  background: radial-gradient(circle at var(--mouse-x, 50%) var(--mouse-y, 50%), rgba(255, 255, 255, 0.4) 0%, transparent 60%);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.bento-card:hover .card-sheen {
  opacity: 1;
}

.bento-card.col-8 { grid-column: span 8; }
.bento-card.col-4 { grid-column: span 4; }
.bento-card.col-6 { grid-column: span 6; }
.bento-card.col-12 { grid-column: span 12; }

.bento-hero-stat {
  font-size: clamp(3rem, 5vw, 4.5rem);
  font-weight: 700;
  letter-spacing: -0.04em;
  line-height: 1;
  color: var(--accent-orange);
  margin: 1.2rem 0;
}

.bento-card-title {
  font-size: 1.45rem;
  font-weight: 600;
  letter-spacing: -0.025em;
  color: var(--text-primary);
  margin-bottom: 0.6rem;
}

.bento-card-desc {
  font-size: 0.9375rem;
  color: var(--text-secondary);
  line-height: 1.6;
}

/* Interactive Sculpture Lab Dock */
.studio-section {
  text-align: center;
}

.studio-dock {
  width: 100%;
  max-width: 860px;
  margin: 2.5rem auto 0;
  background: var(--bg-card);
  backdrop-filter: var(--glass-blur);
  border: var(--glass-border);
  border-top: 1px solid rgba(255, 255, 255, 0.95);
  border-radius: 28px;
  padding: 2.25rem;
  box-shadow: var(--shadow-subtle);
  display: flex;
  justify-content: space-around;
  align-items: center;
  flex-wrap: wrap;
  gap: 2rem;
}

.dock-item {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
  align-items: center;
}

.dock-title {
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  font-weight: 600;
  color: var(--text-secondary);
  text-transform: uppercase;
  letter-spacing: 0.12em;
}

.apple-slider {
  -webkit-appearance: none;
  appearance: none;
  width: 190px;
  height: 5px;
  background: rgba(0, 0, 0, 0.08);
  border-radius: 980px;
  outline: none;
}

.apple-slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--accent-orange);
  box-shadow: 0 2px 10px rgba(255, 85, 0, 0.4);
  cursor: pointer;
  transition: transform var(--duration-fast) var(--ease-apple);
}

.apple-slider::-webkit-slider-thumb:hover {
  transform: scale(1.2);
}

/* Site Footer */
.apple-footer {
  position: relative;
  z-index: 20;
  padding: 3.5rem 2rem;
  background: var(--bg-canvas);
  border-top: 1px solid rgba(0, 0, 0, 0.05);
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.04em;
  color: var(--text-secondary);
  max-width: 1100px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1.5rem;
}

.footer-nav {
  display: flex;
  gap: 1.75rem;
}

.footer-nav a {
  color: var(--text-secondary);
  text-decoration: none;
  transition: color var(--duration-fast);
}

.footer-nav a:hover {
  color: var(--text-primary);
}

/* Responsive Breakpoints */
@media (max-width: 960px) {
  .apple-nav {
    width: calc(100% - 2rem);
    padding: 0.5rem 1.2rem;
  }

  .nav-links {
    display: none;
  }

  .bento-card.col-8,
  .bento-card.col-4,
  .bento-card.col-6 {
    grid-column: span 12;
  }

  #panel-torus,
  #panel-blob,
  #panel-corner {
    left: 1.5rem;
    right: 1.5rem;
    max-width: 100%;
    text-align: center;
  }

  .studio-dock {
    flex-direction: column;
    gap: 1.75rem;
  }
}
