/*
 * AIDC Luxury Architecture & Interiors - Main CSS Styling
 * Theme: Premium, Minimalist, Rich Editorial.
 * Color Palette: Royal Blue (#0C388D), Alabaster/Cream (#FDFBF7), Dark Charcoal (#1C1C1C), Brushed Gold (#C5A880)
 */

/* Exact Font Definition from marasrl.it */
@font-face {
  font-family: 'Neue Haas Grotesk Display Pro';
  src: url('https://marasrl.it/fonts/NeueHaasDisplay-Roman.woff2') format('woff2');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Neue Haas Grotesk Display Pro';
  src: url('https://marasrl.it/fonts/NeueHaasDisplay-Mediu.woff2') format('woff2');
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Neue Haas Grotesk Display Pro';
  src: url('https://marasrl.it/fonts/NeueHaasDisplay-Bold.woff2') format('woff2');
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Neue Haas Grotesk Display Pro';
  src: url('https://marasrl.it/fonts/NeueHaasDisplay-Light.woff2') format('woff2');
  font-weight: 300;
  font-style: normal;
  font-display: swap;
}
/* ==========================================================================
   CSS Variables & Design Tokens
   ========================================================================== */
:root {
  --color-primary: #0C388D;
  --color-primary-dark: #07255E;
  --color-primary-light: #2A5CBD;
  --color-bg-light: #FDFBF7;
  --color-bg-dark: #121212;
  --color-bg-panel: #1A1A1A;
  --color-text-dark: #1C1C1C;
  --color-text-light: #F5F5F5;
  --color-accent: #C5A880;
  --color-accent-hover: #D6BD96;
  --color-divider: rgba(28, 28, 28, 0.08);
  --color-divider-light: rgba(255, 255, 255, 0.1);

  --font-sans: 'Neue Haas Grotesk Display Pro', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif, 'Apple Color Emoji', 'Segoe UI Emoji', 'Segoe UI Symbol';
  --font-serif: 'Neue Haas Grotesk Display Pro', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif, 'Apple Color Emoji', 'Segoe UI Emoji', 'Segoe UI Symbol';

  --transition-smooth: all 0.8s cubic-bezier(0.16, 1, 0.3, 1);
  --transition-medium: all 0.5s cubic-bezier(0.25, 1, 0.5, 1);
  --transition-fast: all 0.3s cubic-bezier(0.33, 1, 0.68, 1);
  --transition-morph: all 1.2s cubic-bezier(0.76, 0, 0.24, 1);

  /* Fluid Typography (Viewport Range: 320px to 1440px) */
  --fs-h1: clamp(3rem, 5vw + 1rem, 8rem);
  --fs-h2: clamp(2rem, 4vw + 1rem, 5rem);
  --fs-h3: clamp(1.5rem, 3vw + 0.5rem, 3rem);
  --fs-h4: clamp(1.2rem, 2vw + 0.5rem, 2rem);
  --fs-body: clamp(1rem, 1vw + 0.5rem, 1.15rem);
  --fs-small: clamp(0.75rem, 0.5vw + 0.5rem, 0.85rem);

  /* Fluid Spacing */
  --space-section: clamp(4rem, 10vw, 12rem);
  --space-element: clamp(1rem, 3vw, 3rem);
  
  --grid-gap: clamp(1rem, 2vw, 2rem);
  --header-height: clamp(60px, 8vw, 90px);
}

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

/* Custom Sleek Scrollbar */
::-webkit-scrollbar {
  width: 4px;
  height: 4px;
}

::-webkit-scrollbar-track {
  background: transparent;
}

::-webkit-scrollbar-thumb {
  background-color: var(--color-primary);
  border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
  background-color: var(--color-primary-dark);
}

html {
  font-size: 16px;
  scroll-behavior: auto; /* Disabled for custom scroll controller */
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  background-color: var(--color-bg-light);
  color: var(--color-text-dark);
  font-family: var(--font-sans);
  overflow-x: hidden;
  line-height: 1.6;
}

body.dark-mode {
  background-color: var(--color-bg-dark);
  color: var(--color-text-light);
}

a {
  color: inherit;
  text-decoration: none;
}

button {
  background: none;
  border: none;
  font: inherit;
  cursor: pointer;
  outline: none;
}

ul, ol {
  list-style: none;
}

img, video {
  max-width: 100%;
  height: auto;
  display: block;
}

/* ==========================================================================
   Typography & Elements
   ========================================================================== */
h1, h2, h3, h4 {
  font-family: var(--font-serif);
  font-weight: 400;
  line-height: 1.2;
}

.text-editorial {
  font-family: var(--font-serif);
  font-style: italic;
  color: var(--color-accent);
}

.subtitle-caps {
  font-family: var(--font-sans);
  font-size: var(--fs-small);
  text-transform: uppercase;
  letter-spacing: 0.25em;
  font-weight: 500;
  color: var(--color-primary);
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.subtitle-caps::before {
  content: '';
  display: inline-block;
  width: 6px;
  height: 6px;
  background-color: var(--color-accent);
  transform: rotate(45deg);
}

.divider-line {
  width: 100%;
  height: 1px;
  background-color: var(--color-divider);
  margin: 4rem 0;
  transform-origin: left;
  transition: transform 1.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.divider-line.reveal {
  transform: scaleX(1);
}

.divider-line.hide {
  transform: scaleX(0);
}

/* ==========================================================================
   Custom Custom Cursor (Desktop Only)
   ========================================================================== */
#custom-cursor {
  width: 12px;
  height: 12px;
  background-color: var(--color-primary);
  border-radius: 50%;
  position: fixed;
  top: 0;
  left: 0;
  pointer-events: none;
  z-index: 1000;
  transform: translate(-50%, -50%);
  mix-blend-mode: difference;
  transition: width 0.3s ease, height 0.3s ease, background-color 0.3s ease;
  display: none;
}

@media (pointer: fine) {
  #custom-cursor {
    display: block;
  }
}

#custom-cursor.hovering {
  width: 50px;
  height: 50px;
  background-color: transparent;
  border: 1px solid var(--color-accent);
}

#custom-cursor.hovering-link {
  width: 30px;
  height: 30px;
  background-color: rgba(12, 56, 141, 0.2);
}

#custom-cursor.drag-mode::after {
  content: 'DRAG';
  font-family: var(--font-sans);
  font-size: 8px;
  font-weight: 600;
  letter-spacing: 1px;
  color: white;
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
}

#custom-cursor.drag-mode {
  width: 60px;
  height: 60px;
  background-color: var(--color-primary);
  mix-blend-mode: normal;
  border: none;
}

/* ==========================================================================
   Custom Loading Screen (Haven inspired)
   ========================================================================== */
#loader-screen {
  position: fixed;
  inset: 0;
  background-color: var(--color-primary);
  z-index: 9999;
  display: flex;
  justify-content: center;
  align-items: center;
  clip-path: inset(0 0 0 0);
  transition: clip-path 1.2s cubic-bezier(0.76, 0, 0.24, 1);
}

#loader-screen.loaded {
  clip-path: inset(0 0 100% 0);
}

.luxury-loader-wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  /* Final subtle scale settle */
  animation: luxurySettle 0.3s cubic-bezier(0.22, 1, 0.36, 1) 2s forwards;
  will-change: transform;
}

.luxury-aidc-svg {
  width: 100%;
  height: auto;
  transform: scale(1.03); /* Initial state for the settle animation */
  overflow: visible !important;
}

/* Individual Components Initial States & Classes */
.aidc-underline {
  transform-origin: left center;
  transform: scaleX(0);
  opacity: 0;
  animation: luxuryScaleX 0.8s cubic-bezier(0.16, 1, 0.3, 1) 0s forwards;
  will-change: transform, opacity;
  fill: #0C388D;
}

.aidc-a-stroke {
  transform-origin: center;
  transform: translateY(30px) rotate(-15deg) scale(0);
  opacity: 0;
  animation: luxuryAStroke 1s cubic-bezier(0.16, 1, 0.3, 1) 0.15s forwards;
  will-change: transform, opacity;
  fill: #0C388D;
}

.aidc-i-pillar {
  transform-origin: bottom center;
  transform: scaleY(0);
  opacity: 0;
  animation: luxuryScaleY 1s cubic-bezier(0.16, 1, 0.3, 1) 0.3s forwards;
  will-change: transform, opacity;
  fill: #0C388D;
}

.aidc-d-stem {
  transform-origin: bottom center;
  transform: scaleY(0);
  opacity: 0;
  animation: luxuryScaleY 1s cubic-bezier(0.16, 1, 0.3, 1) 0.45s forwards;
  will-change: transform, opacity;
  fill: #0C388D;
}

.aidc-d-curve {
  fill: transparent;
  stroke: #0C388D;
  stroke-width: 1.5;
  stroke-dasharray: 800;
  stroke-dashoffset: 800;
  opacity: 0;
  animation: luxuryDrawCurve 1.2s cubic-bezier(0.16, 1, 0.3, 1) 0.6s forwards;
  will-change: stroke-dashoffset, opacity, fill;
}

.aidc-c-curve {
  fill: transparent;
  stroke: #0C388D;
  stroke-width: 1.5;
  stroke-dasharray: 800;
  stroke-dashoffset: 800;
  opacity: 0;
  animation: luxuryDrawCurve 1.2s cubic-bezier(0.16, 1, 0.3, 1) 0.8s forwards;
  will-change: stroke-dashoffset, opacity, fill;
}

/* Keyframes */
@keyframes luxuryScaleX {
  0% { transform: scaleX(0); opacity: 0; }
  100% { transform: scaleX(1); opacity: 1; }
}

@keyframes luxuryAStroke {
  0% { transform: translateY(30px) rotate(-15deg) scale(0); opacity: 0; }
  100% { transform: translateY(0) rotate(0deg) scale(1); opacity: 1; }
}

@keyframes luxuryScaleY {
  0% { transform: scaleY(0); opacity: 0; }
  100% { transform: scaleY(1); opacity: 1; }
}

