:root {
  /* Color Palette - Precise from Image */
  --color-cream: #eae6d7;
  --color-dark: #29261d;
  --color-blue-light: #88acd7;
  --color-blue-muted: #526a8f;
  --color-sand: #d6cab1;
  --color-white: #ffffff;

  /* Typography Scale */
  --h1-size: clamp(2.2rem, 6vw, 4.2rem);
  --h2-size: clamp(1.8rem, 4vw, 3.5rem);
  --hMeta-size: 0.75rem;
  --font-heading: "Manrope", sans-serif;
  /* FIX: Jost was not imported — switched to Manrope */
  --font-body: "Inter", sans-serif;
  --font-accent: "Manrope", sans-serif;
  --accent-gold: #d6cab1;
  --lh-tight: 1.1;
  --tracking-tight: -0.02em;
  --weight-heading: 600;

  --space-xs: 0.5rem;
  --space-s: 1rem;
  --space-m: 2rem;
  --space-l: 4rem;
  --space-xl: 8rem;
  --space-xxl: 12rem;

  --border-width: 1px;

  --transition-speed: 0.5s;
}

::-webkit-scrollbar {
  width: 1px
}

::-webkit-scrollbar-thumb {
  background: var(--color-sand)
}

body {
  transition: background-color var(--transition-speed), color var(--transition-speed);
}

/* --- Theme Toggle & Night Mode --- */
.theme-toggle {
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  margin-right: var(--space-s);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-white);
  opacity: 0.7;
  transition: opacity 0.3s, transform 0.3s;
}

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

.toggle-icon {
  position: relative;
  width: 24px;
  height: 24px;
}

.sun-icon,
.moon-icon {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  transition:
    transform 0.6s cubic-bezier(0.16, 1, 0.3, 1),
    opacity 0.6s ease;
}

.moon-icon {
  opacity: 0;
  transform: rotate(-90deg) scale(0);
}

.theme-night .sun-icon {
  opacity: 0;
  transform: rotate(90deg) scale(0);
}

.theme-night .moon-icon {
  opacity: 1;
  transform: rotate(0) scale(1);
}

.theme-night {
  --color-cream: #1a1915;
  --color-white: #eae6d7;
  --color-dark: #000000;
  --color-sand: #8e836b;
}

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

html,
body {
  scroll-behavior: auto !important;
}

body {
  font-family: var(--font-body);
  background-color: var(--color-dark);
  color: var(--color-white);
  line-height: 1.4;
  -webkit-font-smoothing: antialiased;
  letter-spacing: -0.01em;
  overflow-x: hidden;
  /* Prevent scrollbar during scaling animations */
}

/* --- Preloader Styles --- */
.preloader {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 10000;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: transparent;
  /* Reveal content through splits */
  transition: visibility 1s ease;
  overflow: hidden;
}

.preloader.hidden {
  visibility: hidden;
}

.preloader-content {
  position: relative;
  z-index: 10;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-m);
  width: 100%;
  max-width: 300px;
}

.preloader-logo {
  opacity: 0;
  transform: translateY(20px);
  animation: preloaderIn 0.8s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.preloader-logo img {
  height: 50px;
  width: auto;
}

.preloader-progress {
  width: 100%;
  height: 1px;
  background-color: rgba(255, 255, 255, 0.1);
  overflow: hidden;
}

.preloader-bar {
  width: 0%;
  height: 100%;
  background-color: var(--color-sand);
  transition: width 0.3s ease;
}

.preloader-percent {
  font-family: var(--font-heading);
  font-size: 0.7rem;
  letter-spacing: 0.3rem;
  color: var(--color-sand);
  text-transform: uppercase;
  font-weight: 500;
  margin-left: 0.3rem;
  /* visual balance */
}

.preloader-split-top,
.preloader-split-bottom {
  position: absolute;
  left: 0;
  width: 100%;
  height: 50%;
  background-color: var(--color-dark);
  transition: transform 1.5s cubic-bezier(0.8, 0, 0.1, 1);
  z-index: 5;
}

.preloader-split-top {
  top: 0;
}

.preloader-split-bottom {
  bottom: 0;
}

.preloader.loaded .preloader-split-top {
  transform: translateY(-100%);
}

.preloader.loaded .preloader-split-bottom {
  transform: translateY(100%);
}

.preloader.loaded .preloader-content {
  opacity: 0;
  transition: opacity 0.6s ease;
  pointer-events: none;
}

@keyframes preloaderIn {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* --- Layout Containers --- */
.container-full {
  padding: 0 var(--space-l);
}

.container {
  width: 100%;
  max-width: 1440px;
  padding: 0 var(--space-l);
  margin: 0 auto;
}

/* --- Buttons --- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 1.2rem 2.5rem;
  font-family: var(--font-body);
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  text-decoration: none;
  transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  border-radius: 4px;
  cursor: pointer;
  border: none;
}

.btn-primary {
  background-color: var(--accent-gold, #d4af37);
  color: #000;
}

.btn-primary:hover {
  background-color: #fff;
  transform: translateY(-3px);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

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

.btn-outline:hover {
  background-color: rgba(255, 255, 255, 0.05);
  border-color: #fff;
  transform: translateY(-3px);
}

/* --- Header Section --- */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  display: flex;
  align-items: center;
  padding: var(--space-m) var(--space-l);
  z-index: 1000;
  /* Transitions */
  transition:
    opacity 1s ease 1.2s,
    background-color 0.4s ease,
    transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  opacity: 0;
}

.is-ready .site-header {
  opacity: 1;
}

.site-header.is-hidden {
  transform: translateY(-100%);
}

.logo-block {
  flex: 1;
}

.logo-block img {
  height: 40px;
  width: auto;
}

.header-nav {
  flex: 2;
  display: flex;
  justify-content: center;
  gap: var(--space-m);
}

.header-nav a {
  text-decoration: none;
  color: var(--color-white);
  font-weight: 500;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  opacity: 0.7;
  transition: opacity 0.4s ease;
}

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

.header-cta {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: flex-end;
}

.cta-group {
  display: flex;
  align-items: center;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 100px;
  padding: 4px;
  background-color: rgba(26, 25, 21, 0.2);
  backdrop-filter: blur(5px);
  transition: border-color 0.4s;
}

.cta-group:hover {
  border-color: rgba(255, 255, 255, 0.5);
}

.phone-top {
  padding: 0 var(--space-m);
  font-weight: 500;
  font-size: 0.9rem;
  letter-spacing: 0.05em;
  color: var(--color-white);
  text-decoration: none;
  white-space: nowrap;
}

.btn-callback {
  background-color: var(--color-blue-muted);
  color: var(--color-white);
  padding: 0.75rem 1.75rem;
  border-radius: 100px;
  font-weight: 600;
  text-transform: uppercase;
  font-size: 0.7rem;
  text-decoration: none;
  letter-spacing: 0.1em;
  transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  display: flex;
  align-items: center;
  gap: var(--space-xs);
}

.btn-callback:hover {
  background-color: var(--color-white);
  color: var(--color-dark);
}

.status-dot {
  width: 8px;
  height: 8px;
  background-color: #52c41a;
  border-radius: 50%;
  box-shadow: 0 0 0 0 rgba(82, 196, 26, 0.4);
  animation: pulse-green 2s infinite;
}

@keyframes pulse-green {
  0% {
    transform: scale(0.95);
    box-shadow: 0 0 0 0 rgba(82, 196, 26, 0.7);
  }

  70% {
    transform: scale(1);
    box-shadow: 0 0 0 10px rgba(82, 196, 26, 0);
  }

  100% {
    transform: scale(0.95);
    box-shadow: 0 0 0 0 rgba(82, 196, 26, 0);
  }
}

/* --- Hero Section --- */
.hero-wrapper {
  position: relative;
  width: 100%;
  height: 100vh;
  min-height: 700px;
  overflow: hidden;
  background-color: var(--color-dark);
  display: flex;
  flex-direction: column;
  opacity: 0;
  transition: opacity 1.5s ease;
}

.hero-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: center;
  transition: opacity 2s cubic-bezier(1, 0, 0, 1);
  z-index: 0;
}

.hero-bg::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(to bottom,
      rgba(26, 25, 21, 0.3),
      rgba(26, 25, 21, 0.7));
  transition: background 1s ease;
}

.hero-day {
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  transition: background-image 0.8s ease-in-out;
}

.hero-night {
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  transition: background-image 0.8s ease-in-out;
}

.theme-night .hero-day {
  opacity: 0;
}

.theme-night .hero-night {
  opacity: 1;
}

.theme-night .hero-bg::after {
  background: linear-gradient(to bottom,
      rgba(0, 0, 0, 0.5),
      rgba(0, 0, 0, 0.8));
}

