/*
Theme Name: Octova
Theme URI: https://octova.mx
Author: OCTOVA Estudio de Arquitectura
Author URI: https://octova.mx
Description: Tema personalizado para OCTOVA – Estudio de Arquitectura. Diseño contemporáneo con soporte para modo oscuro, glassmorphism, lightbox, y sistema de proyectos.
Version: 1.0.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: octova
Tags: architecture, custom-logo, dark-mode, portfolio
*/
:root {
  --primary: #32392f;
  --primary-light: #3D5039;
  --primary-dark: #1F2B1E;
  --secondary: #D4C4A8;
  --secondary-light: #E2D6C0;
  --secondary-dark: #BCA884;
  --bg: #FAF8F5;
  --bg-alt: #F3EFE9;
  --text: #878a86;
  --text-muted: #a8aaa7;
  --accent: #32392f;
  --accent-light: #4a5345;
  --border: #E0DCD6;
  --white: #FFFFFF;

  --font-sans: 'Inter', -apple-system, sans-serif;
  --font-serif: 'Figtree', -apple-system, sans-serif;

  --pad-x: 105px;
}

/* ═══ DARK MODE ═══ */
[data-theme="dark"] {
  --primary: #FAF8F5;
  --primary-light: #E2D6C0;
  --primary-dark: #D4C4A8;
  --secondary: #3D5039;
  --secondary-light: #32392f;
  --secondary-dark: #1F2B1E;
  --bg: #32392f;
  --bg-alt: #263226;
  --text: #FAF8F5;
  --text-muted: #B8C4B0;
  --accent: #32392f;
  --accent-light: #4a5345;
  --border: #3D5039;
  --white: #32392f;
}

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

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
}

body {
  font-family: var(--font-sans);
  font-size: 15px;
  font-weight: 400;
  line-height: 1.6;
  color: var(--text);
  background: var(--bg);
  transition: background 0.4s ease, color 0.4s ease;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
  /* Image protection: prevent drag-to-download */
  -webkit-user-drag: none;
  user-select: none;
  -webkit-user-select: none;
}

a {
  text-decoration: none;
  color: inherit;
  transition: opacity 0.3s;
}

a:hover {
  opacity: 0.7;
}

ul {
  list-style: none;
}

/* Theme Toggle */
.theme-toggle {
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
  transition: color 0.3s, transform 0.3s;
  font-size: 16px;
  line-height: 1;
  opacity: 0.6;
  margin-left: 12px;
  vertical-align: middle;
}

.theme-toggle:hover {
  opacity: 1;
  transform: scale(1.15);
}

.theme-toggle .icon-sun {
  display: none;
}

.theme-toggle .icon-moon {
  display: block;
}

[data-theme="dark"] .theme-toggle .icon-sun {
  display: block;
}

[data-theme="dark"] .theme-toggle .icon-moon {
  display: none;
}

.logo-light {
  display: block;
}

.logo-dark {
  display: none !important;
}

[data-theme="dark"] .logo-light {
  display: none !important;
}

[data-theme="dark"] .logo-dark {
  display: block !important;
}

/* ═══ WordPress Admin Bar offset ═══ */
.admin-bar .nav {
  top: 32px;
}

.admin-bar .intro-overlay {
  top: 32px;
}

.admin-bar .mobile-overlay {
  top: 32px;
}

@media screen and (max-width: 782px) {
  .admin-bar .nav {
    top: 46px;
  }

  .admin-bar .intro-overlay {
    top: 46px;
  }

  .admin-bar .mobile-overlay {
    top: 46px;
  }
}

/* ═══ NAV ═══ */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 110;
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 40px;
  align-items: center;
  padding: 30px var(--pad-x);
  font-size: 14px;
  background: rgba(250, 248, 245, 0.85);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  transition: background 0.4s ease, color 0.4s ease;
}

[data-theme="dark"] .nav {
  background: rgba(50, 57, 47, 0.85);
}

.nav-right {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
}

.nav-brand {
  font-weight: 500;
  font-size: 14px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--primary);
  transition: color 0.4s ease;
}

.nav-links {
  display: flex;
  justify-content: center;
  gap: 24px;
}

.nav-links a {
  font-size: 14px;
  font-weight: 400;
  color: var(--primary);
  transition: color 0.4s ease;
  position: relative;
}

.nav-links a::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: -2px;
  width: 100%;
  height: 1px;
  background: var(--primary);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.35s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.nav-links a:hover::after {
  transform: scaleX(1);
}

.nav-links a:hover {
  opacity: 1;
}

.nav-links a.active {
  font-weight: 500;
}

.nav-links a.active::after {
  transform: scaleX(1);
}

.nav-meta {
  font-size: 14px;
  color: var(--text-muted);
  transition: color 0.4s ease;
  text-align: right;
}

/* Hamburger */
.hamburger {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
  flex-direction: column;
  gap: 5px;
  z-index: 102;
}

.hamburger span {
  width: 22px;
  height: 1.5px;
  background: var(--text);
  transition: all 300ms ease;
  transform-origin: center;
}

.hamburger.active span:nth-child(1) {
  transform: translateY(6.5px) rotate(45deg);
}

.hamburger.active span:nth-child(2) {
  opacity: 0;
}

.hamburger.active span:nth-child(3) {
  transform: translateY(-6.5px) rotate(-45deg);
}

.mobile-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 105;
  background: var(--bg);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2rem;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.4s cubic-bezier(0.4, 0, 0.2, 1),
    visibility 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.mobile-overlay.active {
  opacity: 1;
  visibility: visible;
}

.mobile-overlay a {
  font-family: var(--font-serif);
  font-size: 22px;
  color: var(--primary);
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.4s ease, transform 0.4s ease, color 0.3s ease;
}

.mobile-overlay.active a {
  opacity: 1;
  transform: translateY(0);
}

.mobile-overlay.active a:nth-child(1) {
  transition-delay: 0.08s;
}