@keyframes luxuryDrawCurve {
  0% { stroke-dashoffset: 800; fill: transparent; opacity: 1; }
  60% { stroke-dashoffset: 0; fill: transparent; opacity: 1; }
  100% { stroke-dashoffset: 0; fill: #0C388D; opacity: 1; }
}

@keyframes luxurySettle {
  0% { transform: scale(1.03); }
  100% { transform: scale(1); }
}

/* ==========================================================================
   Header & Navigation
   ========================================================================== */
.mainHeader {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 0;
  background: transparent;
  border: none;
  box-shadow: none;
  padding: 0;
  z-index: 100;
  pointer-events: none; /* Let clicks pass through to content */
}

/* Premium Logo Notch - Always visible */
.logo-wrap {
  position: fixed;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 240px;
  height: 70px;
  background-color: #06122d;
  border-bottom-left-radius: 40px;
  border-bottom-right-radius: 40px;
  border-top-left-radius: 0;
  border-top-right-radius: 0;
  border: none;
  z-index: 102;
  pointer-events: auto; /* Restored to allow clicking */
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background-color 0.4s ease, border-color 0.4s ease, transform 0.4s ease;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
}

/* iPhone Notch "Shoulders" */
.logo-wrap::before,
.logo-wrap::after {
  content: '';
  position: absolute;
  top: 0;
  width: 24px;
  height: 24px;
  pointer-events: none;
}

.logo-wrap::before {
  left: -24px;
  background: radial-gradient(circle at 0 100%, transparent 24px, #06122d 24px);
}

.logo-wrap::after {
  right: -24px;
  background: radial-gradient(circle at 100% 100%, transparent 24px, #06122d 24px);
}

.logo-wrap svg {
  width: 180px;
  height: auto;
  transition: transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.logo-wrap:hover svg {
  transform: scale(1.05);
}

.logo-wrap:hover .nav-logo-hover {
  opacity: 1 !important;
}


/* Glassmorphic floating burger button - Always visible */
.burger-menu-btn {
  position: fixed;
  top: 20px;
  right: 40px;
  z-index: 102;
  pointer-events: auto;
  display: flex;
  align-items: center;
  gap: 12px;
  background: rgba(253, 251, 247, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(28, 28, 28, 0.08);
  padding: 10px 20px;
  border-radius: 30px;
  box-shadow: 0 5px 15px rgba(0,0,0,0.03);
  transition: all 0.3s var(--transition-fast);
  cursor: pointer;
  min-height: 44px;
  min-width: 44px;
}

.burger-menu-label {
  font-family: var(--font-sans);
  font-size: var(--fs-small);
  text-transform: uppercase;
  font-weight: 600;
  letter-spacing: 0.12em;
  color: var(--color-text-dark);
  transition: color 0.3s ease;
}

.burger-lines {
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.burger-line {
  width: 20px;
  height: 2px;
  background-color: var(--color-text-dark);
  transition: transform 0.3s ease, opacity 0.3s ease, background-color 0.3s ease;
}

/* Toggle Open State on Burger Button */
.burger-menu-btn.open {
  background: rgba(6, 18, 45, 0.95);
  border-color: rgba(255, 255, 255, 0.12);
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.2);
}

.burger-menu-btn.open .burger-menu-label {
  color: white;
}

.burger-menu-btn.open .burger-line {
  background-color: white;
}

.burger-menu-btn.open .burger-line:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.burger-menu-btn.open .burger-line:nth-child(2) {
  opacity: 0;
}

.burger-menu-btn.open .burger-line:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* Fullscreen Navigation Menu Panel */
.menu-panel {
  position: fixed;
  inset: 0;
  background-color: #06122d;
  z-index: 101;
  display: flex;
  flex-direction: row;
  opacity: 0;
  pointer-events: none;
  clip-path: inset(0 0 100% 0);
  transition: opacity 0.5s ease, clip-path 0.8s cubic-bezier(0.76, 0, 0.24, 1);
}

.menu-panel.open {
  opacity: 1;
  pointer-events: all;
  clip-path: inset(0 0 0 0);
}

/* Glassmorphic overlay close button */
.menu-close-btn {
  position: absolute;
  top: 20px;
  right: 40px;
  z-index: 105;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: rgba(255, 255, 255, 0.7);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15);
  transition: all 0.3s var(--transition-fast);
  cursor: pointer;
}

.menu-close-btn:hover {
  background: rgba(255, 255, 255, 0.15);
  border-color: var(--color-accent);
  color: var(--color-accent);
  transform: scale(1.05);
}


/* Left Panel - Image Preview and Studio Details */
.menu-panel-left {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 6rem;
  border-right: 1px solid rgba(255, 255, 255, 0.08);
  background-color: rgba(0, 0, 0, 0.15);
  box-sizing: border-box;
}

.menu-preview-wrap {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  border-radius: 16px;
  margin-bottom: var(--space-section);
  max-height: 400px;
  border: 1px solid rgba(255, 255, 255, 0.05);
}

.menu-preview-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 16px;
  transition: opacity 0.3s ease, transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
  opacity: 1;
}

.menu-preview-wrap:hover .menu-preview-img {
  transform: scale(1.05);
}

.menu-contact-info {
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
  color: rgba(255, 255, 255, 0.5);
  font-size: var(--fs-body);
}

.menu-contact-title {
  font-family: var(--font-serif);
  font-size: var(--fs-h3);
  color: white;
  margin-bottom: 0.5rem;
  letter-spacing: 0.05em;
}

.menu-contact-link {
  color: white;
  text-decoration: underline;
  text-decoration-color: rgba(255, 255, 255, 0.2);
  transition: color 0.3s ease;
  width: fit-content;
}

.menu-contact-link:hover {
  color: var(--color-primary);
}

.menu-contact-address {
  margin-top: 0.5rem;
  line-height: 1.4;
}

/* Right Panel - Menu Links */
.menu-panel-right {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
  padding: 6rem;
  box-sizing: border-box;
}

.menu-panel-links {
  display: flex;
  flex-direction: column;
  gap: 1.8rem;
  align-items: flex-start;
  width: 100%;
}

.menu-dynamic-bg {
  position: absolute;
  inset: 0;
  z-index: -1;
  background: radial-gradient(circle at right center, transparent 0%, rgba(6, 18, 45, 0.95) 100%);
  background-color: transparent;
  transition: background-color 0.8s cubic-bezier(0.16, 1, 0.3, 1);
  pointer-events: none;
}

.menu-panel-link-item {
  font-family: var(--font-serif);
  font-size: var(--fs-h2);
  line-height: 1.1;
  color: white;
  letter-spacing: 0.02em;
  position: relative;
  transform: translate3d(0, 40px, 0);
  opacity: 0;
  display: flex;
  align-items: center;
  transition: transform 0.8s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.8s ease, color 0.3s ease;
  cursor: pointer;
}

.menu-link-text {
  position: relative;
  z-index: 2;
}

.menu-svg-decor {
  position: absolute;
  left: calc(100% + 30px);
  top: 50%;
  transform: translateY(-50%);
  width: 350px;
  height: 80px;
  opacity: 0;
  z-index: 1;
  color: var(--color-accent);
  transition: opacity 0.6s ease;
  pointer-events: none;
}

.menu-svg-decor path,
.menu-svg-decor line,
.menu-svg-decor polyline {
  stroke-dasharray: 800;
  stroke-dashoffset: 800;
  transition: stroke-dashoffset 1.4s cubic-bezier(0.25, 1, 0.5, 1);
}

.menu-panel-link-item:hover {
  transform: translate3d(35px, 0, 0);
  font-style: italic;
  color: var(--color-accent);
}

.menu-panel-link-item:hover .menu-svg-decor {
  opacity: 0.6;
}

.menu-panel-link-item:hover .menu-svg-decor path,
.menu-panel-link-item:hover .menu-svg-decor line,
.menu-panel-link-item:hover .menu-svg-decor polyline {
  stroke-dashoffset: 0;
}

.menu-panel.open .menu-panel-link-item {
  transform: translate3d(0, 0, 0);
  opacity: 1;
}

/* Staggered load delays for links */
.menu-panel-link-item:nth-child(1) { transition-delay: 0.1s; }
.menu-panel-link-item:nth-child(2) { transition-delay: 0.15s; }
.menu-panel-link-item:nth-child(3) { transition-delay: 0.2s; }
.menu-panel-link-item:nth-child(4) { transition-delay: 0.25s; }
.menu-panel-link-item:nth-child(5) { transition-delay: 0.3s; }

/* ==========================================================================
   Page Switch Overlay & Transitions
   ========================================================================== */
.swipe-overlay {
  position: fixed;
  inset: 0;
  z-index: 10001; /* Make sure it covers everything during transition */
  pointer-events: none;
  display: none;
}

/* 1. Diagonal Wipe classes */
.swipe-overlay.diagonal-wipe-in {
  background-color: var(--color-accent); /* beautiful gold wipe */
  transform: skewX(-25deg) translate3d(120%, 0, 0);
  transition: transform 0.6s cubic-bezier(0.85, 0, 0.15, 1);
  pointer-events: all;
  display: block;
}
.swipe-overlay.diagonal-wipe-in.active {
  transform: skewX(-25deg) translate3d(-20%, 0, 0);
}

.swipe-overlay.diagonal-wipe-out {
  background-color: var(--color-accent);
  transform: skewX(-25deg) translate3d(-20%, 0, 0);
  transition: transform 0.6s cubic-bezier(0.85, 0, 0.15, 1);
  pointer-events: all;
  display: block;
}
.swipe-overlay.diagonal-wipe-out:not(.active) {
  transform: skewX(-25deg) translate3d(-160%, 0, 0);
}

/* 2. Circular Clip Path Expand/Shrink classes */
.swipe-overlay.circle-expand {
  background-color: #06122d; /* navy overlay */
  clip-path: circle(0% at 50% 50%);
  transition: clip-path 0.6s cubic-bezier(0.85, 0, 0.15, 1);
  pointer-events: all;
  display: block;
}
.swipe-overlay.circle-expand.active {
  clip-path: circle(120% at 50% 50%);
}

.swipe-overlay.circle-expand-continue {
  background-color: #06122d;
  clip-path: circle(120% at 50% 50%);
  opacity: 1;
  transition: opacity 0.6s cubic-bezier(0.85, 0, 0.15, 1);
  pointer-events: all;
  display: block;
}
.swipe-overlay.circle-expand-continue:not(.active) {
  opacity: 0;
}

.swipe-overlay.circle-shrink {
  background-color: #06122d;
  clip-path: circle(120% at 50% 50%);
  transition: clip-path 0.6s cubic-bezier(0.85, 0, 0.15, 1);
  pointer-events: all;
  display: block;
}
.swipe-overlay.circle-shrink:not(.active) {
  clip-path: circle(0% at 50% 50%);
}

/* 3. Split Shutters horizontal split */
.swipe-overlay.split-shutter {
  background-color: transparent;
  pointer-events: all;
  display: block;
}

.swipe-overlay.shutter-continue {
  background-color: transparent;
  pointer-events: all;
  display: block;
}
.swipe-overlay.shutter-continue .shutter-half {
  transform: translateY(0);
  opacity: 1;
  transition: opacity 0.6s cubic-bezier(0.85, 0, 0.15, 1);
}
.swipe-overlay.shutter-continue:not(.active) .shutter-half {
  opacity: 0;
}

.swipe-overlay.diagonal-wipe-continue {
  background-color: var(--color-accent);
  transform: skewX(-25deg) translate3d(-20%, 0, 0);
  transition: transform 0.6s cubic-bezier(0.85, 0, 0.15, 1);
  pointer-events: all;
  display: block;
}
.swipe-overlay.diagonal-wipe-continue:not(.active) {
  transform: skewX(-25deg) translate3d(-160%, 0, 0);
}

.shutter-half {
  position: absolute;
  left: 0;
  width: 100%;
  height: 50%;
  background-color: #0c388d; /* royal blue shutter */
  transition: transform 0.6s cubic-bezier(0.85, 0, 0.15, 1);
}

.shutter-half.top {
  top: 0;
  transform: translateY(-100%);
}

.shutter-half.bottom {
  bottom: 0;
  transform: translateY(100%);
}

.swipe-overlay.split-shutter.active .shutter-half.top {
  transform: translateY(0);
}

.swipe-overlay.split-shutter.active .shutter-half.bottom {
  transform: translateY(0);
}

/* Shape Morphing SVG transition */
.morph-transition-container {
  position: fixed;
  inset: 0;
  z-index: 998;
  pointer-events: none;
  width: 100%;
  min-height: 100vh;
  display: flex;
  align-items: center;
}

.morph-svg {
  width: 100%;
  height: 100%;
  fill: var(--color-primary);
}

/* ==========================================================================
   Layout Containers
   ========================================================================== */
.page-view {
  min-min-height: 100vh;
  padding-top: var(--header-height);
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1), transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
  will-change: opacity, transform;
}

.page-view.active {
  opacity: 1;
  transform: translateY(0);
}

.container-wide {
  max-width: 1440px;
  margin: 0 auto;
  padding: 0 4rem;
}

.grid-2 {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 350px), 1fr));
  gap: var(--grid-gap);
}

.grid-3 {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr));
  gap: var(--grid-gap);
}

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

.col-span-8 {
  grid-column: span 8;
}

.col-span-4 {
  grid-column: span 4;
}

.section-padding {
  padding: var(--space-section) 0;
}

/* ==========================================================================
   Home Hero Section
   ========================================================================== */
.hero-sec {
  min-height: 100vh;
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background-color: #FDFBF7; /* The cream 'loud emptiness' */
}

.hero-text-wrap {
  z-index: 10;
  color: var(--color-primary);
  max-width: 80%;
  margin-bottom: var(--space-section);
}

.hero-headline {
  font-size: var(--fs-h2);
  line-height: 1.15;
  margin-top: 1.5rem;
  letter-spacing: -0.01em;
  opacity: 0;
  transform: translateY(60px);
  filter: blur(8px);
  transition: opacity 1.4s cubic-bezier(0.16, 1, 0.3, 1) 1s, 
              transform 1.4s cubic-bezier(0.16, 1, 0.3, 1) 1s,
              filter 1.6s cubic-bezier(0.16, 1, 0.3, 1) 1s;
}

.hero-headline.reveal {
  opacity: 1;
  transform: translateY(0);
  filter: blur(0px);
}

.hero-slideshow-container {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 28vw; /* Narrow portrait crop, like the reference */
  height: 65vh;
  min-width: 300px;
  max-width: 450px;
  overflow: hidden;
  z-index: 2; /* Below text */
}

.hero-slide {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transform: scale(1.05); /* Slight zoom for transition */
  transition: transform 4s linear; /* Only animate scale, opacity changes instantly via JS */
}

.hero-slide.active {
  opacity: 1;
  transform: scale(1); /* Slowly zoom out while visible */
}

.hero-clean-grid {
  position: absolute;
  inset: 0;
  background-size: 80px 80px;
  background-image: 
    linear-gradient(to right, rgba(28,28,28,0.03) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(28,28,28,0.03) 1px, transparent 1px);
  z-index: 1;
}

.hero-aidc-text {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 10;
  font-family: var(--font-serif);
  font-size: clamp(4rem, 28vw, 35rem); /* Massively scaled up to match loading screen logo size */
  width: 100%;
  text-align: center;
  letter-spacing: -0.05em;
  color: #F1C36A; /* MAGIC: Inverted golden-mustard. With difference blend mode on a #FDFBF7 background, this renders exactly as the website's deep blue (#0c388d)! Over dark images it turns golden. */
  mix-blend-mode: difference;
  pointer-events: none;
  white-space: nowrap;
  animation: hero-text-fade 1.5s cubic-bezier(0.16, 1, 0.3, 1) forwards;
  will-change: transform, opacity;
}

@keyframes hero-text-fade {
  from { opacity: 0; transform: translate(-50%, -45%); }
  to { opacity: 1; transform: translate(-50%, -50%); }
}

.hero-aidc-sub {
  position: absolute;
  z-index: 10;
  top: 50%;
  left: 50%;
  transform: translate(14vw, 8vw); /* Positioned below right of the image/text */
  font-family: var(--font-sans);
  font-size: var(--fs-h3);
  font-weight: 700;
  color: var(--color-primary); /* Website blue */
  letter-spacing: -0.02em;
  opacity: 0;
  animation: sub-fade 1.2s cubic-bezier(0.16, 1, 0.3, 1) 1s forwards;
}

@keyframes sub-fade {
  from { opacity: 0; transform: translate(14vw, 9vw); }
  to { opacity: 1; transform: translate(14vw, 8vw); }
}

.hero-scroll-indicator {
  position: absolute;
  bottom: 3rem;
  left: 50%;
  transform: translateX(-50%);
  font-family: var(--font-serif);
  font-size: var(--fs-body);
  color: var(--color-primary);
  letter-spacing: 0.05em;
  opacity: 0;
  animation: scroll-fade 1.2s cubic-bezier(0.16, 1, 0.3, 1) 1.5s forwards;
}

@keyframes scroll-fade {
  from { opacity: 0; transform: translate(-50%, 10px); }
  to { opacity: 0.8; transform: translate(-50%, 0); }
}



.hero-explore-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  color: var(--color-text-dark);
  background: transparent;
  border: none;
  cursor: pointer;
  transition: transform 0.3s ease, opacity 0.3s ease;
}

.hero-explore-btn:hover {
  transform: translateY(5px);
  opacity: 0.7;
}

.hero-explore-text {
  font-family: var(--font-sans);
  font-size: var(--fs-small);
  text-transform: uppercase;
  font-weight: 500;
  letter-spacing: 0.2em;
  color: var(--color-text-dark);
}

.hero-explore-arrow {
  width: 18px;
  height: 18px;
  color: var(--color-text-dark);
  animation: bounce-down 2s infinite;
}

@keyframes bounce-down {
  0%, 20%, 50%, 80%, 100% {
    transform: translateY(0);
  }
  40% {
    transform: translateY(6px);
  }
  60% {
    transform: translateY(3px);
  }
}

/* Hero Sticky Scroll Lock */
.hero-sticky-container {
  height: 200vh;
  position: relative;
  background-color: var(--color-bg-light);
}

/* Premium Interactive Architectural Drafting Lines */
.hero-architect-lines {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 6; /* Placed above mask-overlay (z-index 5) but below explore btn (z-index 10) */
  transition: opacity 0.5s ease-out;
}