.is-ready .hero-wrapper {
  opacity: 1;
  animation: heroZoomOut 3s cubic-bezier(0.16, 1, 0.3, 1) forwards;
  transition-delay: 0.5s;
}

@keyframes heroZoomOut {
  from {
    transform: scale(1.1);
  }

  to {
    transform: scale(1);
  }
}

.hero-main {
  flex-grow: 1;
  display: grid;
  grid-template-columns: 1fr 400px;
  align-items: center;
  padding: 0 var(--space-l);
  margin-top: 100px;
}

.hero-left,
.hero-right,
.hero-footer {
  opacity: 0;
}

.is-ready .hero-left {
  animation: fadeInDown 1.2s cubic-bezier(0.16, 1, 0.3, 1) forwards;
  animation-delay: 1s;
}

.is-ready .hero-right {
  animation: fadeInDown 1.2s cubic-bezier(0.16, 1, 0.3, 1) forwards;
  animation-delay: 1.2s;
}

@keyframes fadeInDown {
  from {
    opacity: 0;
    transform: translateY(30px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.hero-left {
  max-width: 900px;
}

.hero-meta {
  display: inline-flex;
  align-items: center;
  background-color: rgba(255, 255, 255, 0.1);
  padding: 0.5rem 1rem;
  border-radius: 100px;
  font-size: var(--hMeta-size);
  font-weight: 600;
  text-transform: uppercase;
  color: var(--color-white);
  margin-bottom: var(--space-m);
}

.hero-meta::before {
  content: "/";
  margin-right: 0.5rem;
  opacity: 0.5;
}

.hero-title {
  font-family: var(--font-heading);
  font-size: var(--h1-size);
  font-weight: var(--weight-heading);
  text-transform: uppercase;
  line-height: var(--lh-tight);
  letter-spacing: var(--tracking-tight);
  margin-bottom: var(--space-m);
}

.hero-title span {
  font-weight: 400;
}

.cta-card {
  background-color: rgba(255, 255, 255, 0.98);
  backdrop-filter: blur(15px);
  color: var(--color-dark);
  padding: var(--space-l) var(--space-m);
  box-shadow: 0 50px 100px rgba(0, 0, 0, 0.3);
}

.cta-card h3 {
  font-family: var(--font-heading);
  font-size: 2rem;
  font-weight: 500;
  text-transform: uppercase;
  line-height: 1.1;
  margin-bottom: var(--space-m);
}

.form-field {
  position: relative;
  border-bottom: 1px solid rgba(0, 0, 0, 0.1);
  margin-bottom: var(--space-m);
}

.form-field label {
  font-size: 0.7rem;
  font-weight: 600;
  text-transform: uppercase;
  color: rgba(0, 0, 0, 0.4);
  letter-spacing: 0.1em;
}

.form-field input {
  width: 100%;
  border: none;
  background: transparent;
  padding: 0.75rem 0;
  font-family: inherit;
  font-size: 1.25rem;
  font-weight: 500;
  color: var(--color-dark);
}

.form-field input:focus {
  outline: none;
}

.form-submit {
  background-color: var(--color-dark);
  color: var(--color-white);
  border: none;
  padding: 1.4rem;
  font-family: inherit;
  font-weight: 600;
  text-transform: uppercase;
  cursor: pointer;
  width: 100%;
  letter-spacing: 0.2em;
  font-size: 0.8rem;
  transition: all 0.4s ease;
}

.form-submit:hover {
  background-color: var(--color-blue-muted);
}

.hero-footer {
  display: flex;
  height: 140px;
  background-color: rgba(26, 25, 21, 0.6);
  backdrop-filter: blur(20px);
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  opacity: 0;
  transform: translateY(100%);
}

.is-ready .hero-footer {
  animation: slideUpHero 1.2s cubic-bezier(0.16, 1, 0.3, 1) forwards;
  animation-delay: 1.4s;
}

@keyframes slideUpHero {
  0% {
    opacity: 0;
    transform: translateY(100%);
  }

  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

.footer-stat {
  flex: 1;
  border-right: 1px solid rgba(255, 255, 255, 0.1);
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 0 var(--space-l);
}

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

.stat-number {
  font-size: 1.6rem;
  font-weight: 600;
  color: var(--color-white);
  margin-bottom: 0.4rem;
  word-break: break-word;
  overflow-wrap: break-word;
}

.stat-text {
  font-size: 0.7rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  opacity: 0.5;
  line-height: 1.3;
  word-break: break-word;
}

.section-developer {
  background-color: var(--color-sand);
  color: var(--color-dark);
  padding: var(--space-xl) var(--space-l);
}

.row-dev {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: var(--space-xl);
}

.text-meta {
  display: inline-flex;
  align-items: center;
  background-color: rgba(0, 0, 0, 0.05);
  padding: 0.6rem 1.2rem;
  border-radius: 100px;
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  color: rgba(26, 25, 21, 0.8);
  margin-bottom: var(--space-s);
  width: fit-content;
}

.row-dev h2 {
  font-family: var(--font-heading);
  font-size: var(--h2-size);
  font-weight: var(--weight-heading);
  text-transform: uppercase;
  line-height: var(--lh-tight);
  letter-spacing: var(--tracking-tight);
}

.dev-stats {
  display: flex;
  gap: var(--space-l);
}

.stat-big {
  font-family: var(--font-heading);
  font-size: 8rem;
  font-weight: 300;
  line-height: 1;
  margin-bottom: var(--space-s);
}

.stat-label {
  font-size: 0.7rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  opacity: 0.8;
}

.section-gallery {
  padding: var(--space-xl) var(--space-l);
  background-color: var(--color-white);
  color: var(--color-dark);
  position: relative;
  overflow: hidden;
}

.gallery-header {
  margin-bottom: var(--space-xl);
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.gallery-header h2 {
  font-family: var(--font-heading);
  font-size: var(--h2-size);
  font-weight: var(--weight-heading);
  text-transform: uppercase;
  line-height: var(--lh-tight);
  letter-spacing: var(--tracking-tight);
}

.asymmetric-grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: var(--space-m);
  min-height: 1200px;
}

.gallery-item {
  position: relative;
  background-color: var(--color-cream);
  overflow: hidden;
  transition: transform 1s cubic-bezier(0.16, 1, 0.3, 1);
}

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

.gallery-item:hover img {
  transform: scale(1.1) rotate(1deg);
}

#gi-1 {
  grid-column: 1 / 6;
  grid-row: 1 / 4;
  height: 600px;
}

#gi-2 {
  grid-column: 7 / 13;
  grid-row: 2 / 5;
  height: 500px;
  margin-top: var(--space-l);
}

#gi-3 {
  grid-column: 2 / 7;
  grid-row: 5 / 8;
  height: 450px;
}

#gi-4 {
  grid-column: 8 / 12;
  grid-row: 6 / 9;
  height: 550px;
}

.video-box {
  grid-column: 3 / 11;
  grid-row: 10 / 13;
  height: 60vh;
  margin-top: var(--space-xl);
}

.play-btn-large {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 120px;
  height: 120px;
  background-color: var(--color-white);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  mix-blend-mode: screen;
  transition: all 0.5s ease;
}

.play-btn-large:hover {
  transform: translate(-50%, -50%) scale(1.1);
  mix-blend-mode: normal;
}

.item-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  padding: var(--space-m);
  background: linear-gradient(to top, rgba(26, 25, 21, 0.5), transparent);
  color: var(--color-white);
  opacity: 0;
  transform: translateY(20px);
  transition: all 0.5s ease;
}

.gallery-item:hover .item-overlay {
  opacity: 1;
  transform: translateY(0);
}

/* --- Webflow-style Description (Cinematic Stack) --- */
.section-description {
  background-color: var(--color-dark);
  color: var(--color-white);
  padding: 0;
}

.description-split {
  display: grid;
  grid-template-columns: 45% 55%;
}

.desc-sticky {
  position: -webkit-sticky;
  position: sticky;
  top: 0;
  height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: var(--space-xl) var(--space-l);
}

.desc-cards {
  padding: 0;
}

.f-card {
  height: 100vh;
  position: -webkit-sticky;
  position: sticky;
  top: 0;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: var(--space-xl) var(--space-l);
  overflow: hidden;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  background-size: cover;
  background-position: center;
}

.f-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(to top, rgba(26, 25, 21, 0.9), transparent);
  z-index: 1;
}

.f-card-content {
  position: relative;
  z-index: 2;
  max-width: 500px;
}

.f-num {
  font-family: var(--font-heading);
  font-size: 1.2rem;
  font-weight: 600;
  color: var(--color-blue-light);
  margin-bottom: var(--space-s);
  display: block;
}