.mobile-overlay.active a:nth-child(2) {
  transition-delay: 0.16s;
}

.mobile-overlay.active a:nth-child(3) {
  transition-delay: 0.24s;
}

.mobile-overlay.active a:nth-child(4) {
  transition-delay: 0.32s;
}

.mobile-overlay.active a:nth-child(5) {
  transition-delay: 0.40s;
}

.mobile-overlay a:hover {
  color: var(--accent);
  opacity: 1;
}

/* ═══ PAGES ═══ */
/* ═══ HERO (Index) ═══ */
.hero {
  padding: 100px var(--pad-x) 40px;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 40px;
  align-items: start;
}

.hero-heading {
  font-family: var(--font-serif);
  font-size: clamp(32px, 5vw, 56px);
  font-weight: 400;
  line-height: 1.1;
  color: var(--primary);
}

.hero-about-label {
  font-size: 13px;
  color: var(--primary);
  margin-bottom: 12px;
}

.hero-about-text {
  font-size: 14px;
  line-height: 1.7;
  color: var(--text);
  font-weight: 400;
  max-width: 360px;
  text-align: justify;
}

.hero-services-label {
  font-size: 13px;
  color: var(--primary);
  margin-bottom: 12px;
}

.hero-services-list {
  display: flex;
  flex-direction: column;
}

.hero-services-list a {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 0;
  font-size: 14px;
  color: var(--text);
  border-bottom: 1px solid var(--border);
}

.hero-services-list a:first-child {
  border-top: 1px solid var(--border);
}

.hero-services-list a::after {
  content: '↗';
  font-size: 13px;
  color: var(--text-muted);
  transition: transform 0.3s;
}

.hero-services-list a:hover {
  opacity: 1;
}

.hero-services-list a:hover::after {
  transform: translate(2px, -2px);
  color: var(--accent);
}

/* ═══ PROJECTS CAROUSEL ═══ */
.gallery-section {
  padding: 100px var(--pad-x) 40px;
  overflow: hidden;
}

.carousel-wrapper {
  position: relative;
  display: flex;
  align-items: stretch;
  gap: 0;
}

.carousel-viewport {
  overflow: hidden;
  width: 100%;
}

.carousel-track {
  display: flex;
  gap: 16px;
  transition: transform 0.6s cubic-bezier(0.4, 0, 0.15, 1);
  will-change: transform;
}

.gallery-item {
  flex: 0 0 calc((100% - 32px) / 3);
  cursor: pointer;
  position: relative;
}

.carousel-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 10;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  border: 1px solid #FFFFFF;
  background: #FFFFFF;
  color: var(--text);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.3s, color 0.3s, border-color 0.3s, opacity 0.3s;
  opacity: 0.8;
}

.carousel-arrow:hover {
  background: var(--primary);
  color: var(--bg);
  border-color: var(--primary);
  opacity: 1;
}

.carousel-arrow:disabled {
  opacity: 0.25;
  cursor: default;
  pointer-events: none;
}

[data-theme="dark"] .carousel-arrow {
  background: #32392f;
  border-color: #3D5039;
  color: #FAF8F5;
}

[data-theme="dark"] .carousel-arrow:hover {
  background: #FAF8F5;
  color: #32392f;
  border-color: #FAF8F5;
}

.carousel-arrow--left {
  left: -24px;
}

.carousel-arrow--right {
  right: -24px;
}

.gallery-item-header {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 24px 16px;
  background: rgba(50, 57, 47, 0.3);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  z-index: 2;
  opacity: 0;
  transform: translateY(8px);
  transition: opacity 0.4s ease, transform 0.4s ease;
  font-size: 14px;
  text-align: center;
  display: flex;
  align-items: center;
  justify-content: center;
}

.gallery-item:hover .gallery-item-header,
.gallery-item.touch-active .gallery-item-header {
  opacity: 1;
  transform: translateY(0);
}

.gallery-item.touch-active .gallery-item-img img {
  transform: scale(1.03);
}

.gallery-item-title {
  font-weight: 400;
  color: #fff;
}

.gallery-item-title span {
  color: rgba(255, 255, 255, 0.7);
  font-weight: 400;
}

.gallery-item-img {
  width: 100%;
  aspect-ratio: 3/4;
  background: var(--secondary-light);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  position: relative;
  border-radius: 3px;
}

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

.gallery-item:hover .gallery-item-img img {
  transform: scale(1.03);
}

.gallery-item-img .placeholder-text {
  font-size: 13px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-muted);
}

.gallery-item:hover .gallery-item-img {
  background: var(--secondary);
}


/* Carousel responsive */
@media (max-width: 900px) {
  .gallery-item {
    flex: 0 0 calc((100% - 16px) / 2);
  }
}

@media (max-width: 600px) {
  .gallery-item {
    flex: 0 0 100%;
  }

  .gallery-item-img {
    overflow: hidden;
    border-radius: 3px;
    height: 75vh;
    aspect-ratio: auto;
  }

  .gallery-item-header {
    position: absolute !important;
    bottom: 0 !important;
    left: 0 !important;
    right: 0 !important;
    top: auto !important;
    opacity: 1 !important;
    transform: none !important;
    padding: 40px 16px 16px !important;
    text-align: left !important;
    display: block !important;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.6) 0%, rgba(0, 0, 0, 0) 100%) !important;
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
    z-index: 3;
  }

  .gallery-item-header .gallery-item-title {
    color: #FAF8F5 !important;
  }

  .gallery-item-header .gallery-item-title span {
    color: #B8C4B0 !important;
  }

  .carousel-arrow {
    width: 36px;
    height: 36px;
  }

  .carousel-arrow--left {
    left: -18px;
  }

  .carousel-arrow--right {
    right: -18px;
  }

  .gallery-section {
    padding: 105px var(--pad-x) 40px;
  }
}

/* ═══ STUDIO PAGE ═══ */
.studio-hero {
  padding: 80px var(--pad-x) 0;
}

