/*
Theme Name: NEXA Flagship
Theme URI: https://nexa.design
Author: Antigravity Luxury Digital Agency
Author URI: https://antigravity.ai
Description: Custom WordPress block theme designed for the digital flagship experience of NEXA. Clean, minimal, architectural layout with native scroll-driven animations and custom Gutenberg patterns.
Version: 1.0.0
Requires at least: 6.2
Tested up to: 6.5
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: nexa-flagship
Tags: block-theme, full-site-editing, custom-colors, custom-spacing, dark, two-columns, translation-ready

This theme is built using the Full Site Editing (FSE) block standards.
All layouts are configured via theme.json and represented as reusable block patterns.
*/
@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@200;300;400;500;600&family=Plus+Jakarta+Sans:wght@200;300;400;500;600&display=swap');

/* ==========================================================================
   NEXA DESIGN SYSTEM & GLOBAL SETTINGS
   ========================================================================== */
:root {
  --color-bg: #0f0f10;
  --color-text-primary: #f5f5f7;
  --color-text-secondary: #86868b;
  --color-accent-titanium: #d2d2d7;
  --color-accent-blue: #0066cc;
  --color-border: rgba(255, 255, 255, 0.08);
  
  --font-display: 'Outfit', sans-serif;
  --font-body: 'Plus Jakarta Sans', sans-serif;
  
  --spacing-unit: 8px;
  --container-max-width: 1400px;
  --container-narrow-width: 800px;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html, body {
  background-color: var(--color-bg);
  color: var(--color-text-primary);
  font-family: var(--font-body);
  font-weight: 300;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
  scroll-behavior: smooth;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
  width: 6px;
  height: 6px;
}
::-webkit-scrollbar-track {
  background: var(--color-bg);
}
::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.15);
  border-radius: 3px;
}
::-webkit-scrollbar-thumb:hover {
  background: rgba(255, 255, 255, 0.3);
}

/* Typography Utility */
h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 200;
  letter-spacing: -0.02em;
  line-height: 1.1;
}

p {
  color: var(--color-text-secondary);
  font-size: 1.05rem;
  letter-spacing: -0.01em;
}

a {
  color: var(--color-text-primary);
  text-decoration: none;
  transition: color 0.4s ease;
}

/* Layout Helper */
.section-wrapper {
  padding: 180px 40px;
  position: relative;
  width: 100%;
}

.container {
  max-width: var(--container-max-width);
  margin: 0 auto;
}

.container-narrow {
  max-width: var(--container-narrow-width);
  margin: 0 auto;
}

/* ==========================================================================
   NAVIGATION
   ========================================================================== */
.nexa-header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 72px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 48px;
  z-index: 1000;
  background: rgba(15, 15, 16, 0.7);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--color-border);
}

.nexa-logo {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: 1.3rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--color-text-primary);
}

.nexa-nav-list {
  display: flex;
  list-style: none;
  gap: 32px;
}

.nexa-nav-item a {
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--color-text-secondary);
  font-weight: 400;
}

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

.nexa-nav-action a {
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  border: 1px solid rgba(255, 255, 255, 0.2);
  padding: 8px 18px;
  border-radius: 20px;
  transition: all 0.3s ease;
}

.nexa-nav-action a:hover {
  border-color: var(--color-text-primary);
  background: var(--color-text-primary);
  color: var(--color-bg);
}

/* ==========================================================================
   1. CINEMATIC HERO
   ========================================================================== */
.nexa-hero {
  height: 100vh;
  width: 100%;
  position: relative;
  overflow: hidden;
  padding: 0;
  background: #0c0c0d;
  display: flex;
  flex-direction: row;
}

.hero-slider {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}

.hero-slide {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
  pointer-events: none;
  display: flex;
  flex-direction: row;
  background: #0c0c0d;
  opacity: 0;
  will-change: opacity;
  transition: opacity 1.4s cubic-bezier(0.25, 1, 0.5, 1);
}