.f-title {
  font-family: var(--font-heading);
  font-size: var(--h2-size);
  font-weight: var(--weight-heading);
  text-transform: uppercase;
  line-height: var(--lh-tight);
  letter-spacing: var(--tracking-tight);
  margin-bottom: var(--space-m);
}

.f-desc {
  font-size: 1.1rem;
  font-weight: 300;
  opacity: 0.8;
  line-height: 1.6;
}

.f-card-1 {
  background-image: url("../../img/photo/1.jpg");
}

.f-card-2 {
  background-image: url("../../img/photo/2.jpg");
}

.f-card-3 {
  background-image: url("../../img/photo/3.jpg");
}

.f-card-4 {
  background-image: url("../../img/photo/4.jpg");
}

.f-card-5 {
  background-image: url("../../img/photo/6.jpg");
}

/* --- Investment Propositions (Horizontal Scroll) --- */
.section-investment {
  position: relative;
  background-color: var(--color-white);
  color: var(--color-dark);
}

.inv-sticky-wrapper {
  position: -webkit-sticky;
  position: sticky;
  top: 0;
  height: 100vh;
  overflow: hidden;
  display: flex;
  align-items: center;
}

.inv-horizontal-track {
  display: flex;
  width: 300vw;
  /* 3 slides */
  height: 100%;
  will-change: transform;
}

.inv-slide {
  width: 100vw;
  height: 100%;
  display: grid;
  grid-template-columns: 55% 45%;
  align-items: center;
}

.inv-slide:nth-child(2) {
  background-color: var(--color-cream);
}

.inv-img-box {
  height: 100%;
  overflow: hidden;
  position: relative;
}

.inv-img-box img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.inv-content {
  padding: var(--space-xl);
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.inv-details {
  margin: var(--space-m) 0;
  border-top: 1px solid rgba(0, 0, 0, 0.1);
}

.inv-row {
  display: flex;
  justify-content: space-between;
  padding: var(--space-s) 0;
  border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.inv-row span:first-child {
  font-size: 0.8rem;
  text-transform: uppercase;
  font-weight: 600;
  opacity: 0.5;
}

.inv-row span:last-child {
  font-weight: 500;
  font-size: 1.1rem;
}

.inv-title {
  font-family: var(--font-heading);
  font-size: var(--h2-size);
  font-weight: var(--weight-heading);
  text-transform: uppercase;
  line-height: var(--lh-tight);
  margin-bottom: 1rem;
}

.inv-cta-form {
  margin-top: var(--space-m);
  max-width: 600px;
  /* Wider for inline */
}

.inv-cta-form form {
  display: flex;
  gap: var(--space-m);
  align-items: flex-end;
}

.inv-cta-form .form-field {
  flex: 1;
  margin-bottom: 0;
}

.inv-btn {
  background-color: var(--color-dark);
  color: var(--color-white);
  border: none;
  padding: 0.9rem 2.5rem;
  text-transform: uppercase;
  font-weight: 700;
  cursor: pointer;
  font-size: 0.8rem;
  letter-spacing: 0.2em;
  transition: background 0.4s;
  height: auto;
  width: auto;
  /* not 100% here */
}

.inv-btn:hover {
  background-color: var(--color-blue-muted);
}

/* FIX: Removed duplicate .inv-btn:hover and merged .inv-img-box duplicate */

.plan-img {
  max-width: 90%;
  max-height: 85%;
  object-fit: contain;
  position: absolute;
  top: 55%;
  left: 50%;
  transform: translate(-50%, -50%);
  opacity: 0;
  transition:
    opacity 0.6s cubic-bezier(0.16, 1, 0.3, 1),
    transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
  pointer-events: none;
}

.plan-img.active {
  opacity: 1;
  pointer-events: auto;
}

.plan-3d {
  transform: translate(-50%, -50%) scale(0.95);
}

.plan-img.active.plan-3d {
  transform: translate(-50%, -50%) scale(1);
}

.plan-toggle {
  position: absolute;
  top: 40px;
  gap: var(--hMeta-size);
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  background: rgba(26, 25, 21, 0.5);
  backdrop-filter: blur(20px);
  padding: 5px;
  border-radius: 50px;
  z-index: 20;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.toggle-btn {
  background: transparent;
  border: none;
  color: #fff;
  padding: 8px 18px;
  border-radius: 40px;
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  cursor: pointer;
  transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  white-space: nowrap;
}

.toggle-btn.active {
  background: var(--color-sand);
  color: var(--color-dark);
}

.toggle-btn:hover:not(.active) {
  background: rgba(255, 255, 255, 0.1);
}

.inv-dots {
  position: absolute;
  bottom: var(--space-l);
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: var(--space-s);
  z-index: 10;
}

/* --- Investment Nav Dots --- */
.inv-nav-dots {
  position: absolute;
  bottom: var(--space-l);
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: var(--space-s);
  z-index: 10;
}

.inv-dot {
  width: 8px;
  height: 8px;
  background: rgba(0, 0, 0, 0.1);
  border-radius: 20px;
  transition: all 0.4s ease;
  cursor: pointer;
  position: relative;
  overflow: hidden;
}

.inv-dot.active {
  background: var(--color-dark);
}

.inv-dot::after {
  content: "";
  position: absolute;
  left: -100%;
  top: 0;
  width: 100%;
  height: 100%;
  background: var(--color-dark);
  transition: none;
}

.inv-dot.active::after {
  left: 0;
  transition: left 0.8s ease;
}

.inv-dot-label {
  position: absolute;
  top: -20px;
  left: 50%;
  transform: translateX(-50%);
  font-size: 0.6rem;
  font-weight: 700;
  text-transform: uppercase;
  white-space: nowrap;
  opacity: 0;
  transition: opacity 0.4s;
}

.inv-dot.active .inv-dot-label {
  opacity: 0.5;
}

/* Height for triggering the horizontal animation */
.scroll-trigger-inv {
  height: 400vh;
  /* Keep it ample for smooth horizontal move */
}

/* --- Section: Full-Width Location Experience --- */
.section-location {
  position: relative;
  height: 90vh;
  min-height: 700px;
  background-color: var(--color-dark);
  overflow: hidden;
  padding: 0;
}

.map-frame {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}

#map {
  width: 100%;
  height: 100%;
  background: var(--color-dark);
  z-index: 1;
}

.map-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: radial-gradient(circle at center,
      transparent 30%,
      var(--color-dark) 90%);
  pointer-events: none;
  z-index: 2;
}

.map-ui-controls {
  position: absolute;
  top: 50%;
  right: 30px;
  transform: translateY(-50%);
  display: flex;
  flex-direction: column;
  gap: 12px;
  z-index: 20;
}

.m-btn {
  width: 50px;
  height: 50px;
  background: rgba(26, 25, 21, 0.7);
  backdrop-filter: blur(15px);
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: #fff;
  border-radius: 50%;
  font-size: 1.4rem;
  font-weight: 300;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.m-btn:hover {
  background: var(--color-sand);
  color: var(--color-dark);
  border-color: var(--color-sand);
  transform: scale(1.1);
}

.location-interface {
  position: relative;
  z-index: 10;
  height: 100%;
  pointer-events: none;
  padding: 40px var(--space-l);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.loc-ui-top {
  pointer-events: auto;
}

.location-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  width: 100%;
}

.location-header h2 {
  font-family: var(--font-heading);
  font-size: var(--h2-size);
  font-weight: var(--weight-heading);
  text-transform: uppercase;
  line-height: 1.1;
}

.header-right .text-meta {
  margin-bottom: 0px;
}

@media (max-width: 900px) {
  .location-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 20px;
  }
}

.loc-ui-content {
  display: flex;
  flex-direction: column;
  gap: 20px;
  max-width: 420px;
  pointer-events: auto;
  margin: 40px 0;
  /* Allow scroll inside UI if too many items */
  max-height: calc(100% - 200px);
  overflow-y: visible;
}

.glass-panel {
  background: rgba(26, 25, 21, 0.7);
  backdrop-filter: blur(25px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  padding: 30px;
  border-radius: 20px;
}

.location-nav {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(72px, 1fr));
  gap: 16px;
  margin-bottom: 25px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  padding-bottom: 25px;
}

.loc-tab {
  opacity: 0.5;
  cursor: pointer;
  transition: all 0.4s ease;
  position: relative;
}

.loc-tab.active {
  opacity: 1;
}

.loc-tab:not(.active):hover {
  opacity: 0.8;
}

.loc-time {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--color-sand);
}

.loc-label {
  font-size: 0.75rem;
  text-transform: uppercase;
  font-weight: 700;
  opacity: 0.6;
}