.studio-title {
  font-family: var(--font-serif);
  font-size: clamp(32px, 5vw, 56px);
  font-weight: 400;
  color: var(--primary);
  margin-bottom: 24px;
}

.studio-slider {
  position: relative;
  width: 100%;
  height: 70vh;
  min-height: 400px;
  border-radius: 3px;
  background: var(--secondary-light);
}

.studio-slider-track {
  position: relative;
  width: 100%;
  height: 100%;
  overflow: hidden;
  border-radius: 3px;
}

.studio-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 1.2s cubic-bezier(0.4, 0, 0.2, 1);
  z-index: 1;
}

.studio-slide.active {
  opacity: 1;
  z-index: 2;
}

.studio-slide img,
.studio-slide video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* Dots */
.studio-slider-dots {
  position: absolute;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 10;
  display: flex;
  gap: 8px;
}

.studio-slider-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  border: 1.5px solid rgba(255, 255, 255, 0.6);
  background: transparent;
  cursor: pointer;
  padding: 0;
  transition: background 0.3s, border-color 0.3s, transform 0.3s;
}

.studio-slider-dot:hover {
  border-color: #fff;
  transform: scale(1.25);
}

.studio-slider-dot.active {
  background: #fff;
  border-color: #fff;
}

/* Progress bar */
.studio-slider-progress {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: rgba(255, 255, 255, 0.15);
  z-index: 10;
}

.studio-slider-progress-bar {
  height: 100%;
  width: 0;
  background: rgba(255, 255, 255, 0.6);
  transition: none;
}

.studio-slider-progress-bar.running {
  width: 100%;
  transition: width var(--slider-duration, 5s) linear;
}

/* Studio Slider Arrows */
.studio-slider-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 10;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  border: 1px solid #FFFFFF;
  background: #FFFFFF;
  color: var(--text);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  transition: background 0.3s, color 0.3s, border-color 0.3s, opacity 0.3s;
  opacity: 0.8;
}

.studio-slider-arrow:hover {
  background: var(--primary);
  color: var(--bg);
  border-color: var(--primary);
  opacity: 1;
}

[data-theme="dark"] .studio-slider-arrow {
  background: #32392f;
  border-color: #3D5039;
  color: #FAF8F5;
}

[data-theme="dark"] .studio-slider-arrow:hover {
  background: #FAF8F5;
  color: #32392f;
  border-color: #FAF8F5;
}

.studio-slider-arrow--left {
  left: -24px;
}

.studio-slider-arrow--right {
  right: -24px;
}

@media (max-width: 600px) {
  .studio-slider-arrow {
    width: 36px;
    height: 36px;
  }

  .studio-slider-arrow--left {
    left: -18px;
  }

  .studio-slider-arrow--right {
    right: -18px;
  }
}

.studio-image-caption {
  text-align: right;
  font-size: 13px;
  color: var(--text-muted);
  padding: 12px var(--pad-x);
  font-style: italic;
}

/* Studio Intro */
.studio-intro {
  padding: 80px var(--pad-x);
}

.studio-intro-grid {
  display: grid;
  grid-template-columns: 200px 1fr 1fr;
  gap: 40px;
}

.studio-intro-label {
  font-size: 13px;
  color: var(--primary);
  margin-bottom: 12px;
}

.studio-intro-text {
  font-size: 18px;
  line-height: 1.7;
  color: var(--text);
  text-align: justify;
}

/* Studio Philosophy */
.studio-section {
  padding: 0 var(--pad-x) 80px;
}

.studio-section-grid {
  display: grid;
  grid-template-columns: 200px 1fr 1fr;
  gap: 40px;
  border-top: 1px solid var(--border);
  padding-top: 24px;
}

.studio-section-label {
  font-size: 13px;
  color: var(--primary);
  margin-bottom: 12px;
}

.studio-section-text {
  font-size: 14px;
  line-height: 1.8;
  color: var(--text);
  font-weight: 400;
  text-align: justify;
}

/* Studio Approach */
.studio-approach {
  padding: 0 var(--pad-x) 80px;
}

.studio-approach-grid {
  display: grid;
  grid-template-columns: 200px 1fr;
  gap: 40px;
  border-top: 1px solid var(--border);
  padding-top: 24px;
  align-items: start;
}

.studio-approach-cols {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
}

/* Studio Services */
.studio-services {
  padding: 0 var(--pad-x) 80px;
}

.studio-services-grid {
  display: grid;
  grid-template-columns: 200px 1fr;
  gap: 40px;
  border-top: 1px solid var(--border);
  padding-top: 24px;
}

.accordion-list {
  display: flex;
  flex-direction: column;
}

.accordion-item {
  border-bottom: 1px solid var(--border);
}

.accordion-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px 0;
  cursor: pointer;
  font-size: 15px;
  color: var(--primary);
  background: none;
  border: none;
  width: 100%;
  font-family: var(--font-sans);
  text-align: left;
}

.accordion-header:hover {
  color: var(--accent);
}

.accordion-icon {
  font-size: 18px;
  color: var(--text-muted);
  transition: transform 0.3s;
}

.accordion-item.open .accordion-icon {
  transform: rotate(45deg);
}

.accordion-body {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s ease;
}

.accordion-item.open .accordion-body {
  max-height: 200px;
}

.accordion-body-inner {
  padding: 0 0 16px;
  font-size: 14px;
  line-height: 1.7;
  color: var(--text-muted);
  font-weight: 400;
  text-align: justify;
}

/* Team */
.studio-team {
  padding: 0 var(--pad-x) 80px;
}

.studio-team-grid-outer {
  display: grid;
  grid-template-columns: 200px 1fr;
  gap: 40px;
  border-top: 1px solid var(--border);
  padding-top: 24px;
}

.studio-team-grid-outer + .studio-team-grid-outer {
  margin-top: 48px;
  border-top: 1px solid var(--border);
}