.draft-line-group {
  position: absolute;
  width: 250px;
  height: 250px;
  opacity: 0;
  transition: transform 0.25s cubic-bezier(0.25, 1, 0.5, 1);
  will-change: transform;
  animation: draft-line-entrance 1.5s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.draft-line-group.tl { animation-delay: 1.8s; }
.draft-line-group.tr { animation-delay: 2.0s; }
.draft-line-group.bl { animation-delay: 2.2s; }
.draft-line-group.br { animation-delay: 2.4s; }

@keyframes draft-line-entrance {
  from {
    opacity: 0;
    transform: scale(0.85);
  }
  to {
    opacity: 0.65;
    transform: scale(1);
  }
}

/* Specific Positions for corner line groups */
.draft-line-group.tl {
  top: 40px;
  left: 40px;
  animation: tl-idle-float 15s infinite ease-in-out alternate;
}

.draft-line-group.tr {
  top: 40px;
  right: 40px;
  animation: tr-idle-float 18s infinite ease-in-out alternate;
}

.draft-line-group.bl {
  bottom: 120px; /* offset to not overlap with explore button */
  left: 40px;
  height: 125px; /* keep aspect ratio of bl viewbox */
  animation: bl-idle-float 16s infinite ease-in-out alternate;
}

.draft-line-group.br {
  bottom: 120px; /* offset to not overlap with explore button */
  right: 40px;
  animation: br-idle-float 14s infinite ease-in-out alternate;
}

/* Crawling dash animation for schematic feel */
.draft-line-group path[stroke-dasharray],
.draft-line-group line[stroke-dasharray],
.draft-line-group circle[stroke-dasharray] {
  animation: schematic-dash-crawl 40s linear infinite;
}

@keyframes schematic-dash-crawl {
  to {
    stroke-dashoffset: -1000;
  }
}

/* Idle breathing floats for corner lines */
@keyframes tl-idle-float {
  0% {
    transform: translate3d(0, 0, 0) rotate(0deg);
  }
  100% {
    transform: translate3d(8px, 6px, 0) rotate(0.8deg);
  }
}

@keyframes tr-idle-float {
  0% {
    transform: translate3d(0, 0, 0) rotate(0deg);
  }
  100% {
    transform: translate3d(-6px, 8px, 0) rotate(-0.6deg);
  }
}

@keyframes bl-idle-float {
  0% {
    transform: translate3d(0, 0, 0) rotate(0deg);
  }
  100% {
    transform: translate3d(6px, -8px, 0) rotate(-0.5deg);
  }
}

@keyframes br-idle-float {
  0% {
    transform: translate3d(0, 0, 0) rotate(0deg);
  }
  100% {
    transform: translate3d(-8px, -6px, 0) rotate(0.7deg);
  }
}



/* ==========================================================================
   Scroll Gallery Component
   ========================================================================== */
.scroll-gallery-sec {
  position: relative;
  height: 300vh; /* Controlled by scroll triggers */
  background: radial-gradient(circle at 30% 20%, #E3CD81 0%, #B99B5B 50%, #8A733F 100%);
  color: #06122D; /* Deep navy for contrast */
}

/* Luxurious Website Blue Overlay at Top */
.scroll-gallery-sec::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 250px;
  background: radial-gradient(circle at 50% 0%, #134dbf 0%, var(--color-primary) 50%, #061c47 100%);
  -webkit-mask-image: linear-gradient(to bottom, black, transparent);
  mask-image: linear-gradient(to bottom, black, transparent);
  z-index: 5;
  pointer-events: none;
}

.scroll-gallery-sticky {
  position: sticky;
  top: 0;
  min-height: 100vh;
  width: 100%;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

.scroll-gallery-text-container {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 0 6rem;
  z-index: 2;
  pointer-events: none;
}

.gallery-txt-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
  margin: 1rem 0;
}

.gallery-text-bold {
  font-family: var(--font-serif);
  font-size: var(--fs-h1);
  font-weight: 400;
  line-height: 1;
  transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

.gallery-text-caps {
  font-family: var(--font-sans);
  font-size: var(--fs-small);
  text-transform: uppercase;
  letter-spacing: 0.4em;
  color: #ffffff; /* White text looks great on gold */
  transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

.scroll-gallery-images-wrap {
  position: relative;
  width: 60vw;
  height: 65vh;
  clip-path: inset(20% 20% 20% 20%);
  transform: scale(0.65);
  transition: clip-path 0.5s ease-out, transform 0.5s ease-out;
  z-index: 1;
}

.gallery-img-item {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.gallery-img-item.active {
  opacity: 1;
}

.gallery-img-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* ==========================================================================
   Project Listings & Cards
   ========================================================================== */
/* Hover effects for project cards - Luxury Premium */
.card-project {
  position: relative;
  cursor: pointer;
  overflow: hidden;
  background-color: var(--color-bg-light);
  padding-bottom: 2rem;
  border-bottom: 1px solid var(--color-divider);
  box-shadow: 0 0 0 rgba(0,0,0,0);
  transition: all 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.card-project-media {
  width: 100%;
  aspect-ratio: 4/5;
  overflow: hidden;
  position: relative;
  border-radius: 4px;
  clip-path: inset(0 0 0 0);
  transition: all 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.card-project-media::after {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.15);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.card-project-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: translate3d(0, var(--parallax-y, 0), 0) scale(1.12);
  transition: transform 1.4s cubic-bezier(0.25, 1, 0.5, 1);
}

.card-project-text {
  margin-top: 1.5rem;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
}

.card-project-title {
  font-size: var(--fs-h3);
  color: var(--color-text-dark);
  transition: all var(--transition-fast);
}

.card-project-meta {
  text-align: right;
}

.card-project-category {
  font-size: 0.85rem;
  color: rgba(28, 28, 28, 0.6);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.card-project-year {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: var(--fs-body);
  color: var(--color-accent);
}

.card-project:hover {
  transform: translateY(-6px);
  border-bottom-color: transparent;
}

.card-project:hover .card-project-media {
  box-shadow: 0 20px 40px rgba(0,0,0,0.12);
  border-radius: 8px;
}

.card-project:hover .card-project-media::after {
  opacity: 1;
}

.card-project:hover .card-project-media img {
  transform: translate3d(0, var(--parallax-y, 0), 0) scale(1.18);
}

.card-project:hover .card-project-title {
  color: var(--color-primary);
  transform: translateX(5px);
}

/* Dynamic Tilt Effect variables linked to mousemove */
.tilt-wrap {
  transform: perspective(1200px) rotateX(var(--rotate-x, 0deg)) rotateY(var(--rotate-y, 0deg));
  transition: transform 0.25s ease-out;
}

/* ==========================================================================
   Project Detail View
   ========================================================================== */
.project-detail-hero {
  height: 70vh;
  position: relative;
  overflow: hidden;
  background-color: var(--color-bg-dark);
}

.project-detail-hero img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.project-detail-hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, rgba(0,0,0,0.2), rgba(0,0,0,0.6));
  display: flex;
  align-items: flex-end;
  padding-bottom: var(--space-section);
}

.project-detail-title-wrap {
  color: white;
}

.project-detail-title {
  font-size: var(--fs-h1);
  margin-top: 1rem;
}

.project-detail-body {
  padding: var(--space-section) 0;
}

.project-specs {
  border-top: 1px solid var(--color-divider);
  border-bottom: 1px solid var(--color-divider);
  padding: 2.5rem 0;
  margin-bottom: var(--space-section);
  display: flex;
  gap: var(--space-section);
}

.spec-item-label {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: rgba(28, 28, 28, 0.5);
  margin-bottom: 0.5rem;
}

.spec-item-value {
  font-size: var(--fs-body);
  font-weight: 500;
  color: var(--color-text-dark);
}

.project-paragraph {
  font-size: 1.25rem;
  line-height: 1.8;
  color: rgba(28, 28, 28, 0.85);
  max-width: 90%;
}

/* Match Cut source animation target styling */
.match-cut-source {
  visibility: hidden;
}

.match-cut-active-element {
  position: fixed;
  z-index: 995;
  transition: all 1.2s cubic-bezier(0.76, 0, 0.24, 1);
  overflow: hidden;
}

.match-cut-active-element img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* ==========================================================================
   Services Section (Split Mask layout)
   ========================================================================== */
.service-block-row {
  margin-bottom: var(--space-section);
  align-items: center;
}

.service-media-wrap {
  position: relative;
  width: 100%;
  aspect-ratio: 16/10;
  overflow: hidden;
  clip-path: inset(0 0 0 100%);
  transition: clip-path 1.5s cubic-bezier(0.16, 1, 0.3, 1);
}

.service-media-wrap.reveal {
  clip-path: inset(0 0 0 0);
}

.service-media-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.2);
  transition: transform 1.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.service-media-wrap.reveal img {
  transform: scale(1);
}

.service-content-wrap {
  padding-left: 2rem;
}

.service-title {
  font-size: var(--fs-h2);
  margin-bottom: 1.5rem;
}

.service-points-list {
  margin-top: var(--space-element);
  display: flex;
  flex-direction: column;
  gap: 1.2rem;
}

.service-point-item {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  font-size: 1.05rem;
}

.service-point-item::before {
  content: '';
  display: inline-block;
  width: 8px;
  height: 8px;
  background-color: var(--color-accent);
  border-radius: 50%;
  margin-top: 0.6rem;
  flex-shrink: 0;
}

/* ==========================================================================
   Contact / "Let's Talk" Section
   ========================================================================== */
.contact-details-grid {
  display: flex;
  flex-direction: column;
  gap: var(--space-element);
}

.contact-detail-row {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.contact-label {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.25em;
  color: var(--color-primary);
  font-weight: 600;
}

.contact-value {
  font-family: var(--font-serif);
  font-size: 2rem;
  color: var(--color-text-dark);
  transition: color var(--transition-fast);
}

.contact-value:hover {
  color: var(--color-primary);
}

.contact-address {
  font-size: var(--fs-h4);
  line-height: 1.7;
}

/* Premium Form Styling */
.contact-form {
  display: flex;
  flex-direction: column;
  gap: var(--space-element);
}

.form-group {
  position: relative;
}

.form-input {
  width: 100%;
  padding: 1rem 0;
  background: none;
  border: none;
  border-bottom: 1px solid rgba(28, 28, 28, 0.15);
  font-family: var(--font-sans);
  font-size: var(--fs-body);
  color: var(--color-text-dark);
  outline: none;
  transition: border-color var(--transition-fast);
}

.form-input:focus {
  border-bottom-color: var(--color-primary);
}

.form-label {
  position: absolute;
  top: 1rem;
  left: 0;
  pointer-events: none;
  font-family: var(--font-sans);
  font-size: var(--fs-body);
  color: rgba(28, 28, 28, 0.4);
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), color 0.4s ease;
}

.form-input:focus ~ .form-label,
.form-input:not(:placeholder-shown) ~ .form-label {
  transform: translateY(-24px) scale(0.85);
  color: var(--color-primary);
  transform-origin: left;
}

/* Premium Button design */
.btn-premium {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  align-self: flex-start;
  padding: 1.2rem 3rem;
  background-color: var(--color-primary);
  color: white;
  font-family: var(--font-sans);
  font-size: 0.85rem;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  border-radius: 0;
  position: relative;
  overflow: hidden;
  z-index: 1;
  transition: color 0.5s ease;
  min-height: 44px;
  min-width: 44px;
}

.btn-premium::before {
  content: '';
  position: absolute;
  inset: 0;
  background-color: var(--color-accent);
  transform: scaleY(0);
  transform-origin: bottom;
  z-index: -1;
  transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.btn-premium:hover {
  color: var(--color-text-dark);
}

.btn-premium:hover::before {
  transform: scaleY(1);
}

/* ==========================================================================
   Footer Component
   ========================================================================== */
/* ==========================================================================
   Vectr-style Footer
   ========================================================================== */
.footer {
  width: 100%;
  background-color: #06122d;
  color: white;
  margin: 0;
  border-radius: 0;
  border: none;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  overflow: hidden;
}

.footer-nav {
  display: flex;
  width: 100%;
  height: 200px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.footer-nav-btn {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 4rem;
  height: 100%;
  text-decoration: none;
  border-right: 1px solid rgba(255, 255, 255, 0.08);
  position: relative;
  overflow: hidden;
  color: var(--color-text-light);
}

.footer-nav-btn:last-child {
  border-right: none;
}

.footer-nav-btn__bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  background-color: var(--color-bg-light);
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform 0.8s cubic-bezier(0.25, 1, 0.5, 1);
}

.footer-nav-btn__label {
  position: relative;
  z-index: 1;
  font-weight: 500;
  font-size: var(--fs-h3);
  text-transform: uppercase;
  letter-spacing: -0.02em;
  color: var(--color-text-light);
  transition: transform 0.8s cubic-bezier(0.25, 1, 0.5, 1), color 0.8s cubic-bezier(0.25, 1, 0.5, 1);
}

.footer-nav-btn__arrows {
  position: relative;
  z-index: 1;
  width: 28px;
  height: 28px;
  overflow: hidden;
  color: var(--color-text-light);
  transition: color 0.8s cubic-bezier(0.25, 1, 0.5, 1);
}

.footer-nav-btn__arrow {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  transition: transform 0.8s cubic-bezier(0.25, 1, 0.5, 1);
}

.footer-nav-btn__arrow--current {
  transform: translate3d(0, 0, 0);
}

.footer-nav-btn__arrow--next {
  transform: translate3d(-120%, 0, 0);
}

/* Hover States (Mouse pointer only) */
@media (pointer: fine) {
  .footer-nav-btn:hover .footer-nav-btn__bg {
    transform: scaleX(1);
  }

  .footer-nav-btn:hover .footer-nav-btn__label {
    color: var(--color-text-dark);
    transform: translate3d(15px, 0, 0);
  }

  .footer-nav-btn:hover .footer-nav-btn__arrows {
    color: var(--color-text-dark);
  }

  .footer-nav-btn:hover .footer-nav-btn__arrow--current {
    transform: translate3d(120%, 0, 0);
  }

  .footer-nav-btn:hover .footer-nav-btn__arrow--next {
    transform: translate3d(0, 0, 0);
  }
}

.footer__bottom {
  display: flex;
  flex-direction: column;
  gap: var(--space-element);
  padding: 3rem;
}

.footer__logo {
  width: 100%;
  height: auto;
  overflow: hidden;
  color: var(--color-text-light);
}

.footer__logo path {
  transform: translateY(110%);
  transition: transform 0.8s cubic-bezier(0.25, 1, 0.5, 1);
}

.footer__bottom.is-visible .footer__logo path {
  transform: translateY(0);
}

.footer__bottom.is-visible .footer__logo path:nth-child(1) {
  transition-delay: 0s;
}
.footer__bottom.is-visible .footer__logo path:nth-child(2) {
  transition-delay: 0.06s;
}
.footer__bottom.is-visible .footer__logo path:nth-child(3) {
  transition-delay: 0.12s;
}
.footer__bottom.is-visible .footer__logo path:nth-child(4) {
  transition-delay: 0.18s;
}

.footer__meta {
  display: flex;
  align-items: center;
  gap: var(--space-element);
  font-size: var(--fs-small);
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding-top: 2rem;
}

.footer__copyright {
  margin-right: auto;
  color: rgba(255, 255, 255, 0.4);
}

.footer__privacy {
  position: relative;
  color: var(--color-text-light);
  transition: color 0.3s ease;
}

.footer__privacy:after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -2px;
  width: 100%;
  height: 1px;
  background-color: var(--color-accent);
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform 0.3s cubic-bezier(0.25, 1, 0.5, 1);
}

.footer__privacy:hover:after {
  transform: scaleX(1);
}

.footer__credit {
  color: rgba(255, 255, 255, 0.4);
  transition: color 0.3s ease;
}

.footer__credit:hover {
  color: var(--color-text-light);
}

/* ==========================================================================
   Media Queries & Responsiveness
   ========================================================================== */
@media (max-width: 1024px) {
  .burger-menu-btn {
    right: 30px;
    top: 20px;
  }
  .menu-panel-left {
    padding: 4rem;
  }
  .menu-panel-right {
    padding: 4rem;
  }
  .menu-panel-link-item {
    font-size: var(--fs-h2);
  }
  .grid-3 {
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 350px), 1fr));
  }
  .gallery-text-bold {
    font-size: var(--fs-h1);
  }
  .scroll-gallery-images-wrap {
    width: 75vw;
  }
}

@media (max-width: 768px) {
  .grid-2 {
    grid-template-columns: 1fr;
  }
  .grid-3 {
    grid-template-columns: 1fr;
  }
  .hero-headline {
    font-size: 2.25rem;
  }
  .gallery-txt-row {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.5rem;
  }
  .gallery-text-bold {
    font-size: var(--fs-h2);
  }
  .scroll-gallery-images-wrap {
    width: 90vw;
    height: 50vh;
  }
  .project-specs {
    flex-wrap: wrap;
    gap: var(--space-element);
  }
  .service-block-row {
    flex-direction: column-reverse;
  }
  .service-content-wrap {
    padding-left: 0;
    margin-bottom: var(--space-element);
  }
  .footer-nav {
    height: 160px;
  }
  .footer-nav-btn {
    padding: 0 2rem;
  }
  .footer-nav-btn__label {
    font-size: var(--fs-h3);
  }
}

/* ==========================================================================
   Commissions Interactive Filter Bar
   ========================================================================== */
.filter-bar {
  display: flex;
  gap: var(--space-element);
  margin-bottom: var(--space-section);
  border-bottom: 1px solid var(--color-divider);
  padding-bottom: 1.5rem;
}

.filter-btn {
  font-family: var(--font-sans);
  font-size: var(--fs-small);
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: rgba(28, 28, 28, 0.4);
  position: relative;
  padding-bottom: 0.5rem;
  transition: color var(--transition-fast);
}

.filter-btn::after {
  content: '';
  position: absolute;
  bottom: -1px;
  left: 0;
  width: 100%;
  height: 2px;
  background-color: var(--color-primary);
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.filter-btn:hover {
  color: var(--color-primary);
}

.filter-btn.active {
  color: var(--color-primary);
  font-weight: 600;
}

.filter-btn.active::after {
  transform: scaleX(1);
  transform-origin: left;
}

/* Filter Card Transition States */
.card-project {
  opacity: 1;
  transform: scale(1) translateY(0);
  transition: opacity 0.4s cubic-bezier(0.16, 1, 0.3, 1), transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), border-bottom-color var(--transition-fast);
}

.card-project.fade-out {
  opacity: 0;
  transform: scale(0.9) translateY(15px);
  pointer-events: none;
}

.card-project.hidden {
  display: none !important;
}

/* ==========================================================================
   Tactile Material Laboratory
   ========================================================================== */
.material-lab-sec {
  background-color: #F8F6F2;
}

.material-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 250px), 1fr));
  gap: 1.5rem;
  margin-top: var(--space-element);
}