.infra-list {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.infra-item {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  padding: 8px 16px;
  border-radius: 30px;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  cursor: pointer;
  transition: all 0.3s ease;
  margin-bottom: 10px;
  max-width: max-content;
}

.infra-item:hover {
  background: var(--color-sand);
  color: var(--color-dark);
  border-color: var(--color-sand);
  transform: translateY(-3px);
}

@keyframes pulse-ring {
  0% {
    transform: scale(0.3);
    opacity: 0;
  }

  50% {
    opacity: 0.5;
  }

  100% {
    transform: scale(3);
    opacity: 0;
  }
}

@media (max-width: 900px) {
  .location-interface {
    padding: 100px 20px 40px;
  }

  .loc-ui-content {
    max-width: 100%;
    margin-top: 30px;
  }

  .location-nav {
    grid-template-columns: repeat(3, 1fr);
    gap: 15px;
    padding: 20px;
  }

  .map-ui-controls {
    right: 20px;
  }

  .glass-panel {
    padding: 20px;
  }

  .section-location {
    height: 100vh;
  }
}

/* Custom Leaflet Marker Styles */
.main-marker-icon {
  background: var(--color-sand);
  border: 2px solid #fff;
  border-radius: 50%;
  box-shadow: 0 0 15px var(--color-sand);
}

.main-marker-icon::after {
  content: "";
  position: absolute;
  top: -10px;
  left: -10px;
  right: -10px;
  bottom: -10px;
  border: 1px solid var(--color-sand);
  border-radius: 50%;
  animation: pulse-ring 2s infinite;
}

.infra-marker-icon {
  background: rgba(255, 255, 255, 0.8);
  border: 1px solid var(--color-dark);
  border-radius: 50%;
}

.map-pin {
  position: absolute;
  width: 12px;
  height: 12px;
  background-color: var(--color-sand);
  border-radius: 50%;
  box-shadow: 0 0 20px var(--color-sand);
}

.map-pin::after {
  content: "";
  position: absolute;
  top: -10px;
  left: -10px;
  right: -10px;
  bottom: -10px;
  border: 2px solid var(--color-sand);
  border-radius: 50%;
  animation: pulse-ring 2s infinite;
}

.pin-center {
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
}

@keyframes locFadeIn {
  from {
    opacity: 0;
    transform: translateY(10px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (max-width: 900px) {
  .location-container {
    grid-template-columns: 1fr;
  }

  .location-nav {
    flex-direction: row;
    overflow-x: auto;
    padding-bottom: 1rem;
    border-left: none;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    padding-left: 0;
    gap: 2rem;
  }

  .loc-tab::before {
    bottom: -1px;
    top: auto;
    left: 0;
    width: 0;
    height: 3px;
  }

  .loc-tab.active::before {
    width: 100%;
    height: 3px;
  }

  .location-visual {
    height: 500px;
  }
}

/* --- CTA Section Variant 2 --- */

.section-cta {
  background-color: var(--color-blue-muted);
  padding: 0;
  color: var(--color-cream);
}

.cta-container {
  width: 100%;
  margin: 0;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
  align-items: stretch;
  background-color: transparent;
  color: var(--color-cream);
  padding: 0;
  border: none;
}

.expert-box {
  position: relative;
  min-height: 600px;
}

.expert-img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  aspect-ratio: auto;
  border-radius: 0;
  object-fit: cover;
  filter: grayscale(0.1) contrast(1.1);
}

.expert-info-floating {
  position: absolute;
  bottom: var(--space-l);
  left: var(--space-l);
  right: auto;
  background: var(--color-dark);
  color: var(--color-cream);
  padding: var(--space-m);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
  border-radius: 0;
  z-index: 10;
}

.expert-info-floating h4 {
  font-size: 1.1rem;
  font-weight: 700;
  text-transform: uppercase;
  margin-bottom: 0.2rem;
  color: var(--color-sand);
}

.expert-info-floating p {
  font-size: 0.75rem;
  opacity: 0.5;
}

.cta-content-box {
  padding: var(--space-xxl) var(--space-xl);
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.cta-content-box h2 {
  font-family: var(--font-heading);
  font-size: 3.5rem;
  text-transform: uppercase;
  line-height: 1;
  margin-bottom: var(--space-l);
  font-weight: 400;
}

.cta-benefits {
  list-style: none;
  padding: 0;
  margin-bottom: var(--space-l);
}

.cta-benefits li {
  padding: 0.8rem 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  font-size: 1.1rem;
  font-weight: 300;
  display: flex;
  align-items: flex-start;
  gap: 1rem;
}

.cta-benefits li::before {
  content: "·";
  opacity: 0.3;
}

.cta-form-inline {
  display: flex;
  gap: var(--space-m);
  align-items: flex-end;
  max-width: 600px;
}

.cta-form-inline .form-field {
  flex: 1;
  margin-bottom: 0;
}

.cta-form-inline .btn-submit {
  background-color: var(--color-sand);
  color: var(--color-dark);
  border: none;
  padding: 0.9rem 2.5rem;
  font-weight: 700;
  text-transform: uppercase;
  cursor: pointer;
  letter-spacing: 0.2em;
  font-size: 0.8rem;
  transition: all 0.4s;
  width: auto;
}

.cta-form-inline .btn-submit:hover {
  background-color: var(--color-cream);
  color: var(--color-dark);
}

.cta-form-inline .form-field label {
  color: rgba(255, 255, 255, 0.5);
}

.cta-form-inline .form-field input {
  color: var(--color-white);
  border-bottom: 1px solid rgba(255, 255, 255, 0.2);
}

.cta-form-inline .form-field input::placeholder {
  color: rgba(255, 255, 255, 0.2);
}

@media (max-width: 900px) {
  .cta-container {
    grid-template-columns: 1fr;
    text-align: left;
  }

  .expert-box {
    min-height: 400px;
    margin: 0;
  }

  .expert-info-floating {
    left: var(--space-m);
    right: var(--space-m);
    padding: var(--space-s);
    bottom: var(--space-s);
    text-align: center;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    background: rgba(26, 25, 21, 0.9);
    backdrop-filter: blur(10px);
  }

  .expert-info-floating h4 {
    font-size: 1rem;
    margin-bottom: 0px;
  }

  .expert-info-floating p {
    font-size: 0.7rem;
  }

  .cta-content-box h2 {
    font-size: 2.5rem;
    line-height: 1.1;
  }

  .inv-cta-form form {
    flex-direction: column;
    align-items: stretch;
    gap: var(--space-s);
  }

  .inv-btn {
    width: 100%;
  }

  .cta-content-box {
    padding: var(--space-l);
  }

  .cta-form-inline {
    flex-direction: column;
  }

  .cta-benefits li {
    justify-content: flex-start;
  }

  .footer-nav {
    grid-template-columns: 1fr;
    gap: var(--space-m);
  }

  .brand-desc {
    max-width: 100%;
  }
}

/* --- Construction Section (Classic Progress) --- */
.section-construction-classic {
  padding: var(--space-xl) var(--space-l);
  background-color: var(--color-white);
  color: var(--color-dark);
}

.const-header {
  width: 100%;
  margin: 0 0 var(--space-xl) 0;
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
}

.const-header h2 {
  font-size: var(--h2-size);
  text-transform: uppercase;
  line-height: 0.9;
}

.const-progress-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-l);
  width: 100%;
  margin: 0;
}

.const-card-classic {
  border-top: 1px solid rgba(0, 0, 0, 0.1);
  padding-top: var(--space-m);
}

.const-card-meta {
  display: flex;
  justify-content: space-between;
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  margin-bottom: var(--space-s);
}

.const-card-title {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  font-weight: 600;
  text-transform: uppercase;
  margin-bottom: var(--space-m);
}

.bar-container {
  height: 4px;
  background: rgba(0, 0, 0, 0.05);
  width: 100%;
  margin-bottom: var(--space-s);
  position: relative;
  overflow: hidden;
}

.bar-fill {
  position: absolute;
  top: 0;
  left: 0;
  height: 100%;
  background: var(--color-dark);
  transition: width 1.5s cubic-bezier(0.16, 1, 0.3, 1);
}

.const-card-status {
  font-size: 0.85rem;
  opacity: 0.6;
  line-height: 1.5;
}

@media (max-width: 900px) {
  .const-progress-grid {
    grid-template-columns: 1fr;
  }

  .const-header {
    flex-direction: column;
    align-items: flex-start;
    gap: var(--space-m);
  }
}

/* --- Developer Section (High Contrast) --- */
.section-developer {
  padding: var(--space-xxl) var(--space-l);
  background-color: var(--color-cream);
  color: var(--color-dark);
  /* FIX: was var(--color-cream) causing invisible text on cream bg */
  position: relative;
  overflow: hidden;
}

.dev-backdrop-text {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-family: var(--font-heading);
  font-size: 25vw;
  font-weight: 900;
  color: transparent;
  -webkit-text-stroke: 1px rgba(234, 230, 215, 0.05);
  /* very faint cream */
  z-index: 0;
  pointer-events: none;
  line-height: 1;
}

.dev-main {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 0;
  width: 100%;
  margin: 0;
  position: relative;
  z-index: 10;
  align-items: center;
  /* Centered layout for classic feel */
}

.dev-img-box {
  position: relative;
  z-index: 10;
  max-width: 80%;
}

.dev-img-box img {
  width: 100%;
  height: auto;
  border-radius: 0;
  /* Sharp architectural corners */
  box-shadow: none;
  /* Removed shadow */
}

.dev-content {
  background: var(--color-dark);
  /* Updated color to muted blue */
  padding: var(--space-l);
  border-radius: 0;
  /* Sharp corners */
  position: relative;
  z-index: 20;
  margin-left: -5%;
  /* Subtle overlap */
  box-shadow: none;
  /* Removed shadow */
  color: var(--color-cream);
}

.dev-title-big {
  font-family: var(--font-heading);
  font-size: 4rem;
  font-weight: 600;
  line-height: 1.1;
  text-transform: uppercase;
  margin-bottom: var(--space-m);
}

.dev-text-large {
  font-size: 1.25rem;
  line-height: 1.5;
  margin-bottom: var(--space-l);
  padding-left: var(--space-m);
  border-left: 2px solid var(--color-blue-light);
}

.dev-stats-row {
  display: flex;
  gap: var(--space-l);
  margin-bottom: var(--space-m);
}

.dev-stat-item h4 {
  font-family: var(--font-heading);
  font-size: 3.5rem;
  font-weight: 400;
  color: var(--color-sand);
  /* Accent color */
}

.dev-stat-item p {
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  opacity: 0.6;
}

.dev-badges-inline {
  display: flex;
  gap: var(--space-xs);
  margin-top: var(--space-l);
}

.badge-outline {
  padding: 0.8rem 1.4rem;
  border: 1px solid var(--color-cream);
  color: var(--color-cream);
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  background: transparent;
  transition: all 0.4s;
  cursor: pointer;
}

.badge-outline:hover {
  background: var(--color-cream);
  color: var(--color-blue-muted);
}

@media (max-width: 900px) {
  .dev-main {
    grid-template-columns: 1fr;
  }

  .dev-img-box {
    width: 100%;
    margin-bottom: var(--space-m);
  }

  .dev-content {
    margin-left: 0;
    width: 100%;
    padding: var(--space-m);
  }

  .dev-title-big {
    font-size: 2.5rem;
  }
}

/* --- Site Footer --- */
/* --- Site Footer --- */
.site-footer {
  background-color: var(--color-dark);
  color: var(--color-white);
  padding: 100px 0 40px;
  position: relative;
  overflow: hidden;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
}

/* Footer CTA Selection */
.footer-cta {
  width: 100%;
  margin: 0 0 100px 0;
  padding: 0 var(--space-l);
  text-align: center;
}

.cta-content {
  background: rgba(255, 255, 255, 0.03);
  padding: 80px 40px;
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: 4px;
  position: relative;
  overflow: hidden;
}

.cta-title {
  font-family: var(--font-accent);
  font-size: clamp(2rem, 4vw, 3.5rem);
  line-height: 1.1;
  max-width: 800px;
  margin: 20px auto 40px;
}

.cta-actions {
  display: flex;
  gap: 20px;
  justify-content: center;
  flex-wrap: wrap;
}

/* Footer Grid */
.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 3fr 1.5fr;
  gap: 80px;
  margin-bottom: 80px;
  position: relative;
  z-index: 10;
}

.brand-desc {
  font-size: 0.95rem;
  line-height: 1.6;
  opacity: 0.6;
  margin: 30px 0;
  max-width: 320px;
}

.footer-socials {
  display: flex;
  gap: 15px;
}

.social-link {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 50%;
  color: var(--color-white);
  text-decoration: none;
  transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.social-link:hover {
  background-color: var(--color-white);
  color: var(--color-dark);
  border-color: var(--color-white);
  transform: translateY(-4px);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
}

.social-link svg {
  display: block;
}

/* Navigation Columns */
.footer-nav {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px;
}

.nav-label {
  display: block;
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  margin-bottom: 30px;
  color: var(--accent-gold);
  opacity: 0.8;
}

.nav-list {
  list-style: none;
  padding: 0;
}

.nav-list li {
  margin-bottom: 12px;
}

.nav-list a {
  text-decoration: none;
  color: var(--color-white);
  font-size: 1rem;
  opacity: 0.6;
  transition:
    opacity 0.3s,
    transform 0.3s;
  display: inline-block;
}

.nav-list a:hover {
  opacity: 1;
  transform: translateX(5px);
}

/* Contacts Column */
.contact-item {
  margin-bottom: 25px;
}

.contact-label {
  display: block;
  font-size: 0.7rem;
  opacity: 0.3;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 5px;
}

.contact-val {
  font-size: 1.1rem;
  color: var(--color-white);
  text-decoration: none;
  display: block;
  transition: color 0.3s;
}

.contact-val:hover {
  color: var(--accent-gold);
}

/* Footer Bottom */
.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  padding-top: 40px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  position: relative;
  z-index: 10;
}

.bottom-left p {
  font-size: 0.8rem;
  opacity: 0.3;
}

.bottom-right p {
  font-size: 0.8rem;
  opacity: 0.5;
}

.text-accent {
  color: var(--accent-gold);
}

/* Massive Background Text */
.footer-massive-text {
  position: absolute;
  bottom: -2vw;
  left: 0;
  width: 100%;
  display: flex;
  flex-direction: column;
  pointer-events: none;
  z-index: 1;
}

.footer-massive-text span {
  font-family: var(--font-heading);
  font-size: 15vw;
  font-weight: 900;
  line-height: 0.8;
  letter-spacing: -0.05em;
  color: rgba(255, 255, 255, 0.02);
  display: block;
  text-align: center;
  transition: all 0.8s cubic-bezier(0.16, 1, 0.3, 1);
  cursor: default;
}

.doc-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: var(--space-m);
  margin-top: var(--space-l);
}