/* Directors Intro */
.directors-intro {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  align-items: start;
}

.directors-photo {
  border-radius: 3px;
  overflow: hidden;
}

.directors-photo .team-card-img {
  margin-bottom: 0;
}

.directors-photo .team-card-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.directors-names {
  font-family: var(--font-serif);
  font-size: clamp(22px, 2.5vw, 30px);
  font-weight: 400;
  color: var(--primary);
  margin-bottom: 20px;
  line-height: 1.3;
}

.directors-bio {
  font-size: 14px;
  line-height: 1.8;
  color: var(--text);
  font-weight: 400;
  text-align: justify;
  margin-bottom: 32px;
}

.directors-bio:last-child {
  margin-bottom: 0;
}


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

.team-card-img {
  width: 100%;
  aspect-ratio: 3/4;
  background: var(--border);
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 3px;
  overflow: hidden;
}

.team-card-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.team-card-img .placeholder-text {
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-muted);
}

[data-theme="dark"] .team-card-img {
  background: #3f473c;
}

.team-card-name {
  font-size: 14px;
  font-weight: 400;
  color: var(--primary);
}

.team-card-role {
  font-size: 13px;
  color: var(--text-muted);
  font-weight: 400;
}

/* Team List — versión sin fotos */
.team-list {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.team-list-name {
  font-size: 14px;
  font-weight: 400;
  color: var(--text);
  line-height: 1.6;
}

/* Contact section (studio footer area) */
.studio-contact {
  padding: 0 var(--pad-x) 80px;
}

.studio-contact-grid {
  display: grid;
  grid-template-columns: 200px 1fr;
  gap: 40px;
  border-top: 1px solid var(--border);
  padding-top: 24px;
}

.studio-contact-info {
  font-size: 14px;
  line-height: 1.8;
  color: var(--text);
  font-weight: 400;
}

.studio-contact-info a {
  font-weight: 400;
}

/* ═══ SERVICES PAGE ═══ */
.services-hero {
  padding: 80px var(--pad-x) 40px;
}

.services-title {
  font-family: var(--font-serif);
  font-size: clamp(32px, 5vw, 56px);
  font-weight: 400;
  color: var(--primary);
}

.services-intro {
  padding: 0 var(--pad-x) 60px;
  max-width: 720px;
}

.services-intro-label {
  font-size: 13px;
  color: var(--primary);
  margin-bottom: 12px;
  display: block;
}

.services-intro-text {
  font-size: 18px;
  line-height: 1.7;
  color: var(--text);
  text-align: justify;
}

.services-intro .services-cta-btn {
  margin-top: 24px;
}

.services-list {
  padding: 0 var(--pad-x);
}

.service-item {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  padding: 48px 0;
  border-top: 1px solid var(--border);
  align-items: start;
}

.service-item:last-child {
  border-bottom: 1px solid var(--border);
}

.service-item-left {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.service-number {
  font-size: 12px;
  color: var(--text-muted);
  letter-spacing: 0.1em;
}

.service-name {
  font-family: var(--font-serif);
  font-size: clamp(24px, 3vw, 32px);
  font-weight: 400;
  color: var(--primary);
}

.service-item-right {
  display: flex;
  flex-direction: column;
  gap: 20px;
  padding-top: 26px;
}

.service-description {
  font-size: 16px;
  line-height: 1.7;
  color: var(--text);
  text-align: justify;
}

.service-features {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.service-feature-tag {
  font-size: 12px;
  letter-spacing: 0.05em;
  color: var(--text-muted);
  border: 1px solid var(--border);
  padding: 6px 14px;
  border-radius: 20px;
  transition: color 0.3s, border-color 0.3s;
}

.service-feature-tag:hover {
  color: var(--primary);
  border-color: var(--primary);
}

.services-cta {
  padding: 80px var(--pad-x);
  text-align: center;
}

.services-cta-text {
  font-family: var(--font-serif);
  font-size: clamp(24px, 3vw, 36px);
  font-weight: 400;
  color: var(--primary);
  margin-bottom: 12px;
}

.services-cta-subtitle {
  font-size: 16px;
  line-height: 1.6;
  color: var(--text);
  margin-bottom: 32px;
  max-width: 480px;
  margin-left: auto;
  margin-right: auto;
}

.services-cta-btn {
  display: inline-block;
  padding: 12px 20px;
  background: var(--primary);
  color: var(--white);
  border: none;
  font-family: var(--font-sans);
  font-size: 14px;
  font-weight: 400;
  line-height: 18px;
  text-decoration: none;
  cursor: pointer;
  transition: all 0.3s;
  border-radius: 3px;
}

.services-cta-btn:hover {
  background: var(--primary-light);
}

@media (max-width: 900px) {
  .service-item {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .service-item-left {
    display: contents;
  }

  .service-item-left .service-name {
    order: 1;
  }

  .service-item-right {
    order: 2;
    padding-top: 0;
  }

  .service-item-left .service-features {
    order: 3;
  }
}

/* ═══ CONTACT PAGE ═══ */
.contact-hero {
  padding: 80px var(--pad-x) 0;
}

.contact-title {
  font-family: var(--font-serif);
  font-size: clamp(32px, 5vw, 56px);
  font-weight: 400;
  color: var(--primary);
  margin-bottom: 24px;
}

.contact-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  padding: 60px var(--pad-x) 80px;
}

.contact-cta {
  font-family: var(--font-serif);
  font-size: clamp(28px, 3.5vw, 44px);
  font-weight: 400;
  line-height: 1.25;
  color: var(--primary);
  margin-bottom: 48px;
}

.contact-details {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.contact-detail-label {
  font-size: 13px;
  color: var(--text-muted);
  margin-bottom: 12px;
}

.contact-detail-value {
  font-size: 14px;
  color: var(--text);
  font-weight: 400;
  line-height: 1.7;
}

.contact-detail-value a {
  font-weight: 400;
}

.contact-detail-value a[aria-label="Instagram"],
.contact-detail-value a[aria-label="TikTok"],
.contact-detail-value a[aria-label="Pinterest"] {
  display: inline-flex;
  align-items: center;
  margin-left: 8px;
  margin-top: 5px;
}

.contact-detail-value a[aria-label="Instagram"] {
  margin-left: 0;
}

/* Contact Form */
.contact-form {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.form-field {
  padding: 10px 0;
}

.form-field label {
  display: block;
  font-size: 13px;
  color: var(--text-muted);
  margin-bottom: 12px;
}

.form-field input,
.form-field textarea {
  width: 100%;
  border: none;
  background: #ebebe6;
  border-radius: 3px;
  font-family: var(--font-sans);
  font-size: 15px;
  color: var(--text);
  outline: none;
  padding: 10px 14px;
}

.form-field input::placeholder,
.form-field textarea::placeholder {
  color: var(--secondary-dark);
}

[data-theme="dark"] .form-field input,
[data-theme="dark"] .form-field textarea {
  background: #3f473c;
}

.form-field input:-webkit-autofill,
.form-field input:-webkit-autofill:hover,
.form-field input:-webkit-autofill:focus,
.form-field input:-webkit-autofill:active {
  -webkit-box-shadow: 0 0 0 1000px #ebebe6 inset !important;
  -webkit-text-fill-color: var(--text) !important;
  transition: background-color 5000s ease-in-out 0s;
}

[data-theme="dark"] .form-field input:-webkit-autofill,
[data-theme="dark"] .form-field input:-webkit-autofill:hover,
[data-theme="dark"] .form-field input:-webkit-autofill:focus,
[data-theme="dark"] .form-field input:-webkit-autofill:active {
  -webkit-box-shadow: 0 0 0 1000px #3f473c inset !important;
  -webkit-text-fill-color: var(--text) !important;
}

.form-field textarea {
  resize: none;
  min-height: 80px;
}

.form-submit {
  margin-top: 32px;
  padding: 12px 20px;
  background: var(--primary);
  color: var(--white);
  border: none;
  font-family: var(--font-sans);
  font-size: 14px;
  font-weight: 400;
  line-height: 18px;
  cursor: pointer;
  align-self: flex-start;
  transition: all 0.3s;
  border-radius: 3px;
}

.form-submit:hover {
  background: var(--primary-light);
}

.form-submit:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

.form-message {
  margin-top: 16px;
  padding: 12px 16px;
  border-radius: 3px;
  font-size: 14px;
  line-height: 1.5;
}

.form-message.success {
  background: #e8f5e9;
  color: #2e7d32;
  border: 1px solid #c8e6c9;
}

.form-message.error {
  background: #fbe9e7;
  color: #c62828;
  border: 1px solid #ffccbc;
}

[data-theme="dark"] .form-message.success {
  background: #1b3a1b;
  color: #81c784;
  border-color: #2e5a2e;
}

[data-theme="dark"] .form-message.error {
  background: #3e1a1a;
  color: #ef9a9a;
  border-color: #5a2e2e;
}

/* Contact Success Modal */
.contact-modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 10000;
  background: rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(4px);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.35s ease;
}

.contact-modal-overlay.active {
  opacity: 1;
  pointer-events: all;
}

.contact-modal {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 48px 40px;
  max-width: 400px;
  width: 90%;
  text-align: center;
  transform: translateY(20px) scale(0.96);
  transition: transform 0.35s ease;
}

.contact-modal-overlay.active .contact-modal {
  transform: translateY(0) scale(1);
}

.contact-modal-icon {
  color: #2e7d32;
  margin-bottom: 20px;
}

[data-theme="dark"] .contact-modal-icon {
  color: #81c784;
}

/* Animated checkmark */
.modal-check-circle {
  stroke-dasharray: 166;
  stroke-dashoffset: 166;
}

.contact-modal-overlay.active .modal-check-circle {
  animation: modalCircle 0.6s ease-in-out 0.1s forwards;
}

.modal-check-path {
  stroke-dasharray: 48;
  stroke-dashoffset: 48;
}

.contact-modal-overlay.active .modal-check-path {
  animation: modalCheck 0.4s ease-in-out 0.5s forwards;
}

@keyframes modalCircle {
  to {
    stroke-dashoffset: 0;
  }
}

@keyframes modalCheck {
  to {
    stroke-dashoffset: 0;
  }
}

.contact-modal-title {
  font-family: var(--font-serif);
  font-size: 24px;
  font-weight: 400;
  color: var(--primary);
  margin-bottom: 12px;
}

.contact-modal-text {
  font-size: 14px;
  line-height: 1.6;
  color: var(--text-muted);
  margin-bottom: 28px;
}

.contact-modal-btn {
  padding: 10px 28px;
  background: var(--primary);
  color: var(--white);
  border: none;
  border-radius: 3px;
  font-family: var(--font-sans);
  font-size: 14px;
  cursor: pointer;
  transition: background 0.3s;
}

.contact-modal-btn:hover {
  background: var(--primary-light);
}

/* ═══ PRIVACY POLICY PAGE ═══ */
.privacy-text {
  font-size: 14px;
  line-height: 1.8;
  color: var(--text);
  font-weight: 400;
  text-align: justify;
  max-width: 700px;
}

.privacy-text p {
  margin-bottom: 16px;
}

.privacy-text p:last-child {
  margin-bottom: 0;
}

.privacy-text strong {
  font-weight: 500;
  color: var(--primary);
}

.privacy-text ul {
  margin: 12px 0 16px;
  padding-left: 20px;
  list-style: none;
}

.privacy-text ul li {
  position: relative;
  padding-left: 16px;
  margin-bottom: 6px;
  color: var(--text);
}

.privacy-text ul li::before {
  content: '—';
  position: absolute;
  left: 0;
  color: var(--text-muted);
}

.privacy-text a {
  color: var(--primary);
  font-weight: 400;
  text-decoration: underline;
  text-underline-offset: 3px;
  transition: opacity 0.3s;
}

.privacy-text a:hover {
  opacity: 0.7;
}

.privacy-contact-list {
  list-style: none !important;
  padding-left: 0 !important;
}

.privacy-contact-list li {
  padding-left: 0 !important;
}

.privacy-contact-list li::before {
  display: none !important;
}

/* ═══ FOOTER ═══ */
.footer {
  padding: 0 var(--pad-x);
}

.footer-inner {
  border-top: 1px solid var(--border);
  padding: 40px 0;
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  align-items: end;
  gap: 24px;
  font-size: 13px;
  color: var(--text-muted);
}

.footer-center {
  display: flex;
  gap: 24px;
  justify-content: center;
}

.footer-center a {
  color: var(--text-muted);
  font-size: 13px;
}

.footer-right {
  text-align: right;
}

.footer-right a {
  display: block;
  font-size: 13px;
  color: var(--text-muted);
  margin-bottom: 2px;
}

.footer-right a[aria-label="Instagram"] {
  margin-top: 0;
}

.footer-social {
  display: flex;
  gap: 16px;
  margin-top: 8px;
  justify-content: flex-end;
  align-items: center;
}

.footer-social a {
  display: inline-flex;
  align-items: center;
  margin-bottom: 0;
}

/* footer-bottom-row: invisible wrapper on desktop */
.footer-bottom-row {
  display: contents;
}

.footer-copyright-mobile {
  display: none;
}

/* ═══ PROJECT DETAIL ═══ */
.project-back {
  padding: 100px var(--pad-x) 24px;
}

.project-back a {
  font-size: 13px;
  color: var(--text-muted);
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: color 0.3s, gap 0.3s;
}

.project-back a:hover {
  color: var(--primary);
  gap: 10px;
  opacity: 1;
}

.project-hero {
  padding: 0 var(--pad-x) 40px;
}

.project-title {
  font-family: var(--font-serif);
  font-size: clamp(32px, 5vw, 56px);
  font-weight: 400;
  line-height: 1.1;
  color: var(--primary);
  margin-bottom: 8px;
}

.project-location {
  font-size: 14px;
  color: var(--text-muted);
}

/* ─── Two-column sections (Información, Concepto) ─── */
.project-section {
  padding: 0 var(--pad-x) 48px;
}

.project-section-grid {
  display: grid;
  grid-template-columns: 200px 1fr;
  gap: 40px;
  border-top: 1px solid var(--border);
  padding-top: 24px;
}

.project-section-label {
  font-size: 13px;
  color: var(--primary);
}

.project-meta-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(100px, 1fr));
  gap: 32px;
}

.project-meta-item-label {
  display: block;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--primary);
  margin-bottom: 6px;
}

.project-meta-item-value {
  display: block;
  font-size: 15px;
  font-weight: 400;
  color: var(--text);
}

.project-description-text {
  font-size: 14px;
  line-height: 1.8;
  color: var(--text);
  max-width: 700px;
  text-align: justify;
}

/* ─── Gallery ─── */
.project-gallery {
  padding: 0 var(--pad-x) 60px;
}

.project-gallery-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
}