.hero-slide.active {
  z-index: 2;
  pointer-events: auto;
  opacity: 1;
}

.hero-video-wrapper {
  position: relative;
  width: 50%;
  height: 100%;
  z-index: 1;
  overflow: hidden;
  order: 2; /* Image on the right */
}

.hero-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transform: scale(1.08) translate3d(0, 0, 0);
  will-change: transform, opacity;
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
  transition: transform 6.5s cubic-bezier(0.16, 1, 0.3, 1), opacity 1.5s cubic-bezier(0.25, 1, 0.5, 1);
}

/* Make image visible on active slide and static product pages */
.hero-slide.active .hero-image,
.nexa-hero > .hero-video-wrapper .hero-image {
  opacity: 0.9;
  transform: scale(1) translate3d(0, 0, 0);
}

.hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, rgba(12,12,13,1) 0%, rgba(12,12,13,0.3) 30%, rgba(12,12,13,0) 100%);
  z-index: 2;
}

/* Editorial Content Area */
.hero-slide-grid {
  position: relative;
  width: 50%;
  height: 100%;
  z-index: 3;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
  padding: 80px 120px;
  box-sizing: border-box;
  background: #0c0c0d;
  pointer-events: none;
  order: 1; /* Text on the left */
}

/* Dynamic Slide Counter (Homepage Only) */
.slide-layout-1 .hero-slide-grid::before { content: "01  /  05"; }
.slide-layout-2 .hero-slide-grid::before { content: "02  /  05"; }
.slide-layout-3 .hero-slide-grid::before { content: "03  /  05"; }
.slide-layout-4 .hero-slide-grid::before { content: "04  /  05"; }
.slide-layout-5 .hero-slide-grid::before { content: "05  /  05"; }

.hero-slide-grid::before {
  display: block;
  font-family: var(--font-mono, monospace);
  font-size: 0.85rem;
  font-weight: 400;
  letter-spacing: 0.2em;
  color: var(--color-text-secondary);
  opacity: 0.5;
  margin-bottom: 32px;
  text-transform: uppercase;
}

/* Stacker Layout Cells */
.grid-cell {
  display: flex;
  flex-direction: column;
  justify-content: center;
  opacity: 0;
  transform: translate3d(0, 30px, 0);
  will-change: transform, opacity;
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
  transition: opacity 1.5s cubic-bezier(0.16, 1, 0.3, 1), transform 1.5s cubic-bezier(0.16, 1, 0.3, 1);
  margin-bottom: 24px;
}

.grid-cell.detail-cell {
  margin-bottom: 0;
}

/* Trigger animation states on active slide / static hero pages */
.hero-slide.active .grid-cell.title-cell,
.nexa-hero > .hero-slide-grid .grid-cell.title-cell {
  opacity: 1;
  transform: translate3d(0, 0, 0);
  transition-delay: 0.15s;
}

.hero-slide.active .grid-cell.detail-cell,
.nexa-hero > .hero-slide-grid .grid-cell.detail-cell {
  opacity: 1;
  transform: translate3d(0, 0, 0);
  transition-delay: 0.35s;
}

/* Add custom action arrow indicator inside detail-cell */
.hero-slide-grid::after {
  content: "Explore Build  \2192";
  display: inline-block;
  margin-top: 40px;
  font-size: 0.85rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--color-text-primary);
  border-bottom: 1px solid rgba(255, 255, 255, 0.25);
  padding-bottom: 6px;
  transition: all 0.3s ease;
  pointer-events: auto;
  cursor: pointer;
}
.hero-slide-grid:hover::after {
  border-color: var(--color-text-primary);
  letter-spacing: 0.18em;
}

/* Skip layout grid classes coordinates as we transitioned to split-screen flow */

/* Uniform slide entry coordinates */
.title-cell {
  transform: translate3d(0, 30px, 0);
}
.detail-cell {
  transform: translate3d(0, 30px, 0);
}