.doc-card {
  background: #fff;
  padding: var(--space-m);
  border: 1px solid rgba(0, 0, 0, 0.05);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.doc-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.05);
}

.doc-icon {
  width: 50px;
  height: 50px;
  background: var(--color-blue-muted);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  margin-bottom: var(--space-s);
}

.doc-card h3 {
  font-family: var(--font-heading);
  color: var(--color-dark);
  font-size: 1.2rem;
  margin-bottom: 0.5rem;
  text-transform: uppercase;
}

.doc-card p {
  font-size: 0.9rem;
  opacity: 0.7;
  color: var(--color-dark);
  margin-bottom: var(--space-m);
}

.doc-link {
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--color-blue-muted);
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

@media (max-width: 1200px) {
  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 60px;
  }

  .footer-contacts {
    grid-column: span 2;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
  }
}

@media (max-width: 768px) {
  .footer-grid {
    grid-template-columns: 1fr;
    gap: 50px;
  }

  .footer-nav {
    grid-template-columns: 1fr 1fr;
    gap: 30px;
  }

  .footer-contacts {
    grid-template-columns: 1fr;
  }

  .footer-cta {
    padding: 0 20px;
  }
}

/* --- Animations --- */
.animate-on-scroll {
  opacity: 0;
  transform: translateY(30px);
  transition: all 1s cubic-bezier(0.16, 1, 0.3, 1);
}

.animate-on-scroll.visible {
  opacity: 1;
  transform: translateY(0);
}

@media (max-width: 1200px) {
  .hero-main {
    grid-template-columns: 1fr;
    margin-top: 150px;
    padding-bottom: 4rem;
  }

  .row-dev {
    grid-template-columns: 1fr;
    gap: 4rem;
  }

  .sticky-layout {
    grid-template-columns: 1fr;
    gap: 4rem;
  }

  .sticky-col {
    position: relative;
    top: 0;
  }

  .footer-stat {
    flex: 0 0 50%;
    height: 120px;
  }
}