.project-gallery-grid img {
  width: 100%;
  aspect-ratio: 3/4;
  object-fit: cover;
  border-radius: 3px;
  cursor: pointer;
  transition: opacity 0.3s ease;
}

.project-gallery-grid img:hover {
  opacity: 0.85;
}

.project-gallery-grid video {
  width: 100%;
  aspect-ratio: 3/4;
  object-fit: cover;
  border-radius: 3px;
  cursor: pointer;
  transition: opacity 0.3s ease;
}

.project-gallery-grid video:hover {
  opacity: 0.85;
}

/* ═══ LIGHTBOX ═══ */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: var(--bg);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.4s ease;
}

.lightbox.active {
  opacity: 1;
  pointer-events: all;
}

.lightbox-close {
  position: absolute;
  top: 20px;
  right: var(--pad-x);
  background: none;
  border: none;
  font-size: 24px;
  color: var(--text-muted);
  cursor: pointer;
  z-index: 10;
  padding: 8px;
  transition: color 0.3s, transform 0.3s;
}

.lightbox-close:hover {
  color: var(--text);
  transform: scale(1.1);
}

.lightbox-main {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  padding: 60px 80px 20px;
  position: relative;
  overflow: hidden;
  min-height: 0;
}

.lightbox-main img {
  max-width: 100%;
  max-height: 75vh;
  object-fit: contain;
  border-radius: 4px;
}