.hero-title {
  font-size: clamp(3rem, 7vw, 6.5rem);
  line-height: 0.95;
  margin-bottom: 12px;
  letter-spacing: -0.03em;
  text-transform: uppercase;
}

.hero-tagline {
  font-size: clamp(1rem, 2vw, 1.25rem);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--color-text-secondary);
}

.hero-mini-desc {
  font-size: 0.8rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--color-text-secondary);
  margin-top: 8px;
}

/* ==========================================================================
   2. EDITORIAL INTRODUCTION
   ========================================================================== */
.nexa-intro {
  background: var(--color-bg);
  text-align: center;
}

.intro-text {
  font-size: clamp(1.4rem, 3.2vw, 2.4rem);
  font-family: var(--font-display);
  font-weight: 200;
  line-height: 1.4;
  color: var(--color-text-primary);
  letter-spacing: -0.01em;
}

.intro-subtext {
  margin-top: 48px;
  max-width: 500px;
  margin-left: auto;
  margin-right: auto;
  font-size: 1.05rem;
  line-height: 1.7;
}

/* ==========================================================================
   3. PRODUCT ECOSYSTEM
   ========================================================================== */
.nexa-ecosystem {
  background: #151517;
  border-top: 1px solid var(--color-border);
  border-bottom: 1px solid var(--color-border);
}

.ecosystem-header {
  margin-bottom: 80px;
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
}

.ecosystem-title {
  font-size: 2.8rem;
}

.ecosystem-desc {
  max-width: 420px;
}

.ecosystem-grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 32px;
}

.ecosystem-card {
  background: #0f0f10;
  border: 1px solid var(--color-border);
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  height: 520px;
  padding: 40px;
  transition: border-color 0.4s ease, transform 0.4s ease;
}

.ecosystem-card:hover {
  border-color: rgba(255,255,255,0.2);
  transform: translateY(-4px);
}

.ecosystem-card.large {
  grid-column: span 7;
}

.ecosystem-card.medium {
  grid-column: span 5;
}

.ecosystem-card.small {
  grid-column: span 4;
}

.ecosystem-card.wide {
  grid-column: span 8;
}

.ecosystem-card-meta {
  z-index: 2;
}

.ecosystem-card-tag {
  font-size: 0.75rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--color-text-secondary);
  margin-bottom: 8px;
}

.ecosystem-card-title {
  font-size: 2rem;
  margin-bottom: 8px;
}

.ecosystem-card-price {
  font-size: 0.95rem;
  color: var(--color-text-secondary);
}

.ecosystem-card-img-wrapper {
  position: absolute;
  bottom: 0;
  right: 0;
  width: 100%;
  height: 70%;
  display: flex;
  justify-content: center;
  align-items: flex-end;
  pointer-events: none;
  z-index: 1;
}