.material-card {
  background: white;
  border: 1px solid rgba(28, 28, 28, 0.05);
  padding: 2rem;
  cursor: pointer;
  transition: var(--transition-medium);
  border-bottom: 2px solid transparent;
}

.material-card.active {
  border-bottom-color: var(--color-primary);
  box-shadow: 0 15px 30px rgba(0,0,0,0.05);
  transform: translateY(-5px);
}

.material-card:hover {
  transform: translateY(-3px);
}

.material-title {
  font-size: 1.25rem;
  font-weight: 500;
  margin-bottom: 0.5rem;
  color: var(--color-text-dark);
}

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

.material-detail-panel {
  margin-top: var(--space-element);
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--grid-gap);
  background: white;
  border: 1px solid rgba(28, 28, 28, 0.05);
  padding: 3rem;
  align-items: center;
  box-shadow: 0 15px 35px rgba(0,0,0,0.02);
}

.material-detail-img-wrap {
  aspect-ratio: 16/10;
  overflow: hidden;
  position: relative;
}

.material-detail-img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: opacity 0.5s ease;
}

.material-detail-text {
  padding-left: 2rem;
}

.material-detail-name {
  font-size: var(--fs-h3);
  margin-bottom: 1.5rem;
  color: var(--color-primary);
}

.material-detail-desc {
  font-size: var(--fs-body);
  line-height: 1.7;
  color: rgba(28, 28, 28, 0.7);
  margin-bottom: 1.5rem;
}

/* ==========================================================================
   Bespoke Spatial Statistics (Ledger of Precision)
   ========================================================================== */
.stats-sec {
  background-color: var(--color-primary);
  color: white;
  padding: var(--space-section) 0;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 250px), 1fr));
  gap: var(--grid-gap);
}

.stat-card {
  text-align: center;
  padding: 2rem 1rem;
  border-right: 1px solid rgba(255, 255, 255, 0.1);
}

.stat-card:last-child {
  border-right: none;
}

.stat-number {
  font-family: var(--font-serif);
  font-size: var(--fs-h1);
  line-height: 1;
  color: var(--color-accent);
  margin-bottom: 1rem;
}

.stat-label {
  font-family: var(--font-sans);
  font-size: var(--fs-small);
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: rgba(255, 255, 255, 0.8);
}

/* ==========================================================================
   Floating Footer Capsule Action Tab
   ========================================================================== */
/* Redesigned Floating Footer Inquiry capsule */
.floating-footer-tab {
  position: fixed;
  bottom: 2.5rem;
  right: 2.5rem;
  z-index: 900;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.9rem 1.8rem;
  background: rgba(6, 18, 45, 0.85);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  color: white;
  font-family: var(--font-sans);
  font-size: var(--fs-small);
  font-weight: 600;
  letter-spacing: 0.22em;
  border-radius: 40px;
  box-shadow: 0 10px 40px rgba(6, 18, 45, 0.4), 0 0 20px rgba(197, 168, 128, 0.1);
  border: 1px solid rgba(197, 168, 128, 0.35);
  cursor: pointer;
  overflow: hidden;
  transition: all 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Glowing Aura Behind Button */
.floating-footer-tab::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 40px;
  background: radial-gradient(circle at center, #E3CD81 0%, #B99B5B 50%, #8A733F 100%);
  opacity: 0;
  z-index: -1;
  transition: opacity 0.6s ease, transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
  transform: scale(0.8);
}

/* Moving Shimmer Sweep */
.floating-footer-tab::after {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: linear-gradient(45deg, transparent, rgba(255,255,255,0.3), transparent);
  transform: translateX(-100%) rotate(45deg);
  transition: transform 0.8s ease;
  z-index: 1;
}

.floating-footer-tab:hover {
  transform: translateY(-8px) scale(1.05);
  color: #06122D; /* Deep navy text on gold */
  border-color: transparent;
  box-shadow: 0 20px 50px rgba(185, 155, 91, 0.4), 0 0 30px rgba(227, 205, 129, 0.6);
  letter-spacing: 0.35em; /* Expanding tracking */
  padding-left: 2.2rem;
  padding-right: 2.2rem;
}

.floating-footer-tab:hover::before {
  opacity: 1;
  transform: scale(1);
}

.floating-footer-tab:hover::after {
  transform: translateX(100%) rotate(45deg);
}

.floating-footer-tab svg {
  color: var(--color-accent);
  transition: transform 0.6s cubic-bezier(0.25, 1, 0.5, 1), color 0.6s ease;
  position: relative;
  z-index: 2;
}

.floating-footer-tab span {
  position: relative;
  z-index: 2;
  transition: letter-spacing 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.floating-footer-tab:hover svg {
  transform: rotate(90deg) scale(1.2);
  color: #06122D;
}

/* Hide floating tab when footer is in view */
.floating-footer-tab.hide-tab {
  transform: translateY(100px) scale(0.8);
  opacity: 0;
  pointer-events: none;
}

/* Tunnelwiz Grid backdrop */
.hero-grid-backdrop {
  position: absolute;
  inset: -50px;
  background-image: 
    linear-gradient(rgba(197, 168, 128, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(197, 168, 128, 0.04) 1px, transparent 1px);
  background-size: 60px 60px;
  background-position: center center;
  z-index: 1;
  pointer-events: none;
  transition: transform 0.25s cubic-bezier(0.25, 1, 0.5, 1);
  will-change: transform;
}

/* Outline overlay text alignment */
.hero-outline-overlay {
  transition: opacity 0.5s ease-out;
}
.hero-outline-svg {
  will-change: transform;
  transition: transform 0.1s ease-out;
}

/* Pulsating node glowing vectors */
.glow-node {
  animation: node-pulse-glow 2s infinite alternate ease-in-out;
  transform-origin: center;
}

@keyframes node-pulse-glow {
  0% {
    r: 2px;
    fill-opacity: 0.5;
    filter: drop-shadow(0 0 1px rgba(197,168,128,0.5));
  }
  100% {
    r: 4px;
    fill-opacity: 1;
    filter: drop-shadow(0 0 4px rgba(197,168,128,0.95));
  }
}

/* ==========================================================================
   Logo Motion Graphic Transitions
   ========================================================================== */
.motion-dummy-logo {
  position: fixed;
  z-index: 10000;
  pointer-events: none;
  aspect-ratio: 3 / 1; /* Match the 450x150 viewBox */
  transition: top 0.9s cubic-bezier(0.76, 0, 0.24, 1), 
              left 0.9s cubic-bezier(0.76, 0, 0.24, 1), 
              width 0.9s cubic-bezier(0.76, 0, 0.24, 1), 
              height 0.9s cubic-bezier(0.76, 0, 0.24, 1),
              opacity 0.9s ease;
}

.motion-dummy-logo svg {
  width: 100%;
  height: 100%;
}

.motion-dummy-logo svg rect,
.motion-dummy-logo svg path,
.motion-dummy-logo svg polygon {
  /* Default to the logo's luxury color so it doesn't snap to white */
  fill: #0C388D;
  transition: fill 0.9s cubic-bezier(0.76, 0, 0.24, 1);
}

.motion-dummy-logo.to-nav svg rect,
.motion-dummy-logo.to-nav svg path,
.motion-dummy-logo.to-nav svg polygon {
  fill: #0C388D;
}

/* Dark mode adjustment removed to ensure logo color does not change */

/* Responsive adjustments for new elements */
@media (max-width: 1024px) {
  .nav-links-desktop-left,
  .nav-links-desktop-right {
    display: none;
  }
  
  .mainHeader {
    width: 100%;
    padding: 0 2rem;
  }
  
  .material-grid {
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 350px), 1fr));
  }
  
  .material-detail-panel {
    grid-template-columns: 1fr;
    padding: 2rem;
  }
  
  .material-detail-text {
    padding-left: 0;
    margin-top: 1.5rem;
  }
  
  .stats-grid {
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 350px), 1fr));
  }
  
  .stat-card {
    border-right: none;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  }
  
  .stat-card:nth-child(n+3) {
    border-bottom: none;
  }
}

@media (max-width: 768px) {
  .logo-wrap {
    top: 0;
    width: 180px;
    height: 60px;
    border-bottom-left-radius: 30px;
    border-bottom-right-radius: 30px;
    border-top-left-radius: 0;
    border-top-right-radius: 0;
  }
  .logo-wrap::before,
  .logo-wrap::after {
    content: '';
    position: absolute;
    top: 0;
    width: 20px;
    height: 20px;
    pointer-events: none;
  }
  .logo-wrap::before {
    left: -20px;
    background: radial-gradient(circle at 0 100%, transparent 20px, #06122d 20px);
  }
  .logo-wrap::after {
    right: -20px;
    background: radial-gradient(circle at 100% 100%, transparent 20px, #06122d 20px);
  }
  .logo-wrap svg {
    width: 130px;
    height: auto;
  }
  .burger-menu-btn {
    right: 20px;
    top: 15px;
    padding: 8px 16px;
  }
  .burger-menu-label {
    display: none; /* Hide Menu text on mobile */
  }
  .menu-panel {
    flex-direction: column;
  }
  .menu-panel-left {
    display: none; /* Hide preview column on mobile */
  }
  .menu-panel-right {
    width: 100%;
    padding: var(--space-section) 2rem 2rem;
    justify-content: center;
    align-items: center;
  }
  .menu-panel-links {
    align-items: center;
    gap: 1.5rem;
  }
  .menu-panel-link-item {
    font-size: var(--fs-h3);
    text-align: center;
  }
  .menu-panel-link-item:hover {
    transform: translate3d(0, 0, 0); /* Disable slide shift on mobile */
  }
  .footer {
    margin: 0;
    border-radius: 0;
  }
  .footer-nav {
    flex-direction: column;
    height: auto;
  }
  .footer-nav-btn {
    flex: none;
    height: 80px;
    border-right: none;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    padding: 0 1.5rem;
  }
  .footer-nav-btn:last-child {
    border-bottom: none;
  }
  .footer-nav-btn__label {
    font-size: var(--fs-h4);
  }
  .footer-nav-btn__arrows {
    width: 20px;
    height: 20px;
  }
  .footer__bottom {
    padding: 2rem 1.5rem;
    gap: var(--space-element);
  }
  .footer__meta {
    flex-wrap: wrap;
    gap: 1rem;
  }
  .footer__copyright {
    flex: 1 1 100%;
  }
  .footer__credit {
    width: 100%;
  }
  
  .material-grid {
    grid-template-columns: 1fr;
  }
  
  .stats-grid {
    grid-template-columns: 1fr;
  }
  
  .stat-card {
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  }
  
  .stat-card:last-child {
    border-bottom: none;
  }
}

/* ==========================================================================
   Ulysses de Santi Inspired Hover Gallery Follower
   ========================================================================== */
.hover-image-follower {
  position: fixed;
  width: 380px;
  height: 250px;
  pointer-events: none;
  z-index: 950;
  overflow: hidden;
  opacity: 0;
  transform: translate(-50%, -50%) scale(0.8);
  clip-path: inset(100% 0 0 0);
  transition: opacity 0.5s cubic-bezier(0.16, 1, 0.3, 1), 
              transform 0.5s cubic-bezier(0.16, 1, 0.3, 1), 
              clip-path 0.5s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: 0 25px 55px rgba(0, 0, 0, 0.25);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 4px;
}

.hover-image-follower.active {
  opacity: 1;
  transform: translate(-50%, -50%) scale(1);
  clip-path: inset(0% 0% 0% 0%);
}

.hover-image-follower img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.3) translateY(30px);
  transition: transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.hover-image-follower.active img {
  transform: scale(1) translateY(0);
}

/* Hover Gallery Rows */
.hover-gallery-sec {
  background-color: var(--color-bg-light);
  border-top: 1px solid var(--color-divider);
  padding: var(--space-section) 0;
}

.hover-gallery-list {
  display: flex;
  flex-direction: column;
  margin-top: var(--space-section);
}

.hover-gallery-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 2.5rem 0;
  border-bottom: 1px solid var(--color-divider);
  cursor: pointer;
  position: relative;
  transition: padding var(--transition-medium), color var(--transition-fast);
}