.lightbox-main video {
  max-width: 100%;
  max-height: 75vh;
  border-radius: 4px;
  outline: none;
}

.lightbox-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 10;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  border: 1px solid #FFFFFF;
  background: #FFFFFF;
  color: var(--text);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  transition: background 0.3s, color 0.3s, border-color 0.3s, opacity 0.3s;
  opacity: 0.8;
}

.lightbox-arrow:hover {
  background: var(--primary);
  color: var(--bg);
  border-color: var(--primary);
  opacity: 1;
}

[data-theme="dark"] .lightbox-arrow {
  background: #32392f;
  border-color: #3D5039;
  color: #FAF8F5;
}

[data-theme="dark"] .lightbox-arrow:hover {
  background: #FAF8F5;
  color: #32392f;
  border-color: #FAF8F5;
}

.lightbox-prev {
  left: 24px;
}

.lightbox-next {
  right: 24px;
}

.lightbox-thumbnails {
  display: flex;
  gap: 8px;
  padding: 16px var(--pad-x) 24px;
  overflow-x: auto;
  max-width: 100%;
}

.lightbox-thumb {
  width: 64px;
  height: 48px;
  object-fit: cover;
  border-radius: 3px;
  cursor: pointer;
  opacity: 0.4;
  transition: opacity 0.3s;
  flex-shrink: 0;
}