.ecosystem-card-img {
  max-height: 90%;
  max-width: 90%;
  object-fit: contain;
  transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.ecosystem-card:hover .ecosystem-card-img {
  transform: scale(1.05);
}

.ecosystem-card-action {
  z-index: 2;
  align-self: flex-start;
  font-size: 0.8rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  border-bottom: 1px dashed rgba(255,255,255,0.3);
  padding-bottom: 2px;
  color: var(--color-text-primary);
  opacity: 0;
  transform: translateY(10px);
  transition: opacity 0.4s ease, transform 0.4s ease;
}

.ecosystem-card:hover .ecosystem-card-action {
  opacity: 1;
  transform: translateY(0);
}

/* ==========================================================================
   4. INDIVIDUAL PRODUCT STORIES (Asymmetric Editorial Spreads)
   ========================================================================== */
.product-story {
  border-bottom: 1px solid var(--color-border);
  overflow: hidden;
  padding: 0;
}

/* Layout A: Asymmetric Split Screen (NEXA ONE) */
.story-layout-a {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  min-height: 100vh;
}

.story-a-visual {
  background: #131315;
  display: flex;
  justify-content: center;
  align-items: center;
  position: relative;
  padding: 80px;
  border-right: 1px solid var(--color-border);
}

.story-a-visual img {
  max-width: 80%;
  max-height: 75vh;
  object-fit: contain;
}

.story-a-content {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 10% 12%;
  background: var(--color-bg);
}

/* Layout B: Magazine Landscape Spread (NEXA AIR) */
.story-layout-b {
  background: var(--color-bg);
}

.story-b-hero-wrapper {
  height: 75vh;
  width: 100%;
  position: relative;
  overflow: hidden;
  border-bottom: 1px solid var(--color-border);
}

.story-b-hero-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.story-b-grid {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 80px;
  padding: 120px 8% 180px 8%;
}

.story-b-title-section {
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
}

.story-b-detail-section {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
}

/* Layout C: Cinematic Dynamic Frame (NEXA FLOW) */
.story-layout-c {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  background: #111112;
  position: relative;
}

.story-c-header {
  padding: 100px 8% 40px 8%;
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 60px;
  z-index: 2;
}

.story-c-media-box {
  width: 84%;
  margin: 0 auto 100px auto;
  height: 60vh;
  position: relative;
  overflow: hidden;
  border: 1px solid var(--color-border);
  z-index: 2;
}

.story-c-video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.9;
}

/* Layout D: Raw Organic Contrast (NEXA CHARGE) */
.story-layout-d {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  min-height: 100vh;
}

.story-d-content {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 10% 12%;
  background: var(--color-bg);
  border-right: 1px solid var(--color-border);
}

.story-d-visual {
  background: #121213;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 80px;
}

.story-d-visual img {
  max-width: 85%;
  max-height: 70vh;
  object-fit: contain;
}

/* Layout E: Architectural Blueprint (NEXA CORE) */
.story-layout-e {
  background: #0d0d0e;
  padding: 140px 8%;
}

.story-e-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 80px;
  align-items: center;
}

.story-e-visual {
  border: 1px solid var(--color-border);
  background: rgba(255,255,255,0.01);
  padding: 60px;
  display: flex;
  justify-content: center;
  align-items: center;
}

.story-e-visual img {
  max-width: 90%;
  max-height: 55vh;
  object-fit: contain;
}

/* Editorial Common Elements */
.story-tag {
  font-size: 0.8rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--color-text-secondary);
  margin-bottom: 16px;
  display: block;
}

.story-title {
  font-size: clamp(2.5rem, 4.5vw, 4.2rem);
  line-height: 1;
  margin-bottom: 32px;
}

.story-para {
  font-size: 1.1rem;
  line-height: 1.7;
  margin-bottom: 40px;
  max-width: 540px;
}

.story-specs {
  border-top: 1px solid var(--color-border);
  padding-top: 32px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}

.spec-item-val {
  font-family: var(--font-display);
  font-size: 1.8rem;
  font-weight: 200;
}

.spec-item-lbl {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--color-text-secondary);
  margin-top: 4px;
}

/* ==========================================================================
   5. MATERIALS & CRAFTSMANSHIP
   ========================================================================== */
.nexa-materials {
  background: var(--color-bg);
  border-bottom: 1px solid var(--color-border);
}

.materials-title {
  font-size: clamp(2.2rem, 4.5vw, 3.8rem);
  text-align: center;
  margin-bottom: 80px;
}

.materials-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px;
}

.material-card {
  position: relative;
}

.material-img-box {
  width: 100%;
  height: 480px;
  overflow: hidden;
  border: 1px solid var(--color-border);
  margin-bottom: 24px;
}

.material-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s ease;
}

.material-card:hover .material-img {
  transform: scale(1.04);
}

.material-name {
  font-size: 1.4rem;
  margin-bottom: 8px;
}

.material-desc {
  font-size: 0.95rem;
  line-height: 1.6;
}

/* ==========================================================================
   6. TECHNOLOGY INTERACTIVE SHOWCASE
   ========================================================================== */