.hover-gallery-item::before {
  content: '';
  position: absolute;
  bottom: -1px;
  left: 0;
  width: 100%;
  height: 1px;
  background-color: var(--color-primary);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.hover-gallery-item:hover::before {
  transform: scaleX(1);
}

.hover-gallery-item:hover {
  padding-left: 2rem;
  padding-right: 2rem;
  color: var(--color-primary);
}

.hover-item-left {
  display: flex;
  align-items: center;
  gap: var(--space-element);
}

.hover-item-num {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 1.25rem;
  color: var(--color-accent);
}

.hover-item-name {
  font-family: var(--font-serif);
  font-size: var(--fs-h2);
  font-weight: 400;
  line-height: 1;
  transition: transform var(--transition-medium);
}

.hover-gallery-item:hover .hover-item-name {
  font-style: italic;
}

.hover-item-location {
  font-family: var(--font-sans);
  font-size: var(--fs-small);
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: rgba(28, 28, 28, 0.4);
  transition: color var(--transition-fast);
}

.hover-gallery-item:hover .hover-item-location {
  color: var(--color-primary);
}

@media (max-width: 768px) {
  .hover-image-follower {
    display: none !important; /* Hide image tracker on touch mobile screens */
  }
  
  .hover-item-name {
    font-size: var(--fs-h3);
  }
  
  .hover-item-left {
    gap: 1.5rem;
  }
}

/* ==========================================================================
   Perspective Zoom Scroll Section (aircenter.space inspired)
   ========================================================================== */
.perspective-scroll-sec {
  height: 250vh; /* headroom for scrolling */
  position: relative;
  background-color: var(--color-bg-dark);
}

.perspective-sticky-wrap {
  position: sticky;
  top: 0;
  min-height: 100vh;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

.perspective-slide {
  position: relative;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.perspective-img-container {
  width: 45vw;
  height: 55vh;
  overflow: hidden;
  border-radius: 16px;
  position: relative;
  box-shadow: 0 30px 70px rgba(0,0,0,0.4);
}

.perspective-img-container img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.perspective-caption {
  position: absolute;
  bottom: 5rem;
  left: 6rem;
  z-index: 10;
  color: white;
  pointer-events: none;
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s cubic-bezier(0.16, 1, 0.3, 1), transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.perspective-caption.visible {
  opacity: 1;
  transform: translateY(0);
}

.perspective-title {
  font-size: var(--fs-h2);
  margin-top: 1rem;
  color: white;
  letter-spacing: -0.01em;
}

@media (max-width: 1024px) {
  .perspective-img-container {
    width: 70vw;
    height: 50vh;
  }
  .perspective-title {
    font-size: var(--fs-h3);
  }
}

@media (max-width: 768px) {
  .perspective-img-container {
    width: 85vw;
    height: 45vh;
  }
  .perspective-caption {
    left: 2rem;
    bottom: 3rem;
  }
  .perspective-title {
    font-size: var(--fs-h3);
  }
}

/* ==========================================================================
   Staggered Word Slide-Up Reveal Animation (Haven inspired)
   ========================================================================== */
.scroll-reveal-text {
  opacity: 1 !important;
}

.reveal-word-wrapper {
  display: inline-block;
  overflow: hidden;
  vertical-align: bottom;
  margin-right: 0.22em; /* spacing between words */
  line-height: 1.2;
}

.reveal-word-inner {
  display: inline-block;
  transform: translateY(110%);
  transition: transform 1.2s cubic-bezier(0.16, 1, 0.3, 1);
  will-change: transform;
}

.scroll-reveal-text.reveal .reveal-word-inner {
  transform: translateY(0);
}

/* ==========================================================================
   Luxury Arguments Showcase Section (Voltaskai Inspired)
   ========================================================================== */
.luxury-arguments-sec {
  background-color: var(--color-bg-light);
  border-top: 1px solid var(--color-divider);
  border-bottom: 1px solid var(--color-divider);
}

.args-sticky-panel {
  position: -webkit-sticky;
  position: sticky;
  top: 120px;
  height: fit-content;
  padding-bottom: 2rem;
}

.args-sticky-content {
  display: flex;
  flex-direction: column;
  gap: var(--space-element);
}

.args-main-title {
  font-size: var(--fs-h2);
  color: var(--color-primary);
  line-height: 1.15;
  letter-spacing: -0.01em;
}

.args-blockquote {
  border-left: 2px solid var(--color-accent);
  padding: 0.5rem 0 0.5rem 1.8rem;
  margin: 1.5rem 0;
}

.args-quote-mark {
  font-family: var(--font-serif);
  font-size: var(--fs-h2);
  line-height: 0.2;
  color: var(--color-accent);
  opacity: 0.8;
  margin-bottom: 1rem;
}

.args-quote-text {
  font-family: var(--font-serif);
  font-size: var(--fs-h4);
  line-height: 1.6;
  color: var(--color-text-dark);
  font-style: italic;
}

.args-author {
  display: block;
  margin-top: 1.2rem;
  font-style: normal;
}

.args-author-name {
  font-family: var(--font-sans);
  font-size: var(--fs-body);
  font-weight: 600;
  color: var(--color-primary);
  display: block;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.args-author-title {
  font-family: var(--font-sans);
  font-size: var(--fs-small);
  color: rgba(28, 28, 28, 0.5);
  display: block;
  margin-top: 0.2rem;
}

.args-stats-grid {
  display: flex;
  gap: var(--space-element);
  margin-top: 1rem;
  border-top: 1px solid var(--color-divider);
  padding-top: 2rem;
}

.args-stat-item {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  opacity: 0.25;
  transform: translateY(10px);
  transition: opacity 0.6s ease, transform 0.6s var(--transition-medium);
}

.args-stat-item.active {
  opacity: 1;
  transform: translateY(0);
}

.args-stat-num {
  font-family: var(--font-sans);
  font-size: var(--fs-h3);
  font-weight: 600;
  line-height: 1;
  color: var(--color-primary);
}

.args-stat-label {
  font-family: var(--font-sans);
  font-size: var(--fs-small);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-weight: 500;
  color: rgba(28, 28, 28, 0.6);
}

.args-cards-panel {
  display: flex;
  flex-direction: column;
  gap: var(--space-section);
}

.args-card {
  background: white;
  border: 1px solid rgba(12, 56, 141, 0.05);
  border-radius: 16px;
  padding: 3.5rem;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.01);
  opacity: 0.35;
  transform: translateY(40px);
  transition: opacity 0.8s ease, transform 0.8s cubic-bezier(0.16, 1, 0.3, 1), border-color 0.5s ease, box-shadow 0.5s ease;
  position: relative;
  overflow: hidden;
}

.args-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 3px;
  background: linear-gradient(to right, var(--color-primary), var(--color-accent));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.5s ease;
}

.args-card.active {
  opacity: 1;
  transform: translateY(0);
  border-color: rgba(197, 168, 128, 0.4);
  box-shadow: 0 30px 60px rgba(12, 56, 141, 0.06);
}

.args-card.active::before {
  transform: scaleX(1);
}

.args-card-num {
  font-family: var(--font-serif);
  font-size: 2rem;
  color: var(--color-accent);
  font-style: italic;
  line-height: 1;
  margin-bottom: 1.5rem;
}

.args-card-title {
  font-family: var(--font-serif);
  font-size: var(--fs-h3);
  color: var(--color-primary);
  margin-bottom: 1.2rem;
  line-height: 1.2;
}

.args-card-desc {
  font-family: var(--font-sans);
  font-size: var(--fs-body);
  line-height: 1.7;
  color: rgba(28, 28, 28, 0.7);
}

/* ==========================================================================
   Legacy Timeline Section (Voltaskai Inspired)
   ========================================================================== */
.legacy-timeline-sec {
  background-color: #FDFBF7;
  position: relative;
  overflow: hidden;
  border-top: 1px solid var(--color-divider);
}

.timeline-header {
  text-align: center;
  max-width: 600px;
  margin: 0 auto 8rem auto;
}

.timeline-main-title {
  font-size: var(--fs-h2);
  color: var(--color-primary);
  margin-top: 1rem;
  line-height: 1.2;
}

.timeline-subtitle {
  font-size: var(--fs-body);
  color: rgba(28, 28, 28, 0.6);
  margin-top: 1.5rem;
  line-height: 1.6;
}

.timeline-container-wrap {
  position: relative;
  max-width: 1100px;
  margin: 0 auto;
  padding: 2rem 0;
}

/* Central progress line track */
.timeline-track-line {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 50%;
  width: 2px;
  background-color: rgba(12, 56, 141, 0.08);
  transform: translateX(-50%);
  z-index: 1;
}

.timeline-progress-line-filled {
  width: 100%;
  height: 100%;
  background: linear-gradient(to bottom, var(--color-primary) 0%, var(--color-accent) 100%);
  transform-origin: top;
  transform: scaleY(0);
  transition: transform 0.1s ease-out; /* instant update on scroll */
}

.timeline-events-list {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  gap: var(--space-section);
}

.timeline-event-card {
  position: relative;
  width: 50%;
  display: flex;
  opacity: 0;
  transition: opacity 0.8s ease, transform 1s cubic-bezier(0.16, 1, 0.3, 1);
}

.timeline-event-card.left {
  align-self: flex-start;
  padding-right: 5rem;
  justify-content: flex-end;
  transform: translate3d(-60px, 0, 0);
}

.timeline-event-card.right {
  align-self: flex-end;
  padding-left: 5rem;
  justify-content: flex-start;
  transform: translate3d(60px, 0, 0);
}

.timeline-event-card.revealed {
  opacity: 1;
  transform: translate3d(0, 0, 0);
}

.timeline-card-content {
  background: white;
  border: 1px solid rgba(28, 28, 28, 0.06);
  border-radius: 16px;
  padding: 3rem;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.02);
  max-width: 460px;
  transition: all 0.5s ease;
  position: relative;
}

.timeline-card-content:hover {
  border-color: rgba(197, 168, 128, 0.5);
  box-shadow: 0 20px 40px rgba(12, 56, 141, 0.04);
}

.timeline-card-year {
  font-family: var(--font-serif);
  font-size: var(--fs-h2);
  font-weight: 500;
  color: var(--color-accent);
  line-height: 1;
  margin-bottom: 0.5rem;
}

.timeline-card-title {
  font-family: var(--font-serif);
  font-size: var(--fs-h3);
  color: var(--color-primary);
  margin-bottom: 0.8rem;
  font-weight: 400;
}

.timeline-card-desc {
  font-family: var(--font-sans);
  font-size: 1.05rem;
  line-height: 1.6;
  color: rgba(28, 28, 28, 0.7);
}

/* Timeline central node dots */
.timeline-node-dot {
  position: absolute;
  top: 3.2rem;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: white;
  border: 3px solid rgba(12, 56, 141, 0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10;
  transition: all 0.5s var(--transition-medium);
}

.timeline-event-card.left .timeline-node-dot {
  left: 100%;
  transform: translate(-50%, -50%);
}

.timeline-event-card.right .timeline-node-dot {
  right: 100%;
  transform: translate(50%, -50%);
}

.timeline-node-inner {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(12, 56, 141, 0.2);
  transition: all 0.5s var(--transition-medium);
}

/* Light up node dots on reveal */
.timeline-event-card.revealed .timeline-node-dot {
  border-color: var(--color-accent);
  background-color: var(--color-primary);
  box-shadow: 0 0 0 6px rgba(197, 168, 128, 0.2);
}

.timeline-event-card.revealed .timeline-node-inner {
  background: var(--color-accent);
  transform: scale(1.2);
}

/* Responsive Overrides for new elements */
@media (max-width: 1024px) {
  .args-sticky-panel {
    position: relative;
    top: 0;
    height: auto;
    margin-bottom: var(--space-element);
  }
  .args-main-title {
    font-size: var(--fs-h3);
  }
  .args-cards-panel {
    gap: var(--space-element);
  }
  .args-card {
    padding: 2.5rem;
  }
  
  .timeline-track-line {
    left: 2rem;
  }
  .timeline-event-card {
    width: 100%;
    align-self: flex-start !important;
  }
  .timeline-event-card.left {
    padding-right: 0;
    padding-left: 4rem;
    justify-content: flex-start;
    transform: translate3d(40px, 0, 0);
  }
  .timeline-event-card.right {
    padding-left: 4rem;
    justify-content: flex-start;
    transform: translate3d(40px, 0, 0);
  }
  .timeline-event-card.left .timeline-node-dot,
  .timeline-event-card.right .timeline-node-dot {
    left: 2rem;
    right: auto;
    transform: translate(-50%, -50%);
  }
  .timeline-card-content {
    max-width: 100%;
  }
}

@media (max-width: 768px) {
  .args-stats-grid {
    gap: 1.5rem;
  }
  .args-stat-num {
    font-size: var(--fs-h3);
  }
  .args-card-title {
    font-size: var(--fs-h3);
  }
  .timeline-main-title {
    font-size: var(--fs-h3);
  }
  .timeline-card-content {
    padding: 2rem;
  }
  .timeline-card-year {
    font-size: 2rem;
  }
}

/* ==========================================================================
   Aircenter-Inspired Location Showcase & Morphing Headline
   ========================================================================== */
.air-location-showcase-sec {
  background-color: var(--color-bg-light);
  border-top: 1px solid var(--color-divider);
}

.air-location-main-title {
  font-size: var(--fs-h2);
  color: var(--color-primary);
  line-height: 1.2;
}

.morphing-text-target {
  display: inline-block;
  color: var(--color-accent);
  font-family: var(--font-serif);
  font-style: italic;
  transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.5s ease;
  will-change: transform, opacity;
}

.morphing-text-target.morph-exit {
  transform: translateY(-20px);
  opacity: 0;
}

.morphing-text-target.morph-enter {
  transform: translateY(20px);
  opacity: 0;
}

.air-location-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 250px), 1fr));
  gap: var(--space-element);
  margin-top: 1rem;
}

.air-location-card {
  background: white;
  border: 1px solid rgba(28, 28, 28, 0.05);
  border-radius: 16px;
  padding: 2.5rem;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.01);
  position: relative;
  overflow: hidden;
  opacity: 0;
  transform: translateY(45px);
  transition: opacity 0.8s ease, transform 0.8s cubic-bezier(0.16, 1, 0.3, 1), border-color 0.4s ease, box-shadow 0.4s ease;
}

.air-location-card.reveal {
  opacity: 1;
  transform: translateY(0);
}

.air-location-card:nth-child(1) { transition-delay: 0.1s; }
.air-location-card:nth-child(2) { transition-delay: 0.2s; }
.air-location-card:nth-child(3) { transition-delay: 0.3s; }
.air-location-card:nth-child(4) { transition-delay: 0.4s; }

.air-location-card::before {
  content: '';
  position: absolute;
  inset: 0;
  border: 1px solid var(--color-accent);
  border-radius: 16px;
  transform: scale(1.04);
  opacity: 0;
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.4s ease;
  pointer-events: none;
}

.air-location-card:hover {
  border-color: rgba(197, 168, 128, 0.3);
  box-shadow: 0 20px 45px rgba(12, 56, 141, 0.04);
}

.air-location-card:hover::before {
  transform: scale(1);
  opacity: 1;
}

.air-location-time {
  font-family: var(--font-sans);
  font-size: var(--fs-h2);
  font-weight: 600;
  color: var(--color-primary);
  line-height: 1;
}

.air-location-unit {
  font-family: var(--font-sans);
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--color-accent);
  font-weight: 500;
  margin-top: 0.2rem;
}

.air-location-divider {
  width: 40px;
  height: 1px;
  background-color: var(--color-divider);
  margin: 1.5rem 0;
}

.air-location-dest {
  font-family: var(--font-serif);
  font-size: 1.35rem;
  color: var(--color-primary);
  margin-bottom: 0.8rem;
  font-weight: 400;
}

.air-location-desc {
  font-family: var(--font-sans);
  font-size: var(--fs-body);
  color: rgba(28, 28, 28, 0.65);
  line-height: 1.5;
}

/* Responsive Overrides */
@media (max-width: 1024px) {
  .air-location-grid {
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 350px), 1fr));
  }
  .air-location-main-title {
    font-size: var(--fs-h2);
  }
}

@media (max-width: 768px) {
  .air-location-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
  .air-editorial-block {
    margin-top: var(--space-section);
  }
  .air-editorial-block .col-span-6 {
    grid-column: span 12;
  }
  .air-location-main-title {
    font-size: 2rem;
  }
  .air-location-card {
    padding: 2rem;
  }
}

/* ==========================================================================
   Infinite Marquee Text Band
   ========================================================================== */
.marquee-band-sec {
  background-color: #06122d;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  overflow: hidden;
  padding: 1.8rem 0;
  position: relative;
}

.marquee-band-sec::before,
.marquee-band-sec::after {
  content: '';
  position: absolute;
  top: 0;
  bottom: 0;
  width: 120px;
  z-index: 2;
  pointer-events: none;
}