@media (max-width: 768px) {

  /* footer-stat legacy rules — hero-title is handled in the main 768px block below */
  .footer-stat {
    flex: 0 0 50%;
    border-right: none;
    height: auto;
    padding: 1.2rem;
    min-height: 80px;
  }

  .footer-stat:nth-child(odd) {
    border-right: 1px solid rgba(255, 255, 255, 0.1);
  }

  .asymmetric-grid {
    display: flex;
    flex-direction: column;
    height: auto;
    min-height: unset;
  }

  .gallery-item {
    height: 300px !important;
    margin: 0 !important;
  }
}

.modal-backdrop {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  width: 100vw;
  height: 100vh;
  background-color: rgba(26, 25, 21, 0.4);
  backdrop-filter: blur(15px);
  -webkit-backdrop-filter: blur(15px);
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  visibility: hidden;
  transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.modal-backdrop.is-open {
  opacity: 1;
  pointer-events: auto;
  visibility: visible;
}

.modal-container {
  background-color: var(--color-dark);
  color: var(--color-cream);
  width: 100%;
  max-width: 500px;
  max-height: 90svh;
  overflow-y: auto;
  position: relative;
  padding: 3rem;
  transform: translateY(40px) scale(0.95);
  opacity: 0;
  transition: all 0.5s cubic-bezier(0.16, 1, 0.3, 1);
  transition-delay: 0.1s;
  border: 1px solid rgba(234, 230, 215, 0.1);
  box-shadow: 0 40px 100px rgba(0, 0, 0, 0.5);
}

.modal-backdrop.is-open .modal-container {
  transform: translateY(0) scale(1);
  opacity: 1;
}

.modal-close {
  position: absolute;
  top: var(--space-m);
  right: var(--space-m);
  background: transparent;
  border: none;
  color: var(--color-cream);
  opacity: 0.5;
  cursor: pointer;
  transition: all 0.3s;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 8px;
}

.modal-close:hover {
  opacity: 1;
  transform: rotate(90deg);
}

.modal-title {
  font-family: var(--font-heading);
  font-size: 2.2rem;
  font-weight: 500;
  text-transform: uppercase;
  line-height: 1;
  letter-spacing: -0.03em;
  margin-bottom: var(--space-s);
  color: var(--color-cream);
}

.modal-desc {
  font-size: 0.95rem;
  opacity: 0.6;
  line-height: 1.5;
  margin-bottom: var(--space-l);
}

.modal-form {
  display: flex;
  flex-direction: column;
  gap: var(--space-m);
}

.modal-field label {
  color: rgba(234, 230, 215, 0.5);
  font-size: 0.7rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  display: block;
  margin-bottom: 0.4rem;
}

.modal-field input {
  width: 100%;
  background: transparent;
  color: var(--color-cream);
  border: none;
  border-bottom: 1px solid rgba(234, 230, 215, 0.2);
  padding: 0.75rem 0;
  font-family: inherit;
  font-size: 1.1rem;
}

.modal-field input::placeholder {
  color: rgba(234, 230, 215, 0.2);
}

.modal-field input:focus {
  outline: none;
  border-color: var(--color-cream);
}

.modal-submit-btn {
  width: 100%;
  background-color: var(--color-blue-muted);
  color: var(--color-cream);
  border: none;
  padding: 1.2rem;
  font-family: inherit;
  font-weight: 700;
  text-transform: uppercase;
  cursor: pointer;
  letter-spacing: 0.15em;
  font-size: 0.8rem;
  transition: all 0.4s ease;
  margin-top: var(--space-m);
}

.modal-submit-btn:hover {
  background-color: var(--color-sand);
  color: var(--color-dark);
}

.burger-menu {
  display: none;
  flex-direction: column;
  gap: 6px;
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 10px;
  margin-left: var(--space-s);
  z-index: 1001;
}

.burger-menu span {
  display: block;
  width: 24px;
  height: 1.5px;
  background-color: var(--color-white);
  transition: 0.3s;
}

.mobile-menu-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100vh;
  background-color: var(--color-dark);
  z-index: 2000;
  padding: var(--space-m);
  display: flex;
  flex-direction: column;
  transform: translateX(100%);
  transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
  visibility: hidden;
}

.mobile-menu-overlay.is-active {
  transform: translateX(0);
  visibility: visible;
}

.mm-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: var(--space-l);
}

.menu-close {
  background: transparent;
  border: none;
  color: var(--color-white);
  cursor: pointer;
}

.mm-nav {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.mm-link {
  font-family: var(--font-heading);
  font-size: 2.5rem;
  font-weight: 500;
  text-transform: uppercase;
  color: var(--color-white);
  text-decoration: none;
  letter-spacing: -0.02em;
}

.mm-footer {
  margin-top: auto;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: var(--space-m);
}

.mm-phone {
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--color-white);
  text-decoration: none;
}

.mm-address {
  font-size: 0.9rem;
  opacity: 0.6;
  margin-top: 0.5rem;
}

.mm-socials {
  margin-top: var(--space-m);
  display: flex;
  gap: 1.2rem;
}

.mm-socials a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  border: 1px solid rgba(214, 202, 177, 0.3);
  border-radius: 50%;
  color: var(--color-sand);
  transition: all 0.3s ease;
  text-decoration: none;
}

.mm-socials a:hover {
  background: var(--color-sand);
  color: var(--color-dark);
}

@media (max-width: 1024px) {
  .hero-main {
    grid-template-columns: 1fr;
    margin-top: 120px;
    gap: 2rem;
    padding: 0 2rem 3rem;
  }

  .hero-title {
    font-size: 3.2rem;
  }

  .cta-card {
    max-width: 460px;
  }

  .description-split {
    grid-template-columns: 1fr;
  }

  .desc-sticky {
    position: relative;
    height: auto;
    padding: 4rem 2rem 2rem;
  }

  /* Show burger at 1024px — hide desktop nav */
  .header-nav {
    display: none;
  }

  .phone-top {
    display: none;
  }

  .burger-menu {
    display: flex;
  }

  /* CTA section intermediate */
  .cta-content-box {
    padding: 5rem 3rem;
  }

  /* Developer section intermediate */
  .section-developer {
    padding: 6rem var(--space-l);
  }

  /* Container responsive padding */
  .container,
  .container-full {
    padding: 0 2rem;
  }
}

/* ============================================
   TABLET (max-width: 900px)
   ============================================ */
@media (max-width: 900px) {

  /* Header */
  .site-header {
    padding: 1rem 1.5rem;
  }

  /* Gallery */
  .section-gallery {
    padding: 4rem 1.5rem;
  }

  .asymmetric-grid {
    grid-template-columns: 1fr 1fr;
    min-height: unset;
    gap: 1rem;
  }

  #gi-1 {
    grid-column: 1 / 2;
    grid-row: 1 / 2;
    height: 280px;
  }

  #gi-2 {
    grid-column: 2 / 3;
    grid-row: 1 / 2;
    height: 280px;
    margin-top: 0;
  }

  #gi-3 {
    grid-column: 1 / 2;
    grid-row: 2 / 3;
    height: 250px;
  }

  #gi-4 {
    grid-column: 2 / 3;
    grid-row: 2 / 3;
    height: 250px;
  }

  .video-box {
    grid-column: 1 / 3;
    grid-row: 3 / 4;
    height: 300px;
    margin-top: 0;
  }

  /* Description section */
  .description-split {
    grid-template-columns: 1fr;
    gap: 0;
  }

  .desc-sticky {
    position: relative;
    height: auto;
    top: 0;
    padding: 4rem 1.5rem 2rem;
    min-height: unset;
  }

  .f-card {
    height: 70vh;
    min-height: 400px;
  }

  /* Investment / Planning section */
  .section-investment {
    padding-top: 2rem;
  }

  .inv-horizontal-track {
    transform: none !important;
    display: flex;
    flex-direction: column;
    gap: 0;
    width: 100%;
  }

  .inv-slide {
    grid-template-columns: 1fr;
    height: auto;
    width: 100% !important;
  }

  .inv-img-box {
    height: 320px;
  }

  .plan-img {
    object-fit: contain;
    max-width: 95%;
    max-height: 90%;
  }

  .inv-content {
    padding: 2rem 1.5rem;
  }

  .inv-sticky-wrapper {
    position: relative !important;
    height: auto !important;
    overflow: visible;
  }

  .inv-nav-dots {
    display: none;
  }

  .scroll-trigger-inv {
    height: auto;
  }

  /* CTA section */
  .cta-container {
    grid-template-columns: 1fr;
  }

  .expert-box {
    min-height: 380px;
  }

  .cta-content-box {
    padding: 3rem 1.5rem;
  }

  .cta-content-box h2 {
    font-size: 2.4rem;
  }

  /* Construction */
  .section-construction-classic {
    padding: 4rem 1.5rem;
  }

  .const-progress-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .const-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 1rem;
  }

  /* Developer */
  .section-developer {
    padding: 5rem 1.5rem;
  }

  .dev-main {
    grid-template-columns: 1fr;
    gap: 0;
  }

  .dev-img-box {
    width: 100%;
    max-width: 100%;
    margin-bottom: 0;
  }

  .dev-content {
    margin-left: 0;
    width: 100%;
    padding: 2rem 1.5rem;
  }

  .dev-title-big {
    font-size: 2.8rem;
  }

  /* Blog */
  .section-blog {
    padding: 4rem 1.5rem;
  }

  .blog-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .blog-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 1.5rem;
    margin-bottom: 2.5rem;
  }

  /* Footer */
  .footer-grid {
    grid-template-columns: 1fr;
    gap: 3rem;
    padding: 0 1.5rem;
  }

  .footer-nav {
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
  }

  .footer-contacts {
    grid-column: auto;
    display: grid;
    grid-template-columns: 1fr;
    gap: 1rem;
  }

  .site-footer {
    padding: 4rem 0 3rem;
  }

  /* Location map */
  .location-interface {
    padding: 80px 1.5rem 2rem;
  }

  .loc-ui-content {
    max-width: 100%;
    margin-top: 1.5rem;
  }

  .location-nav {
    grid-template-columns: repeat(auto-fit, minmax(68px, 1fr));
    gap: 10px;
  }

  .glass-panel {
    padding: 1.2rem;
  }

  .section-location {
    height: 100vh;
    min-height: 600px;
  }

  .map-ui-controls {
    right: 1rem;
  }
}