.nexa-technology {
  background: #111112;
  border-bottom: 1px solid var(--color-border);
}

.tech-container {
  display: grid;
  grid-template-columns: 0.8fr 1.2fr;
  gap: 80px;
}

.tech-nav {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 24px;
}

.tech-nav-btn {
  background: none;
  border: none;
  text-align: left;
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 2.5vw, 2.4rem);
  font-weight: 200;
  color: var(--color-text-secondary);
  cursor: pointer;
  padding: 8px 0;
  border-left: 2px solid transparent;
  padding-left: 24px;
  transition: all 0.4s ease;
}

.tech-nav-btn:hover {
  color: var(--color-text-primary);
  padding-left: 32px;
}

.tech-nav-btn.active {
  color: var(--color-text-primary);
  border-left-color: var(--color-accent-blue);
  padding-left: 32px;
}

.tech-display {
  display: flex;
  flex-direction: column;
  justify-content: center;
  border: 1px solid var(--color-border);
  background: var(--color-bg);
  min-height: 520px;
  padding: 60px;
  position: relative;
}

.tech-pane {
  display: none;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
}

.tech-pane.active {
  display: grid;
  animation: fadeIn 0.8s ease forwards;
}

.tech-pane-visual {
  display: flex;
  justify-content: center;
  align-items: center;
}

.tech-pane-visual img {
  max-width: 100%;
  max-height: 380px;
  object-fit: contain;
}

.tech-pane-content {
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.tech-pane-tag {
  font-size: 0.75rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--color-text-secondary);
  margin-bottom: 12px;
}

.tech-pane-title {
  font-size: 1.8rem;
  margin-bottom: 16px;
}

.tech-pane-desc {
  font-size: 0.95rem;
  line-height: 1.7;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

/* ==========================================================================
   7. PRODUCT COMPARISON MATRIX
   ========================================================================== */
.nexa-comparison {
  background: var(--color-bg);
  border-bottom: 1px solid var(--color-border);
}

.comparison-title {
  font-size: 2.8rem;
  text-align: center;
  margin-bottom: 80px;
}

.comparison-table-wrapper {
  overflow-x: auto;
}

.comparison-table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
  min-width: 900px;
}

.comparison-table th, 
.comparison-table td {
  padding: 24px 32px;
  border-bottom: 1px solid var(--color-border);
  font-size: 0.95rem;
}

.comparison-table th {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: 1.1rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--color-text-primary);
}

.comparison-table th:first-child,
.comparison-table td:first-child {
  padding-left: 0;
  font-weight: 400;
  color: var(--color-text-secondary);
  width: 250px;
}

.comparison-table tr:hover td {
  background: rgba(255, 255, 255, 0.01);
}

/* ==========================================================================
   8. FINAL CTA & FOOTER
   ========================================================================== */
.nexa-cta {
  background: #0a0a0b;
  text-align: center;
  padding: 220px 40px;
}

.cta-title {
  font-size: clamp(2.5rem, 5vw, 4.8rem);
  margin-bottom: 32px;
  text-transform: uppercase;
}

.cta-button {
  display: inline-block;
  font-family: var(--font-display);
  font-size: 0.95rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--color-text-primary);
  border: 1px solid var(--color-text-primary);
  padding: 16px 48px;
  border-radius: 40px;
  transition: all 0.4s ease;
  cursor: pointer;
}

.cta-button:hover {
  background: var(--color-text-primary);
  color: var(--color-bg);
  transform: scale(1.02);
}

.nexa-footer {
  background: #070708;
  padding: 80px 48px;
  border-top: 1px solid var(--color-border);
}

.footer-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 80px;
}

.footer-brand {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: 1.3rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
}

.footer-links-grid {
  display: flex;
  gap: 120px;
}

.footer-column-title {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--color-text-secondary);
  margin-bottom: 24px;
}

.footer-column-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.footer-column-list a {
  font-size: 0.85rem;
  color: var(--color-text-secondary);
}

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

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 40px;
  border-top: 1px solid rgba(255, 255, 255, 0.03);
}