.marquee-band-sec::before {
  left: 0;
  background: linear-gradient(to right, #06122d, transparent);
}

.marquee-band-sec::after {
  right: 0;
  background: linear-gradient(to left, #06122d, transparent);
}

.marquee-track {
  display: flex;
  width: 100%;
  overflow: hidden;
}

.marquee-content {
  display: flex;
  align-items: center;
  white-space: nowrap;
  animation: marquee-scroll 45s linear infinite;
  will-change: transform;
}

@keyframes marquee-scroll {
  0% {
    transform: translate3d(0, 0, 0);
  }
  100% {
    transform: translate3d(-50%, 0, 0);
  }
}

.marquee-word {
  font-family: var(--font-serif);
  font-size: var(--fs-h3);
  color: rgba(255, 255, 255, 0.5);
  letter-spacing: 0.02em;
  padding: 0 1.5rem;
  transition: color 0.3s ease;
}

.marquee-word:hover {
  color: var(--color-accent);
}

.marquee-dot {
  font-size: 0.5rem;
  color: var(--color-accent);
  opacity: 0.4;
}

/* ==========================================================================
   Horizontal Process Showcase
   ========================================================================== */
.process-showcase-sec {
  background-color: var(--color-bg-light);
  border-top: 1px solid var(--color-divider);
  overflow: hidden;
}

.process-horizontal-track {
  overflow-x: auto;
  overflow-y: hidden;
  scroll-behavior: smooth;
  cursor: grab;
  -webkit-overflow-scrolling: touch;
  padding: 0 4rem 3rem 4rem;
  scrollbar-width: none;
  -ms-overflow-style: none;
}

.process-horizontal-track::-webkit-scrollbar {
  display: none;
}

.process-horizontal-track.dragging {
  cursor: grabbing;
  scroll-behavior: auto;
}

.process-cards-rail {
  display: flex;
  gap: var(--space-element);
  min-width: max-content;
  padding-right: 6rem;
}

.process-card {
  flex-shrink: 0;
  width: 340px;
  background: white;
  border: 1px solid rgba(28, 28, 28, 0.05);
  border-radius: 20px;
  padding: 3rem 2.5rem;
  position: relative;
  overflow: hidden;
  opacity: 0;
  transform: translateY(40px) scale(0.96);
  transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1),
              transform 0.8s cubic-bezier(0.16, 1, 0.3, 1),
              border-color 0.4s ease,
              box-shadow 0.4s ease;
}

.process-card.visible {
  opacity: 1;
  transform: translateY(0) scale(1);
}

.process-card:nth-child(1) { transition-delay: 0s; }
.process-card:nth-child(2) { transition-delay: 0.08s; }
.process-card:nth-child(3) { transition-delay: 0.16s; }
.process-card:nth-child(4) { transition-delay: 0.24s; }
.process-card:nth-child(5) { transition-delay: 0.32s; }

.process-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(to right, var(--color-primary), var(--color-accent));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.process-card:hover {
  border-color: rgba(197, 168, 128, 0.4);
  box-shadow: 0 25px 55px rgba(12, 56, 141, 0.06);
  transform: translateY(-8px) scale(1);
}

.process-card:hover::before {
  transform: scaleX(1);
}

.process-card-step {
  font-family: var(--font-serif);
  font-size: var(--fs-h2);
  font-weight: 500;
  color: var(--color-accent);
  line-height: 1;
  opacity: 0.7;
}

.process-card-line {
  width: 40px;
  height: 2px;
  background: linear-gradient(to right, var(--color-primary), var(--color-accent));
  margin: 1.5rem 0;
  transition: width 0.5s ease;
}

.process-card:hover .process-card-line {
  width: 80px;
}

.process-card-title {
  font-family: var(--font-serif);
  font-size: var(--fs-h3);
  color: var(--color-primary);
  margin-bottom: 1rem;
  line-height: 1.2;
}

.process-card-desc {
  font-family: var(--font-sans);
  font-size: var(--fs-body);
  line-height: 1.6;
  color: rgba(28, 28, 28, 0.65);
}

.process-card-icon {
  width: 40px;
  height: 40px;
  color: var(--color-accent);
  margin-top: var(--space-element);
  opacity: 0.5;
  transition: opacity 0.3s ease, transform 0.3s ease;
}

.process-card:hover .process-card-icon {
  opacity: 1;
  transform: translateX(4px);
}

.process-card-icon svg {
  width: 100%;
  height: 100%;
}

.process-progress-bar {
  max-width: 1440px;
  margin: 0 auto;
  padding: 0 4rem;
  height: 3px;
  background-color: rgba(28, 28, 28, 0.06);
  position: relative;
  overflow: hidden;
}

.process-progress-fill {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(to right, var(--color-primary), var(--color-accent));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.15s ease-out;
}

/* ==========================================================================
   Cinematic Testimonial Carousel
   ========================================================================== */
.testimonials-sec {
  background-color: #FDFBF7;
  border-top: 1px solid var(--color-divider);
  border-bottom: 1px solid var(--color-divider);
  overflow: hidden;
}

.testimonial-nav {
  display: flex;
  gap: 1rem;
  margin-top: var(--space-element);
}

.testimonial-nav-dot {
  width: 40px;
  height: 4px;
  background-color: rgba(28, 28, 28, 0.1);
  border-radius: 2px;
  cursor: pointer;
  overflow: hidden;
  position: relative;
  transition: background-color 0.3s ease;
}

.testimonial-nav-dot .dot-fill {
  display: block;
  width: 100%;
  height: 100%;
  background-color: var(--color-primary);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  border-radius: 2px;
}

.testimonial-nav-dot.active .dot-fill {
  transform: scaleX(1);
}

.testimonial-nav-dot:hover {
  background-color: rgba(28, 28, 28, 0.15);
}

.testimonial-stage {
  position: relative;
  min-height: 280px;
}

.testimonial-slide {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  opacity: 0;
  transform: translateY(25px);
  transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1),
              transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
  pointer-events: none;
}

.testimonial-slide.active {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
  position: relative;
}

.testimonial-quote-mark {
  font-family: var(--font-serif);
  font-size: var(--fs-h1);
  line-height: 0.4;
  color: var(--color-accent);
  opacity: 0.3;
  margin-bottom: 1rem;
  user-select: none;
}

.testimonial-quote {
  font-family: var(--font-serif);
  font-size: var(--fs-h3);
  line-height: 1.5;
  color: var(--color-primary);
  font-style: italic;
  max-width: 90%;
}

.testimonial-author-block {
  margin-top: var(--space-element);
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
}

.testimonial-author-name {
  font-family: var(--font-sans);
  font-size: var(--fs-body);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--color-text-dark);
}

.testimonial-author-role {
  font-family: var(--font-sans);
  font-size: 0.85rem;
  color: rgba(28, 28, 28, 0.5);
}

/* Column span helper for 5-column */
.col-span-5 {
  grid-column: span 5;
}

.col-span-6 {
  grid-column: span 6;
}

.col-span-7 {
  grid-column: span 7;
}

/* Responsive for new sections */
@media (max-width: 1024px) {
  .process-card {
    width: 300px;
    padding: 2.5rem 2rem;
  }
  .testimonial-quote {
    font-size: var(--fs-h3);
  }
  .marquee-word {
    font-size: var(--fs-h4);
  }
}

@media (max-width: 768px) {
  .process-card {
    width: 270px;
    padding: 2rem 1.5rem;
  }
  .process-horizontal-track {
    padding: 0 2rem 2rem 2rem;
  }
  .testimonials-sec .grid-12 {
    display: flex;
    flex-direction: column;
    gap: var(--space-element);
  }
  .testimonials-sec .col-span-4,
  .testimonials-sec .col-span-8 {
    grid-column: span 12;
  }
  .testimonial-quote {
    font-size: var(--fs-h4);
    max-width: 100%;
  }
  .testimonial-stage {
    min-height: 220px;
  }
  .marquee-word {
    font-size: var(--fs-h4);
    padding: 0 1rem;
  }
}

/* ==========================================================================
   Perspective Section Counter Overlay
   ========================================================================== */
.perspective-counter {
  position: absolute;
  bottom: 3rem;
  right: 4rem;
  z-index: 10;
  color: white;
  display: flex;
  align-items: baseline;
  gap: 0.3rem;
  font-family: var(--font-sans);
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.perspective-caption.visible ~ .perspective-counter,
.perspective-counter.visible {
  opacity: 1;
  transform: translateY(0);
}

.perspective-counter-num {
  font-size: var(--fs-h2);
  font-weight: 600;
  letter-spacing: -0.02em;
}

.perspective-counter-divider {
  font-size: var(--fs-h4);
  opacity: 0.4;
  margin: 0 0.2rem;
}

.perspective-counter-total {
  font-size: var(--fs-h4);
  opacity: 0.5;
}

/* ==========================================================================
   NiB-Inspired Dual Image Showcase Section
   ========================================================================== */
.nib-showcase-sec {
  background-color: var(--color-bg-light);
  padding: var(--space-section) 0;
  border-top: 1px solid var(--color-divider);
  overflow: hidden;
}

.nib-showcase-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-element);
  align-items: start;
}

.nib-showcase-col {
  display: flex;
  flex-direction: column;
  gap: var(--space-element);
}

.nib-col-right {
  padding-top: var(--space-section);
}

.nib-img-wrap {
  position: relative;
  overflow: hidden;
  border-radius: 12px;
  cursor: pointer;
}

.nib-img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 1.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.nib-img-wrap:hover img {
  transform: scale(1.06);
}

.nib-img-tall {
  aspect-ratio: 3/4;
}

.nib-img-wide {
  aspect-ratio: 16/10;
}

.nib-img-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 1.5rem 2rem;
  background: linear-gradient(to top, rgba(0,0,0,0.5), transparent);
  opacity: 0;
  transform: translateY(10px);
  transition: opacity 0.5s ease, transform 0.5s ease;
}

.nib-img-wrap:hover .nib-img-overlay {
  opacity: 1;
  transform: translateY(0);
}

.nib-img-tag {
  font-family: var(--font-sans);
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: white;
  font-weight: 500;
}

.nib-text-block {
  padding: 2rem 0;
}

.nib-text-editorial {
  font-family: var(--font-serif);
  font-size: var(--fs-h3);
  line-height: 1.5;
  color: var(--color-primary);
  font-style: italic;
}

.nib-text-author {
  display: block;
  margin-top: 1rem;
  font-family: var(--font-sans);
  font-size: 0.85rem;
  color: rgba(28, 28, 28, 0.5);
  letter-spacing: 0.05em;
}

.nib-showcase-title {
  font-size: var(--fs-h2);
  color: var(--color-primary);
  margin-top: 1rem;
  margin-bottom: 1.5rem;
  line-height: 1.15;
}

.nib-showcase-desc {
  font-size: var(--fs-body);
  line-height: 1.7;
  color: rgba(28, 28, 28, 0.65);
}

@media (max-width: 768px) {
  .nib-showcase-grid {
    grid-template-columns: 1fr;
  }
  .nib-col-right {
    padding-top: 0;
  }
  .nib-showcase-title {
    font-size: var(--fs-h3);
  }
}

/* ==========================================================================
   Material Laboratory V2 — Large Image Card Layout
   ========================================================================== */
.material-lab-sec-v2 {
  background-color: #F6F4EF;
  border-top: 1px solid var(--color-divider);
}

.mat-v2-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: var(--space-section);
  margin-bottom: var(--space-section);
}

.mat-v2-title {
  font-size: var(--fs-h2);
  margin-top: 1rem;
  color: var(--color-primary);
}

.mat-v2-intro {
  max-width: 400px;
  font-size: var(--fs-body);
  color: rgba(28, 28, 28, 0.6);
  line-height: 1.6;
}

.mat-v2-gallery {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 350px), 1fr));
  gap: var(--space-element);
}

.mat-v2-item {
  background: white;
  border: 1px solid rgba(28, 28, 28, 0.04);
  border-radius: 16px;
  overflow: hidden;
  cursor: pointer;
  transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1),
              border-color 0.4s ease,
              box-shadow 0.4s ease;
}

.mat-v2-item:hover {
  transform: translateY(-8px);
  border-color: rgba(197, 168, 128, 0.3);
  box-shadow: 0 30px 60px rgba(12, 56, 141, 0.05);
}

.mat-v2-img-wrap {
  width: 100%;
  aspect-ratio: 16/10;
  overflow: hidden;
}

.mat-v2-img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 1.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.mat-v2-item:hover .mat-v2-img-wrap img {
  transform: scale(1.08);
}

.mat-v2-info {
  padding: 2rem 2.5rem;
}

.mat-v2-label {
  font-family: var(--font-sans);
  font-size: var(--fs-small);
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--color-accent);
  font-weight: 600;
}

.mat-v2-name {
  font-family: var(--font-serif);
  font-size: var(--fs-h3);
  color: var(--color-primary);
  margin: 0.6rem 0 0.8rem;
  font-weight: 400;
}

.mat-v2-desc {
  font-family: var(--font-sans);
  font-size: var(--fs-body);
  line-height: 1.6;
  color: rgba(28, 28, 28, 0.6);
}

@media (max-width: 1024px) {
  .mat-v2-header {
    flex-direction: column;
    align-items: flex-start;
    gap: var(--space-element);
  }
  .mat-v2-intro {
    max-width: 100%;
  }
}

@media (max-width: 768px) {
  .mat-v2-gallery {
    grid-template-columns: 1fr;
  }
  .mat-v2-title {
    font-size: var(--fs-h3);
  }
}

/* ==========================================================================
   Compact Milestones Timeline (Horizontal Inline)
   ========================================================================== */
.milestones-compact-sec {
  background-color: var(--color-primary);
  padding: var(--space-section) 0;
  overflow: hidden;
}

.milestones-compact-header {
  margin-bottom: var(--space-element);
}

.milestones-compact-header .subtitle-caps {
  color: var(--color-accent);
}

.milestones-compact-header .subtitle-caps::before {
  background-color: var(--color-accent);
}

.milestones-compact-title {
  font-size: var(--fs-h3);
  color: white;
  margin-top: 0.8rem;
}

.milestones-compact-track {
  display: flex;
  align-items: flex-start;
  gap: 0;
  position: relative;
  padding-top: 2rem;
}

.milestones-compact-track::before {
  content: '';
  position: absolute;
  top: calc(2rem + 30px);
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(to right, rgba(255,255,255,0.1), var(--color-accent), rgba(255,255,255,0.1));
}

.milestone-compact-item {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  position: relative;
}

.milestone-compact-year {
  font-family: var(--font-serif);
  font-size: var(--fs-h3);
  color: var(--color-accent);
  font-weight: 500;
  margin-bottom: 0.8rem;
}

.milestone-compact-dot {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background-color: var(--color-accent);
  border: 3px solid var(--color-primary);
  box-shadow: 0 0 0 3px rgba(197, 168, 128, 0.3);
  margin-bottom: 1rem;
  position: relative;
  z-index: 2;
}

.milestone-compact-name {
  font-family: var(--font-sans);
  font-size: 0.85rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: rgba(255, 255, 255, 0.7);
  max-width: 140px;
}

@media (max-width: 768px) {
  .milestones-compact-track {
    flex-direction: column;
    align-items: flex-start;
    gap: var(--space-element);
    padding-top: 0;
    padding-left: 2rem;
  }
  .milestones-compact-track::before {
    top: 0;
    bottom: 0;
    left: 2rem;
    right: auto;
    width: 2px;
    height: auto;
    background: linear-gradient(to bottom, rgba(255,255,255,0.1), var(--color-accent), rgba(255,255,255,0.1));
  }
  .milestone-compact-item {
    flex-direction: row;
    text-align: left;
    gap: 1.5rem;
    align-items: center;
  }
  .milestone-compact-year {
    margin-bottom: 0;
    min-width: 60px;
  }
  .milestone-compact-dot {
    margin-bottom: 0;
  }
  .milestone-compact-name {
    max-width: none;
  }
}

/* ==========================================================================
   Improved Hero Transition — Staggered Subtitle
   ========================================================================== */
.hero-sec::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 200px;
  background: radial-gradient(circle at 30% 20%, #E3CD81 0%, #B99B5B 50%, #8A733F 100%);
  -webkit-mask-image: linear-gradient(to top, black, transparent);
  mask-image: linear-gradient(to top, black, transparent);
  z-index: 4;
  pointer-events: none;
}

/* ==========================================================================
   Scroll Reveal States for New Sections
   ========================================================================== */
.nib-img-wrap {
  opacity: 0;
  transform: translateY(50px);
  transition: opacity 1s cubic-bezier(0.16, 1, 0.3, 1),
              transform 1s cubic-bezier(0.16, 1, 0.3, 1);
}

.nib-img-wrap.reveal {
  opacity: 1;
  transform: translateY(0);
}

.nib-col-left .nib-img-wrap { transition-delay: 0s; }
.nib-col-right .nib-img-wrap { transition-delay: 0.2s; }

.mat-v2-item {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1),
              transform 0.8s cubic-bezier(0.16, 1, 0.3, 1),
              border-color 0.4s ease,
              box-shadow 0.4s ease;
}

.mat-v2-item.reveal {
  opacity: 1;
  transform: translateY(0);
}

.mat-v2-item:nth-child(1) { transition-delay: 0s; }
.mat-v2-item:nth-child(2) { transition-delay: 0.1s; }
.mat-v2-item:nth-child(3) { transition-delay: 0.2s; }
.mat-v2-item:nth-child(4) { transition-delay: 0.3s; }

.mat-v2-item.reveal:hover {
  transform: translateY(-8px);
}

/* ==========================================================================
   FindRealEstate Inspired Luxury Section
   ========================================================================== */
.fre-luxury-sec {
  background-color: var(--color-bg-dark);
  color: white;
}

.fre-main-title {
  font-family: var(--font-serif);
  font-size: var(--fs-h1);
  line-height: 1.1;
  font-weight: 400;
  max-width: 80%;
  margin-bottom: var(--space-section);
}