/* ============================================
   MOBILE (max-width: 768px)
   ============================================ */
@media (max-width: 768px) {

  /* --- Container responsive padding --- */
  .container,
  .container-full {
    padding: 0 1.2rem;
  }

  /* --- Hero section --- */
  .hero-wrapper {
    min-height: 100svh;
    height: auto;
  }

  .hero-main {
    grid-template-columns: 1fr;
    margin-top: 90px;
    padding: 0 1.2rem 1.5rem;
    gap: 1.5rem;
    align-items: flex-start;
  }

  .hero-title {
    font-size: 2.4rem;
    line-height: 1.05;
    margin-bottom: 1rem;
  }

  .cta-card {
    padding: 1.5rem 1.2rem;
    width: 100%;
  }

  .cta-card h3 {
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
  }

  /* Hero footer stats — 2x2 grid */
  .hero-footer {
    display: grid;
    grid-template-columns: 1fr 1fr;
    height: auto;
    background: rgba(26, 25, 21, 0.8);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
  }

  .footer-stat {
    flex: unset;
    border-right: none;
    border-bottom: 1px solid rgba(255, 255, 255, 0.07);
    padding: 1rem 1.2rem;
    min-height: 80px;
  }

  .footer-stat:nth-child(odd) {
    border-right: 1px solid rgba(255, 255, 255, 0.07);
  }

  .stat-number {
    font-size: 1.2rem;
  }

  .stat-text {
    font-size: 0.6rem;
  }

  /* --- Gallery section --- */
  .section-gallery {
    padding: 3rem 1.2rem;
  }

  .gallery-header {
    margin-bottom: 2rem;
  }

  .asymmetric-grid {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    min-height: unset;
  }

  .gallery-item {
    height: 280px !important;
    margin: 0 !important;
  }

  .video-box {
    height: 220px !important;
  }

  /* --- Description (Philosophy) section --- */
  .section-description {
    padding: 0;
  }

  .description-split {
    grid-template-columns: 1fr;
  }

  .desc-sticky {
    position: relative;
    height: auto;
    padding: 3rem 1.2rem 1.5rem;
    min-height: unset;
  }

  .f-card {
    height: 60vh;
    min-height: 360px;
    padding: 2rem 1.2rem;
  }

  .f-title {
    font-size: 1.8rem;
  }

  .f-desc {
    font-size: 0.95rem;
  }

  /* --- Planning / Investment section --- */
  .section-investment {
    padding-top: 2rem;
  }

  .scroll-trigger-inv {
    height: auto;
  }

  .inv-sticky-wrapper {
    position: relative !important;
    height: auto !important;
    overflow: visible;
  }

  .inv-horizontal-track {
    transform: none !important;
    display: flex;
    flex-direction: column;
    gap: 0;
    width: 100%;
  }

  .inv-slide {
    grid-template-columns: 1fr;
    height: auto;
    width: 100% !important;
    border-bottom: 2px solid rgba(0, 0, 0, 0.06);
  }

  .inv-img-box {
    height: 260px !important;
  }

  .plan-img {
    object-fit: contain;
    max-width: 92%;
    max-height: 88%;
  }

  .plan-toggle {
    top: 10px;
  }

  .toggle-btn {
    padding: 7px 12px;
    font-size: 0.65rem;
  }

  .inv-content {
    padding: 1.5rem 1.2rem 2rem;
  }

  .inv-title {
    font-size: 1.8rem;
  }

  .inv-cta-form form {
    flex-direction: column;
    align-items: stretch;
    gap: 1rem;
  }

  .inv-btn {
    width: 100%;
    padding: 1rem;
  }

  .inv-nav-dots {
    display: none;
  }

  /* --- Location section --- */
  .section-location {
    height: auto;
    min-height: 100svh;
  }

  .map-frame {
    height: 50vh;
    position: relative;
  }

  .section-location {
    display: flex;
    flex-direction: column;
    position: relative;
  }

  #map {
    height: 100%;
  }

  .location-interface {
    position: relative;
    height: auto;
    padding: 1.5rem 1.2rem 2rem;
    z-index: 10;
    background: var(--color-dark);
    pointer-events: auto;
  }

  .loc-ui-top {
    margin-bottom: 1rem;
  }

  .loc-ui-content {
    max-width: 100%;
    max-height: none;
    overflow-y: visible;
    margin: 0;
  }

  .location-nav {
    grid-template-columns: repeat(auto-fit, minmax(60px, 1fr));
    gap: 8px;
    padding-bottom: 1rem;
  }

  .loc-time {
    font-size: 1.1rem;
  }

  .loc-label {
    font-size: 0.65rem;
  }

  .map-overlay {
    display: none;
  }

  .map-ui-controls {
    top: auto;
    bottom: 1rem;
    right: 1rem;
    transform: none;
    gap: 8px;
  }

  .m-btn {
    width: 42px;
    height: 42px;
    font-size: 1.2rem;
  }

  /* --- CTA section --- */
  .section-cta {
    padding: 0;
  }

  .cta-container {
    grid-template-columns: 1fr;
  }

  .expert-box {
    min-height: 320px;
  }

  .expert-info-floating {
    left: 1rem;
    right: 1rem;
    bottom: 1rem;
    padding: 1rem;
    text-align: left;
  }

  .expert-info-floating h4 {
    font-size: 0.95rem;
    margin-bottom: 0.1rem;
  }

  .expert-info-floating p {
    font-size: 0.7rem;
  }

  .cta-content-box {
    padding: 2.5rem 1.2rem;
  }

  .cta-content-box h2 {
    font-size: 2rem;
    line-height: 1.05;
    margin-bottom: 1.5rem;
  }

  .cta-benefits li {
    font-size: 0.95rem;
    padding: 0.7rem 0;
  }

  .cta-form-inline {
    flex-direction: column;
    align-items: stretch;
    gap: 1rem;
  }

  .cta-form-inline .btn-submit {
    width: 100%;
    padding: 1rem;
    font-size: 0.8rem;
  }

  /* --- Construction section --- */
  .section-construction-classic {
    padding: 3rem 1.2rem;
  }

  .const-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.5rem;
    margin-bottom: 2rem;
  }

  .const-header h2 {
    font-size: 2rem;
  }

  .const-progress-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .const-card-classic {
    padding-top: 1.5rem;
  }

  /* --- Developer section --- */
  .section-developer {
    padding: 3rem 0;
  }

  .dev-main {
    grid-template-columns: 1fr;
    gap: 0;
  }

  .dev-img-box {
    width: 100%;
    max-width: 100%;
    padding: 0 1.2rem;
  }

  .dev-content {
    margin-left: 0;
    padding: 2rem 1.2rem;
  }

  .dev-title-big {
    font-size: 2.2rem;
  }

  .dev-text-large {
    font-size: 1rem;
    padding-left: 1rem;
    margin-bottom: 2rem;
  }

  .dev-stats-row {
    gap: 1.5rem;
    margin-bottom: 1.5rem;
    flex-wrap: wrap;
  }

  .dev-stat-item h4 {
    font-size: 2.5rem;
  }

  .dev-badges-inline {
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-top: 1.5rem;
  }

  .dev-backdrop-text {
    font-size: 40vw;
  }

  /* --- Blog section --- */
  .section-blog {
    padding: 3rem 1.2rem;
  }

  .blog-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 1.2rem;
    margin-bottom: 2rem;
  }

  .blog-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  .blog-title {
    font-size: 1.2rem;
  }

  /* --- Footer --- */
  .site-footer {
    padding: 3rem 0 2rem;
  }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: 2.5rem;
    padding: 0 1.2rem;
  }

  .footer-nav {
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
  }

  .footer-contacts {
    grid-template-columns: 1fr;
    gap: 1rem;
    display: grid;
  }

  .footer-socials {
    margin-top: 0.5rem;
    flex-wrap: wrap;
    gap: 0.75rem;
  }

  .footer-bottom {
    flex-direction: column;
    gap: 1rem;
    align-items: flex-start;
    padding-top: 1.5rem;
    padding-left: 1.2rem;
    padding-right: 1.2rem;
  }

  .footer-massive-text {
    bottom: -1vw;
  }

  .footer-massive-text span {
    font-size: 20vw;
  }

  /* --- Modal --- */
  .modal-container {
    padding: 1.5rem;
    width: 95%;
    max-height: 95svh;
    overflow-y: auto;
  }

  .modal-title {
    font-size: 1.8rem;
  }

  .modal-desc {
    font-size: 0.9rem;
    margin-bottom: 1.5rem;
  }

  .modal-field input,
  .form-field input {
    padding: 1rem 0;
    font-size: 1rem;
  }

  .modal-submit-btn {
    padding: 1rem;
  }

  /* --- Doc pages --- */
  .doc-grid {
    grid-template-columns: 1fr;
  }

  .page-hero {
    padding: 7rem 1.2rem 3rem;
  }

  .post-body {
    padding: 3rem 1.2rem;
  }

  .post-footer {
    flex-direction: column;
    gap: 1.2rem;
    align-items: flex-start;
  }
}