.footer-copy {
  font-size: 0.8rem;
  color: var(--color-text-secondary);
}

.footer-legal {
  display: flex;
  gap: 24px;
  list-style: none;
}

.footer-legal a {
  font-size: 0.8rem;
  color: var(--color-text-secondary);
}

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

/* ==========================================================================
   SCROLL-DRIVEN ANIMATIONS (PROGRESSIVE ENHANCEMENT)
   ========================================================================== */
@supports ((animation-timeline: scroll()) and (animation-range: 0% 100%)) {
  /* Setup global timeline scopes */
  html {
    timeline-scope: --reveal-intro, --reveal-eco, --reveal-s1, --reveal-s2, --reveal-s3, --reveal-s4, --reveal-s5;
  }
  
  /* Link sections to their view-timelines */
  .nexa-intro { view-timeline: --reveal-intro block; }
  .nexa-ecosystem { view-timeline: --reveal-eco block; }
  #story-one { view-timeline: --reveal-s1 block; }
  #story-two { view-timeline: --reveal-s2 block; }
  #story-three { view-timeline: --reveal-s3 block; }
  #story-four { view-timeline: --reveal-s4 block; }
  #story-five { view-timeline: --reveal-s5 block; }
  
  /* Keyframes for slow, heavy luxury reveals */
  @keyframes revealFadeUp {
    from { opacity: 0; transform: translateY(80px); }
    to { opacity: 1; transform: translateY(0); }
  }
  
  @keyframes revealZoomIn {
    from { opacity: 0.3; transform: scale(0.9); }
    to { opacity: 1; transform: scale(1); }
  }

  @keyframes revealFadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
  }

  /* Assign timelines and ranges */
  .intro-text {
    animation: revealFadeUp auto linear both;
    animation-timeline: --reveal-intro;
    animation-range: entry 10% cover 40%;
  }

  .ecosystem-card {
    animation: revealFadeUp auto linear both;
    animation-timeline: --reveal-eco;
  }
  .ecosystem-card:nth-child(1) { animation-range: entry 5% cover 30%; }
  .ecosystem-card:nth-child(2) { animation-range: entry 10% cover 35%; }
  .ecosystem-card:nth-child(3) { animation-range: entry 15% cover 40%; }
  .ecosystem-card:nth-child(4) { animation-range: entry 20% cover 45%; }
  .ecosystem-card:nth-child(5) { animation-range: entry 25% cover 50%; }

  /* Product Story A Animations */
  .story-a-visual img {
    animation: revealZoomIn auto linear both;
    animation-timeline: --reveal-s1;
    animation-range: entry 10% cover 50%;
  }
  .story-a-content {
    animation: revealFadeUp auto linear both;
    animation-timeline: --reveal-s1;
    animation-range: entry 15% cover 45%;
  }

  /* Product Story B Animations */
  .story-b-hero-img {
    animation: revealZoomIn auto linear both;
    animation-timeline: --reveal-s2;
    animation-range: entry 0% cover 40%;
  }
  .story-b-grid {
    animation: revealFadeUp auto linear both;
    animation-timeline: --reveal-s2;
    animation-range: entry 25% cover 55%;
  }

  /* Product Story C Animations */
  .story-c-media-box {
    animation: revealZoomIn auto linear both;
    animation-timeline: --reveal-s3;
    animation-range: entry 10% cover 50%;
  }

  /* Product Story D Animations */
  .story-d-visual img {
    animation: revealZoomIn auto linear both;
    animation-timeline: --reveal-s4;
    animation-range: entry 10% cover 50%;
  }

  /* Product Story E Animations */
  .story-e-visual img {
    animation: revealZoomIn auto linear both;
    animation-timeline: --reveal-s5;
    animation-range: entry 10% cover 50%;
  }
}