.fre-image-card {
  position: relative;
  width: 100%;
  aspect-ratio: 4/5;
  overflow: hidden;
  border-radius: 4px;
  cursor: pointer;
  background-color: #111;
}

.fre-image-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 1.2s cubic-bezier(0.16, 1, 0.3, 1), filter 0.8s ease;
  filter: brightness(0.85);
}

.fre-image-card:hover img {
  transform: scale(1.05) !important;
  filter: brightness(0.4);
}

.fre-card-overlay {
  position: absolute;
  inset: 0;
  padding: 3rem;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1), transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
  pointer-events: none;
}

.fre-image-card:hover .fre-card-overlay {
  opacity: 1;
  transform: translateY(0);
}

.fre-card-num {
  font-family: var(--font-sans);
  font-size: var(--fs-body);
  letter-spacing: 0.1em;
  color: var(--color-accent);
  margin-bottom: 1rem;
}

.fre-card-title {
  font-family: var(--font-serif);
  font-size: var(--fs-h3);
  line-height: 1.2;
  margin-bottom: 1rem;
  color: white;
}

.fre-card-desc {
  font-family: var(--font-sans);
  font-size: var(--fs-body);
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.8);
}

@media (max-width: 768px) {
  .fre-main-title {
    font-size: var(--fs-h2) !important;
    max-width: 100% !important;
  }
  .fre-image-card {
    margin-top: 0 !important;
    aspect-ratio: 1/1;
  }
  .fre-card-overlay {
    opacity: 1;
    transform: translateY(0);
    background: linear-gradient(to top, rgba(0,0,0,0.8), transparent);
  }
}

/* ==========================================================================
   Mobile Responsive Overrides
   ========================================================================== */
@media (max-width: 768px) {
  /* Hero Typographic Scaling */
  .hero-sec {
    padding-top: 25vh; /* Adjust golden ratio for taller screens */
    padding-left: 2rem;
    padding-right: 2rem;
  }
  
  .hero-aidc-text {
    gap: 3vw;
  }
  
  .aidc-letter {
    font-size: var(--fs-h1); /* Ensure massive text fits without overflow */
  }

  /* Grid Layouts */
  .grid-2, .grid-3 {
    grid-template-columns: 1fr;
    gap: var(--space-element);
  }
  
  .grid-12 {
    display: flex;
    flex-direction: column;
    gap: var(--space-element);
  }

  /* Floating Perspective Panel */
  .perspective-caption {
    left: 5% !important;
    bottom: 5% !important;
    max-width: 90% !important;
    padding: 2rem !important;
  }

  .perspective-caption h3 {
    font-size: var(--fs-h3) !important;
  }
  
  .perspective-caption p {
    font-size: var(--fs-body) !important;
  }

  /* Padding adjustments */
  .container-wide {
    padding: 0 2rem;
  }
  
  .section-padding {
    padding: var(--space-section) 0;
  }
  
  /* Philosophy block image */
  .philosophy-image-wrap img {
    min-height: 350px !important;
  }
}

/* ==========================================================================
   Archidomo Inspired Material Laboratory
   ========================================================================== */
.archidomo-mat-sec {
  position: relative;
  width: 100%;
  display: flex;
  background-color: var(--color-bg-light);
  border-top: 1px solid rgba(0,0,0,0.1);
}

.archidomo-mat-images {
  position: sticky;
  top: 0;
  width: 55%;
  min-height: 100vh;
  overflow: hidden;
}

.archidomo-mat-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transform: scale(1.1);
  transition: opacity 1.2s cubic-bezier(0.16, 1, 0.3, 1), transform 1.2s cubic-bezier(0.16, 1, 0.3, 1);
  filter: grayscale(10%);
}

.archidomo-mat-img.active {
  opacity: 1;
  transform: scale(1);
}

.archidomo-mat-content {
  width: 45%;
  padding: 8rem 5rem;
  display: flex;
  flex-direction: column;
}

.archidomo-main-title {
  font-family: var(--font-serif);
  font-size: var(--fs-h2);
  line-height: 1.1;
  font-weight: 400;
  margin-bottom: var(--space-element);
  color: var(--color-text-dark);
}

.archidomo-intro {
  font-family: var(--font-sans);
  font-size: var(--fs-body);
  line-height: 1.6;
  color: var(--color-text-dark); /* Changed from light to dark to fix visibility */
  margin-bottom: var(--space-section);
  max-width: 80%;
}

.archidomo-mat-list {
  display: flex;
  flex-direction: column;
}

.archidomo-mat-item {
  padding: 2.5rem 0;
  border-top: 1px solid rgba(0,0,0,0.1);
  cursor: pointer;
  opacity: 0.4;
  transition: opacity 0.4s ease, padding-left 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.archidomo-mat-item:last-child {
  border-bottom: 1px solid rgba(0,0,0,0.1);
}

.archidomo-mat-item.active, .archidomo-mat-item:hover {
  opacity: 1;
  padding-left: 2rem;
}

.archidomo-mat-num {
  font-family: var(--font-sans);
  font-size: var(--fs-small);
  color: var(--color-accent);
  margin-bottom: 1rem;
  letter-spacing: 0.05em;
}

.archidomo-mat-name {
  font-family: var(--font-serif);
  font-size: var(--fs-h2);
  font-weight: 400;
  margin-bottom: 1rem;
  color: var(--color-text-dark);
}

.archidomo-mat-desc {
  font-family: var(--font-sans);
  font-size: var(--fs-body);
  line-height: 1.6;
  color: var(--color-text-dark); /* Changed from light to dark to fix visibility */
  max-width: 90%;
}

@media (max-width: 992px) {
  .archidomo-mat-sec {
    flex-direction: column;
  }
  .archidomo-mat-images {
    width: 100%;
    height: 50vh;
    position: relative;
  }
  .archidomo-mat-content {
    width: 100%;
    padding: var(--space-section) 2rem;
  }
  .archidomo-mat-item.active, .archidomo-mat-item:hover {
    padding-left: 0;
  }
}

/* ==========================================================================
   Springs Estate Inspired Methodology (Accordion)
   ========================================================================== */
.springs-methodology-sec {
  background-color: #F8F7F5;
  padding: var(--space-section) 0;
  position: relative;
  overflow: hidden;
}

.springs-method-intro {
  margin-bottom: var(--space-section);
  max-width: 60%;
}

.springs-method-main-title {
  font-size: var(--fs-h1);
  font-family: var(--font-serif);
  font-weight: 400;
  margin-top: 1rem;
  color: var(--color-text-dark);
}

.springs-accordion {
  display: flex;
  flex-direction: column;
  border-top: 1px solid rgba(0,0,0,0.1);
}

.springs-acc-item {
  border-bottom: 1px solid rgba(0,0,0,0.1);
  position: relative;
}

.springs-acc-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: var(--space-section) 0;
  cursor: pointer;
  position: relative;
  z-index: 2;
  transition: padding-left 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.springs-acc-item:hover .springs-acc-header {
  padding-left: 2rem;
}

.springs-acc-num {
  position: absolute;
  left: -2rem;
  top: 50%;
  transform: translateY(-50%);
  font-size: var(--fs-h1);
  font-family: var(--font-sans);
  font-weight: 300;
  color: rgba(0,0,0,0.02);
  pointer-events: none;
  transition: color 0.8s ease;
}

.springs-acc-item.active .springs-acc-num {
  color: rgba(0,0,0,0.05);
}

.springs-acc-title {
  font-size: var(--fs-h2);
  font-family: var(--font-serif);
  font-weight: 400;
  color: var(--color-text-dark);
  margin-left: 6rem;
  pointer-events: none;
}

.springs-acc-icon {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  border: 1px solid rgba(0,0,0,0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.8s cubic-bezier(0.16, 1, 0.3, 1), background-color 0.4s ease;
}

.springs-acc-plus {
  position: relative;
  width: 16px;
  height: 16px;
}

.springs-acc-plus::before, .springs-acc-plus::after {
  content: "";
  position: absolute;
  background-color: var(--color-text-dark);
  transition: transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.springs-acc-plus::before {
  top: 7px;
  left: 0;
  width: 16px;
  height: 1.5px;
}

.springs-acc-plus::after {
  top: 0;
  left: 7px;
  width: 1.5px;
  height: 16px;
}

.springs-acc-item.active .springs-acc-icon {
  transform: rotate(90deg);
  background-color: var(--color-text-dark);
  border-color: var(--color-text-dark);
}

.springs-acc-item.active .springs-acc-plus::before,
.springs-acc-item.active .springs-acc-plus::after {
  background-color: #fff;
}

.springs-acc-item.active .springs-acc-plus::after {
  transform: scaleY(0);
}

.springs-acc-body {
  overflow: hidden;
  transition: max-height 1.2s cubic-bezier(0.76, 0, 0.24, 1);
}

.springs-acc-content-inner {
  display: flex;
  padding: 0 0 5rem 6rem;
  gap: var(--space-section);
  align-items: flex-end;
}

.springs-acc-text-wrap {
  flex: 1;
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s ease, transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.springs-acc-item.active .springs-acc-text-wrap {
  opacity: 1;
  transform: translateY(0);
  transition-delay: 0.4s;
}

.springs-acc-desc {
  font-size: 1.35rem;
  line-height: 1.6;
  color: var(--color-text-dark); /* Changed from light to dark to fix visibility */
  margin-bottom: var(--space-element);
}

.springs-acc-line {
  height: 1px;
  width: 100%;
  background-color: rgba(0,0,0,0.1);
}

.springs-acc-image-wrap {
  flex: 1.5;
  height: 500px;
  overflow: hidden;
  opacity: 0;
  transform: scale(0.95);
  transition: opacity 1.2s ease, transform 1.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.springs-acc-item.active .springs-acc-image-wrap {
  opacity: 1;
  transform: scale(1);
  transition-delay: 0.2s;
}

.springs-acc-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.1);
  transition: transform 2s cubic-bezier(0.16, 1, 0.3, 1);
}

.springs-acc-item.active .springs-acc-img {
  transform: scale(1);
}

@media (max-width: 992px) {
  .springs-acc-content-inner {
    flex-direction: column;
    padding: 0 0 3rem 0;
  }
  .springs-acc-image-wrap {
    width: 100%;
    height: 350px;
  }
  .springs-acc-title {
    margin-left: 2rem;
    font-size: var(--fs-h2);
  }
  .springs-acc-item:hover .springs-acc-header {
    padding-left: 0;
  }
  .springs-acc-num {
    font-size: var(--fs-h1);
  }
}

/* ==========================================================================
   TheCube Inspired Projects Grid
   ========================================================================== */
.cube-projects-sec {
  background-color: #111;
  color: #fff;
  padding: var(--space-section) 0;
}

.cube-projects-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  margin-bottom: var(--space-section);
}

.cube-subtitle {
  color: rgba(255,255,255,0.4);
  margin-bottom: 1rem;
}

.cube-main-title {
  font-size: var(--fs-h2);
  font-family: var(--font-serif);
  font-weight: 300;
  line-height: 1.1;
  color: #fff;
}

.btn-premium-light {
  border-color: rgba(255,255,255,0.3);
  color: #fff;
}

.btn-premium-light:hover {
  background-color: #fff;
  color: #111;
}

.cube-projects-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 350px), 1fr));
  gap: var(--space-section);
}

.cube-project-card {
  position: relative;
  overflow: hidden;
  display: block;
}

.cube-card-offset {
  margin-top: var(--space-section); /* Creates the asymmetrical staggered look */
}

/* On mobile, remove the grid offset and force single column */
@media (max-width: 992px) {
  .cube-projects-grid {
    grid-template-columns: 1fr;
    gap: var(--space-element);
  }
  .cube-card-offset {
    margin-top: 0;
  }
  .cube-projects-header {
    flex-direction: column;
    align-items: flex-start;
    gap: var(--space-element);
    margin-bottom: var(--space-section);
  }
}

.cube-project-link {
  display: block;
  position: relative;
  text-decoration: none;
}

.cube-project-img-wrap {
  width: 100%;
  height: 75vh;
  min-height: 500px;
  position: relative;
  overflow: hidden;
}

.cube-project-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.05);
  transition: transform 1.6s cubic-bezier(0.16, 1, 0.3, 1);
  filter: grayscale(20%);
}

.cube-project-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(to top, rgba(0,0,0,0.8) 0%, rgba(0,0,0,0.2) 40%, transparent 100%);
  opacity: 0;
  transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1);
  pointer-events: none;
}

.cube-project-info {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  padding: 3rem;
  z-index: 2;
  transform: translateY(20px);
  opacity: 0;
  transition: transform 0.8s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1);
  pointer-events: none;
}

.cube-project-title {
  font-size: var(--fs-h2);
  font-family: var(--font-serif);
  font-weight: 300;
  color: #fff;
  margin-bottom: 1rem;
}

.cube-project-meta {
  display: flex;
  align-items: center;
  gap: 1rem;
  font-family: var(--font-sans);
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: rgba(255,255,255,0.7);
}

.cube-meta-dot {
  width: 4px;
  height: 4px;
  background-color: var(--color-accent);
  border-radius: 50%;
}

/* Hover Interactions */
.cube-project-link:hover .cube-project-img {
  transform: scale(1);
  filter: grayscale(0%);
}

.cube-project-link:hover .cube-project-overlay {
  opacity: 1;
}

  .cube-project-link:hover .cube-project-info {
    transform: translateY(0);
    opacity: 1;
  }
}

/* ==========================================================================
   Septiembre Inspired Team Section
   ========================================================================== */
.septiembre-team-sec {
  padding: var(--space-section) 0;
  background-color: var(--color-bg-light);
  position: relative;
}

.septiembre-team-header {
  margin-bottom: var(--space-section);
}

.septiembre-team-title {
  font-size: var(--fs-h1);
  font-family: var(--font-serif);
  font-weight: 400;
  color: var(--color-text-dark);
  margin-top: 1rem;
}

.septiembre-team-list {
  display: flex;
  flex-direction: column;
  border-top: 1px solid rgba(0,0,0,0.1);
}

.septiembre-team-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: var(--space-section) 0;
  border-bottom: 1px solid rgba(0,0,0,0.1);
  cursor: pointer;
  position: relative;
  transition: padding-left 0.8s cubic-bezier(0.16, 1, 0.3, 1), padding-right 0.8s cubic-bezier(0.16, 1, 0.3, 1);
  z-index: 2;
}

.septiembre-team-row:hover {
  padding-left: 2rem;
  padding-right: 2rem;
}

.septiembre-team-name {
  font-family: var(--font-serif);
  font-size: var(--fs-h1);
  font-weight: 300;
  color: var(--color-text-dark);
  transition: color 0.6s ease;
  flex: 2;
}

.septiembre-team-role {
  font-family: var(--font-sans);
  font-size: var(--fs-body);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--color-text-light);
  flex: 1;
  text-align: left;
}