/* ============================================
   SMALL PHONES (max-width: 480px)
   ============================================ */
@media (max-width: 480px) {
  .hero-title {
    font-size: 2rem;
  }

  .cta-card {
    padding: 1.2rem;
  }

  .mm-link {
    font-size: 2rem;
    line-height: 1.2;
  }

  .modal-title {
    font-size: 1.7rem;
  }

  .hero-main {
    margin-top: 80px;
    padding: 0 1rem 1.5rem;
  }

  .site-header {
    padding: 0.8rem 1rem;
  }

  .f-card {
    height: 55vh;
    min-height: 320px;
    padding: 1.5rem 1rem;
  }

  .f-title {
    font-size: 1.6rem;
  }

  .inv-img-box {
    height: 220px !important;
  }

  .cta-content-box h2 {
    font-size: 1.8rem;
  }

  .dev-title-big {
    font-size: 1.9rem;
  }

  .dev-stat-item h4 {
    font-size: 2rem;
  }

  .section-title {
    font-size: 1.7rem;
  }

  .const-card-title {
    font-size: 1.3rem;
  }

  .location-nav {
    grid-template-columns: repeat(auto-fit, minmax(56px, 1fr));
    gap: 6px;
  }

  .loc-time {
    font-size: 1rem;
  }

  .footer-nav {
    grid-template-columns: 1fr;
  }

  .blog-card:hover {
    transform: none;
  }

  /* Touch targets — minimum 44px */
  .btn-callback,
  .form-submit,
  .inv-btn,
  .modal-submit-btn,
  .cta-form-inline .btn-submit,
  .mm-link,
  .loc-tab,
  .infra-item {
    min-height: 44px;
  }
}

/* --- Shared Typography --- */
.section-title {
  font-family: var(--font-heading);
  font-size: var(--h2-size);
  font-weight: var(--weight-heading);
  text-transform: uppercase;
  line-height: var(--lh-tight);
  letter-spacing: -0.02em;
}

.page-hero {
  padding: var(--space-xxl) var(--space-l) var(--space-xl);
  background-color: var(--color-dark);
  text-align: center;
  position: relative;
}

.page-hero .hero-title {
  margin-top: var(--space-m);
}

.content-section {
  padding: var(--space-xl) var(--space-l);
  background-color: var(--color-cream);
  color: var(--color-dark);
}

/* --- Blog Section --- */
.section-blog {
  padding: var(--space-xl) var(--space-l);
  background-color: var(--color-blue-muted);
  color: var(--color-white);
}

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

.blog-header .section-title {
  margin-bottom: 0;
}

.blog-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-l);
}

.blog-card {
  text-decoration: none;
  color: inherit;
  display: flex;
  flex-direction: column;
  gap: var(--space-s);
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.blog-card:hover {
  transform: translateY(-10px);
}

.blog-img-box {
  aspect-ratio: 16/10;
  overflow: hidden;
  background-color: rgba(255, 255, 255, 0.05);
}

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

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

.blog-meta {
  display: flex;
  gap: 1rem;
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--color-sand);
  margin-bottom: var(--hMeta-size);
}

.blog-title {
  font-family: var(--font-heading);
  font-size: 1.4rem;
  line-height: 1.2;
  font-weight: 500;
  text-transform: uppercase;
  margin-bottom: var(--hMeta-size);
}

.blog-date {
  font-size: 0.8rem;
  opacity: 0.5;
}

.blog-cta {
  margin-top: var(--space-xl);
  text-align: center;
}

@media (max-width: 900px) {
  .blog-grid {
    grid-template-columns: 1fr;
    gap: var(--space-l);
  }

  .blog-header {
    flex-direction: column;
    align-items: flex-start;
    gap: var(--space-m);
  }
}

/* --- Blog Post Page Styles --- */
.post-hero {
  padding: var(--space-xxl) var(--space-l) var(--space-xl);
  background-color: var(--color-dark);
  text-align: center;
  position: relative;
  overflow: hidden;
  min-height: 60vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}

.post-hero-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
  opacity: 0.4;
  object-fit: cover;
}

.post-hero-content {
  position: relative;
  z-index: 2;
  max-width: 900px;
}

.post-body {
  padding: var(--space-xl) var(--space-l);
  background-color: var(--color-cream);
  color: var(--color-dark);
}

.post-container {
  max-width: 800px;
  margin: 0 auto;
}

.post-content {
  font-size: 1.1rem;
  line-height: 1.7;
  font-weight: 300;
}

.post-content h2 {
  font-family: var(--font-heading);
  font-size: 2rem;
  margin: var(--space-l) 0 var(--space-m);
  text-transform: uppercase;
}

.post-content p {
  margin-bottom: var(--space-m);
}

.post-content img {
  width: 100%;
  margin: var(--space-m) 0;
  border-radius: 4px;
}

.post-footer {
  margin-top: var(--space-xl);
  padding-top: var(--space-m);
  border-top: 1px solid rgba(0, 0, 0, 0.1);
  display: flex;
  justify-content: space-between;
  align-items: center;
}
/* --- PDF Custom Viewer Modal --- */
.pdf-modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.85);
  backdrop-filter: blur(10px);
  z-index: 3000;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 40px;
  animation: fadeIn 0.4s ease;
}

.pdf-modal.is-open {
  display: flex !important;
}

.pdf-modal-container {
  background-color: #1a1915;
  width: 100%;
  max-width: 1200px;
  height: 85vh;
  border-radius: 8px;
  position: relative;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 50px 100px rgba(0, 0, 0, 0.5);
}

.pdf-modal-close {
  position: absolute;
  top: 15px;
  right: 15px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: #fff;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 10;
  transition: all 0.3s ease;
}

.pdf-modal-close:hover {
  background: #fff;
  color: #000;
  transform: rotate(90deg);
}

.pdf-modal-header {
  padding: 20px 30px;
  padding-right: 70px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: #1a1915;
}

.pdf-modal-header h3 {
  margin: 0;
  font-size: 1.1rem;
  color: var(--color-sand);
  font-family: var(--font-heading);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.pdf-download-btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--color-white);
  text-decoration: none;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  opacity: 0.6;
  transition: all 0.3s ease;
  padding: 8px 16px;
  border-radius: 4px;
}

.pdf-download-btn:hover {
  opacity: 1;
  background: rgba(255, 255, 255, 0.05);
}

.pdf-modal-body {
  flex: 1;
  background-color: #2b2b2b;
  position: relative;
}

.pdf-modal-body iframe {
  width: 100%;
  height: 100%;
  border: none;
}

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

@media (max-width: 900px) {
  .pdf-modal {
    padding: 10px;
  }
  .pdf-modal-container {
    height: 95vh;
  }
  .pdf-modal-header {
    padding: 15px 20px;
  }
  .pdf-download-btn span {
    display: none;
  }
}