/* Reduced Motion Safety */
@media (prefers-reduced-motion: reduce) {
  * {
    animation-delay: 0s !important;
    animation-duration: 0s !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0s !important;
    scroll-behavior: auto !important;
  }
  .intro-text, .ecosystem-card, .story-a-visual img, .story-a-content,
  .story-b-hero-img, .story-b-grid, .story-c-media-box, .story-d-visual img, 
  .story-e-visual img {
    animation: none !important;
    opacity: 1 !important;
    transform: none !important;
  }
}

/* ==========================================================================
   RESPONSIVE DESIGN (BREAKING GRIDS GRACEFULLY)
   ========================================================================== */
@media (max-width: 1200px) {
  .ecosystem-grid {
    gap: 24px;
  }
  .ecosystem-card.large,
  .ecosystem-card.medium,
  .ecosystem-card.small,
  .ecosystem-card.wide {
    grid-column: span 6;
  }
  .story-e-grid, .tech-container {
    grid-template-columns: 1fr;
    gap: 60px;
  }
}

/* Mobile Navigation Elements */
.nexa-header-actions {
  display: flex;
  align-items: center;
  gap: 24px;
}

.nexa-nav-inquire {
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  border: 1px solid rgba(255, 255, 255, 0.2);
  padding: 8px 18px;
  border-radius: 20px;
  transition: all 0.3s ease;
}
.nexa-nav-inquire:hover {
  border-color: var(--color-text-primary);
  background: var(--color-text-primary);
  color: var(--color-bg);
}

.menu-toggle-btn {
  display: none;
  background: none;
  border: none;
  flex-direction: column;
  justify-content: space-between;
  width: 24px;
  height: 10px;
  cursor: pointer;
  padding: 0;
  z-index: 1001;
}

.menu-toggle-btn span {
  width: 100%;
  height: 1px;
  background-color: var(--color-text-primary);
  transition: transform 0.4s ease;
}

/* Fullscreen Menu Overlay */
.mobile-menu-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: var(--color-bg);
  z-index: 9999;
  display: flex;
  justify-content: center;
  align-items: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.mobile-menu-overlay.active {
  opacity: 1;
  pointer-events: auto;
}

.menu-close-btn {
  position: absolute;
  top: 24px;
  right: 36px;
  background: none;
  border: none;
  font-size: 3rem;
  font-weight: 200;
  color: var(--color-text-secondary);
  cursor: pointer;
  line-height: 1;
}
.menu-close-btn:hover {
  color: var(--color-text-primary);
}