.lightbox-thumb:hover {
  opacity: 0.7;
}

.lightbox-thumb.active {
  opacity: 1;
}

.lightbox-thumb-video {
  width: 64px;
  height: 48px;
  border-radius: 3px;
  cursor: pointer;
  opacity: 0.4;
  transition: opacity 0.3s;
  flex-shrink: 0;
  background: #1a1a1a;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
}

.lightbox-thumb-video:hover {
  opacity: 0.7;
}

.lightbox-thumb-video.active {
  opacity: 1;
}

@media (max-width: 600px) {
  .lightbox-main {
    padding: 60px 16px 16px;
  }

  .lightbox-arrow {
    width: 36px;
    height: 36px;
  }

  .lightbox-prev {
    left: 8px;
  }

  .lightbox-next {
    right: 8px;
  }

  .lightbox-thumb {
    width: 48px;
    height: 36px;
  }
}

.project-nav {
  padding: 0 var(--pad-x) 80px;
  border-top: 1px solid var(--border);
  padding-top: 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.project-nav a {
  font-size: 13px;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  gap: 8px;
  transition: color 0.3s, gap 0.3s;
}

.project-nav a:hover {
  color: var(--primary);
  gap: 12px;
  opacity: 1;
}

.project-nav-label {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #3D5039;
  margin-bottom: 4px;
}

.project-nav-name {
  font-size: 15px;
  color: var(--text);
}

.project-nav-prev,
.project-nav-next {
  cursor: pointer;
}

.project-nav-next {
  text-align: right;
}

/* ═══ RESPONSIVE ═══ */
@media (max-width: 900px) {
  .hero-grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .studio-intro-grid,
  .studio-section-grid,
  .studio-approach-grid,
  .studio-services-grid,
  .studio-team-grid-outer,
  .studio-contact-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .studio-approach-cols {
    grid-template-columns: 1fr;
  }

  .directors-intro {
    grid-template-columns: 1fr;
  }

  .team-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .contact-content {
    grid-template-columns: 1fr;
    gap: 48px;
  }

  .footer-inner {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .footer-left {
    display: none;
  }

  .footer-center {
    order: 1;
    justify-content: flex-start;
  }

  .footer-right {
    order: 2;
    text-align: left;
  }

  .footer-bottom-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 8px;
  }

  .footer-social {
    justify-content: flex-start;
    margin-top: 0;
  }

  .footer-social svg {
    width: 16px;
    height: 16px;
  }

  .footer-copyright-mobile {
    display: inline;
    font-size: 13px;
    color: var(--text-muted);
    white-space: nowrap;
  }

  .footer-copyright-mobile a {
    display: inline !important;
  }

  .gallery-item {
    width: 80vw;
    min-width: 280px;
    display: flex;
    flex-direction: column;
    position: static;
  }

  .gallery-item-header {
    position: static;
    opacity: 1;
    transform: none;
    background: none;
    padding: 0 0 10px;
    transition: none;
    order: -1;
  }

  .gallery-item-title {
    color: var(--text);
  }

  .gallery-item-title span {
    color: var(--text-muted);
  }

  .project-section-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .project-meta-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 600px) {
  :root {
    --pad-x: 30px;
  }

  /* ─── -1px en todos los textos para mobile ─── */
  body { font-size: 14px; }
  .theme-toggle { font-size: 15px; }
  .nav-link { font-size: 13px; }
  .nav-meta span,
  .nav-meta a { font-size: 13px; }
  .studio-intro-label { font-size: 12px; }
  .studio-image-caption { font-size: 12px; }
  .footer-inner { font-size: 11px; }
  .footer-center a { font-size: 11px; }
  .footer-right a { font-size: 11px; }
  .footer-copyright-mobile { font-size: 11px !important; }
  .project-back a { font-size: 12px; }
  .project-location { font-size: 13px; }
  .project-section-label { font-size: 12px; }
  .project-meta-item-label { font-size: 10px; }
  .project-meta-item-value { font-size: 14px; }
  .project-description-text { font-size: 13px; }
  .project-nav a { font-size: 12px; }
  .project-nav-label { font-size: 10px; }
  .project-nav-name { font-size: 14px; }
  .contact-modal-title { font-size: 23px; }
  .contact-modal-text { font-size: 13px; }
  .contact-modal-btn { font-size: 13px; }
  .contact-label { font-size: 13px; }
  .contact-submit { font-size: 13px; }

  /* Estudio */
  .studio-section-label { font-size: 12px; }
  .studio-section-text { font-size: 13px; }
  .accordion-header { font-size: 14px; }
  .accordion-icon { font-size: 17px; }
  .accordion-body-inner { font-size: 13px; }
  .directors-bio { font-size: 13px; }
  .team-card-img .placeholder-text { font-size: 10px; }
  .team-card-name { font-size: 13px; }
  .team-card-role { font-size: 12px; }
  .studio-contact-info { font-size: 13px; }

  /* Servicios */
  .services-intro-label { font-size: 12px; }
  .services-intro-text { font-size: 17px; }
  .service-number { font-size: 11px; }
  .service-description { font-size: 15px; }
  .service-feature-tag { font-size: 11px; }
  .services-cta-subtitle { font-size: 15px; }
  .services-cta-btn { font-size: 13px; }

  /* Contacto */
  .contact-detail-label { font-size: 12px; }
  .contact-detail-value { font-size: 13px; }
  .form-field label { font-size: 12px; }
  .form-field input,
  .form-field textarea { font-size: 14px; }
  .form-submit { font-size: 13px; }
  .form-message { font-size: 13px; }

  .nav {
    grid-template-columns: 1fr auto;
    gap: 0;
  }

  .nav-links {
    display: none;
  }

  .nav-meta {
    display: none;
  }

  .hamburger {
    display: flex;
    margin-right: -5px;
  }

  .team-grid {
    grid-template-columns: 1fr;
  }

}

/* ═══ INTRO OVERLAY — Zoom Cinematográfico ═══ */
.intro-overlay {
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  overflow: hidden;
}

/* Collapse — slide up + fade reveal */
.intro-overlay.is-collapse {
  transform: translateY(-100%);
  opacity: 0;
  transition: transform 0.9s cubic-bezier(0.77, 0, 0.175, 1),
    opacity 0.6s ease 0.2s;
}

.intro-overlay.is-gone {
  display: none;
}

/* Ken Burns background image */
.intro-bg-img {
  position: absolute;
  inset: -10%;
  z-index: 1;
  opacity: 0;
  transform: scale(1.15);
  transition: opacity 1.2s ease, transform 8s ease-out;
}

.intro-bg-img.is-show {
  opacity: 1;
  transform: scale(1);
}

.intro-bg-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: brightness(0.35) saturate(0.8);
}