.septiembre-team-arrow {
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  color: var(--color-text-dark);
  opacity: 0;
  transform: translateX(-20px);
  transition: opacity 0.6s ease, transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.septiembre-team-row:hover .septiembre-team-arrow {
  opacity: 1;
  transform: translateX(0);
}

.septiembre-team-row:hover .septiembre-team-name {
  color: var(--color-primary);
}

/* Floating Portrait Cursor Follower */
.septiembre-team-follower {
  position: fixed;
  top: 0;
  left: 0;
  width: 350px;
  height: 450px;
  pointer-events: none;
  opacity: 0;
  z-index: 100;
  overflow: hidden;
  /* Hardware acceleration for buttery smooth follow */
  will-change: transform, opacity;
  transition: opacity 0.6s ease;
}

.septiembre-follower-inner {
  width: 100%;
  height: 100%;
  position: relative;
  overflow: hidden;
  transform: scale(0.9);
  transition: transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.septiembre-team-follower.active {
  opacity: 1;
}

.septiembre-team-follower.active .septiembre-follower-inner {
  transform: scale(1);
}

#septiembre-follower-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: grayscale(100%) contrast(1.2);
  transform: scale(1.1);
  transition: transform 1.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.septiembre-team-follower.active #septiembre-follower-img {
  transform: scale(1);
}

@media (max-width: 992px) {
  .septiembre-team-row {
    flex-direction: column;
    align-items: flex-start;
    padding: 3rem 0;
    gap: 1rem;
  }
  .septiembre-team-row:hover {
    padding-left: 0;
    padding-right: 0;
  }
  .septiembre-team-name {
    font-size: var(--fs-h2);
  }
  .septiembre-team-arrow {
    display: none;
  }
  /* Disable custom follower on mobile for native feel */
  .septiembre-team-follower {
    display: none !important;
  }
}

/* Hover effect for new team carousel */
.team-carousel-item:hover .team-grid-img {
  transform: scale(1.05) !important;
  filter: grayscale(0%) !important;
}

/* Hide scrollbar for the continuous image strip */
.team-carousel-wrapper::-webkit-scrollbar {
  display: none;
}

/* ==========================================================================
   Team Detail Modal
   ========================================================================== */
.team-modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  min-height: 100vh;
  background-color: rgba(253, 251, 247, 0.98);
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.5s ease;
}

.team-modal-overlay.open {
  opacity: 1;
  pointer-events: all;
}

.team-modal-close {
  position: absolute;
  top: 3rem;
  right: 4rem;
  background: none;
  border: none;
  color: #9C1919;
  width: 40px;
  height: 40px;
  cursor: pointer;
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  z-index: 10;
}

.team-modal-close:hover {
  transform: rotate(90deg) scale(1.1);
}

.team-modal-content {
  display: flex;
  max-width: 1100px;
  width: 90%;
  height: 70vh;
  background: #fff;
  box-shadow: 0 30px 60px rgba(0,0,0,0.05);
  transform: translateY(30px);
  opacity: 0;
  transition: transform 0.7s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.7s ease;
}

.team-modal-overlay.open .team-modal-content {
  transform: translateY(0);
  opacity: 1;
  transition-delay: 0.1s;
}

.team-modal-img-wrap {
  flex: 1;
  height: 100%;
  overflow: hidden;
}

#team-modal-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: grayscale(100%);
}

.team-modal-text-wrap {
  flex: 1;
  padding: 4rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
  background-color: #FDFBF7;
}

#team-modal-name {
  font-family: var(--font-sans);
  font-size: var(--fs-h2);
  font-weight: 800;
  color: #9C1919;
  margin-bottom: 0.5rem;
  letter-spacing: -0.02em;
}

#team-modal-role {
  font-family: var(--font-serif);
  font-size: var(--fs-h3);
  font-style: italic;
  font-weight: 300;
  color: #1a1a1a;
  margin-bottom: var(--space-element);
}

.team-modal-line {
  width: 60px;
  height: 2px;
  background-color: #9C1919;
  margin-bottom: var(--space-element);
}

#team-modal-bio {
  font-family: var(--font-sans);
  font-size: var(--fs-body);
  line-height: 1.6;
  color: #333;
}

@media (max-width: 992px) {
  .team-modal-content {
    flex-direction: column;
    height: 85vh;
  }
  .team-modal-img-wrap {
    height: 40%;
  }
  .team-modal-text-wrap {
    padding: 2rem;
  }
  #team-modal-name {
    font-size: 2rem;
  }
  .team-modal-close {
    top: 1rem;
    right: 1rem;
  }
}

/* Team 3D Flip Card Animation */
.flip-card-container:hover .flip-card-inner { transform: rotateY(180deg); }
.flip-card-container:hover .team-grid-img { transform: scale(1.1); filter: grayscale(50%); }

@media (max-width: 768px) {
  #header.scrolled { backdrop-filter: blur(4px); -webkit-backdrop-filter: blur(4px); }
  .footer-nav { backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); }
  
  /* Mino Mobile Fallback - Degrade horizontal scroll into vertical stack */
  .mino-horizontal-sec {
    height: auto !important;
    padding-bottom: var(--space-section);
  }
  .mino-sticky-wrap {
    position: relative !important;
    height: auto !important;
  }
  .mino-horizontal-track {
    flex-direction: column !important;
    width: 100% !important;
    transform: none !important;
    padding-left: 2rem !important;
    padding-right: 2rem !important;
    gap: var(--space-element) !important;
  }
  .mino-card {
    width: 100% !important;
  }
}

/* Accessibility: Focus Visible */
:focus-visible {
  outline: 2px solid var(--color-accent);
  outline-offset: 4px;
}

.nav-links a, .footer-nav-btn {
  min-height: 44px;
  min-width: 44px;
  display: inline-flex;
  align-items: center;
}

/* ==========================================================================
   Premium Toast Notification
   ========================================================================== */
.premium-toast {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  background: rgba(6, 18, 45, 0.95);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-left: 4px solid var(--color-accent);
  color: white;
  padding: 1.5rem 2rem;
  border-radius: 8px;
  font-family: var(--font-sans);
  font-size: 1rem;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
  z-index: 11000;
  transform: translateX(120%);
  opacity: 0;
  transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.6s ease;
  display: flex;
  align-items: center;
  gap: 1rem;
}

.premium-toast.show {
  transform: translateX(0);
  opacity: 1;
}

.premium-toast svg {
  width: 24px;
  height: 24px;
  color: var(--color-accent);
  flex-shrink: 0;
}

/* ==========================================================================
   Cookie Consent System
   ========================================================================== */
.cookie-banner {
  position: fixed;
  bottom: 2rem;
  left: 2rem;
  width: calc(100% - 4rem);
  max-width: 380px;
  border-radius: 12px;
  border: 1px solid rgba(255,255,255,0.1);
  transform: translateX(-120%);
  background: var(--color-bg-panel);
  color: white;
  z-index: 10000;
  padding: 1.5rem;
  
  transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: 0 -10px 40px rgba(0,0,0,0.3);
  font-family: var(--font-sans);
}

.cookie-banner.show {
  transform: translateX(0);
}

.cookie-banner-content {
  max-width: 1200px;
  margin: 0 auto;
}

.cookie-banner-actions {
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
}

.cookie-btn {
  padding: 0.8rem 1.5rem;
  border-radius: 4px;
  font-family: var(--font-sans);
  font-size: 0.95rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.3s ease;
  min-height: 44px;
}

.cookie-btn-primary {
  background: var(--color-accent);
  color: var(--color-bg-panel);
  border: 1px solid var(--color-accent);
}

.cookie-btn-primary:hover {
  background: var(--color-accent-hover);
}

.cookie-btn-outline {
  background: transparent;
  color: white;
  border: 1px solid rgba(255,255,255,0.3);
}

.cookie-btn-outline:hover {
  background: rgba(255,255,255,0.1);
  border-color: white;
}

.cookie-modal-backdrop {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0,0,0,0.6);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  z-index: 10001;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.4s ease;
}

.cookie-modal-backdrop.show {
  opacity: 1;
  pointer-events: auto;
}

.cookie-modal {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -45%);
  width: 90%;
  max-width: 600px;
  max-height: 85vh;
  background: var(--color-bg-panel);
  color: white;
  z-index: 10002;
  border-radius: 12px;
  border: 1px solid rgba(255,255,255,0.1);
  box-shadow: 0 20px 60px rgba(0,0,0,0.5);
  display: flex;
  flex-direction: column;
  opacity: 0;
  pointer-events: none;
  transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  font-family: var(--font-sans);
}

.cookie-modal.show {
  opacity: 1;
  pointer-events: auto;
  transform: translate(-50%, -50%);
}

.cookie-modal-header {
  padding: 1.5rem 2rem;
  border-bottom: 1px solid rgba(255,255,255,0.1);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.cookie-modal-close {
  background: transparent;
  border: none;
  color: rgba(255,255,255,0.5);
  cursor: pointer;
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: color 0.3s ease;
}

.cookie-modal-close:hover {
  color: white;
}

.cookie-modal-close svg {
  width: 24px;
  height: 24px;
}

.cookie-modal-body {
  padding: 2rem;
  overflow-y: auto;
  flex: 1;
  overscroll-behavior: contain;
  -webkit-overflow-scrolling: touch;
}

.cookie-category {
  padding: 1.5rem 0;
  border-bottom: 1px solid rgba(255,255,255,0.1);
}

.cookie-category-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.5rem;
}

.cookie-category-title {
  font-size: 1.1rem;
  font-weight: 500;
  color: var(--color-accent);
}

.cookie-category-status {
  font-size: 0.85rem;
  color: var(--color-accent);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.cookie-category-desc {
  font-size: 0.9rem;
  color: rgba(255,255,255,0.7);
  line-height: 1.5;
}

.cookie-modal-footer {
  padding: 1.5rem 2rem;
  border-top: 1px solid rgba(255,255,255,0.1);
}

/* Custom Toggle Switch */
.toggle-switch {
  position: relative;
  display: inline-block;
  width: 50px;
  height: 26px;
}

.toggle-switch input {
  opacity: 0;
  width: 0;
  height: 0;
}

.toggle-slider {
  position: absolute;
  cursor: pointer;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: rgba(255,255,255,0.2);
  transition: .4s;
  border-radius: 26px;
}

.toggle-slider:before {
  position: absolute;
  content: "";
  height: 18px;
  width: 18px;
  left: 4px;
  bottom: 4px;
  background-color: white;
  transition: .4s;
  border-radius: 50%;
}

input:checked + .toggle-slider {
  background-color: var(--color-accent);
}

input:focus + .toggle-slider {
  box-shadow: 0 0 1px var(--color-accent);
}

input:checked + .toggle-slider:before {
  transform: translateX(24px);
}

/* ==========================================================================
   Agency Credit
   ========================================================================== */
.agency-credit {
  text-align: center;
  padding: 0.5rem 2rem 1.5rem 2rem;
  background: #06122d; /* Matched the exact navy background of the footer */
  font-family: var(--font-sans);
  font-size: 0.95rem;
  color: rgba(255, 255, 255, 0.6);
  width: 100%;
  border-top: none; /* Ensure no white lines separate it from the footer */
}

.tunnelwiz-link {
  color: white;
  text-decoration: none !important;
  border: none !important; /* Force remove any global anchor borders */
  outline: none;
  font-weight: 600;
  transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  position: relative;
  display: inline-block;
}

.tunnelwiz-link:hover {
  color: #42a960;
  text-shadow: 0 0 15px rgba(66, 169, 96, 0.8), 0 0 30px rgba(66, 169, 96, 0.4);
  transform: scale(1.05);
}

/* ==========================================================================
   Hero Typography Layout Fix
   ========================================================================== */
.hero-typography-group {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 100%;
  text-align: center;
  z-index: 10;
  pointer-events: none;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.hero-aidc-text {
  position: relative;
  top: auto;
  left: auto;
  transform: none;
  font-family: var(--font-serif);
  font-size: clamp(4rem, 28vw, 35rem);
  width: 100%;
  text-align: center;
  letter-spacing: -0.05em;
  color: #F1C36A;
  mix-blend-mode: difference;
  white-space: nowrap;
  animation: hero-text-fade-new 1.5s cubic-bezier(0.16, 1, 0.3, 1) forwards !important;
  will-change: transform, opacity;
  line-height: 0.8;
  margin: 0;
  padding: 0;
}

@keyframes hero-text-fade-new {
  from { opacity: 0; transform: translateY(5%); }
  to { opacity: 1; transform: translateY(0); }
}

.hero-aidc-sub {
  position: relative;
  top: auto;
  left: auto;
  transform: none;
  z-index: 10;
  font-family: var(--font-sans);
  font-size: clamp(0.75rem, 1.2vw, 1.2rem);
  text-transform: uppercase;
  letter-spacing: 0.5em; /* Extremely wide, luxurious tracking */
  font-weight: 500;
  color: var(--color-primary);
  margin-top: 1vw; /* Scales with the screen */
  opacity: 0;
  animation: hero-sub-fade-new 1.5s cubic-bezier(0.16, 1, 0.3, 1) forwards 0.8s !important;
  text-align: center;
  width: 100%;
}

@keyframes hero-sub-fade-new {
  from { opacity: 0; transform: translateY(15px); }
  to { opacity: 1; transform: translateY(0); }
}

/* ==========================================================================
   Decouple Subtitle to prevent Image Overlap
   ========================================================================== */
.hero-aidc-sub {
  position: absolute !important;
  top: calc(50% + 35vh) !important; /* Forces it exactly below the 65vh image container */
  left: 50% !important;
  transform: translateX(-50%) !important;
  width: 100%;
  margin-top: 0 !important;
  animation: hero-sub-fade-decoupled 1.5s cubic-bezier(0.16, 1, 0.3, 1) forwards 0.8s !important;
}

@keyframes hero-sub-fade-decoupled {
  from { opacity: 0; transform: translate(-50%, 15px); }
  to { opacity: 1; transform: translate(-50%, 0); }
}

/* ==========================================================================
   Hero Layout matched to Reference Image
   ========================================================================== */
.hero-typography-group {
  position: absolute !important;
  top: 50% !important;
  left: 50% !important;
  transform: translate(-50%, -50%) !important;
  width: auto !important; /* Shrink to fit text */
  display: flex !important;
  flex-direction: column !important;
  align-items: flex-end !important; /* Right-aligns the subtitle under the text */
  justify-content: center !important;
  z-index: 10;
  pointer-events: none;
}

.hero-aidc-text {
  position: relative !important;
  top: auto !important;
  left: auto !important;
  transform: none !important;
  font-family: var(--font-serif) !important;
  font-size: clamp(3.36rem, 14.5vw, 18rem) !important; /* Increased by 12% */
  width: auto !important; /* Shrink to fit */
  text-align: right !important;
  letter-spacing: 0em !important; /* Removed negative tracking to match image */
  color: var(--color-primary) !important; /* Absolutely forced to Website Blue */
  mix-blend-mode: multiply !important; /* Dynamically tints the image underneath without breaking the blue color */
  opacity: 0.95 !important;
  white-space: nowrap !important;
  animation: hero-text-fade-image 1.5s cubic-bezier(0.16, 1, 0.3, 1) forwards !important;
  will-change: transform, opacity;
  line-height: 0.8 !important;
  margin: 0 !important;
  padding: 0 !important;
}

@keyframes hero-text-fade-image {
  from { opacity: 0; transform: translateY(5%); }
  to { opacity: 1; transform: translateY(0); }
}

.hero-aidc-sub {
  position: relative !important;
  top: auto !important;
  left: auto !important;
  transform: none !important;
  z-index: 10;
  font-family: var(--font-sans) !important;
  font-size: clamp(1rem, 1.68vw, 1.68rem) !important; /* Increased by 12% */
  text-transform: lowercase !important; /* Matched image */
  letter-spacing: 0 !important; /* Matched image */
  font-weight: 600 !important; /* Bold like the image */
  color: var(--color-primary) !important; /* Website blue */
  margin-top: 2vh !important; /* Moved exactly 2% down (2vh) */
  margin-right: 0 !important; /* Flush right with the text block */
  opacity: 0;
  animation: hero-sub-fade-image 1.5s cubic-bezier(0.16, 1, 0.3, 1) forwards 0.8s !important;
  text-align: right !important;
  width: auto !important;
}

@keyframes hero-sub-fade-image {
  from { opacity: 0; transform: translateY(15px); }
  to { opacity: 1; transform: translateY(0); }
}