.mobile-menu-list {
  list-style: none;
  text-align: center;
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.mobile-menu-list a {
  font-family: var(--font-display);
  font-size: 2.2rem;
  font-weight: 200;
  color: var(--color-text-secondary);
  letter-spacing: -0.01em;
  transition: color 0.4s ease;
}
.mobile-menu-list a:hover,
.mobile-menu-list a.active {
  color: var(--color-text-primary);
}

@media (max-width: 900px) {
  .section-wrapper {
    padding: 100px 24px;
  }
  .nexa-header {
    padding: 0 24px;
  }
  .nexa-nav {
    display: none;
  }
  .menu-toggle-btn {
    display: flex;
  }
  
  /* WordPress Admin Bar Integration */
  .admin-bar .nexa-header {
    top: 32px;
  }
  .admin-bar .mobile-menu-overlay {
    top: 32px;
    height: calc(100% - 32px);
  }
  
  /* Hero Slide Mobile Scaling & Editorial Stacking */
  .nexa-hero,
  .hero-slide {
    flex-direction: column !important;
  }
  .hero-video-wrapper {
    position: relative !important;
    width: 100% !important;
    height: 45vh !important;
    order: 1 !important;
  }
  .hero-overlay {
    background: linear-gradient(to bottom, rgba(12,12,13,0) 60%, rgba(12,12,13,1) 100%) !important;
  }
  .hero-slide-grid {
    position: relative !important;
    width: 100% !important;
    height: 55vh !important;
    padding: 32px 24px !important;
    display: flex !important;
    flex-direction: column !important;
    justify-content: center !important;
    align-items: flex-start !important;
    background: #0c0c0d !important;
    order: 2 !important;
  }
  .grid-cell {
    opacity: 1 !important;
    transform: translate3d(0, 0, 0) !important;
    align-items: flex-start !important;
    text-align: left !important;
    margin-bottom: 16px !important;
  }
  .grid-cell.detail-cell {
    margin-bottom: 0 !important;
  }
  .hero-title {
    font-size: clamp(2.2rem, 7vw, 3.2rem) !important;
    line-height: 1.05;
    margin-bottom: 6px;
  }
  .hero-tagline {
    font-size: 1rem !important;
    line-height: 1.2;
  }
  .hero-mini-desc {
    font-size: 0.85rem !important;
  }
  .hero-slide-grid::before {
    margin-bottom: 20px !important;
  }
  .hero-slide-grid::after {
    margin-top: 24px !important;
  }

  @media (max-width: 782px) {
    .admin-bar .nexa-header {
      top: 46px;
    }
    .admin-bar .mobile-menu-overlay {
      top: 46px;
      height: calc(100% - 46px);
    }
  }

  .ecosystem-card.large,
  .ecosystem-card.medium,
  .ecosystem-card.small,
  .ecosystem-card.wide {
    grid-column: span 12;
    height: 460px;
  }
  .story-layout-a, .story-layout-d {
    grid-template-columns: 1fr;
  }
  .story-a-visual, .story-d-visual {
    border-right: none;
    border-bottom: 1px solid var(--color-border);
    padding: 40px;
  }
  .story-b-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }
  .story-b-detail-section {
    grid-template-columns: 1fr;
  }
  .story-c-header {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  .materials-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }
  .tech-display {
    padding: 30px;
  }
  .tech-pane {
    grid-template-columns: 1fr;
    gap: 24px;
  }
  .footer-top {
    flex-direction: column;
    gap: 48px;
  }
  .footer-links-grid {
    flex-wrap: wrap;
    gap: 48px;
  }
  .footer-bottom {
    flex-direction: column;
    gap: 24px;
    align-items: flex-start;
  }
}

/* ==========================================================================
   STUDIO INQUIRY FORM STYLES
   ========================================================================== */
.nexa-inquiry-form {
  max-width: 680px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 36px;
}

.inquiry-form-group {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.inquiry-label {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--color-text-secondary);
}

.inquiry-input,
.inquiry-textarea {
  width: 100%;
  background: transparent;
  border: none;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
  color: var(--color-text-primary);
  padding: 12px 0;
  font-size: 1.05rem;
  font-family: inherit;
  border-radius: 0;
  transition: border-color 0.4s ease;
}

.inquiry-input:focus,
.inquiry-textarea:focus {
  outline: none;
  border-bottom-color: var(--color-text-primary);
}

/* Custom Product Selector Checkboxes */
.inquiry-product-selector {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 12px;
  margin-top: 8px;
}

.product-select-card {
  position: relative;
  cursor: pointer;
  display: block;
}

.product-select-card input[type="checkbox"] {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  cursor: pointer;
  z-index: 10;
  margin: 0;
}

.select-card-inner {
  border: 1px solid rgba(255, 255, 255, 0.08);
  padding: 20px;
  background: rgba(255, 255, 255, 0.02);
  transition: all 0.3s cubic-bezier(0.25, 1, 0.5, 1);
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.product-select-card input[type="checkbox"]:checked + .select-card-inner {
  border-color: var(--color-text-primary);
  background: rgba(255, 255, 255, 0.08);
}

.select-title {
  font-size: 0.85rem;
  font-weight: 400;
  letter-spacing: 0.05em;
  color: var(--color-text-primary);
}

.select-price {
  font-size: 0.8rem;
  color: var(--color-text-secondary);
}

@media (max-width: 600px) {
  .inquiry-product-selector {
    grid-template-columns: 1fr;
  }
}