/* Centered logo */
.intro-logo-center {
  position: relative;
  z-index: 3;
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s ease, transform 1s cubic-bezier(0.22, 1, 0.36, 1);
}

.intro-logo-center.is-show {
  opacity: 1;
  transform: translateY(0);
}

.intro-logo-svg {
  height: 50px;
  width: auto;
  overflow: visible;
  /* Start big and centered on the 8 */
  transform: scale(2.2) translateX(38%);
  transition: transform 1.2s cubic-bezier(0.22, 1, 0.36, 1);
}

/* All parts start invisible */
.intro-logo-svg .logo-part {
  opacity: 0;
  transition: opacity 0.5s ease;
}

/* Phase 1: Only the 8 appears (big and centered) */
.intro-logo-center.is-show .logo-part-eight {
  opacity: 1;
}

/* Phase 2: SVG shrinks to normal size */
.intro-logo-svg.logo-reveal-full {
  transform: scale(1) translateX(0);
}

/* Phase 2: Other letters stagger in */
.intro-logo-svg.logo-reveal-full .logo-part-letter {
  opacity: 1;
  transition: opacity 0.6s ease;
  transition-delay: calc(var(--d) * 0.12s);
}

/* Tagline */
.intro-tagline {
  font-family: var(--font-sans);
  font-size: 7px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(250, 248, 245, 0.45);
  margin-top: 6px;
  white-space: nowrap;
  transform-origin: center top;
  --fit-scale: 1;
  opacity: 0;
  transform: translateY(15px) scaleX(var(--fit-scale));
  transition: opacity 0.7s ease, transform 0.8s ease;
}

.intro-tagline.is-show {
  opacity: 1;
  transform: translateY(0) scaleX(var(--fit-scale));
}

/* Progress bar */
.intro-progress {
  position: absolute;
  bottom: 48px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 5;
  width: 120px;
  height: 2px;
  background: rgba(250, 248, 245, 0.12);
  border-radius: 1px;
  overflow: hidden;
}

.intro-progress-fill {
  height: 100%;
  width: 0;
  background: var(--text-muted);
  border-radius: 1px;
  transition: width 4.2s linear;
}

.intro-progress-fill.is-fill {
  width: 100%;
}

@media (max-width: 600px) {
  .intro-logo-svg {
    height: 36px;
  }

  .intro-tagline {
    font-size: 5px;
  }

  .intro-progress {
    bottom: 36px;
    width: 80px;
  }
}

/* Hide body scroll during intro */
body.intro-active {
  overflow: hidden;
}

/* ═══ SCROLL REVEAL ═══ */
html.has-js .reveal {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.9s cubic-bezier(0.16, 1, 0.3, 1), transform 0.9s cubic-bezier(0.16, 1, 0.3, 1);
  transition-delay: var(--delay, 0s);
}

html.has-js .reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

html.has-js .reveal-left {
  opacity: 0;
  transform: translateX(-40px);
  transition: opacity 0.9s cubic-bezier(0.16, 1, 0.3, 1), transform 0.9s cubic-bezier(0.16, 1, 0.3, 1);
  transition-delay: var(--delay, 0s);
}

html.has-js .reveal-left.visible {
  opacity: 1;
  transform: translateX(0);
}

html.has-js .reveal-right {
  opacity: 0;
  transform: translateX(40px);
  transition: opacity 0.9s cubic-bezier(0.16, 1, 0.3, 1), transform 0.9s cubic-bezier(0.16, 1, 0.3, 1);
  transition-delay: var(--delay, 0s);
}

html.has-js .reveal-right.visible {
  opacity: 1;
  transform: translateX(0);
}

html.has-js .reveal-scale {
  opacity: 0;
  transform: scale(0.93);
  transition: opacity 1s cubic-bezier(0.16, 1, 0.3, 1), transform 1s cubic-bezier(0.16, 1, 0.3, 1);
  transition-delay: var(--delay, 0s);
}

html.has-js .reveal-scale.visible {
  opacity: 1;
  transform: scale(1);
}

/* Staggered delays for children */
.reveal-stagger>*:nth-child(1) {
  transition-delay: 0s;
}

.reveal-stagger>*:nth-child(2) {
  transition-delay: 0.2s;
}

.reveal-stagger>*:nth-child(3) {
  transition-delay: 0.4s;
}

.reveal-stagger>*:nth-child(4) {
  transition-delay: 0.6s;
}

.reveal-stagger>*:nth-child(5) {
  transition-delay: 0.8s;
}

/* Nav entrance — only hide during homepage intro */
body.intro-active .nav {
  transform: translateY(-100%);
  transition: background 0.4s ease, color 0.4s ease, transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

body.intro-active .nav.nav-visible {
  transform: translateY(0);
}

/* ─── Page Transitions ─── */
#page-content {
  transition: opacity 0.35s ease, transform 0.35s ease;
}

body.page-leaving #page-content {
  opacity: 0;
  transform: translateY(20px);
}

body.page-leaving .footer {
  opacity: 0;
  transition: opacity 0.25s ease;
}