﻿:root {
  --rust: #C0402A;
  --rust-dark: #8B2D1A;
  --rust-light: #E8614A;
  --rust-soft: rgba(232, 97, 74, 0.12);
  --black: #0D0D0D;
  --charcoal: #1A1A1A;
  --dark: #222222;
  --mid: #555555;
  --light: #F5F0EB;
  --white: #FDFBF8;
  --accent: #D4A853;
  --accent-soft: rgba(212, 168, 83, 0.2);
  --whatsapp: #25D366;
  --shadow-sm: 0 12px 30px rgba(18, 18, 18, 0.08);
  --shadow-md: 0 18px 50px rgba(18, 18, 18, 0.12);
  --shadow-lg: 0 30px 80px rgba(18, 18, 18, 0.16);
  --radius: 16px;
  --radius-sm: 12px;
  --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* â”€â”€â”€ THEME SYSTEM â”€â”€â”€ */
[data-theme="dark"] {
  --bg-primary: #0d0d0d;
  --bg-secondary: #171717;
  --bg-card: rgba(255,255,255,0.04);
  --bg-elevated: #1f1f1f;
  --text-primary: #f7f3ef;
  --text-secondary: rgba(255,255,255,0.72);
  --text-muted: rgba(255,255,255,0.46);
  --border-light: rgba(255,255,255,0.08);
  --hero-overlay: linear-gradient(to right, rgba(13,13,13,0.92) 0%, rgba(13,13,13,0.72) 30%, rgba(13,13,13,0.32) 100%);
}
[data-theme="light"] {
  --bg-primary: #f7f4f1;
  --bg-secondary: #f0ebe4;
  --bg-card: rgba(255, 255, 255, 0.86);
  --bg-elevated: #ffffff;
  --text-primary: #171717;
  --text-secondary: #4f4f4f;
  --text-muted: #8d8d8d;
  --border-light: rgba(23, 23, 23, 0.08);
  --hero-overlay: linear-gradient(to right, rgba(247,244,241,0.88) 0%, rgba(247,244,241,0.68) 40%, rgba(247,244,241,0.12) 100%);
}
/* Default: light */
html { --bg-primary: #f7f4f1; --bg-secondary: #f0ebe4; --bg-card: rgba(255, 255, 255, 0.86); --bg-elevated: #ffffff; --text-primary: #171717; --text-secondary: #4f4f4f; --text-muted: #8d8d8d; --border-light: rgba(23, 23, 23, 0.08); --hero-overlay: linear-gradient(to right, rgba(247,244,241,0.88) 0%, rgba(247,244,241,0.68) 40%, rgba(247,244,241,0.12) 100%); }

::selection {
  background: rgba(232, 97, 74, 0.2);
}

/* â”€â”€â”€ THEME SWITCH â”€â”€â”€ */
.theme-switch-wrapper {
  display: flex;
  align-items: center;
}
.theme-switch {
  display: inline-block;
  height: 24px;
  position: relative;
  width: 50px;
}
.theme-switch input {
  display: none;
}
.slider {
  background: linear-gradient(135deg, rgba(17,17,17,0.92), rgba(74,74,74,0.9));
  bottom: 0;
  cursor: pointer;
  left: 0;
  position: absolute;
  right: 0;
  top: 0;
  transition: .4s;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 5px;
  border: 1px solid rgba(255,255,255,0.08);
  box-shadow: inset 0 1px 2px rgba(0,0,0,0.12);
}
.slider:before {
  background: linear-gradient(135deg, #fff, #f4efe9);
  bottom: 2px;
  content: "";
  height: 18px;
  left: 2px;
  position: absolute;
  transition: .4s;
  width: 18px;
  z-index: 2;
  box-shadow: 0 2px 8px rgba(0,0,0,0.18);
}
input:checked + .slider {
  background: linear-gradient(135deg, rgba(232,97,74,0.95), rgba(192,64,42,0.9));
}
input:checked + .slider:before {
  transform: translateX(26px);
}
.slider.round {
  border-radius: 34px;
}
.slider.round:before {
  border-radius: 50%;
}
.slider .sun-icon, .slider .moon-icon {
  color: var(--white);
  opacity: 0.5;
  transition: opacity 0.3s;
}
input:checked + .slider .sun-icon {
  opacity: 1;
}
input:not(:checked) + .slider .moon-icon {
  opacity: 1;
}

[data-theme="light"] .slider {
  background: linear-gradient(135deg, rgba(235, 235, 235, 1), rgba(214, 214, 214, 0.95));
  border-color: rgba(35,35,35,0.08);
}
[data-theme="light"] .slider:before {
  background: linear-gradient(135deg, #fff, #f1eee9);
}
[data-theme="light"] .slider .sun-icon, [data-theme="light"] .slider .moon-icon {
  color: var(--charcoal);
}

.calc-placeholder-text {
  color: rgba(255,255,255,0.4);
  font-size: 0.9rem;
}
[data-theme="light"] .calc-placeholder-text {
  color: rgba(0,0,0,0.4);
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html {
  width: 100%;
  max-width: 100%;
  overflow-x: hidden;
  scroll-behavior: smooth;
  scroll-padding-top: 90px;
}

body {
  font-family: var(--font-body, 'Segoe UI', Roboto, Arial, sans-serif);
  background:
    radial-gradient(circle at top left, rgba(232,97,74,0.08), transparent 28%),
    linear-gradient(180deg, var(--bg-primary) 0%, var(--bg-primary) 100%);
  color: var(--text-primary);
  width: 100%;
  max-width: 100%;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

img { max-width: 100%; height: auto; display: block; }

/* â”€â”€â”€ CONTAINER â”€â”€â”€ */
.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 60px;
}
@media (max-width: 1024px) {
  .container { padding: 0 30px; }
}
@media (max-width: 768px) {
  .container { padding: 0 20px; }
}
@media (max-width: 480px) {
  .container { padding: 0 16px; }
}

/* â”€â”€â”€ NAV â”€â”€â”€ */
nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 10001;
  display: flex; align-items: center; justify-content: space-between;
  padding: 16px 60px;
  background: rgba(247, 244, 241, 0.72);
  backdrop-filter: blur(18px) saturate(150%);
  -webkit-backdrop-filter: blur(18px) saturate(150%);
  border-bottom: 1px solid var(--border-light);
  transition: box-shadow 0.4s ease, background 0.4s ease, border-color 0.4s ease, transform 0.3s ease, opacity 0.3s ease;
  animation: navSlideDown 0.6s cubic-bezier(0.34, 1.56, 0.64, 1) backwards;
  isolation: isolate;
}
nav.hidden {
  transform: translateY(-100%);
  opacity: 0;
  pointer-events: none;
}
@keyframes navSlideDown {
  0% { opacity: 0; transform: translateY(-30px); }
  100% { opacity: 1; transform: translateY(0); }
}
nav.scrolled {
  box-shadow: 0 14px 30px rgba(17, 17, 17, 0.08);
  border-bottom-color: rgba(192, 64, 42, 0.45);
  background: rgba(247, 244, 241, 0.9);
}
nav.scrolled::after {
  content: '';
  position: absolute; bottom: -1px; left: 0; right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--rust-light), var(--accent), var(--rust-light), transparent);
  background-size: 200% 100%;
  animation: navBorderGlow 2s ease-in-out infinite alternate;
}
@keyframes navBorderGlow {
  0% { background-position: 0% 0; opacity: 0.5; }
  100% { background-position: 100% 0; opacity: 1; }
}

.nav-logo {
  font-family: var(--font-heading, Georgia, 'Times New Roman', serif);
  font-size: 1.5rem;
  color: var(--text-primary);
  letter-spacing: 0.04em;
  text-decoration: none;
  z-index: 101;
  display: flex; align-items: center; gap: 12px;
  transition: transform 0.3s ease;
}
.nav-logo:hover { transform: translateY(-1px) scale(1.01); }
.nav-logo span { color: var(--rust-light); }
.nav-logo-img {
  width: 48px; height: 48px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid rgba(192,64,42,0.22);
  flex-shrink: 0;
  box-shadow: 0 8px 24px rgba(192,64,42,0.12);
  transition: transform 0.5s cubic-bezier(0.34, 1.56, 0.64, 1),
              border-color 0.3s ease,
              box-shadow 0.3s ease;
}
.nav-logo:hover .nav-logo-img {
  transform: scale(1.12) rotate(-8deg);
  border-color: var(--rust-light);
  box-shadow: 0 12px 32px rgba(192,64,42,0.24);
}

.nav-links {
  display: flex; align-items: center; gap: 28px; list-style: none;
}

.nav-links > li {
  opacity: 0;
  animation: navLinkSlide 0.5s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
}
.nav-links > li:nth-child(1) { animation-delay: 0.10s; }
.nav-links > li:nth-child(2) { animation-delay: 0.15s; }
.nav-links > li:nth-child(3) { animation-delay: 0.20s; }
.nav-links > li:nth-child(4) { animation-delay: 0.25s; }
.nav-links > li:nth-child(5) { animation-delay: 0.30s; }
.nav-links > li:nth-child(6) { animation-delay: 0.35s; }
.nav-links > li:nth-child(7) { animation-delay: 0.40s; }
@keyframes navLinkSlide {
  0% { opacity: 0; transform: translateY(-20px) scale(0.9); }
  100% { opacity: 1; transform: translateY(0) scale(1); }
}

.nav-links a {
  color: var(--text-secondary);
  text-decoration: none;
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 8px 4px;
  display: inline-block;
  position: relative;
  transition: color 0.3s ease, transform 0.3s ease;
}
.nav-links a:hover {
  color: var(--rust-light);
  transform: translateY(-1px);
}

.nav-links a::after {
  content: '';
  position: absolute; bottom: 0; left: 50%; transform: translateX(-50%) scaleX(0);
  width: 80%; height: 2px;
  background: linear-gradient(90deg, var(--rust-dark), var(--rust-light), var(--accent));
  border-radius: 999px;
  transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}
.nav-links a:hover::after,
.nav-links a.active::after {
  transform: translateX(-50%) scaleX(1);
}

.nav-links a.active {
  color: var(--rust-light);
  text-shadow: 0 0 20px rgba(232,97,74,0.25);
}

.nav-cta {
  background: linear-gradient(135deg, var(--rust-light), var(--rust));
  color: white !important;
  padding: 10px 22px !important;
  border-radius: var(--radius-sm);
  min-height: 44px;
  min-width: 44px;
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
  box-shadow: 0 12px 28px rgba(192,64,42,0.18);
  transition: background 0.3s ease, transform 0.3s ease, box-shadow 0.3s ease !important;
}
.nav-cta::after { display: none !important; }
.nav-cta:hover {
  background: linear-gradient(135deg, var(--rust), var(--rust-light));
  transform: translateY(-2px);
  box-shadow: 0 16px 32px rgba(192,64,42,0.28);
}
.nav-cta::before {
  content: '';
  position: absolute; top: 0; left: -100%; width: 100%; height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.24), transparent);
  transition: left 0.6s ease;
}
.nav-cta:hover::before { left: 100%; }

.nav-dropdown {
  position: relative;
}
.nav-dropdown > a::after {
  content: '▾';
  font-size: 0.55rem;
  margin-left: 4px;
  display: inline-block;
  transition: transform 0.2s;
}
.nav-dropdown:hover > a::after {
  transform: rotate(180deg);
}
.nav-submenu {
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%);
  background: var(--bg-elevated);
  border: 1px solid var(--border-light);
  border-radius: var(--radius);
  padding: 8px 0;
  min-width: 180px;
  list-style: none;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.2s ease, transform 0.2s ease, visibility 0.2s;
  box-shadow: var(--shadow-lg);
  z-index: 10000;
}
.nav-dropdown::after {
  content: '';
  position: absolute;
  bottom: -12px;
  left: 0;
  right: 0;
  height: 12px;
}
.nav-submenu::before {
  content: '';
  position: absolute;
  top: -6px;
  left: 50%;
  transform: translateX(-50%) rotate(45deg);
  width: 12px;
  height: 12px;
  background: var(--bg-elevated);
  border-left: 1px solid var(--border-light);
  border-top: 1px solid var(--border-light);
}
.nav-dropdown:hover .nav-submenu,
.nav-dropdown.active .nav-submenu {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translateX(-50%) translateY(6px);
}
.nav-dropdown.active > a::after {
  transform: rotate(180deg);
}
.nav-submenu li {
  opacity: 1;
  animation: none;
}
.nav-submenu a {
  display: block;
  padding: 10px 20px;
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  white-space: nowrap;
  transition: background 0.2s, color 0.2s;
}
.nav-submenu a:hover {
  background: rgba(192,64,42,0.1);
  color: var(--rust-light) !important;
  transform: none !important;
}
.nav-submenu a::after { display: none !important; }

.nav-lang-selector {
  display: flex;
  gap: 4px;
  background: rgba(255,255,255,0.75);
  padding: 4px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-light);
  box-shadow: inset 0 1px 1px rgba(255,255,255,0.8);
  transition: border-color 0.3s ease, transform 0.3s ease;
}
.nav-lang-selector:hover {
  border-color: rgba(192,64,42,0.25);
}
.lang-btn {
  background: transparent;
  border: none;
  color: var(--text-muted);
  font-family: var(--font-body, 'Segoe UI', Roboto, Arial, sans-serif);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  padding: 5px 10px;
  cursor: pointer;
  border-radius: 6px;
  transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
  min-height: 30px;
  min-width: 34px;
}
.lang-btn:hover {
  color: var(--text-primary);
  transform: scale(1.08);
}
.lang-btn.active {
  background: linear-gradient(135deg, var(--rust-light), var(--rust));
  color: white;
  transform: scale(1);
  box-shadow: 0 8px 18px rgba(192,64,42,0.18);
}

.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  background: none;
  border: none;
  z-index: 101;
  padding: 10px;
  transition: transform 0.3s ease;
}
.hamburger:hover {
  transform: scale(1.1);
}
.hamburger span {
  width: 24px;
  height: 2px;
  background: white;
  transition: all 0.35s cubic-bezier(0.34, 1.56, 0.64, 1);
  display: block;
  border-radius: 1px;
}
.hamburger.active span:nth-child(1) { transform: rotate(45deg) translate(6px, 6px); width: 28px; }
.hamburger.active span:nth-child(2) { opacity: 0; transform: translateX(-10px); }
.hamburger.active span:nth-child(3) { transform: rotate(-45deg) translate(6px, -6px); width: 28px; }

/* Mobile nav menu animation */
@media (max-width: 768px) {
  nav {
    padding: 10px 20px;
  }
  .hamburger {
    display: flex !important;
    z-index: 10003;
  }
  .nav-links {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    background: rgba(13,13,13,0.98);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(192,64,42,0.3);
    padding: 16px 20px;
    gap: 10px;
    align-items: stretch;
    transform-origin: top;
    max-height: 80vh;
    overflow-y: auto;
    z-index: 10002;
  }
  .nav-links.active {
    display: flex;
    animation: mobileNavIn 0.35s cubic-bezier(0.34, 1.56, 0.64, 1) both;
  }
  .nav-links.closing {
    display: flex;
    animation: mobileNavOut 0.25s cubic-bezier(0.34, 1.56, 0.64, 1) both;
    pointer-events: none;
  }
  @keyframes mobileNavIn {
    0% { opacity: 0; transform: translateY(-16px) scaleY(0.9); }
    100% { opacity: 1; transform: translateY(0) scaleY(1); }
  }
  @keyframes mobileNavOut {
    0% { opacity: 1; transform: translateY(0) scaleY(1); }
    100% { opacity: 0; transform: translateY(-12px) scaleY(0.95); }
  }
  .nav-links.active > li {
    animation: mobileLinkSlide 0.35s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
  }
  .nav-links.active > li:nth-child(1) { animation-delay: 0.02s; }
  .nav-links.active > li:nth-child(2) { animation-delay: 0.04s; }
  .nav-links.active > li:nth-child(3) { animation-delay: 0.06s; }
  .nav-links.active > li:nth-child(4) { animation-delay: 0.08s; }
  .nav-links.active > li:nth-child(5) { animation-delay: 0.10s; }
  .nav-links.active > li:nth-child(6) { animation-delay: 0.12s; }
  .nav-links.active > li:nth-child(7) { animation-delay: 0.14s; }
  .nav-links.closing > li { opacity: 1; }
  @keyframes mobileLinkSlide {
    0% { opacity: 0; transform: translateX(-12px); }
    100% { opacity: 1; transform: translateX(0); }
  }
  .nav-links a { font-size: 0.85rem; padding: 10px 0; text-align: left; }
  .nav-links a::after { display: none; }
  .nav-links a.active { border-left: 3px solid var(--rust-light); padding-left: 12px; text-shadow: none; }
  .nav-lang-selector { justify-content: flex-start; margin: 6px 0; padding-left: 0; }
  .nav-cta { justify-content: center; }
  /* Mobile dropdowns */
  .nav-dropdown { width: 100%; text-align: left; }
  .nav-dropdown > a { position: relative; }
  .nav-submenu {
    position: static;
    transform: none;
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    display: none;
    background: rgba(255,255,255,0.04);
    border: none;
    box-shadow: none;
    border-radius: var(--radius);
    padding: 4px 0;
    min-width: auto;
  }
  .nav-submenu::before { display: none; }
  .nav-dropdown.active .nav-submenu { display: block; transform: none; }
  .nav-submenu a { text-align: left; font-size: 0.8rem; padding: 10px 0 10px 24px; color: rgba(255,255,255,0.5) !important; transition: color 0.2s; }
  .nav-submenu a.active { border-left: 3px solid var(--rust-light); padding-left: 21px; color: var(--rust-light) !important; }
  .nav-submenu a:hover { background: transparent; color: var(--rust-light) !important; }
  .nav-dropdown > a::after { transition: transform 0.2s; }
  .nav-dropdown.active > a::after { transform: rotate(180deg); }
  .nav-dropdown:hover .nav-submenu { transform: none; }
}

/* Small mobile */
@media (max-width: 480px) {
  nav { padding: 8px 16px; }
  .nav-links { padding: 12px 16px; gap: 6px; }
  .nav-links a { font-size: 0.8rem; padding: 8px 0; }
  .nav-links a.active { padding-left: 10px; }
  .nav-submenu a { font-size: 0.75rem; padding: 8px 0 8px 20px; }
  .nav-submenu a.active { padding-left: 17px; }
  .nav-lang-selector { gap: 2px; }
  .lang-btn { font-size: 0.7rem; padding: 6px 10px; }
  .nav-logo { font-size: 1.3rem; }
  .nav-logo-img { width: 40px; height: 40px; }
}

/* â”€â”€â”€ HERO â”€â”€â”€ */
#hero {
  min-height: 100vh;
  background:
    radial-gradient(circle at top right, rgba(232,97,74,0.24), transparent 26%),
    linear-gradient(135deg, #0d0d0d 0%, #121212 42%, #1d1d1d 100%);
  display: grid;
  grid-template-columns: 1fr 1fr;
  position: relative;
  overflow: hidden;
}
#hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(120deg, rgba(255,255,255,0.06), transparent 34%, rgba(255,255,255,0.02));
  pointer-events: none;
}
.hero-left {
  display: flex; flex-direction: column; justify-content: center;
  padding: 120px 60px 80px 80px;
  position: relative; z-index: 2;
  overflow: hidden;
}
.hero-left-bg {
  position: absolute; inset: 0;
  z-index: 0;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  transition: opacity 0.8s ease, transform 0.8s ease;
  opacity: 1;
  transform: scale(1.02);
}
.hero-left-bg::after {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(to right, rgba(13,13,13,0.92) 0%, rgba(13,13,13,0.84) 26%, rgba(13,13,13,0.2) 100%);
  pointer-events: none;
}
.hero-left > *:not(.hero-left-bg) { position: relative; z-index: 1; }
.hero-left-bg.swap-out { opacity: 0; transform: scale(1.08); }
.hero-tag {
  display: inline-flex; align-items: center; gap: 10px;
  font-size: 0.72rem; letter-spacing: 0.2em; text-transform: uppercase;
  color: var(--rust-light); margin-bottom: 28px; font-weight: 600;
}
.hero-tag::before {
  content: ''; display: block; width: 32px; height: 1px;
  background: linear-gradient(90deg, var(--rust-light), var(--accent));
}
h1 {
  font-family: var(--font-heading, Georgia, 'Times New Roman', serif);
  font-size: clamp(3rem, 5vw, 5.5rem);
  font-weight: 900;
  line-height: 0.96;
  color: var(--white);
  margin-bottom: 28px;
  letter-spacing: -0.04em;
  text-shadow: 0 10px 30px rgba(0,0,0,0.18);
}
h1 em { color: var(--rust-light); font-style: normal; }
.hero-sub {
  font-size: 1rem; line-height: 1.7;
  color: rgba(255,255,255,0.65); max-width: 440px;
  margin-bottom: 48px;
}
.hero-btns { display: flex; gap: 16px; flex-wrap: wrap; }
.btn-primary {
  background: linear-gradient(135deg, var(--rust-light), var(--rust));
  color: white; text-decoration: none;
  padding: 16px 32px; font-size: 0.85rem;
  font-weight: 700; letter-spacing: 0.08em;
  text-transform: uppercase; border-radius: var(--radius-sm);
  transition: transform 0.2s ease, box-shadow 0.2s ease, filter 0.2s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  min-width: 48px;
  box-shadow: 0 18px 32px rgba(192,64,42,0.26);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 22px 38px rgba(192,64,42,0.34); filter: brightness(1.04); }
.btn-outline {
  border: 1px solid rgba(255,255,255,0.28);
  color: rgba(255,255,255,0.82); text-decoration: none;
  padding: 16px 32px; font-size: 0.85rem;
  font-weight: 700; letter-spacing: 0.08em;
  text-transform: uppercase; border-radius: var(--radius-sm);
  transition: border-color 0.2s, color 0.2s, background 0.2s, transform 0.2s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  min-width: 48px;
  background: rgba(255,255,255,0.02);
}
.btn-outline:hover { border-color: var(--rust-light); color: var(--rust-light); background: rgba(232,97,74,0.08); transform: translateY(-2px); }
.hero-stats {
  display: flex; gap: 48px; margin-top: 64px;
  padding-top: 40px;
  border-top: 1px solid rgba(255,255,255,0.1);
}
.stat-val {
  font-family: var(--font-heading, Georgia, 'Times New Roman', serif);
  font-size: 2.4rem; font-weight: 700;
  color: var(--white); line-height: 1;
}
.stat-val span { color: var(--rust-light); }
.stat-label {
  font-size: 0.72rem; letter-spacing: 0.12em; text-transform: uppercase;
  color: rgba(255,255,255,0.45); margin-top: 6px;
}
.hero-right {
  position: relative; overflow: hidden;
  background: linear-gradient(135deg, rgba(255,255,255,0.04), rgba(0,0,0,0.2));
}
.hero-right::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 0%, rgba(0,0,0,0.2) 100%);
  pointer-events: none;
  z-index: 1;
}
.hero-img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 0.7s ease, filter 0.7s ease;
  filter: saturate(1.05) contrast(1.02);
}
.hero-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(to right, rgba(13,13,13,0.82) 0%, transparent 40%, transparent 100%);
}
.hero-badge {
  position: absolute; bottom: 48px; right: 48px; z-index: 2;
  background: linear-gradient(135deg, rgba(232,97,74,0.96), rgba(192,64,42,0.9));
  color: white; padding: 20px 24px;
  border-radius: var(--radius-sm); text-align: center;
  font-family: var(--font-heading, Georgia, 'Times New Roman', serif);
  box-shadow: 0 18px 42px rgba(192,64,42,0.3);
  border: 1px solid rgba(255,255,255,0.16);
}
.hero-badge-year { font-size: 2rem; font-weight: 700; line-height: 1; }
.hero-badge-label { font-size: 0.65rem; letter-spacing: 0.15em; text-transform: uppercase; opacity: 0.8; margin-top: 4px; }
.hero-decor {
  position: absolute; top: 0; left: 0; right: 0;
  height: 4px;
  z-index: 2;
  background: linear-gradient(90deg, var(--rust-dark), var(--rust-light), var(--accent), white, var(--rust-light), var(--rust-dark));
  background-size: 300% 100%;
  animation: decorShimmer 3s ease-in-out infinite alternate;
  filter: brightness(1.2);
}
@keyframes decorShimmer {
  0% { background-position: 0% 0; filter: brightness(1); }
  50% { background-position: 50% 0; filter: brightness(1.3); }
  100% { background-position: 100% 0; filter: brightness(1); }
}

/* â”€â”€â”€ SECTION COMMON â”€â”€â”€ */
section {
  padding: 100px 60px;
  scroll-margin-top: 80px;
  position: relative;
}
section::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at top left, rgba(232,97,74,0.05), transparent 22%);
  pointer-events: none;
}
.section-tag {
  font-size: 0.72rem; letter-spacing: 0.2em; text-transform: uppercase;
  color: var(--rust); font-weight: 600; margin-bottom: 16px;
  display: flex; align-items: center; gap: 10px;
}
.section-tag::before { content: ''; display: block; width: 28px; height: 1px; background: var(--rust); }
h2 {
  font-family: var(--font-heading, Georgia, 'Times New Roman', serif);
  font-size: clamp(2rem, 3.5vw, 3.2rem);
  font-weight: 700; line-height: 1.1;
  color: var(--text-primary);
  letter-spacing: -0.03em;
}
.section-lead {
  font-size: 1.05rem; line-height: 1.75;
  color: var(--text-secondary); max-width: 580px; margin-top: 20px;
}
.section-header { margin-bottom: 48px; }
.section-header .section-lead { margin-top: 16px; }

/* â”€â”€â”€ ABOUT â”€â”€â”€ */
#about {
  background: var(--bg-secondary);
  display: grid; grid-template-columns: 1fr 1fr; gap: 80px; align-items: center;
}
.about-image-wrap {
  position: relative;
}
.about-img {
  width: 100%; aspect-ratio: 4/5;
  object-fit: cover; border-radius: var(--radius);
  filter: grayscale(10%);
  transition: transform 0.5s, filter 0.5s;
}
.about-image-wrap:hover .about-img { transform: scale(1.02); filter: grayscale(0%); }
.about-img-accent {
  position: absolute; bottom: -24px; right: -24px;
  width: 45%; aspect-ratio: 1;
  object-fit: cover; border: 4px solid var(--border-light);
  border-radius: var(--radius);
  filter: grayscale(10%) brightness(1.05);
  transition: transform 0.5s, box-shadow 0.5s;
  box-shadow: var(--shadow-lg);
}
.about-image-wrap:hover .about-img-accent { transform: scale(1.03) rotate(1deg); }
.about-features { margin-top: 40px; display: flex; flex-direction: column; gap: 16px; }
.feat {
  display: flex; align-items: flex-start; gap: 16px;
  padding: 20px; background: var(--bg-card);
  border-left: 3px solid var(--rust); border-radius: 0 var(--radius) var(--radius) 0;
  transition: transform 0.2s, box-shadow 0.2s;
}
.feat:hover { transform: translateX(4px); box-shadow: var(--shadow-sm); }
.feat-icon {
  width: 40px; height: 40px; background: var(--rust);
  border-radius: 50%; display: flex; align-items: center;
  justify-content: center; flex-shrink: 0;
  font-size: 1rem;
}
.feat-title { font-weight: 600; font-size: 0.9rem; margin-bottom: 4px; }
.feat-desc { font-size: 0.82rem; color: var(--text-secondary); line-height: 1.5; }

/* â”€â”€â”€ VISION & MISSION â”€â”€â”€ */
#vision-mission {
  background: var(--bg-primary);
  padding: 100px 60px;
}
.vision-mission-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
}
.vm-card {
  background: var(--bg-secondary);
  padding: 50px 40px;
  border-radius: var(--radius);
  border-left: 4px solid var(--rust);
  transition: transform 0.3s ease, background 0.3s ease;
}
.vm-card:hover { transform: translateY(-5px); background: var(--bg-card); }
.vm-card.mission { border-left-color: var(--rust-light); }
.vm-label {
  font-size: 0.75rem; letter-spacing: 0.2em; text-transform: uppercase;
  color: var(--rust-light); margin-bottom: 24px; font-weight: 600;
  display: flex; align-items: center; gap: 12px;
}
.vm-label::after { content: ''; flex: 1; height: 1px; background: var(--border-light); }
.vm-text {
  color: var(--text-primary); font-size: 1.4rem;
  font-family: var(--font-heading, Georgia, 'Times New Roman', serif); line-height: 1.6; font-weight: 500;
}

/* â”€â”€â”€ TECHNICAL STANDARDS â”€â”€â”€ */
#technical-standards { background: var(--bg-primary); border-top: 1px solid var(--border-light); }
.standards-grid {
  display: grid; grid-template-columns: repeat(2, 1fr); gap: 60px; margin-top: 60px;
}
.standard-item { display: flex; gap: 24px; }
.standard-icon {
  width: 60px; height: 60px;
  flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
  border: 2px solid var(--border-light);
  box-shadow: var(--shadow-sm);
  transition: transform 0.3s, box-shadow 0.3s;
}
.standard-item:hover .standard-icon { transform: scale(1.08); box-shadow: var(--shadow-md); }
.standard-icon img { width: 100%; height: 100%; object-fit: cover; }
.standard-content h3 {
  font-family: var(--font-heading, Georgia, 'Times New Roman', serif);
  font-size: 1.25rem; margin-bottom: 12px; color: var(--text-primary);
}
.standard-content p { font-size: 0.9rem; color: var(--text-secondary); line-height: 1.6; }
.vex-badge {
  display: inline-block; padding: 4px 12px;
  background: var(--rust); color: white;
  font-size: 0.7rem; font-weight: 700;
  border-radius: 20px; margin-top: 8px;
}

/* â”€â”€â”€ SERVICES â”€â”€â”€ */
#services { background: var(--bg-secondary); }
#services h2, #services .section-tag { color: var(--text-primary); }
#services .section-tag { color: var(--rust-light); }
#services .section-tag::before { background: var(--rust-light); }
#services .section-lead { color: var(--text-secondary); }
.services-grid {
  display: block;
  margin-top: 60px;
}
.services-showcase {
  position: relative;
  overflow: hidden;
  padding: 14px 0 18px;
}
.services-showcase::before,
.services-showcase::after {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  width: 90px;
  z-index: 2;
  pointer-events: none;
}
.services-showcase::before {
  left: 0;
  background: linear-gradient(90deg, var(--bg-secondary), rgba(15, 17, 22, 0));
}
.services-showcase::after {
  right: 0;
  background: linear-gradient(270deg, var(--bg-secondary), rgba(15, 17, 22, 0));
}
.services-track {
  display: flex;
  align-items: stretch;
  gap: 20px;
  width: max-content;
  animation: servicesTrackSlide 32s linear infinite;
  animation-iteration-count: infinite;
  will-change: transform;
}
.service-card {
  flex: 0 0 min(26vw, 360px);
  background: var(--bg-card);
  padding: 0;
  border-top: 2px solid transparent;
  border-radius: var(--radius);
  transition: background 0.3s, border-color 0.3s, transform 0.3s;
  cursor: default;
  position: relative;
  overflow: hidden;
}
.service-card:hover {
  background: rgba(192,64,42,0.1);
  border-color: var(--rust-light);
  transform: translateY(-4px);
}
.service-num {
  font-family: var(--font-heading, Georgia, 'Times New Roman', serif);
  font-size: 3rem; font-weight: 900;
  color: var(--text-muted); line-height: 1;
  margin-bottom: 20px;
}
.service-icon { margin-bottom: 16px; }
.service-title {
  font-family: var(--font-heading, Georgia, 'Times New Roman', serif);
  font-size: 1.3rem; font-weight: 700;
  color: var(--text-primary); margin-bottom: 12px;
}
.service-desc { font-size: 0.85rem; line-height: 1.65; color: var(--text-secondary); }
@keyframes servicesTrackSlide {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

/* â”€â”€â”€ PRICING â”€â”€â”€ */
#pricing { background: var(--bg-primary); }
.pricing-intro { max-width: 620px; margin-bottom: 60px; }
.pricing-tabs {
  display: flex; gap: 0; margin-bottom: 40px;
  border-bottom: 2px solid var(--border-light);
}
.tab-btn {
  padding: 14px 28px; font-size: 0.82rem;
  font-weight: 500; letter-spacing: 0.1em; text-transform: uppercase;
  background: none; border: none; cursor: pointer;
  color: var(--text-secondary); border-bottom: 2px solid transparent;
  margin-bottom: -2px; transition: color 0.2s, border-color 0.2s;
  font-family: var(--font-body, 'Segoe UI', Roboto, Arial, sans-serif);
}
.tab-btn:hover { color: var(--rust); }
.tab-btn.active { color: var(--rust); border-color: var(--rust); }
.pricing-panel { display: none; }
.pricing-panel.active { display: block; }
.pricing-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.price-card {
  border: 1px solid var(--border-light); border-radius: var(--radius);
  padding: 36px 28px; position: relative;
  transition: transform 0.3s, box-shadow 0.3s, border-color 0.3s;
  background: var(--bg-card);
  display: flex; flex-direction: column;
}
.price-card:hover {
  transform: translateY(-6px); box-shadow: var(--shadow-lg);
  border-color: var(--rust);
}
.price-card.featured {
  background: var(--bg-secondary); border-color: var(--rust);
  color: var(--text-primary);
}
.price-card.featured:hover {
  box-shadow: 0 20px 60px rgba(0,0,0,0.25);
  border-color: var(--rust-light);
}
.price-badge {
  position: absolute; top: -12px; left: 28px;
  background: var(--rust); color: white;
  font-size: 0.65rem; letter-spacing: 0.15em; text-transform: uppercase;
  padding: 5px 14px; border-radius: 2px; font-weight: 600;
}
.price-tier {
  font-size: 0.72rem; letter-spacing: 0.15em; text-transform: uppercase;
  color: var(--rust); margin-bottom: 8px; font-weight: 600;
}
.price-card.featured .price-tier { color: var(--rust-light); }
.price-type {
  font-family: var(--font-heading, Georgia, 'Times New Roman', serif);
  font-size: 1.4rem; font-weight: 700; margin-bottom: 16px;
  color: var(--text-primary);
}
.price-card.featured .price-type { color: white; }
.price-val {
  text-align: center; margin-bottom: 24px;
}
.price-starting {
  display: inline-block;
  font-size: 0.68rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--rust);
  margin-bottom: 10px;
  font-weight: 700;
  opacity: 0.9;
}
.price-card.featured .price-starting {
  color: rgba(255,255,255,0.8);
}
.price-main {
  display: flex; align-items: baseline; justify-content: center; gap: 8px;
  margin-bottom: 8px;
}
.price-num {
  font-family: var(--font-heading, Georgia, 'Times New Roman', serif);
  font-size: 2.6rem; font-weight: 900; color: var(--text-primary); line-height: 1;
}
.price-card.featured .price-num { color: white; }
.price-currency {
  font-size: 1rem; font-weight: 600; color: var(--text-secondary);
}
.price-card.featured .price-currency { color: rgba(255,255,255,0.5); }
.price-unit {
  font-size: 0.8rem; color: var(--text-muted); font-weight: 400;
  margin-bottom: 4px;
}
.price-card.featured .price-unit { color: rgba(255,255,255,0.35); }
.price-foreign {
  display: flex; justify-content: center; gap: 12px; margin-top: 16px;
  padding-top: 16px; border-top: 1px dashed var(--border-light);
}
.price-card.featured .price-foreign { border-top-color: rgba(255,255,255,0.12); }
.price-foreign-item {
  display: inline-flex; align-items: center; gap: 6px;
  background: var(--bg-primary); padding: 6px 14px;
  border-radius: 20px; font-size: 0.82rem; font-weight: 500;
  color: var(--text-primary);
  transition: background 0.2s, transform 0.2s;
}
.price-card:hover .price-foreign-item {
  background: var(--bg-secondary);
}
.price-card.featured:hover .price-foreign-item {
  background: rgba(255,255,255,0.12);
}
.price-card.featured .price-foreign-item {
  background: rgba(255,255,255,0.08); color: var(--white);
}
.price-foreign-symbol {
  font-weight: 700; color: var(--rust); font-size: 0.9rem;
}
.price-card.featured .price-foreign-symbol { color: var(--rust-light); }
.price-foreign-val {
  font-weight: 500; color: var(--text-primary);
}
.price-card.featured .price-foreign-val { color: var(--white); }
.price-divider { border: none; border-top: 1px solid var(--border-light); margin-bottom: 24px; }
.price-card.featured .price-divider { border-color: rgba(255,255,255,0.1); }
.price-features { list-style: none; display: flex; flex-direction: column; gap: 10px; margin-bottom: 32px; }
.price-features li { font-size: 0.85rem; display: flex; align-items: flex-start; gap: 10px; line-height: 1.4; color: var(--text-secondary); }
.price-card.featured .price-features li { color: rgba(255,255,255,0.75); }
.price-features li::before {
  content: '';
  width: 0.35rem;
  height: 0.35rem;
  margin-top: 0.45rem;
  border-radius: 50%;
  background: var(--rust);
  flex-shrink: 0;
}
.price-card.featured .price-features li::before { background: var(--rust-light); }
.price-note {
  font-size: 0.75rem; color: var(--text-secondary); line-height: 1.5;
  padding: 12px 16px; background: var(--bg-secondary); border-radius: var(--radius);
  margin-bottom: 24px;
}
.price-card.featured .price-note { background: rgba(255,255,255,0.08); color: rgba(255,255,255,0.5); }
.price-cta {
  display: block; text-align: center; text-decoration: none;
  padding: 14px; font-size: 0.82rem; font-weight: 600;
  letter-spacing: 0.08em; text-transform: uppercase;
  border-radius: var(--radius); transition: all 0.2s;
  border: 1.5px solid var(--rust); color: var(--rust);
}
.price-cta:hover { background: var(--rust); color: white; }
.price-card.featured .price-cta {
  background: var(--rust); color: white; border-color: var(--rust);
}
.price-card.featured .price-cta:hover { background: var(--rust-light); border-color: var(--rust-light); }
.price-card--flat { grid-column: 1 / -1; max-width: 480px; margin: 0 auto; }
.price-card--flat .price-type { display: none; }
.price-card--flat .price-tier { display: none; }

.pricing-footer {
  margin-top: 40px; padding: 28px 32px;
  background: var(--bg-secondary); border-left: 3px solid var(--rust);
  font-size: 0.85rem; line-height: 1.65; color: var(--text-secondary);
  border-radius: 0 var(--radius) var(--radius) 0;
}
.pricing-footer strong { color: var(--text-primary); }

/* â”€â”€â”€ CALCULATOR â”€â”€â”€ */
#calculator { background: var(--bg-primary); }
.calculator-container { max-width: 1200px; margin: 0 auto; }
.calculator-header { margin-bottom: 60px; }
.calculator-header h2 { color: white; }
.calculator-header .section-lead { color: rgba(255,255,255,0.5); }
.calculator-grid {
  display: grid; grid-template-columns: 1fr 1.2fr; gap: 60px; align-items: start;
}
.calc-form {
  background: rgba(255,255,255,0.03);
  padding: 40px; border: 1px solid rgba(255,255,255,0.08);
  border-radius: var(--radius);
}
.calc-result {
  background: var(--charcoal);
  padding: 40px; border: 1px solid var(--rust);
  border-radius: var(--radius); min-height: 380px;
  display: flex; flex-direction: column;
}
.result-placeholder {
  flex: 1; display: flex; flex-direction: column;
  align-items: center; justify-content: center; text-align: center;
}
.result-header { margin-bottom: 32px; padding-bottom: 20px; border-bottom: 1px solid rgba(255,255,255,0.1); }
.result-title { font-size: 0.75rem; letter-spacing: 0.15em; text-transform: uppercase; color: var(--rust-light); margin-bottom: 8px; }
.result-main { font-family: var(--font-heading, Georgia, 'Times New Roman', serif); font-size: 2.8rem; font-weight: 900; color: white; line-height: 1; }
.result-unit { font-size: 1rem; color: rgba(255,255,255,0.5); margin-top: 4px; }
.calc-foreign { display: flex; gap: 12px; margin-top: 16px; }
.calc-foreign-item {
  display: inline-flex; align-items: center; gap: 6px;
  background: rgba(255,255,255,0.08); padding: 6px 14px;
  border-radius: 20px; font-size: 0.85rem; font-weight: 500;
  color: rgba(255,255,255,0.9);
}
.calc-foreign-symbol { font-weight: 700; color: var(--rust-light); font-size: 0.95rem; }
.calc-foreign-val { font-weight: 500; }
.result-details { display: flex; flex-direction: column; gap: 16px; margin-bottom: 32px; }
.detail-item { display: flex; justify-content: space-between; font-size: 0.9rem; color: rgba(255,255,255,0.7); }
.detail-item span:last-child { color: white; font-weight: 500; }
.detail-item.total { padding-top: 16px; border-top: 1px solid rgba(255,255,255,0.1); color: white; font-weight: 600; font-size: 1.1rem; }
.result-note { font-size: 0.75rem; color: rgba(255,255,255,0.4); line-height: 1.5; font-style: italic; }

/* â”€â”€â”€ NUMBERS â”€â”€â”€ */
#numbers {
  background: var(--rust);
  padding: 80px 60px;
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 40px;
  text-align: center;
}
.num-val {
  font-family: var(--font-heading, Georgia, 'Times New Roman', serif);
  font-size: 4rem; font-weight: 900; color: white; line-height: 1;
}
.num-label {
  font-size: 0.78rem; letter-spacing: 0.15em; text-transform: uppercase;
  color: rgba(255,255,255,0.7); margin-top: 10px;
}

/* â”€â”€â”€ PRODUCTS â”€â”€â”€ */
#products {
  position: relative;
  background:
    radial-gradient(circle at top left, rgba(192, 120, 35, 0.15), transparent 35%),
    var(--bg-primary);
}
.products-carousel {
  position: relative;
  margin-top: 60px;
}
.products-grid {
  display: grid;
  grid-auto-columns: minmax(280px, 360px);
  grid-auto-flow: column;
  grid-template-columns: none;
  gap: 24px;
  overflow-x: auto;
  padding: 0 4px 18px;
  scroll-behavior: smooth;
  scroll-snap-type: x mandatory;
  scrollbar-width: thin;
  scrollbar-color: var(--rust) transparent;
}
.products-grid::-webkit-scrollbar { height: 6px; }
.products-grid::-webkit-scrollbar-track { background: transparent; }
.products-grid::-webkit-scrollbar-thumb { background: var(--rust); border-radius: 6px; }
.product-card { scroll-snap-align: start; }
.products-carousel-btn {
  position: absolute;
  z-index: 3;
  top: 42%;
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border: 1px solid rgba(236, 184, 102, 0.7);
  border-radius: 50%;
  background: rgba(20, 18, 15, 0.9);
  color: #fff4df;
  font-size: 2rem;
  line-height: 1;
  cursor: pointer;
  transform: translateY(-50%);
  transition: opacity 0.2s ease, background 0.2s ease, transform 0.2s ease;
}
.products-carousel-btn:hover:not(:disabled) {
  background: var(--rust);
  transform: translateY(-50%) scale(1.06);
}
.products-carousel-btn:disabled { opacity: 0.3; cursor: not-allowed; }
.products-carousel-prev { left: -20px; }
.products-carousel-next { right: -20px; }
.products-carousel.is-static .products-carousel-btn { display: none; }
.product-card {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border-radius: var(--radius);
  border: 1px solid rgba(255,255,255,0.08);
  background: linear-gradient(180deg, rgba(255,255,255,0.02), rgba(255,255,255,0.01));
  box-shadow: var(--shadow-md);
  transition: transform 0.28s ease, box-shadow 0.28s ease, border-color 0.28s ease;
}
.product-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-lg);
  border-color: rgba(192, 120, 35, 0.42);
}
.product-media-wrap {
  position: relative;
  overflow: hidden;
  background: #111;
}
.product-media-wrap::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(12,12,12,0.08), rgba(12,12,12,0.42));
  pointer-events: none;
}
.product-media {
  display: block;
  width: 100%;
  height: 260px;
  object-fit: cover;
  transition: transform 0.55s ease, filter 0.3s ease;
}
.product-card:hover .product-media {
  transform: scale(1.05);
  filter: saturate(1.1);
}
.product-card video.product-media { object-fit: cover; }
.product-content {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 22px 22px 24px;
  flex: 1;
}
.product-price {
  position: absolute;
  z-index: 2;
  right: 16px;
  bottom: 16px;
  display: grid;
  gap: 3px;
  max-width: calc(100% - 32px);
  padding: 9px 13px 8px;
  border: 1px solid rgba(236, 184, 102, 0.72);
  border-radius: 6px;
  background: rgba(20, 18, 15, 0.86);
  color: #fff4df;
  box-shadow: 0 8px 22px rgba(0,0,0,0.26);
  font-size: clamp(0.72rem, 1.25vw, 0.92rem);
  letter-spacing: 0.02em;
  line-height: 1.1;
  font-weight: 800;
  white-space: nowrap;
  backdrop-filter: blur(6px);
  transition: background 0.28s ease, border-color 0.28s ease, transform 0.28s ease;
}
.product-price-line {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 14px;
  color: rgba(255,244,223,0.78);
  font-size: 0.84em;
  letter-spacing: 0.02em;
  font-weight: 600;
}
.product-price-line b {
  min-width: 20px;
  color: #e7b66b;
  font-weight: 800;
}
.product-price-main {
  color: #fff4df;
  font-size: 1em;
  font-weight: 800;
}
.product-card:hover .product-price {
  transform: translateY(-2px);
  border-color: #f0c47b;
  background: rgba(31, 24, 16, 0.92);
}

.product-lightbox {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 1100;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 16px;
  padding: 60px 24px 30px;
  background: rgba(8, 8, 7, 0.94);
  backdrop-filter: blur(10px);
}
.product-lightbox.active { display: flex; }
.product-lightbox-title {
  color: rgba(255,244,223,0.82);
  font-size: 0.9rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.product-lightbox-media {
  display: flex;
  align-items: center;
  justify-content: center;
  max-width: 92vw;
  max-height: 80vh;
}
.product-lightbox-media img,
.product-lightbox-media video {
  display: block;
  max-width: 92vw;
  max-height: 80vh;
  object-fit: contain;
  border-radius: 6px;
  box-shadow: 0 24px 70px rgba(0,0,0,0.55);
}
.product-lightbox-close {
  position: absolute;
  top: 20px;
  right: 26px;
  width: 46px;
  height: 46px;
  border: 1px solid rgba(255,255,255,0.28);
  border-radius: 50%;
  background: rgba(255,255,255,0.08);
  color: white;
  font-size: 2rem;
  line-height: 1;
  cursor: pointer;
  transition: background 0.2s ease, transform 0.2s ease;
}
.product-lightbox-close:hover,
.product-lightbox-close:focus-visible {
  background: var(--rust);
  transform: rotate(90deg);
}
.product-content h3 {
  margin: 0;
  font-size: clamp(1.2rem, 2vw, 1.6rem);
  font-family: var(--font-heading, Georgia, 'Times New Roman', serif);
  color: var(--text-primary);
}
.product-content p {
  margin: 0;
  color: var(--text-secondary);
  line-height: 1.7;
  font-size: 0.96rem;
}
.empty-state-inline {
  width: 100%;
  padding: 32px 18px;
  border-radius: var(--radius);
  text-align: center;
  color: var(--text-secondary);
  background: rgba(255,255,255,0.02);
  border: 1px dashed rgba(255,255,255,0.12);
}

/* â”€â”€â”€ PROJECTS â”€â”€â”€ */
#projects { background: var(--bg-primary); }
.projects-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px;
  margin-top: 60px;
}
.project-card {
  position: relative; overflow: hidden; border-radius: var(--radius);
  cursor: pointer;
  transition: transform 0.3s, box-shadow 0.3s;
}
.project-card:first-child { grid-column: span 2; }
.project-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.project-img {
  width: 100%; aspect-ratio: 16/10;
  object-fit: cover; display: block;
  transition: transform 0.6s ease;
}
.project-card:first-child .project-img { aspect-ratio: 16/9; }
.project-card:hover .project-img { transform: scale(1.08); }
.project-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(13,13,13,0.85) 0%, transparent 60%);
  display: flex; flex-direction: column; justify-content: flex-end;
  padding: 28px;
  transition: background 0.3s;
}
.project-card:hover .project-overlay { background: linear-gradient(to top, rgba(13,13,13,0.9) 0%, transparent 50%); }
.project-cat {
  font-size: 0.65rem; letter-spacing: 0.2em; text-transform: uppercase;
  color: var(--rust-light); margin-bottom: 6px; font-weight: 600;
  transition: transform 0.3s ease, opacity 0.3s ease;
}
.project-name {
  font-family: var(--font-heading, Georgia, 'Times New Roman', serif);
  font-size: 1.15rem; font-weight: 700; color: white; line-height: 1.2;
  transition: transform 0.3s ease;
}
.project-loc {
  font-size: 0.78rem; color: rgba(255,255,255,0.55); margin-top: 6px;
  transition: transform 0.3s ease, opacity 0.3s ease;
}
.project-card:hover .project-cat { transform: translateY(-2px); opacity: 0.9; }
.project-card:hover .project-name { transform: translateY(-2px); }
.project-card:hover .project-loc { transform: translateY(-2px); opacity: 0.8; }

/* â”€â”€â”€ DOSSIERS (VENTE DE TERRAIN) â”€â”€â”€ */
#dossiers {
  background: var(--bg-secondary);
  padding: 100px 60px;
}
#dossiers .section-tag { color: var(--rust); }
#dossiers .section-tag::before { background: var(--rust); }
#dossiers h2 { color: var(--text-primary); }
#dossiers .section-lead { color: var(--text-secondary); }
.dossiers-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
  margin-top: 60px;
  align-items: stretch;
}
.dossier-card {
  background: linear-gradient(180deg, rgba(255,255,255,0.02), rgba(255,255,255,0.12));
  border: 1px solid var(--border-light);
  border-radius: 22px;
  padding: 18px 18px 20px;
  text-align: left;
  cursor: pointer;
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  text-decoration: none;
  color: inherit;
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.5s ease, transform 0.5s ease, box-shadow 0.35s ease, border-color 0.35s ease, transform 0.35s ease;
  box-shadow: 0 14px 35px rgba(15, 15, 15, 0.04);
}
.dossier-card::after {
  content: '';
  position: absolute;
  inset: auto 18px 0 18px;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(192,64,42,0.35), transparent);
  opacity: 0;
  transition: opacity 0.25s ease;
}
.dossier-card.revealed {
  opacity: 1;
  transform: translateY(0);
}
.dossier-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--rust-dark), var(--rust-light), var(--accent));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.35s ease;
}
.dossier-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 26px 60px rgba(17, 17, 17, 0.12);
  border-color: rgba(192,64,42,0.32);
}
.dossier-card:hover::before { transform: scaleX(1); }
.dossier-card:hover::after { opacity: 1; }
.dossier-thumb {
  width: 100%;
  aspect-ratio: 16/10;
  margin: 0 auto 18px;
  border-radius: 16px;
  overflow: hidden;
  background: linear-gradient(135deg, rgba(17,17,17,0.05), rgba(192,64,42,0.1));
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(255,255,255,0.08);
  transition: border-color 0.3s, transform 0.3s, box-shadow 0.3s;
  position: relative;
}
.dossier-card:hover .dossier-thumb {
  border-color: rgba(192,64,42,0.35);
  transform: translateY(-2px);
  box-shadow: 0 18px 24px rgba(17, 17, 17, 0.08);
}
.dossier-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.45s ease;
}
.dossier-card:hover .dossier-thumb img {
  transform: scale(1.06);
}
.dossier-thumb-fallback {
  width: 64px; height: 64px;
  background: rgba(192,64,42,0.08);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
}
.dossier-thumb-fallback svg { width: 32px; height: 32px; color: var(--rust); }

.dossier-download-btn {
  position: absolute;
  top: 14px; right: 14px;
  width: 38px; height: 38px;
  border-radius: 50%;
  background: rgba(10,10,10,0.62);
  backdrop-filter: blur(6px);
  border: 1px solid rgba(255,255,255,0.12);
  color: white;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.25s, transform 0.2s, box-shadow 0.25s;
  opacity: 0;
  transform: translateY(-4px) scale(0.9);
  z-index: 2;
  box-shadow: 0 10px 20px rgba(0,0,0,0.18);
}
.dossier-card:hover .dossier-download-btn,
.dossier-download-btn:focus-visible {
  opacity: 1;
  transform: translateY(0) scale(1);
}
.dossier-download-btn:hover {
  background: linear-gradient(135deg, var(--rust-light), var(--rust));
  transform: translateY(0) scale(1.08);
}
.dossier-download-btn svg {
  width: 16px; height: 16px;
}

.dossier-name {
  font-family: var(--font-heading, Georgia, 'Times New Roman', serif);
  font-size: 1.18rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 10px;
  line-height: 1.3;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.dossier-meta {
  font-size: 0.74rem;
  color: var(--text-muted);
  margin-bottom: 14px;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 8px;
  flex-wrap: wrap;
}
.dossier-date {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.dossier-date::before {
  content: '';
  display: inline-block;
  width: 4px; height: 4px;
  border-radius: 50%;
  background: var(--rust);
  vertical-align: middle;
}
.dossier-badge {
  display: inline-flex;
  align-items: center;
  align-self: flex-start;
  padding: 5px 12px;
  background: rgba(192,64,42,0.12);
  color: var(--rust);
  font-size: 0.62rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  border-radius: 999px;
  font-weight: 800;
  transition: background 0.3s, color 0.3s, transform 0.3s;
  margin-bottom: 12px;
}
.dossier-card:hover .dossier-badge {
  background: linear-gradient(135deg, var(--rust-light), var(--rust));
  color: white;
  transform: translateX(2px);
}
.dossier-actions {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin-top: auto;
  padding-top: 14px;
  border-top: 1px solid rgba(255,255,255,0.06);
}
.dossier-action {
  width: 100%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 12px;
  border-radius: 12px;
  border: 1px solid rgba(192,64,42,0.2);
  background: rgba(255,255,255,0.02);
  color: var(--text-primary);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  cursor: pointer;
  transition: transform 0.2s ease, border-color 0.25s ease, background 0.25s ease, box-shadow 0.25s ease;
}
.dossier-action svg {
  width: 15px;
  height: 15px;
  flex: none;
}
.dossier-action:hover,
.dossier-action:focus-visible {
  transform: translateY(-1px);
  border-color: rgba(192,64,42,0.38);
  box-shadow: 0 10px 18px rgba(17, 17, 17, 0.08);
}
.dossier-action-pdf {
  background: rgba(192,64,42,0.08);
  color: var(--rust);
}
.dossier-action-video {
  background: rgba(16, 101, 124, 0.08);
  border-color: rgba(16, 101, 124, 0.2);
  color: #1f7f9a;
}
.dossier-action-video:hover,
.dossier-action-video:focus-visible {
  border-color: rgba(16, 101, 124, 0.45);
}
.dossier-action-video.is-open {
  background: rgba(16, 101, 124, 0.14);
  border-color: rgba(16, 101, 124, 0.55);
}
.dossier-video-modal {
  position: fixed;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  background: rgba(7, 8, 12, 0.72);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease;
  z-index: 3000;
}
.dossier-video-modal.active {
  opacity: 1;
  pointer-events: auto;
}
.dossier-video-modal-frame {
  position: relative;
  width: min(960px, calc(100vw - 32px));
  background: rgba(12, 12, 13, 0.96);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 20px;
  padding: 14px;
  box-shadow: 0 30px 80px rgba(0,0,0,0.4);
}
.dossier-video-modal-close {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  border: 1px solid rgba(255,255,255,0.16);
  background: rgba(255,255,255,0.06);
  color: white;
  font-size: 1.4rem;
  line-height: 1;
  cursor: pointer;
  z-index: 2;
}
.dossier-video-modal video {
  display: block;
  width: 100%;
  height: min(72vh, 620px);
  border-radius: 12px;
  background: #111;
  object-fit: cover;
}

@media (max-width: 768px) {
  .dossier-video-modal {
    padding: 18px;
  }

  .dossier-video-modal-frame {
    width: min(92vw, 640px);
  }

  .dossier-video-modal video {
    height: min(52vh, 360px);
  }
}

@media (max-width: 480px) {
  .dossier-video-modal {
    padding: 12px;
  }

  .dossier-video-modal-frame {
    width: min(94vw, 420px);
    padding: 10px;
  }

  .dossier-video-modal video {
    height: min(42vh, 240px);
  }
}

[data-theme="light"] .dossier-card {
  background: linear-gradient(180deg, rgba(255,255,255,0.88), rgba(240,235,228,0.72));
}
[data-theme="light"] .dossier-card:hover { border-color: rgba(192,64,42,0.38); }
[data-theme="light"] .dossier-name { color: var(--text-primary); }
[data-theme="light"] .dossier-thumb { background: linear-gradient(135deg, rgba(17,17,17,0.02), rgba(192,64,42,0.08)); border-color: var(--border-light); }
[data-theme="light"] .dossier-thumb-fallback { background: rgba(192,64,42,0.06); }
[data-theme="light"] #dossiers { background: var(--bg-secondary); }

/* Desktop grid stays default; below 1024px switch to carousel */
@media (max-width: 1024px) {
  .dossiers-grid {
    display: flex;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    gap: 16px;
    margin-top: 60px;
    padding-bottom: 8px;
  }
  .dossiers-grid::-webkit-scrollbar { display: none; }
  .dossier-card {
    min-width: min(82vw, 360px);
    flex-shrink: 0;
    scroll-snap-align: start;
    padding: 16px 16px 18px;
  }
  .dossier-download-btn {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

/* â”€â”€â”€ DOSSIERS CAROUSEL NAV â”€â”€â”€ */
.dossiers-carousel-nav {
  display: none;
  align-items: center;
  justify-content: center;
  gap: 16px;
  margin-top: 28px;
}
@media (max-width: 1024px) {
  .dossiers-carousel-nav {
    display: flex;
  }
}
.carousel-btn {
  width: 40px; height: 40px;
  border-radius: 50%;
  border: 2px solid var(--rust);
  background: transparent;
  color: var(--rust);
  font-size: 1.4rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.25s, color 0.25s, transform 0.2s;
  line-height: 1;
  padding: 0;
}
.carousel-btn:active { transform: scale(0.9); }
.carousel-btn:hover { background: var(--rust); color: white; }
.carousel-dots {
  display: flex;
  gap: 8px;
}
.carousel-dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--border-light);
  transition: background 0.3s, transform 0.3s;
  cursor: pointer;
  border: none;
  padding: 0;
}
.carousel-dot.active {
  background: var(--rust);
  transform: scale(1.3);
}

/* â”€â”€â”€ PDF VIEWER MODAL â”€â”€â”€ */
.pdf-modal {
  display: none;
  position: fixed; inset: 0; z-index: 2000;
  background: rgba(0,0,0,0.7);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  align-items: center; justify-content: center;
  padding: 20px;
  opacity: 0;
  transition: opacity 0.3s ease;
}
.pdf-modal.active {
  display: flex;
  opacity: 1;
}
.pdf-modal-content {
  width: 100%;
  max-width: 1100px;
  height: 88vh;
  display: flex;
  flex-direction: column;
  background: var(--bg-elevated, #1a1a2e);
  border-radius: 16px;
  overflow: hidden;
  box-shadow:
    0 0 0 1px rgba(255,255,255,0.06),
    0 25px 80px rgba(0,0,0,0.6),
    0 8px 32px rgba(0,0,0,0.3);
  transform: scale(0.95) translateY(12px);
  transition: transform 0.35s cubic-bezier(0.34, 1.56, 0.64, 1);
  will-change: transform;
}
.pdf-modal.active .pdf-modal-content {
  transform: scale(1) translateY(0);
}
.pdf-modal-content.is-dragging {
  transition: none;
}
.pdf-modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 20px 14px 24px;
  background: var(--bg-primary);
  border-bottom: 1px solid var(--border-light);
  gap: 16px;
  flex-shrink: 0;
}
.pdf-modal-title-wrap {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
  flex: 1;
}
.pdf-modal-title-icon {
  width: 32px; height: 32px;
  border-radius: 8px;
  background: rgba(192,64,42,0.12);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.pdf-modal-title-icon svg {
  width: 16px; height: 16px;
  color: var(--rust);
}
.pdf-modal-title {
  font-family: var(--font-body, 'Segoe UI', Roboto, Arial, sans-serif);
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text-primary);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.pdf-modal-actions {
  display: flex;
  gap: 6px;
  flex-shrink: 0;
}
.pdf-modal-actions button {
  border: 1px solid var(--border-light);
  background: transparent;
  color: var(--text-secondary);
  padding: 7px 12px;
  font-size: 0.75rem;
  font-family: var(--font-body, 'Segoe UI', Roboto, Arial, sans-serif);
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.2s;
  min-height: 34px;
  display: flex;
  align-items: center;
  gap: 6px;
  white-space: nowrap;
}
.pdf-modal-actions button svg {
  width: 14px; height: 14px;
  flex-shrink: 0;
}
.pdf-modal-actions button:hover {
  border-color: var(--rust);
  color: var(--rust);
  background: rgba(192,64,42,0.07);
}
.pdf-modal-close {
  width: 34px; height: 34px;
  border: none;
  background: transparent;
  color: var(--text-muted);
  font-size: 1.3rem;
  cursor: pointer;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s;
  line-height: 1;
  padding: 0;
  flex-shrink: 0;
}
.pdf-modal-close:hover {
  color: white;
  background: rgba(255,255,255,0.1);
}
[data-theme="light"] .pdf-modal-close:hover {
  color: var(--rust);
  background: rgba(192,64,42,0.08);
}
.pdf-modal-body {
  flex: 1;
  background: #3a3d42;
  position: relative;
  min-height: 0;
}
.pdf-viewer-iframe {
  width: 100%;
  height: 100%;
  border: none;
  display: block;
}
.pdf-loading {
  position: absolute; inset: 0;
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  gap: 20px;
  background: #3a3d42;
  z-index: 1;
  transition: opacity 0.4s ease;
}
.pdf-loading.hidden { opacity: 0; pointer-events: none; }
.pdf-loading-spinner {
  width: 40px; height: 40px;
  border-radius: 50%;
  border: 3px solid rgba(255,255,255,0.1);
  border-top-color: var(--rust);
  animation: pdfSpin 0.8s linear infinite;
}
@keyframes pdfSpin {
  to { transform: rotate(360deg); }
}
.pdf-loading-text {
  font-size: 0.85rem;
  color: rgba(255,255,255,0.5);
  font-weight: 400;
  letter-spacing: 0.02em;
}
.pdf-error {
  position: absolute; inset: 0;
  display: none;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 16px;
  background: #3a3d42;
  z-index: 2;
  padding: 32px;
}
.pdf-error.active { display: flex; }
.pdf-error-icon {
  width: 56px; height: 56px;
  border-radius: 50%;
  background: rgba(255,255,255,0.06);
  display: flex;
  align-items: center;
  justify-content: center;
}
.pdf-error-icon svg {
  width: 28px; height: 28px;
  color: rgba(255,255,255,0.35);
}
.pdf-error-text {
  font-size: 0.95rem;
  font-family: var(--font-body, 'Segoe UI', Roboto, Arial, sans-serif);
  color: rgba(255,255,255,0.55);
  text-align: center;
  max-width: 280px;
  line-height: 1.5;
}
.pdf-error-btn {
  background: var(--rust);
  color: white;
  border: none;
  padding: 10px 28px;
  border-radius: 8px;
  font-size: 0.85rem;
  font-weight: 500;
  font-family: var(--font-body, 'Segoe UI', Roboto, Arial, sans-serif);
  cursor: pointer;
  transition: background 0.25s, transform 0.2s;
  margin-top: 4px;
}
.pdf-error-btn:hover { background: var(--rust-light); transform: translateY(-1px); }
[data-theme="dark"] .pdf-modal-content { background: #16161f; }
[data-theme="dark"] .pdf-modal-header { background: #16161f; border-bottom-color: rgba(255,255,255,0.06); }
[data-theme="light"] .pdf-modal-content { background: #fff; }
[data-theme="light"] .pdf-modal-header { background: #fafafa; border-bottom-color: #e8e8ed; }
[data-theme="light"] .pdf-modal-body,
[data-theme="light"] .pdf-loading,
[data-theme="light"] .pdf-error { background: #e8e8ed; }
[data-theme="light"] .pdf-loading-text { color: rgba(0,0,0,0.35); }
[data-theme="light"] .pdf-error-text { color: rgba(0,0,0,0.45); }
[data-theme="light"] .pdf-error-icon { background: rgba(0,0,0,0.04); }
[data-theme="light"] .pdf-error-icon svg { color: rgba(0,0,0,0.25); }
[data-theme="light"] .pdf-loading-spinner { border-color: rgba(0,0,0,0.08); border-top-color: var(--rust); }

/* â”€â”€ Mobile drag handle â”€â”€ */
.pdf-modal-drag-handle {
  display: none;
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 28px;
  z-index: 10;
  justify-content: center;
  align-items: flex-start;
  padding-top: 8px;
  pointer-events: auto;
}
.pdf-modal-drag-handle span {
  display: block;
  width: 36px;
  height: 4px;
  border-radius: 2px;
  background: rgba(255,255,255,0.3);
  transition: background 0.2s;
}
.pdf-modal-drag-handle:active span {
  background: rgba(255,255,255,0.5);
}

@media (max-width: 768px) {
  .pdf-modal {
    padding: 0;
    align-items: flex-end;
    background: rgba(0,0,0,0.5);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    transition: opacity 0.35s ease, background 0.35s ease;
  }
  .pdf-modal.active {
    background: rgba(0,0,0,0.5);
  }
  .pdf-modal-content {
    max-width: calc(100% - 16px);
    width: 100%;
    height: 85dvh;
    border-radius: 20px 20px 0 0;
    padding-bottom: env(safe-area-inset-bottom, 0px);
    transform: translateY(100%);
    transition: transform 0.45s cubic-bezier(0.32, 0.72, 0, 1);
  }
  .pdf-modal.active .pdf-modal-content {
    transform: translateY(0);
  }
  .pdf-modal-drag-handle { display: flex; }
  .pdf-modal-header {
    padding: 16px 14px 12px 18px;
    padding-top: 4px;
  }
  .pdf-modal-title-icon { width: 28px; height: 28px; }
  .pdf-modal-title-icon svg { width: 14px; height: 14px; }
  .pdf-modal-title { font-size: 0.82rem; max-width: 50%; }
  .pdf-modal-actions button {
    padding: 8px 14px;
    font-size: 0.72rem;
    min-height: 36px;
    gap: 6px;
  }
  .pdf-modal-close { width: 34px; height: 34px; font-size: 1.2rem; }
  .pdf-viewer-iframe { -webkit-overflow-scrolling: touch; }
}
@media (max-width: 480px) {
  .pdf-modal-content {
    max-width: calc(100% - 12px);
    height: 90dvh;
    border-radius: 14px 14px 0 0;
  }
  .pdf-modal-header {
    padding: 14px 10px 10px 14px;
    gap: 8px;
  }
  .pdf-modal-title { font-size: 0.78rem; max-width: 40%; }
  .pdf-modal-title-icon { display: none; }
  .pdf-modal-actions button {
    padding: 8px 10px;
    font-size: 0;
    min-height: 36px;
    min-width: 36px;
    gap: 0;
    justify-content: center;
  }
  .pdf-modal-actions button svg {
    width: 16px; height: 16px;
  }
  .pdf-modal-close { width: 32px; height: 32px; font-size: 1.1rem; }
  .pdf-error-btn { padding: 12px 32px; font-size: 0.9rem; }
}
@media (max-height: 500px) and (orientation: landscape) {
  .pdf-modal-content { max-width: calc(100% - 16px); height: 100dvh; border-radius: 0; }
  .pdf-modal-header { padding: 6px 14px; }
  .pdf-modal-drag-handle { display: none; }
}
@media (hover: none) and (pointer: coarse) {
  .pdf-modal-actions button,
  .pdf-modal-close {
    min-height: 40px;
  }
  .pdf-modal-actions button:active,
  .pdf-modal-close:active {
    background: rgba(255,255,255,0.1);
    transform: scale(0.95);
  }
}

/* â”€â”€â”€ BLOG POST MODAL â”€â”€â”€ */
.blog-modal {
  display: none;
  position: fixed; inset: 0; z-index: 1000;
  background: rgba(0,0,0,0.85);
  backdrop-filter: blur(6px);
  align-items: center; justify-content: center;
  padding: 30px;
}
.blog-modal.active { display: flex; }
.blog-modal-content {
  border-radius: calc(var(--radius) + 4px);
  max-width: 860px; width: 100%; max-height: 92vh;
  display: flex; flex-direction: column;
  box-shadow: 0 25px 60px rgba(0,0,0,0.3);
  position: relative;
  overflow: hidden;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}
.blog-modal-content::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(10,10,15,0.65) 0%, rgba(10,10,15,0.88) 35%, rgba(10,10,15,0.96) 100%);
  z-index: 0;
  pointer-events: none;
}
.blog-modal-content > * { position: relative; z-index: 1; }
@media (min-width: 1300px) {
  .blog-modal-content { max-width: 960px; max-height: 90vh; }
}
.blog-modal-close {
  position: absolute; top: 16px; right: 16px; z-index: 20;
  background: rgba(255,255,255,0.12); border: none; font-size: 1.4rem;
  color: #fff; cursor: pointer; line-height: 1;
  width: 38px; height: 38px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  transition: background 0.2s, transform 0.2s;
  backdrop-filter: blur(8px);
}
.blog-modal-close:hover { background: rgba(0,0,0,0.7); transform: scale(1.1); }
.blog-modal-header {
  display: flex; align-items: baseline; gap: 14px;
  padding: 24px 40px 16px;
  flex-wrap: wrap;
  background: rgba(12,12,18,0.7);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid rgba(255,255,255,0.06);
}
.blog-modal-title {
  font-family: var(--font-heading, Georgia, 'Times New Roman', serif);
  font-size: 1.55rem; font-weight: 700;
  color: #fff;
  line-height: 1.3;
  width: 100%;
}
.blog-modal-date {
  font-size: 0.8rem; color: rgba(255,255,255,0.55);
  white-space: nowrap;
}
.blog-modal-author {
  font-size: 0.75rem;
  color: rgba(255,255,255,0.55);
}
.blog-modal-body {
  padding: 20px 40px 28px;
  overflow-y: auto;
  line-height: 1.8;
  font-size: 1.05rem;
  color: rgba(255,255,255,0.9);
  background: rgba(12,12,18,0.6);
  backdrop-filter: blur(4px);
}
.blog-modal-body p { margin-bottom: 1.2em; }
.blog-modal-body h2 { font-size: 1.35rem; margin: 1.5em 0 0.5em; color: #fff; }
.blog-modal-body h3 { font-size: 1.15rem; margin: 1.3em 0 0.4em; color: #fff; }
.blog-modal-body ul, .blog-modal-body ol { margin: 0 0 1.2em 1.6em; }
.blog-modal-body li { margin-bottom: 0.4em; }
.blog-modal-body strong { color: #fff; font-weight: 600; }
.blog-modal-body blockquote {
  border-left: 3px solid var(--rust);
  padding: 16px 24px;
  margin: 1.3em 0;
  background: rgba(255,255,255,0.06);
  border-radius: 0 var(--radius) var(--radius) 0;
  font-style: italic;
  font-size: 1.05rem;
  color: rgba(255,255,255,0.9);
}

/* â”€â”€â”€ BLOG PROGRESS BAR â”€â”€â”€ */
.blog-progress {
  position: absolute;
  top: 0; left: 0; height: 3px;
  background: var(--rust);
  z-index: 15;
  width: 0%;
  transition: width 0.1s linear;
  border-radius: 0 2px 0 0;
}

/* â”€â”€â”€ BLOG MODAL META â”€â”€â”€ */
.blog-modal-meta {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  width: 100%;
}
.blog-modal-author::before {
  content: '';
  display: inline-block;
  width: 3px; height: 3px;
  border-radius: 50%;
  background: rgba(255,255,255,0.35);
  margin-right: 8px;
  vertical-align: middle;
}

/* â”€â”€â”€ BLOG MODAL FOOTER â”€â”€â”€ */
.blog-modal-footer {
  border-top: 1px solid rgba(255,255,255,0.08);
  flex-shrink: 0;
  background: rgba(18,18,24,0.7);
  backdrop-filter: blur(8px);
}

/* â”€â”€â”€ SHARE BUTTONS â”€â”€â”€ */
.blog-share {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 16px 40px;
}
.blog-share-label {
  font-size: 0.75rem;
  font-weight: 600;
  color: rgba(255,255,255,0.5);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-right: 12px;
}
.blog-share-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px; height: 38px;
  border-radius: 50%;
  border: none;
  background: rgba(255,255,255,0.08);
  color: rgba(255,255,255,0.7);
  cursor: pointer;
  transition: all 0.25s ease;
  text-decoration: none;
}
.blog-share-btn:hover {
  transform: translateY(-3px);
  box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}
.share-wa:hover { background: #25D366; color: #fff; }
.share-fb:hover { background: #1877F2; color: #fff; }
.share-copy:hover { background: var(--rust); color: #fff; }

/* â”€â”€â”€ RELATED ARTICLES â”€â”€â”€ */
.blog-related {
  padding: 0 40px 28px;
}
.blog-related-title {
  font-size: 0.75rem;
  font-weight: 700;
  color: rgba(255,255,255,0.6);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 12px;
}
.blog-related-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}
.blog-related-card {
  display: flex;
  gap: 10px;
  padding: 10px;
  border-radius: var(--radius);
  background: rgba(255,255,255,0.06);
  cursor: pointer;
  transition: all 0.3s ease;
}
.blog-related-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 20px rgba(0,0,0,0.2);
}
.blog-related-img {
  width: 60px; height: 60px;
  border-radius: 6px;
  flex-shrink: 0;
  background-size: cover;
  background-position: center;
}
.blog-related-body {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.blog-related-date {
  font-size: 0.55rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--rust);
  font-weight: 600;
  margin-bottom: 4px;
}
.blog-related-title-text {
  font-size: 0.78rem;
  font-weight: 600;
  color: rgba(255,255,255,0.8);
  line-height: 1.3;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* â”€â”€â”€ MODAL ENTRANCE ANIMATION â”€â”€â”€ */
@keyframes blogModalIn {
  from { opacity: 0; transform: scale(0.95) translateY(10px); }
  to { opacity: 1; transform: scale(1) translateY(0); }
}
.blog-modal-content {
  animation: blogModalIn 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

@media (max-width: 1024px) {
  .blog-modal-header { padding: 18px 24px 0; }
  .blog-modal-title { font-size: 1.3rem; }
  .blog-modal-body { padding: 16px 24px 22px; font-size: 1rem; }
  .blog-modal-body blockquote { font-size: 1rem; padding: 14px 20px; }
  .blog-share { padding: 12px 24px; }
  .blog-related { padding: 0 24px 20px; }
}
@media (max-width: 768px) {
  .blog-modal { padding: 0; align-items: flex-end; }
  .blog-modal.active { align-items: flex-end; }
  .blog-modal-content {
    max-width: 100%; max-height: 94vh;
    border-radius: var(--radius) var(--radius) 0 0;
  }
  .blog-modal-header { padding: 18px 20px 0; }
  .blog-modal-title { font-size: 1.2rem; }
  .blog-modal-body { padding: 14px 20px 24px; font-size: 0.95rem; }
  .blog-modal-body h2 { font-size: 1.1rem; }
  .blog-modal-body blockquote { font-size: 0.95rem; padding: 12px 16px; }
  .blog-modal-close { top: 10px; right: 10px; width: 32px; height: 32px; font-size: 1.3rem; }
  .blog-share { padding: 12px 20px; }
  .blog-related { padding: 0 20px 20px; }
  .blog-related-grid { gap: 8px; }
  .blog-related-img { width: 50px; height: 50px; }
  .blog-related-title-text { font-size: 0.72rem; }
}
@media (max-width: 480px) {
  .blog-modal { padding: 0; }
  .blog-modal-content { max-height: 96vh; border-radius: 0; }
  .blog-modal-header { padding: 14px 16px 0; gap: 8px; }
  .blog-modal-title { font-size: 1.05rem; }
  .blog-modal-date { font-size: 0.68rem; }
  .blog-modal-body { padding: 12px 16px 20px; font-size: 0.88rem; line-height: 1.65; }
  .blog-modal-body h2 { font-size: 1rem; }
  .blog-modal-body h3 { font-size: 0.92rem; }
  .blog-modal-body blockquote { padding: 10px 14px; margin: 0.9em 0; font-size: 0.88rem; }
  .blog-modal-close { top: 6px; right: 6px; width: 26px; height: 26px; font-size: 1rem; }
  .blog-share { padding: 10px 16px; flex-wrap: wrap; }
  .blog-share-label { width: 100%; margin-bottom: 4px; }
  .blog-related { padding: 0 16px 16px; }
  .blog-related-grid { grid-template-columns: 1fr; gap: 8px; }
  .blog-related-img { width: 48px; height: 48px; }
}
@media (max-height: 500px) and (orientation: landscape) {
  .blog-modal { padding: 0; }
  .blog-modal-content { max-height: 100vh; border-radius: 0; }
  .blog-modal-header { padding: 10px 16px 0; }
  .blog-modal-title { font-size: 0.95rem; }
  .blog-modal-body { padding: 10px 16px 16px; font-size: 0.82rem; }
  .blog-share { padding: 8px 16px; }
  .blog-related { display: none !important; }
}

/* â”€â”€â”€ GALLERY MODAL â”€â”€â”€ */
.gallery-modal {
  display: none;
  position: fixed; inset: 0; z-index: 1000;
  background: rgba(0,0,0,0.92);
  backdrop-filter: blur(8px);
  align-items: center; justify-content: center;
  flex-direction: column;
  padding: 40px;
}
.gallery-modal.active { display: flex; }
.gallery-content {
  max-width: 90vw;
  max-height: 80vh;
  object-fit: contain;
  border-radius: var(--radius);
  box-shadow: 0 20px 60px rgba(0,0,0,0.5);
  animation: galleryFadeIn 0.3s ease;
}
@keyframes galleryFadeIn {
  from { opacity: 0; transform: scale(0.95); }
  to { opacity: 1; transform: scale(1); }
}
.gallery-caption {
  color: rgba(255,255,255,0.7);
  font-size: 0.95rem;
  margin-top: 20px;
  text-align: center;
  font-family: var(--font-body, 'Segoe UI', Roboto, Arial, sans-serif);
}
.gallery-close {
  position: absolute; top: 20px; right: 30px;
  color: white; font-size: 3rem;
  background: transparent; border: 0; padding: 0;
  cursor: pointer; transition: color 0.2s;
  z-index: 1001;
  line-height: 1;
}
.gallery-close:hover { color: var(--rust-light); }
.gallery-nav {
  position: absolute; top: 50%; transform: translateY(-50%);
  background: rgba(255,255,255,0.1);
  color: white; border: none;
  font-size: 2rem; padding: 16px 20px;
  cursor: pointer; transition: background 0.2s;
  border-radius: var(--radius);
  backdrop-filter: blur(4px);
}
.gallery-nav:hover { background: rgba(255,255,255,0.2); }
.gallery-prev { left: 20px; }
.gallery-next { right: 20px; }
.gallery-footer {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  margin-top: 20px;
}
.gallery-counter {
  font-size: 0.8rem;
  font-weight: 500;
  color: rgba(255,255,255,0.45);
  font-family: var(--font-body, 'Segoe UI', Roboto, Arial, sans-serif);
  letter-spacing: 0.05em;
  padding: 4px 10px;
  border-radius: 20px;
  background: rgba(255,255,255,0.08);
  white-space: nowrap;
}
.gallery-caption {
  margin-top: 0;
}

/* â”€â”€â”€ CONTACT â”€â”€â”€ */
#contact {
  background: var(--black);
  display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: start;
}
#contact h2 { color: var(--white); }
#contact .section-tag { color: var(--rust-light); }
#contact .section-tag::before { background: var(--rust-light); }
#contact .section-lead { color: rgba(255,255,255,0.5); }
.contact-info { margin-top: 48px; display: flex; flex-direction: column; gap: 24px; }
.contact-item { display: flex; align-items: flex-start; gap: 16px; transition: transform 0.2s; }
.contact-item:hover { transform: translateX(4px); }
.contact-icon {
  width: 44px; height: 44px; background: rgba(192,64,42,0.15);
  border: 1px solid rgba(192,64,42,0.3);
  display: flex; align-items: center; justify-content: center;
  border-radius: var(--radius); flex-shrink: 0;
  color: var(--rust-light);
  transition: background 0.2s, border-color 0.2s;
}
.contact-item:hover .contact-icon { background: rgba(192,64,42,0.25); border-color: var(--rust-light); }
.contact-label { font-size: 0.68rem; letter-spacing: 0.15em; text-transform: uppercase; color: var(--rust-light); margin-bottom: 4px; }
.contact-val { color: rgba(255,255,255,0.8); font-size: 0.95rem; line-height: 1.5; }
.contact-form {
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.08);
  padding: 40px; border-radius: var(--radius);
  margin-top: 60px;
  transition: border-color 0.3s;
}
.contact-form:focus-within { border-color: var(--rust); }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form-group { margin-bottom: 20px; }
.form-label {
  display: block; font-size: 0.72rem; letter-spacing: 0.12em;
  text-transform: uppercase; color: rgba(255,255,255,0.4);
  margin-bottom: 8px; font-weight: 500;
}
.form-input, .form-select, .form-textarea {
  width: 100%; background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.1);
  color: white; padding: 14px 16px; font-size: 0.9rem;
  font-family: var(--font-body, 'Segoe UI', Roboto, Arial, sans-serif);
  border-radius: var(--radius); outline: none;
  transition: border-color 0.2s, background 0.2s, box-shadow 0.2s;
  min-height: 48px;
}
.form-input:focus, .form-select:focus, .form-textarea:focus {
  border-color: var(--rust-light);
  background: rgba(255,255,255,0.08);
  box-shadow: 0 0 0 3px rgba(232,97,74,0.1);
}
.form-select option { background: var(--charcoal); }
.form-textarea { resize: vertical; min-height: 120px; }
.budget-row { display: flex; gap: 8px; align-items: stretch; }
.budget-input { flex: 1; min-width: 0; }
.budget-currency-select { width: auto; min-width: 90px; flex-shrink: 0; }
.form-submit {
  width: 100%; background: var(--rust); color: white;
  border: none; padding: 16px; font-size: 0.85rem;
  font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase;
  cursor: pointer; border-radius: var(--radius); font-family: var(--font-body, 'Segoe UI', Roboto, Arial, sans-serif);
  transition: background 0.2s, transform 0.2s, box-shadow 0.2s;
  min-height: 48px;
}
.form-submit:hover { background: var(--rust-light); transform: translateY(-1px); box-shadow: 0 8px 25px rgba(192,64,42,0.3); }
.form-submit:disabled { opacity: 0.7; cursor: not-allowed; transform: none; }

/* â”€â”€â”€ MAP â”€â”€â”€ */
.map-wrap {
  margin-top: 48px;
}
.map-title {
  font-family: var(--font-heading, Georgia, 'Times New Roman', serif);
  color: white;
  font-size: 1.3rem;
  margin-bottom: 16px;
}
.map-container {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid rgba(255,255,255,0.1);
  box-shadow: var(--shadow-md);
}
.map-container .leaflet-container,
.project-map-container .leaflet-container {
  width: 100%; height: 100%;
  z-index: 0;
  touch-action: auto;
  -ms-touch-action: auto;
}
[data-theme="dark"] .leaflet-layer { filter: invert(0.9) hue-rotate(180deg); }
[data-theme="dark"] .leaflet-popup-content-wrapper { background: var(--charcoal); color: var(--white); }
[data-theme="dark"] .leaflet-popup-tip { background: var(--charcoal); }
.map-locations {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-top: 16px;
}
.map-loc {
  background: rgba(255,255,255,0.04);
  padding: 14px 18px;
  border-radius: var(--radius);
  border-left: 3px solid var(--rust);
  color: rgba(255,255,255,0.7);
  font-size: 0.82rem;
  line-height: 1.5;
}
.map-loc strong { color: white; }

/* â”€â”€â”€ FOOTER â”€â”€â”€ */
footer {
  background: #080808;
  padding: 40px 60px;
  display: flex; align-items: center; justify-content: space-between;
  border-top: 1px solid rgba(192,64,42,0.15);
}
.footer-logo {
  font-family: var(--font-heading, Georgia, 'Times New Roman', serif);
  color: white; font-size: 1rem; text-decoration: none;
}
.footer-logo span { color: var(--rust-light); }
.footer-copy { font-size: 0.75rem; color: rgba(255,255,255,0.3); }
.footer-links { display: flex; gap: 24px; }
.footer-links a { font-size: 0.75rem; color: rgba(255,255,255,0.4); text-decoration: none; transition: color 0.2s; }
.footer-links a:hover { color: var(--rust-light); }
.footer-social { display: flex; gap: 12px; align-items: center; }
.footer-social .social-link { color: rgba(255,255,255,0.4); transition: color 0.2s; display: flex; }
.footer-social .social-link:hover { color: var(--rust-light); }

/* â”€â”€â”€ WHATSAPP FLOATING â”€â”€â”€ */
.whatsapp-float {
  position: fixed; bottom: 24px; right: 24px;
  z-index: 99;
  width: 56px; height: 56px;
  background: var(--whatsapp);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 4px 16px rgba(37,211,102,0.4);
  transition: transform 0.3s, box-shadow 0.3s;
  text-decoration: none;
  animation: whatsappPulse 2s infinite;
}
.whatsapp-float:hover {
  transform: scale(1.1);
  box-shadow: 0 8px 30px rgba(37,211,102,0.5);
}
@keyframes whatsappPulse {
  0% { box-shadow: 0 4px 16px rgba(37,211,102,0.4); transform: scale(1); }
  25% { box-shadow: 0 4px 40px rgba(37,211,102,0.7); transform: scale(1.08); }
  50% { box-shadow: 0 4px 24px rgba(37,211,102,0.6); transform: scale(1.02); }
  75% { box-shadow: 0 4px 36px rgba(37,211,102,0.5); transform: scale(1.06); }
  100% { box-shadow: 0 4px 16px rgba(37,211,102,0.4); transform: scale(1); }
}

/* â”€â”€â”€ BACK TO TOP â”€â”€â”€ */
.back-to-top {
  position: fixed; bottom: 24px; left: 24px;
  z-index: 99;
  width: 44px; height: 44px;
  background: var(--rust);
  border: none; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  cursor: pointer;
  box-shadow: var(--shadow-md);
  transition: transform 0.3s, opacity 0.3s, visibility 0.3s;
  opacity: 0; visibility: hidden;
}
.back-to-top.visible { opacity: 1; visibility: visible; }
.back-to-top:hover { transform: translateY(-3px); background: var(--rust-light); }

/* â”€â”€â”€ ANIMATIONS â”€â”€â”€ */
@keyframes heroSlideUp {
  0% { opacity: 0; transform: translateY(40px) scale(0.96); filter: blur(2px); }
  70% { transform: translateY(-4px) scale(1.01); filter: blur(0); }
  100% { opacity: 1; transform: translateY(0) scale(1); filter: blur(0); }
}
.hero-left > *:not(.hero-left-bg) { animation: heroSlideUp 0.8s cubic-bezier(0.34, 1.56, 0.64, 1) both; }
.hero-tag { animation-delay: 0.1s; }
h1 { animation-delay: 0.2s; }
.hero-sub { animation-delay: 0.35s; }
.hero-btns { animation-delay: 0.5s; }
.hero-stats { animation-delay: 0.65s; }

/* Hero stats children staggered entrance */
.hero-stats > * {
  opacity: 0;
  transform: translateY(30px);
  animation: heroStatsSlide 0.6s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
}
.hero-stats > *:nth-child(1) { animation-delay: 0.8s; }
.hero-stats > *:nth-child(2) { animation-delay: 0.95s; }
.hero-stats > *:nth-child(3) { animation-delay: 1.1s; }
.hero-stats > *:nth-child(4) { animation-delay: 1.25s; }
@keyframes heroStatsSlide {
  to { opacity: 1; transform: translateY(0); }
}

/* Hero badge entrance */
.hero-badge {
  animation: heroBadgePop 0.6s cubic-bezier(0.34, 1.56, 0.64, 1) both;
  animation-delay: 1.3s;
}
@keyframes heroBadgePop {
  0% { opacity: 0; transform: scale(0.5) translateY(20px); }
  100% { opacity: 1; transform: scale(1) translateY(0); }
}

/* scroll reveal */
.reveal {
  opacity: 0; transform: translateY(50px);
  transition: opacity 0.7s cubic-bezier(0.25, 0.46, 0.45, 0.94),
              transform 0.7s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}
.reveal.visible { opacity: 1; transform: none; }

/* reveal variants */
.reveal-left {
  opacity: 0; transform: translateX(-60px);
  transition: opacity 0.7s cubic-bezier(0.25, 0.46, 0.45, 0.94),
              transform 0.7s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}
.reveal-left.visible { opacity: 1; transform: translateX(0); }

.reveal-right {
  opacity: 0; transform: translateX(60px);
  transition: opacity 0.7s cubic-bezier(0.25, 0.46, 0.45, 0.94),
              transform 0.7s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}
.reveal-right.visible { opacity: 1; transform: translateX(0); }

.reveal-scale {
  opacity: 0; transform: scale(0.85);
  transition: opacity 0.7s cubic-bezier(0.34, 1.56, 0.64, 1),
              transform 0.7s cubic-bezier(0.34, 1.56, 0.64, 1);
}
.reveal-scale.visible { opacity: 1; transform: scale(1); }

/* â”€â”€â”€ LOADING SPINNER â”€â”€â”€ */
.loading-spinner {
  display: inline-block;
  width: 32px; height: 32px;
  border: 3px solid rgba(255,255,255,0.1);
  border-top-color: var(--rust-light);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
  margin-bottom: 12px;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* â”€â”€â”€ LOADER OVERLAY â”€â”€â”€ */
#loader-overlay {
  position: fixed; inset: 0; z-index: 9999;
  background: var(--black);
  display: flex; align-items: center; justify-content: center;
  opacity: 0; visibility: hidden;
  transition: opacity 0.4s ease, visibility 0.4s ease;
}
#loader-overlay.active {
  opacity: 1; visibility: visible;
}
.loader-content {
  text-align: center;
  animation: loaderFadeIn 0.5s ease;
}
.loader-logo {
  width: 80px; height: 80px;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid var(--rust);
  margin: 0 auto 24px;
  animation: loaderPulse 1.5s ease-in-out infinite;
}
.loader-text {
  font-family: var(--font-heading, Georgia, 'Times New Roman', serif);
  font-size: 1.5rem;
  color: var(--white);
  letter-spacing: 0.05em;
  margin-bottom: 32px;
}
.loader-text span { color: var(--rust-light); }
.loader-bar {
  width: 200px; height: 3px;
  background: rgba(255,255,255,0.1);
  border-radius: 2px;
  margin: 0 auto;
  overflow: hidden;
  position: relative;
}
.loader-bar::after {
  content: '';
  position: absolute; top: 0; left: -100%;
  width: 100%; height: 100%;
  background: linear-gradient(to right, var(--rust-dark), var(--rust-light));
  border-radius: 2px;
  animation: loaderBar 1.2s ease-in-out infinite;
}
@keyframes loaderFadeIn {
  0% { opacity: 0; transform: scale(0.8) rotate(-5deg); filter: blur(4px); }
  60% { transform: scale(1.05) rotate(1deg); filter: blur(0); }
  100% { opacity: 1; transform: scale(1) rotate(0deg); filter: blur(0); }
}
@keyframes loaderPulse {
  0%, 100% { box-shadow: 0 0 20px rgba(192,64,42,0.2), 0 0 60px rgba(192,64,42,0.1); transform: scale(1); }
  50% { box-shadow: 0 0 60px rgba(192,64,42,0.5), 0 0 120px rgba(192,64,42,0.2); transform: scale(1.08); }
}
@keyframes loaderBar {
  0% { left: -100%; }
  100% { left: 200%; }
}
.loader-bar {
  animation: loaderBarGlow 2s ease-in-out infinite;
}
@keyframes loaderBarGlow {
  0%, 100% { filter: brightness(1); }
  50% { filter: brightness(1.5); }
}





/* â”€â”€â”€ PARALLAX HERO â”€â”€â”€ */
#hero {
  background-attachment: fixed;
  background-position: center;
  background-repeat: no-repeat;
  background-size: cover;
}
.hero-right {
  transform: translateZ(0);
  will-change: transform;
}
.hero-img {
  transition: transform 0.2s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

/* â”€â”€â”€ SKELETON SCREENS â”€â”€â”€ */
.skeleton {
  background: linear-gradient(90deg, rgba(255,255,255,0.04) 25%, rgba(255,255,255,0.08) 50%, rgba(255,255,255,0.04) 75%);
  background-size: 200% 100%;
  animation: shimmer 1.5s ease-in-out infinite;
  border-radius: var(--radius);
}
@keyframes shimmer {
  0% { background-position: -200% 0; }
  100% { background-position: 200% 0; }
}
[data-theme="light"] .skeleton {
  background: linear-gradient(90deg, rgba(0,0,0,0.04) 25%, rgba(0,0,0,0.08) 50%, rgba(0,0,0,0.04) 75%);
  background-size: 200% 100%;
}

/* â”€â”€â”€ TEAM SECTION â”€â”€â”€ */
#team {
  background: var(--bg-primary);
  padding: 100px 60px;
}
#team h2 { color: var(--text-primary); }
#team .section-tag { color: var(--rust-light); }
#team .section-tag::before { background: var(--rust-light); }
#team .section-lead { color: var(--text-secondary); }
.team-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  margin-top: 60px;
}
.team-group {
  margin-top: 22px;
}
.team-showcase {
  position: relative;
  overflow: hidden;
  margin-top: 18px;
  padding: 10px 0 12px;
}
.team-showcase::before,
.team-showcase::after {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  width: 70px;
  z-index: 2;
  pointer-events: none;
}
.team-showcase::before {
  left: 0;
  background: linear-gradient(90deg, var(--bg-primary), rgba(15, 17, 22, 0));
}
.team-showcase::after {
  right: 0;
  background: linear-gradient(270deg, var(--bg-primary), rgba(15, 17, 22, 0));
}
.team-track {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 18px;
  width: auto;
}
.team-card {
  min-width: 0;
  background: var(--bg-card);
  border: 1px solid var(--border-light);
  border-radius: var(--radius);
  padding: 24px 20px 18px;
  text-align: center;
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s ease, transform 0.6s ease, background 0.3s, border-color 0.3s;
  will-change: transform;
}
.team-card.spotlight-visible {
  opacity: 1;
  transform: translateY(0);
}
.team-card:hover {
  background: rgba(192,64,42,0.08);
  border-color: rgba(192,64,42,0.2);
}
/* Avatar spring pop-in + idle pulse */
.team-avatar {
  width: 80px; height: 80px;
  border-radius: 50%;
  object-fit: cover;
  margin: 0 auto 16px;
  border: 3px solid var(--rust);
  display: block;
  transform: scale(0);
  opacity: 0;
  transition: transform 0.6s cubic-bezier(0.34, 1.56, 0.64, 1),
              opacity 0.4s ease,
              box-shadow 0.4s ease,
              border-color 0.4s ease;
}
.team-card.spotlight-visible .team-avatar {
  transform: scale(1);
  opacity: 1;
  animation: avatarPulse 3s ease-in-out infinite 0.8s;
}
@keyframes avatarPulse {
  0%, 100% { box-shadow: 0 0 10px rgba(192,64,42,0.15), 0 0 20px rgba(192,64,42,0.05); }
  50% { box-shadow: 0 0 25px rgba(192,64,42,0.35), 0 0 50px rgba(192,64,42,0.12); }
}

/* Progressive content reveal */
.team-name {
  font-family: var(--font-heading, Georgia, 'Times New Roman', serif);
  font-size: 1.1rem;
  color: var(--text-primary);
  margin-bottom: 4px;
  opacity: 0;
  transform: translateY(8px);
  transition: opacity 0.5s ease, transform 0.5s ease;
}
.team-card.spotlight-visible .team-name {
  opacity: 1;
  transform: translateY(0);
  transition-delay: 0.15s;
}

.team-role {
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--rust-light);
  margin-bottom: 12px;
  opacity: 0;
  transform: translateY(8px);
  transition: opacity 0.5s ease, transform 0.5s ease;
}
.team-card.spotlight-visible .team-role {
  opacity: 1;
  transform: translateY(0);
  transition-delay: 0.25s;
}

.team-desc {
  font-size: 0.82rem;
  color: var(--text-secondary);
  line-height: 1.5;
  opacity: 0;
  transform: translateY(8px);
  transition: opacity 0.5s ease, transform 0.5s ease;
}
.team-card.spotlight-visible .team-desc {
  opacity: 1;
  transform: translateY(0);
  transition-delay: 0.35s;
}

/* â”€â”€â”€ VALUES / RSE â”€â”€â”€ */
.values-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: 48px;
}
.value-card {
  background: var(--bg-card);
  padding: 36px 28px;
  border-radius: var(--radius);
  border-top: 3px solid var(--rust);
  transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1), background 0.3s;
}
.value-card:hover {
  transform: translateY(-4px);
  background: rgba(255,255,255,0.06);
}
.value-icon {
  font-size: 2rem;
  margin-bottom: 16px;
}
.value-title {
  font-family: var(--font-heading, Georgia, 'Times New Roman', serif);
  font-size: 1.15rem;
  color: var(--text-primary);
  margin-bottom: 10px;
}
.value-desc {
  font-size: 0.85rem;
  color: var(--text-secondary);
  line-height: 1.6;
}

/* â”€â”€â”€ BLOG SECTION â”€â”€â”€ */
#blog {
  background: var(--bg-secondary);
  padding: 120px 60px;
  position: relative;
}
#blog::before {
  content: '';
  position: absolute;
  top: 0; left: 50%;
  transform: translateX(-50%);
  width: 80px; height: 3px;
  background: var(--rust);
  border-radius: 0 0 3px 3px;
  opacity: 0.3;
}
#blog .section-tag,
#blog h2,
#blog .section-lead {
  text-align: center;
  margin-left: auto;
  margin-right: auto;
}
#blog .section-tag {
  margin-bottom: 16px;
}
#blog h2 {
  font-size: clamp(1.8rem, 2.5vw, 2.6rem);
  max-width: 700px;
  margin-bottom: 20px;
}
#blog .section-lead {
  max-width: 600px;
  font-size: 1.1rem;
}
/* â”€â”€â”€ BLOG TIMELINE â”€â”€â”€ */
.blog-timeline {
  position: relative;
  margin-top: 60px;
  padding-left: 50px;
}
.blog-timeline::before {
  content: '';
  position: absolute;
  left: 23px;
  top: 0; bottom: 0;
  width: 2px;
  background: linear-gradient(to bottom, transparent, var(--border-light) 60px, var(--border-light) calc(100% - 40px), transparent);
}
.timeline-entry {
  position: relative;
  margin-bottom: 36px;
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s ease, transform 0.6s ease, display 0.6s ease allow-discrete;
}
.timeline-entry.hidden {
  display: none;
}
.timeline-entry.timeline-visible {
  opacity: 1;
  transform: translateY(0);
}
.timeline-marker {
  position: absolute;
  left: -27px;
  top: 50%;
  width: 14px; height: 14px;
  border-radius: 50%;
  background: var(--rust);
  border: 3px solid var(--bg-primary);
  transform: translateY(-50%);
  z-index: 2;
  box-shadow: 0 0 0 4px var(--bg-secondary), 0 0 0 6px var(--bg-secondary);
}
.timeline-card {
  display: flex;
  background: var(--bg-card);
  border-radius: calc(var(--radius) + 2px);
  overflow: hidden;
  box-shadow: 0 1px 3px rgba(0,0,0,0.06);
  transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 0.5s ease;
  cursor: pointer;
  border: 1px solid var(--border-light);
  position: relative;
}
.timeline-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0;
  width: 3px;
  height: 100%;
  background: var(--card-accent, var(--rust));
  border-radius: 3px 0 0 3px;
}
.timeline-entry:nth-child(even) .timeline-card::before {
  left: auto; right: 0;
  border-radius: 0 3px 3px 0;
}
.timeline-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 40px rgba(0,0,0,0.1), 0 2px 8px rgba(0,0,0,0.06);
  border-color: var(--rust-light);
}
.timeline-entry:nth-child(odd) .timeline-card {
  flex-direction: row;
}
.timeline-entry:nth-child(even) .timeline-card {
  flex-direction: row-reverse;
}
.timeline-img-wrap {
  width: 38%;
  flex-shrink: 0;
  min-height: 220px;
  overflow: hidden;
  position: relative;
}
.timeline-img-wrap img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 0.5s cubic-bezier(0.34, 1.56, 0.64, 1), filter 0.4s ease;
  position: absolute; inset: 0;
}
.timeline-card:hover .timeline-img-wrap img {
  transform: scale(1.1);
  filter: brightness(1.08) saturate(1.2) contrast(1.05);
}
.timeline-badge {
  position: absolute;
  top: 14px; left: 14px;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 5px 12px;
  border-radius: 20px;
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  background: var(--badge-color, var(--rust));
  color: #fff;
  line-height: 1.4;
  pointer-events: none;
  z-index: 2;
  backdrop-filter: blur(6px);
  box-shadow: 0 2px 8px rgba(0,0,0,0.15);
}
.timeline-body {
  flex: 1;
  padding: 28px 32px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.timeline-meta {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 10px;
}
.timeline-date {
  font-size: 0.68rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--rust);
  font-weight: 600;
}
.timeline-readtime {
  font-size: 0.62rem;
  letter-spacing: 0.05em;
  color: var(--text-muted);
  display: inline-flex;
  align-items: center;
  gap: 4px;
}
.timeline-readtime::before {
  content: '';
  width: 3px; height: 3px;
  border-radius: 50%;
  background: var(--text-muted);
  display: inline-block;
}
.timeline-title {
  font-family: var(--font-heading, Georgia, 'Times New Roman', serif);
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 10px;
  line-height: 1.35;
}
.timeline-excerpt {
  font-size: 0.88rem;
  color: var(--text-secondary);
  line-height: 1.65;
  margin-bottom: 16px;
}
.timeline-link {
  font-size: 0.78rem;
  color: var(--rust);
  font-weight: 600;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: gap 0.2s;
}
.timeline-link::after {
  content: '\2192';
  transition: transform 0.2s;
}
.timeline-link:hover { gap: 10px; }

/* â”€â”€â”€ BLOG TOGGLE â”€â”€â”€ */
.blog-footer {
  text-align: center;
  margin-top: 8px;
}
.blog-toggle {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 36px;
  border-radius: 50px;
  border: 2px solid var(--rust);
  background: transparent;
  color: var(--rust);
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
}
.blog-toggle:hover {
  background: var(--rust);
  color: #fff;
  gap: 12px;
}
.blog-toggle[data-expanded="true"]::after {
  content: '\2191';
}
.blog-toggle[data-expanded="false"]::after {
  content: '\2193';
}

/* â”€â”€â”€ NEWSLETTER â”€â”€â”€ */
#newsletter {
  background: var(--charcoal);
  padding: 80px 60px;
  text-align: center;
  position: relative;
  overflow: hidden;
}
#newsletter::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 1px;
  background: linear-gradient(to right, transparent, var(--rust), transparent);
  opacity: 0.4;
}
#newsletter::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 1px;
  background: linear-gradient(to right, transparent, var(--rust), transparent);
  opacity: 0.4;
}
.newsletter-container {
  max-width: 520px;
  margin: 0 auto;
  position: relative;
}
.newsletter-icon {
  color: var(--rust);
  margin-bottom: 20px;
  opacity: 0.7;
  display: inline-flex;
  animation: newsletterFloat 3s ease-in-out infinite;
}
@keyframes newsletterFloat {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-4px); }
}
.newsletter-title {
  font-family: var(--font-heading, Georgia, 'Times New Roman', serif);
  font-size: 1.8rem;
  color: var(--white);
  margin-bottom: 12px;
}
.newsletter-desc {
  font-size: 0.9rem;
  color: rgba(255,255,255,0.55);
  margin-bottom: 28px;
  line-height: 1.65;
  max-width: 440px;
  margin-left: auto;
  margin-right: auto;
}
.newsletter-form {
  display: flex;
  flex-direction: column;
  gap: 12px;
  max-width: 420px;
  margin: 0 auto;
}
.newsletter-input-wrap {
  position: relative;
}
.newsletter-input {
  width: 100%;
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.1);
  color: var(--white);
  padding: 14px 18px;
  font-size: 0.9rem;
  font-family: var(--font-body, 'Segoe UI', Roboto, Arial, sans-serif);
  border-radius: var(--radius);
  outline: none;
  transition: border-color 0.25s, background 0.25s, box-shadow 0.25s;
  min-height: 48px;
  box-sizing: border-box;
}
.newsletter-input:focus {
  border-color: var(--rust-light);
  background: rgba(255,255,255,0.08);
  box-shadow: 0 0 0 3px rgba(192,64,42,0.15);
}
.newsletter-input::placeholder { color: rgba(255,255,255,0.25); }
.newsletter-consent {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  font-size: 0.78rem;
  text-align: left;
}
.newsletter-consent input[type="checkbox"] {
  width: 16px;
  height: 16px;
  margin-top: 3px;
  flex-shrink: 0;
  accent-color: var(--rust);
}
.newsletter-consent label {
  color: rgba(255,255,255,0.45);
  line-height: 1.4;
  cursor: pointer;
  transition: color 0.2s;
}
.newsletter-consent label:hover { color: rgba(255,255,255,0.65); }
.newsletter-btn {
  position: relative;
  background: var(--rust);
  color: white;
  border: none;
  padding: 14px 28px;
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  cursor: pointer;
  border-radius: var(--radius);
  font-family: var(--font-body, 'Segoe UI', Roboto, Arial, sans-serif);
  transition: background 0.2s, transform 0.2s, opacity 0.2s;
  min-height: 48px;
  overflow: hidden;
}
.newsletter-btn:hover { background: var(--rust-light); transform: translateY(-1px); }
.newsletter-btn:active { transform: translateY(0); }
.newsletter-btn:disabled {
  opacity: 0.7;
  cursor: not-allowed;
  transform: none;
}
.newsletter-btn-spinner {
  display: none;
  width: 18px;
  height: 18px;
  border: 2px solid rgba(255,255,255,0.3);
  border-top-color: #fff;
  border-radius: 50%;
  animation: newsletterSpin 0.6s linear infinite;
  position: absolute;
  top: 50%;
  left: 50%;
  margin: -9px 0 0 -9px;
}
@keyframes newsletterSpin {
  to { transform: rotate(360deg); }
}
.newsletter-btn.sending .newsletter-btn-text { visibility: hidden; }
.newsletter-btn.sending .newsletter-btn-spinner { display: block; }
.newsletter-msg {
  margin-top: 16px;
  font-size: 0.85rem;
  color: rgba(255,255,255,0.5);
  min-height: 24px;
  opacity: 0;
  transform: translateY(-4px);
  transition: opacity 0.3s ease, transform 0.3s ease;
}
.newsletter-msg.show {
  opacity: 1;
  transform: translateY(0);
}
.newsletter-msg.success { color: #4ade80; }
.newsletter-msg.error { color: var(--rust-light); }

/* â”€â”€â”€ INTERACTIVE PROJECT MAP â”€â”€â”€ */
.project-map-wrap {
  margin-top: 60px;
}
.project-map-title {
  font-family: var(--font-heading, Georgia, 'Times New Roman', serif);
  font-size: 1.3rem;
  color: var(--text-primary);
  margin-bottom: 20px;
}
.project-map-container {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--border-light);
  box-shadow: var(--shadow-md);
  background: var(--bg-secondary);
}

/* â”€â”€â”€ ANIMATED COUNTER â”€â”€â”€ */
.num-count {
  display: inline-block;
}

/* â”€â”€â”€ HOVER ANIMATIONS â”€â”€â”€ */
.service-card {
  transition: background 0.3s, border-color 0.3s, transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}
.service-card:hover {
  transform: translateY(-6px) scale(1.02);
}

.price-card {
  transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 0.4s ease;
}

.project-card {
  transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 0.4s ease;
}

.about-img {
  transition: transform 0.6s cubic-bezier(0.34, 1.56, 0.64, 1), filter 0.6s ease;
}

.hero-img {
  transition: transform 10s cubic-bezier(0.25, 0.46, 0.45, 0.94),
              opacity 0.8s ease;
}
.hero-img.swap-out { opacity: 0; }

/* â”€â”€â”€ HERO FLOATING SHAPES â”€â”€â”€ */
.hero-shapes {
  position: absolute; inset: 0;
  overflow: hidden;
  pointer-events: none;
  z-index: 1;
}
.shape {
  position: absolute;
  border-radius: 50%;
}
.shape-circle {
  border: 2px solid var(--rust-light);
  background: radial-gradient(circle at 30% 30%, rgba(232,97,74,0.3), transparent 70%);
  box-shadow: 0 0 40px rgba(232,97,74,0.15), inset 0 0 40px rgba(232,97,74,0.05);
}
.shape-square {
  border-radius: 6px;
  border: 2px solid var(--accent);
  background: radial-gradient(circle at 30% 30%, rgba(212,168,83,0.25), transparent 70%);
  box-shadow: 0 0 40px rgba(212,168,83,0.12);
}
.shape-triangle {
  width: 0 !important; height: 0 !important;
  background: none !important; border: none !important;
  border-left: 25px solid transparent;
  border-right: 25px solid transparent;
  border-bottom: 40px solid var(--rust-light);
  filter: drop-shadow(0 0 20px rgba(232,97,74,0.3));
}
.shape-1 {
  width: 160px; height: 160px;
  top: 8%; left: -8%;
  animation: floatShapeDramatic 14s ease-in-out infinite;
}
.shape-2 {
  width: 100px; height: 100px;
  top: 55%; right: 10%;
  animation: floatShapeDramatic 11s ease-in-out infinite reverse;
}
.shape-3 {
  width: 80px; height: 80px;
  top: 20%; right: 5%;
  animation: floatShapeDramatic 9s ease-in-out infinite;
}
.shape-4 {
  top: 75%; left: 5%;
  animation: floatShapeDramatic 13s ease-in-out infinite reverse;
  border-bottom-color: var(--accent) !important;
  filter: drop-shadow(0 0 20px rgba(212,168,83,0.3));
}
.shape-5 {
  width: 50px; height: 50px;
  bottom: 10%; left: 40%;
  animation: floatShapeDramatic 8s ease-in-out infinite;
  border-color: rgba(255,255,255,0.4);
  background: radial-gradient(circle at 30% 30%, rgba(255,255,255,0.2), transparent 70%);
  box-shadow: 0 0 30px rgba(255,255,255,0.1);
}
@keyframes floatShapeDramatic {
  0%, 100% { transform: translate(0, 0) rotate(0deg) scale(1); }
  20% { transform: translate(30px, -40px) rotate(8deg) scale(1.1); }
  40% { transform: translate(-20px, -60px) rotate(-5deg) scale(0.9); }
  60% { transform: translate(40px, -25px) rotate(6deg) scale(1.05); }
  80% { transform: translate(-30px, -45px) rotate(-4deg) scale(0.95); }
}

/* â”€â”€â”€ HERO PARALLAX â”€â”€â”€ */
.hero-parallax-layer {
  transition: transform 0.1s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  will-change: transform;
}

/* â”€â”€â”€ SECTION DIVIDER â”€â”€â”€ */
.section-divider {
  line-height: 0;
  overflow: hidden;
  position: relative;
  z-index: 1;
}
.section-divider svg {
  display: block;
  width: 100%;
  height: 40px;
  animation: dividerWave 3s ease-in-out infinite alternate;
}
.section-divider--flip svg {
  transform: rotate(180deg);
}
@keyframes dividerWave {
  0% { transform: scaleY(1) scaleX(1); }
  50% { transform: scaleY(1.25) scaleX(1.02); }
  100% { transform: scaleY(1) scaleX(0.98); }
}

/* â”€â”€â”€ STAGGERED REVEAL â”€â”€â”€ */
@keyframes staggerReveal {
  0% { opacity: 0; transform: translateY(60px) scale(0.9); }
  60% { transform: translateY(-8px) scale(1.02); }
  100% { opacity: 1; transform: translateY(0) scale(1); }
}
.reveal-stagger.visible > * {
  animation: staggerReveal 0.7s cubic-bezier(0.34, 1.56, 0.64, 1) both;
}
.reveal-stagger.visible > *:nth-child(1) { animation-delay: 0.00s; }
.reveal-stagger.visible > *:nth-child(2) { animation-delay: 0.10s; }
.reveal-stagger.visible > *:nth-child(3) { animation-delay: 0.20s; }
.reveal-stagger.visible > *:nth-child(4) { animation-delay: 0.30s; }
.reveal-stagger.visible > *:nth-child(5) { animation-delay: 0.40s; }
.reveal-stagger.visible > *:nth-child(6) { animation-delay: 0.50s; }
.reveal-stagger.visible > *:nth-child(7) { animation-delay: 0.60s; }
.reveal-stagger.visible > *:nth-child(8) { animation-delay: 0.70s; }
.reveal-stagger.visible > *:nth-child(9) { animation-delay: 0.80s; }
.reveal-stagger.visible > *:nth-child(10) { animation-delay: 0.90s; }
.reveal-stagger.visible > *:nth-child(11) { animation-delay: 1.00s; }
.reveal-stagger.visible > *:nth-child(12) { animation-delay: 1.10s; }

/* â”€â”€â”€ IMAGE REVEAL â”€â”€â”€ */
@keyframes imgPop {
  0% { opacity: 0; transform: scale(0.75) rotate(-3deg); filter: blur(4px); }
  70% { transform: scale(1.05) rotate(1deg); filter: blur(0); }
  100% { opacity: 1; transform: scale(1) rotate(0deg); filter: blur(0); }
}
.img-reveal {
  opacity: 0;
}
.img-reveal.img-visible {
  animation: imgPop 0.8s cubic-bezier(0.34, 1.56, 0.64, 1) both;
}

/* â”€â”€â”€ HOVER EFFECTS â”€â”€â”€ */

/* Team card: 3D tilt is handled by JS (.tilt-active) + avatar glow */
.team-card.tilt-active .team-avatar {
  transform: scale(1.12);
  box-shadow: 0 0 40px rgba(192,64,42,0.35), 0 0 80px rgba(192,64,42,0.1);
  border-color: var(--rust-light);
}

/* Service icon dramatic hover */
.service-icon {
  display: inline-block;
  transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}
.service-card:hover .service-icon {
  transform: scale(1.4) rotate(-12deg) translateY(-4px);
}

/* Standard icon image hover */
.standard-item:hover .standard-icon {
  transform: scale(1.15) rotate(3deg);
  box-shadow: 0 10px 40px rgba(192,64,42,0.25);
  border-color: var(--rust-light);
}
.standard-icon {
  transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1),
              box-shadow 0.4s ease,
              border-color 0.4s ease;
}

/* About accent image: pop-in then dramatic float */
.about-img-accent.img-visible {
  animation: imgPop 0.8s cubic-bezier(0.34, 1.56, 0.64, 1) both,
             gentleFloatDramatic 5s ease-in-out 0.8s infinite;
}
@keyframes gentleFloatDramatic {
  0%, 100% { transform: translateY(0) rotate(0deg); box-shadow: var(--shadow-lg); }
  33% { transform: translateY(-15px) rotate(1.5deg); box-shadow: 0 30px 70px rgba(0,0,0,0.25); }
  66% { transform: translateY(-5px) rotate(-0.5deg); box-shadow: 0 20px 50px rgba(0,0,0,0.18); }
}

/* Project image dramatic hover */
.project-card:hover .project-img {
  transform: scale(1.15);
  filter: brightness(1.08) contrast(1.08) saturate(1.1);
}
.project-img {
  transition: transform 0.5s cubic-bezier(0.34, 1.56, 0.64, 1),
              filter 0.4s ease;
}

/* Dossier thumb dramatic hover */
.dossier-thumb {
  overflow: hidden;
}
.dossier-thumb img {
  transition: transform 0.5s cubic-bezier(0.34, 1.56, 0.64, 1),
              filter 0.3s ease;
}
.dossier-card:hover .dossier-thumb img {
  transform: scale(1.12);
  filter: brightness(1.1) saturate(1.1);
}

/* About image dramatic hover */
.about-img {
  transition: transform 0.6s cubic-bezier(0.34, 1.56, 0.64, 1),
              filter 0.5s ease;
}
.about-image-wrap:hover .about-img {
  transform: scale(1.06);
  filter: grayscale(0%) brightness(1.08) contrast(1.05);
}
.about-img-accent {
  transition: transform 0.6s cubic-bezier(0.34, 1.56, 0.64, 1),
              box-shadow 0.5s ease;
}
.about-image-wrap:hover .about-img-accent {
  transform: scale(1.1) rotate(2.5deg);
  box-shadow: 0 35px 80px rgba(0,0,0,0.25);
}

/* Image loading shimmer placeholder */
.img-placeholder {
  position: relative;
  overflow: hidden;
  background: var(--bg-secondary);
}
.img-placeholder::after {
  content: '';
  position: absolute; inset: 0;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.15), transparent);
  transform: translateX(-100%);
  animation: imgShimmer 1.5s ease-in-out infinite;
}
@keyframes imgShimmer {
  100% { transform: translateX(100%); }
}

/* â”€â”€â”€ COUNTER PROGRESS BAR â”€â”€â”€ */
.counter-progress {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 6px;
  background: rgba(255,255,255,0.12);
  overflow: hidden;
}
.counter-progress-bar {
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, rgba(255,255,255,0.2), white, rgba(255,255,255,0.2));
  background-size: 200% 100%;
  border-radius: 0 3px 3px 0;
  transition: width 0.3s ease;
  animation: progressGlow 1.5s ease-in-out infinite;
}
@keyframes progressGlow {
  0%, 100% { background-position: 0% 0; filter: brightness(1); }
  50% { background-position: 100% 0; filter: brightness(1.3); }
}
#numbers {
  position: relative;
}

/* â”€â”€â”€ RESPONSIVE â”€â”€â”€ */
@media (max-width: 1024px) {
  nav { padding: 16px 30px; }
  .nav-links { gap: 18px; }
  section { padding: 80px 30px; }
  #hero { grid-template-columns: 1fr; }
  .hero-left { padding: 120px 30px 60px; }
  .hero-right { height: 380px; }
  #about { grid-template-columns: 1fr; gap: 48px; }
  #vision-mission { padding: 80px 30px; }
  .services-grid { grid-template-columns: repeat(2, 1fr); }
  .products-grid { grid-auto-columns: minmax(300px, 46vw); }
  .pricing-grid { grid-template-columns: 1fr; max-width: 500px; margin: 0 auto; }
  .projects-grid { grid-template-columns: 1fr 1fr; }
  .project-card:first-child { grid-column: span 2; }
  .project-overlay { padding: 22px; }
  #numbers { grid-template-columns: repeat(2, 1fr); padding: 60px 30px; }
  #contact { grid-template-columns: 1fr; gap: 0; }
  .calculator-grid { grid-template-columns: 1fr; gap: 32px; }
  .calc-result { min-height: auto; }
  .standards-grid { grid-template-columns: 1fr; gap: 40px; }
  .team-grid { grid-template-columns: repeat(2, 1fr); }
  .values-grid { grid-template-columns: repeat(2, 1fr); }
  #blog { padding: 80px 30px; }
  #team { padding: 80px 30px; }
  #newsletter { padding: 60px 30px; }
  footer { flex-direction: column; gap: 20px; text-align: center; }
  .timeline-img-wrap { min-height: 180px; }
  .timeline-body { padding: 24px 28px; }
  .dossier-card { min-width: calc(50% - 8px); }
  .dossiers-grid { gap: 16px; }
}
@media (max-width: 1024px) {
  .dossier-card { padding: 24px 20px; }
}
@media (max-width: 768px) {
  nav { padding: 14px 20px; }
  .hamburger { display: flex; }
  section { padding: 60px 20px; }
  h1 { font-size: clamp(2rem, 4vw, 3.5rem); }
  h2 { font-size: clamp(1.4rem, 3vw, 2.2rem); }
  .hero-left { padding: 100px 20px 40px; }
  .hero-btns { gap: 12px; }
  .hero-stats { gap: 30px; }
  #vision-mission { padding: 60px 20px; }
  .vision-mission-grid { grid-template-columns: 1fr; }
  .vm-text { font-size: 1.2rem; }
  .vm-card { padding: 36px 28px; }
  .services-grid { grid-template-columns: 1fr; }
  .products-grid { grid-auto-columns: minmax(260px, 86vw); }
  .products-carousel-btn { width: 36px; height: 36px; font-size: 1.7rem; }
  .products-carousel-prev { left: -10px; }
  .products-carousel-next { right: -10px; }
  .projects-grid { grid-template-columns: 1fr; }
  .team-grid { grid-template-columns: 1fr; }
  .values-grid { grid-template-columns: 1fr; }
  .blog-timeline {
    padding-left: 0;
    margin-top: 40px;
  }
  .blog-timeline::before { display: none; }
  .timeline-marker { display: none; }
  .timeline-entry { margin-bottom: 24px; }
  .timeline-entry:nth-child(odd) .timeline-card,
  .timeline-entry:nth-child(even) .timeline-card {
    flex-direction: column;
  }
  .timeline-card::before {
    width: 100%; height: 3px;
    border-radius: 3px 3px 0 0;
  }
  .timeline-entry:nth-child(even) .timeline-card::before {
    left: 0; right: auto;
    border-radius: 3px 3px 0 0;
  }
  .timeline-img-wrap {
    width: 100%;
    min-height: 200px;
  }
  .timeline-body { padding: 24px; }
  #blog { padding: 60px 20px; }
  #blog .section-lead { font-size: 0.95rem; }
  #team { padding: 60px 20px; }
  #newsletter { padding: 50px 20px; }
  .project-card:first-child { grid-column: span 1; }
  .project-overlay { padding: 18px; }
  .project-name { font-size: 1rem; }
  .project-cat { font-size: 0.6rem; }
  .project-loc { font-size: 0.72rem; }
  #numbers { grid-template-columns: repeat(2, 1fr); gap: 20px; padding: 60px 20px; }
  .num-val { font-size: 3rem; }
  .pricing-tabs { overflow-x: auto; }
  .tab-btn { white-space: nowrap; padding: 12px 16px; font-size: 0.75rem; }
  .form-row { grid-template-columns: 1fr; }
  .map-locations { grid-template-columns: 1fr; }
  .gallery-modal { padding: 20px; }
  .gallery-nav { padding: 12px 14px; font-size: 1.2rem; }
  .gallery-footer { flex-direction: column; gap: 8px; margin-top: 14px; }
  .gallery-caption { font-size: 0.85rem; }
  footer { padding: 30px 20px; }
  .dossiers-grid {
    gap: 12px;
    padding: 8px 16px 16px;
    margin: 32px -20px 0;
  }
  .dossier-card {
    flex: 0 0 82%;
    min-width: 0;
    padding: 24px 16px;
  }
  .dossier-thumb { margin-bottom: 14px; }
  .dossier-name { font-size: 1rem; }
}
@media (max-width: 640px) {
  nav { padding: 12px 16px; }
  .nav-links a { font-size: 0.85rem; }
  section { padding: 50px 16px; }
  h1 { font-size: clamp(1.8rem, 3.5vw, 2.8rem); }
  h2 { font-size: clamp(1.2rem, 2.5vw, 1.8rem); }
  .hero-left { padding: 80px 16px 30px; }
  .hero-tag { font-size: 0.65rem; }
  .hero-sub { font-size: 0.9rem; max-width: 100%; }
  .hero-stats { flex-direction: column; gap: 16px; }
  .stat-val { font-size: 1.8rem; }
  .stat-label { font-size: 0.65rem; }
  .hero-right { height: 280px; }
  .product-media { height: 220px; }
  .product-content { padding: 18px 16px 18px; }
  .product-price { right: 12px; bottom: 12px; max-width: calc(100% - 24px); padding: 8px 10px 7px; font-size: 0.78rem; }
  .product-lightbox { padding: 56px 12px 20px; }
  .product-lightbox-media,
  .product-lightbox-media img,
  .product-lightbox-media video { max-width: 96vw; max-height: 78vh; }
  .product-lightbox-close { top: 12px; right: 12px; width: 40px; height: 40px; font-size: 1.7rem; }
  .hero-badge { bottom: 24px; right: 24px; padding: 14px 18px; }
  .hero-badge-year { font-size: 1.5rem; }
  #vision-mission { padding: 50px 16px; }
  .services-grid { grid-template-columns: 1fr; gap: 1px; }
  .service-card { padding: 24px 16px; }
  .service-icon svg { width: 24px; height: 24px; }
  .service-title { font-size: 1.1rem; }
  .service-desc { font-size: 0.78rem; }
  .projects-grid { grid-template-columns: 1fr; gap: 14px; }
  .project-img { aspect-ratio: 16/9; }
  .project-overlay { padding: 14px; }
  #numbers { grid-template-columns: 1fr 1fr; gap: 16px; padding: 40px 16px; }
  .num-val { font-size: 2.5rem; }
  .num-label { font-size: 0.65rem; }
  .pricing-tabs { gap: 4px; }
  .tab-btn { padding: 10px 12px; font-size: 0.68rem; }
  .price-card { padding: 24px 16px; }
  .price-num { font-size: 1.8rem; }
  .price-type { font-size: 1rem; }
  .price-foreign { flex-wrap: wrap; gap: 8px; }
  .price-foreign-item { font-size: 0.75rem; padding: 4px 10px; }
  #newsletter { padding: 40px 16px; }
  .newsletter-title { font-size: 1.5rem; }
  .newsletter-desc { font-size: 0.85rem; margin-bottom: 24px; }
  .newsletter-form { gap: 10px; max-width: 100%; }
  .newsletter-icon svg { width: 28px; height: 28px; }
  .contact-form { padding: 28px 16px; margin-top: 32px; }
  .form-row { grid-template-columns: 1fr; gap: 12px; }
  .form-group { margin-bottom: 14px; }
  .form-label { font-size: 0.65rem; margin-bottom: 6px; }
  footer { padding: 24px 16px; font-size: 0.7rem; }
  .footer-links { gap: 16px; }
  .btn-primary, .btn-outline { width: 100%; }
  .hero-btns { flex-direction: column; gap: 12px; }
  .whatsapp-float { width: 48px; height: 48px; bottom: 16px; right: 16px; }
  .whatsapp-float svg { width: 24px; height: 24px; }
  .back-to-top { bottom: 16px; left: 16px; width: 40px; height: 40px; }
}
@media (max-width: 480px) {
  nav { padding: 10px 12px; }
  .nav-logo { font-size: 0.95rem; }
  .nav-logo-img { width: 28px; height: 28px; }
  section { padding: 40px 12px; }
  h1 { font-size: clamp(1.5rem, 3vw, 2.2rem); }
  .hero-left { padding: 70px 12px 25px; }
  .hero-right { height: 220px; }
  .pricing-grid { gap: 16px; }
  #contact { padding: 40px 12px; }
  .contact-form { padding: 20px 12px; }
  #newsletter { padding: 36px 12px; }
  .newsletter-title { font-size: 1.3rem; }
  .newsletter-desc { font-size: 0.8rem; margin-bottom: 20px; }
  .newsletter-icon { margin-bottom: 16px; }
  .newsletter-icon svg { width: 24px; height: 24px; }
  .newsletter-form { gap: 10px; }
  .newsletter-input { padding: 12px 14px; font-size: 0.85rem; min-height: 44px; }
  .newsletter-btn { width: 100%; padding: 12px 20px; font-size: 0.78rem; min-height: 44px; }
  .newsletter-consent { font-size: 0.72rem; gap: 6px; }
  .newsletter-consent input[type="checkbox"] { width: 18px; height: 18px; margin-top: 2px; }
  .newsletter-msg { font-size: 0.8rem; margin-top: 12px; }
  .projects-grid { gap: 12px; }
  .project-overlay { padding: 12px; }
  .project-name { font-size: 0.9rem; }
  .project-cat { font-size: 0.55rem; }
  .project-loc { font-size: 0.68rem; }
  .gallery-modal { padding: 10px; }
  .gallery-content { max-width: 98vw; max-height: 70vh; }
  .gallery-close { top: 10px; right: 12px; font-size: 2rem; }
  .gallery-nav { padding: 8px 10px; font-size: 1rem; }
  .gallery-prev { left: 4px; }
  .gallery-next { right: 4px; }
  .gallery-footer { flex-direction: column; gap: 6px; margin-top: 12px; }
  .gallery-counter { font-size: 0.68rem; padding: 3px 8px; }
  .gallery-caption { font-size: 0.75rem; }
}

/* â”€â”€â”€ LANDSCAPE PHONE â”€â”€â”€ */
@media (max-height: 500px) and (orientation: landscape) {
  nav { padding: 8px 16px; }
  .nav-logo { font-size: 0.85rem; }
  .nav-logo-img { width: 24px; height: 24px; }
  .nav-links a { font-size: 0.75rem; padding: 6px; }
  #hero { min-height: auto; }
  .hero-left { padding: 60px 20px 20px; }
  .hero-right { height: 200px; }
  .hero-tag { font-size: 0.55rem; }
  h1 { font-size: clamp(1.4rem, 3vw, 2.5rem); }
  .hero-sub { font-size: 0.78rem; }
  .hero-stats { flex-direction: row; gap: 12px; }
  .stat-val { font-size: 1.4rem; }
  #newsletter { padding: 30px 40px; }
  .newsletter-icon { margin-bottom: 12px; }
  .newsletter-icon svg { width: 24px; height: 24px; }
  .newsletter-title { font-size: 1.3rem; margin-bottom: 6px; }
  .newsletter-desc { font-size: 0.8rem; margin-bottom: 16px; }
  .newsletter-form { gap: 8px; max-width: 360px; }
  .newsletter-input { padding: 10px 14px; min-height: 40px; }
  .newsletter-btn { padding: 10px 20px; min-height: 40px; }
  .newsletter-consent { font-size: 0.7rem; }
  .gallery-modal { padding: 10px; }
  .gallery-content { max-height: 70vh; }
  .gallery-nav { padding: 8px 10px; font-size: 1rem; }
}

/* â”€â”€â”€ PRINT STYLES â”€â”€â”€ */
@media print {
  nav, .hamburger, .whatsapp-float, .back-to-top, .gallery-modal,
  #newsletter, footer, .hero-right, .hero-decor, .hero-badge,
  .service-num, .price-features, .pricing-footer, .form-row { display: none !important; }
  #hero { min-height: auto; background: none !important; }
  .hero-left { padding: 20px; }
  .hero-stats { border-top: 1px solid #ccc; }
  body { color: #000; background: #fff; }
  a { color: #000; text-decoration: underline; }
  section { padding: 30px 20px; page-break-inside: avoid; }
  .projects-grid, .team-grid { grid-template-columns: repeat(2, 1fr); }
  .blog-timeline::before { display: none; }
  .timeline-marker { display: none; }
  .blog-timeline { padding-left: 0; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    animation-delay: 0ms !important;
    transition-duration: 0.01ms !important;
  }
}

/* â”€â”€â”€ THEME SECTION OVERRIDES â”€â”€â”€ */
[data-theme="light"] body { background: var(--bg-primary); color: var(--text-primary); }
[data-theme="light"] nav { background: rgba(250,248,245,0.95); border-bottom-color: rgba(0,0,0,0.08); }
[data-theme="light"] nav.scrolled { box-shadow: 0 4px 20px rgba(0,0,0,0.08); }
[data-theme="light"] .nav-logo { color: var(--black); }
[data-theme="light"] .nav-links a { color: rgba(0,0,0,0.6); }
[data-theme="light"] .nav-links a:hover { color: var(--rust); }
[data-theme="light"] .nav-cta { color: white !important; }
[data-theme="light"] .hamburger span { background: var(--black); }
[data-theme="light"] .nav-links.active,
[data-theme="light"] .nav-links.closing { background: rgba(250,248,245,0.98); border-bottom-color: rgba(0,0,0,0.08); }
[data-theme="light"] .lang-btn { color: rgba(0,0,0,0.4); }
[data-theme="light"] .lang-btn.active { color: white; }
[data-theme="light"] .nav-lang-selector { background: rgba(0,0,0,0.05); border-color: rgba(0,0,0,0.08); }
[data-theme="light"] .nav-submenu { background: var(--bg-elevated); border-color: var(--border-light); box-shadow: 0 8px 30px rgba(0,0,0,0.1); }
[data-theme="light"] .nav-submenu::before { background: var(--bg-elevated); border-left-color: var(--border-light); border-top-color: var(--border-light); }
[data-theme="light"] .nav-submenu a:hover { background: rgba(192,64,42,0.08); }
@media (max-width: 768px) {
  [data-theme="light"] .nav-submenu a { color: rgba(0,0,0,0.5) !important; }
  [data-theme="light"] .nav-submenu a:hover { color: var(--rust) !important; }
}

[data-theme="light"] #hero { background: var(--bg-primary); }
[data-theme="light"] .hero-overlay { background: var(--hero-overlay); }
[data-theme="light"] .hero-left-bg::after { background: linear-gradient(to right, var(--bg-primary) 0%, rgba(255,255,255,0.85) 30%, rgba(255,255,255,0.4) 100%); }
[data-theme="light"] h1 { color: var(--text-primary); }
[data-theme="light"] .hero-sub { color: var(--text-secondary); }
[data-theme="light"] .stat-val { color: var(--text-primary); }
[data-theme="light"] .stat-label { color: var(--text-muted); }
[data-theme="light"] .hero-stats { border-top-color: var(--border-light); }
[data-theme="light"] .btn-outline { border-color: rgba(0,0,0,0.2); color: var(--text-secondary); }
[data-theme="light"] .btn-outline:hover { border-color: var(--rust); color: var(--rust); background: rgba(192,64,42,0.06); }
[data-theme="light"] .hero-decor { opacity: 0.8; }

[data-theme="light"] #about { background: var(--bg-secondary); }
[data-theme="light"] .feat { background: var(--bg-card); border-left-color: var(--rust); }
[data-theme="light"] .feat-desc { color: var(--text-secondary); }

[data-theme="light"] #vision-mission { background: var(--bg-primary); }
[data-theme="light"] .vm-card { background: var(--bg-secondary); }
[data-theme="light"] .vm-card:hover { background: rgba(0,0,0,0.05); }
[data-theme="light"] .vm-text { color: var(--text-primary); }
[data-theme="light"] .vm-label::after { background: var(--border-light); }

[data-theme="light"] #technical-standards { background: var(--bg-primary); border-top-color: var(--border-light); }
[data-theme="light"] .standard-content h3 { color: var(--text-primary); }
[data-theme="light"] .standard-content p { color: var(--text-secondary); }

[data-theme="light"] #services { background: var(--bg-secondary); }
[data-theme="light"] #services h2 { color: var(--text-primary); }
[data-theme="light"] .service-card { background: var(--bg-card); }
[data-theme="light"] .service-card:hover { background: var(--bg-primary); }
[data-theme="light"] .service-title { color: var(--text-primary); }
[data-theme="light"] .service-desc { color: var(--text-secondary); }
[data-theme="light"] .service-num { color: rgba(0,0,0,0.06); }
[data-theme="light"] #services .section-lead { color: var(--text-secondary); }

[data-theme="light"] #pricing { background: var(--bg-primary); }
[data-theme="light"] .price-card { background: var(--bg-card); border-color: var(--border-light); }
[data-theme="light"] .price-card:hover { border-color: var(--rust); }
[data-theme="light"] .price-card.featured { background: var(--bg-secondary); border-color: var(--bg-secondary); }
[data-theme="light"] .price-card.featured:hover { border-color: var(--rust); }
[data-theme="light"] .price-card.featured .price-type,
[data-theme="light"] .price-card.featured .price-num { color: var(--text-primary); }
[data-theme="light"] .price-card.featured .price-features li { color: var(--text-secondary); }
[data-theme="light"] .price-card.featured .price-note { background: rgba(0,0,0,0.05); color: var(--text-secondary); }
[data-theme="light"] .price-card.featured .price-unit { color: var(--text-muted); }
[data-theme="light"] .price-card.featured .price-currency { color: var(--text-muted); }
[data-theme="light"] .price-card.featured .price-foreign-item { background: var(--bg-primary); }
[data-theme="light"] .price-card.featured .price-foreign-symbol { color: var(--rust); }
[data-theme="light"] .price-card.featured .price-foreign-val { color: var(--text-primary); }
[data-theme="light"] .price-note { background: var(--bg-secondary); }
[data-theme="light"] .pricing-footer { background: var(--bg-secondary); }
[data-theme="light"] .pricing-footer strong { color: var(--text-primary); }
[data-theme="light"] .price-divider { border-color: var(--border-light); }
[data-theme="light"] .price-card.featured .price-divider { border-color: var(--border-light); }
[data-theme="light"] .pricing-tabs { border-bottom-color: var(--border-light); }
[data-theme="light"] .section-lead { color: var(--text-secondary); }
[data-theme="light"] .price-foreign-item { background: var(--bg-secondary); }

[data-theme="dark"] .price-card { background: rgba(255,255,255,0.06); }
[data-theme="dark"] .price-card:hover { box-shadow: 0 8px 30px rgba(0,0,0,0.4); }
[data-theme="dark"] .price-foreign-item { background: rgba(255,255,255,0.06); }
[data-theme="dark"] .price-note { background: rgba(255,255,255,0.05); }
[data-theme="dark"] .pricing-footer { background: rgba(255,255,255,0.03); border-top-color: var(--border-light); }
[data-theme="dark"] .tab-btn { color: var(--text-muted); }
[data-theme="dark"] .tab-btn.active,
[data-theme="dark"] .tab-btn:hover { color: var(--rust-light); }
[data-theme="dark"] .pricing-tabs { border-bottom-color: rgba(255,255,255,0.06); }
[data-theme="dark"] .pricing-intro h2 { color: var(--white); }
[data-theme="dark"] .pricing-intro .section-lead { color: var(--white); }

[data-theme="light"] #calculator { background: var(--bg-primary); }
[data-theme="light"] .calculator-header h2 { color: var(--text-primary); }
[data-theme="light"] .calculator-header .section-lead,
[data-theme="light"] .calc-result .result-unit,
[data-theme="light"] .calc-result .result-note { color: var(--text-secondary); }
[data-theme="light"] .calc-form { background: var(--bg-secondary); border-color: var(--border-light); }
[data-theme="light"] .calc-result { background: var(--bg-elevated); border-color: var(--rust); }
[data-theme="light"] .result-main { color: var(--text-primary); }
[data-theme="light"] .detail-item { color: var(--text-secondary); }
[data-theme="light"] .detail-item span:last-child { color: var(--text-primary); }
[data-theme="light"] .detail-item.total { border-top-color: var(--border-light); color: var(--text-primary); }
[data-theme="light"] .form-input, [data-theme="light"] .form-select, [data-theme="light"] .form-textarea { background: var(--bg-primary); border-color: var(--border-light); color: var(--text-primary); }
[data-theme="light"] .form-input:focus, [data-theme="light"] .form-select:focus, [data-theme="light"] .form-textarea:focus { border-color: var(--rust-light); background: white; }
[data-theme="light"] .form-label { color: var(--text-muted); }
[data-theme="light"] .form-select option { background: var(--bg-primary); color: var(--text-primary); }
[data-theme="light"] .calc-form label { color: var(--text-muted); }
[data-theme="light"] .calc-foreign-item { background: var(--bg-secondary); color: var(--text-primary); }
[data-theme="light"] .calc-foreign-symbol { color: var(--rust); }
[data-theme="light"] .calc-foreign-val { color: var(--text-primary); }

[data-theme="light"] #numbers { background: var(--rust); } /* keep rust */

[data-theme="light"] #team { background: var(--bg-primary); }
[data-theme="light"] #team h2 { color: var(--text-primary); }
[data-theme="light"] .team-card { background: var(--bg-card); border-color: var(--border-light); }
[data-theme="light"] .team-card:hover { background: rgba(192,64,42,0.06); border-color: var(--rust); }
[data-theme="light"] .team-name { color: var(--text-primary); }
[data-theme="light"] .team-desc { color: var(--text-secondary); }

[data-theme="light"] .value-card { background: var(--bg-secondary); }
[data-theme="light"] .value-title { color: var(--text-primary); }
[data-theme="light"] .value-desc { color: var(--text-secondary); }

[data-theme="light"] #blog { background: var(--bg-secondary); }
[data-theme="light"] .timeline-card { background: var(--bg-card); }
[data-theme="light"] .timeline-title { color: var(--text-primary); }
[data-theme="light"] .timeline-excerpt { color: var(--text-secondary); }
[data-theme="light"] .timeline-marker { border-color: var(--bg-secondary); box-shadow: 0 0 0 4px var(--bg-secondary), 0 0 0 6px var(--bg-secondary); }

[data-theme="light"] #newsletter { background: var(--bg-secondary); }
[data-theme="light"] .newsletter-title { color: var(--text-primary); }
[data-theme="light"] .newsletter-desc { color: var(--text-secondary); }
[data-theme="light"] .newsletter-input { background: var(--bg-primary); border-color: var(--border-light); color: var(--text-primary); }
[data-theme="light"] .newsletter-input:focus { border-color: var(--rust-light); background: var(--bg-card); box-shadow: 0 0 0 3px rgba(192,64,42,0.1); }
[data-theme="light"] .newsletter-input::placeholder { color: var(--text-muted); }
[data-theme="light"] .newsletter-consent label { color: var(--text-muted); }
[data-theme="light"] .newsletter-consent label:hover { color: var(--text-secondary); }

[data-theme="light"] .project-map-title { color: var(--text-primary); }
[data-theme="light"] .project-map-container { border-color: var(--border-light); background: #f0ece6; }
[data-theme="light"] .project-pin { background: var(--bg-secondary); }
[data-theme="light"] .project-pin strong { color: var(--text-primary); }
[data-theme="light"] .project-pin { color: var(--text-secondary); }

[data-theme="light"] #projects { background: var(--bg-secondary); }

[data-theme="light"] #contact { background: var(--bg-primary); }
[data-theme="light"] #contact h2 { color: var(--text-primary); }
[data-theme="light"] #contact .section-lead { color: var(--text-secondary); }
[data-theme="light"] .contact-val { color: var(--text-primary); }
[data-theme="light"] .contact-form { background: var(--bg-secondary); border-color: var(--border-light); }
[data-theme="light"] .contact-form:focus-within { border-color: var(--rust); }
[data-theme="light"] .contact-form .form-input,
[data-theme="light"] .contact-form .form-select,
[data-theme="light"] .contact-form .form-textarea { background: var(--bg-primary); border-color: var(--border-light); color: var(--text-primary); }
[data-theme="light"] .contact-form .form-input:focus,
[data-theme="light"] .contact-form .form-select:focus,
[data-theme="light"] .contact-form .form-textarea:focus { border-color: var(--rust-light); background: white; }
[data-theme="light"] .contact-form .form-label { color: var(--text-muted); }
[data-theme="light"] .contact-icon { background: rgba(192,64,42,0.1); border-color: rgba(192,64,42,0.2); }
[data-theme="light"] .map-loc { background: var(--bg-secondary); border-left-color: var(--rust); color: var(--text-secondary); }
[data-theme="light"] .map-loc strong { color: var(--text-primary); }
[data-theme="light"] .map-title { color: var(--text-primary); }

[data-theme="light"] footer { background: var(--bg-secondary); border-top-color: var(--border-light); }
[data-theme="light"] .footer-logo { color: var(--text-primary); }
[data-theme="light"] .footer-copy { color: var(--text-muted); }
[data-theme="light"] .footer-links a { color: var(--text-secondary); }
[data-theme="light"] .footer-links a:hover { color: var(--rust); }
[data-theme="light"] .footer-social .social-link { color: var(--text-secondary); }
[data-theme="light"] .footer-social .social-link:hover { color: var(--rust); }

/* â”€â”€â”€ THEME TRANSITION â”€â”€â”€ */
body, nav, section, footer, .price-card, .service-card, .feat, .contact-form,
.calc-form, .calc-result, .form-input, .form-select, .form-textarea,
.price-note, .pricing-footer, .vm-card, .standard-icon, .map-loc,
.nav-links.active, .nav-lang-selector, .lang-btn {
  transition: background 0.3s ease, color 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
}

/* â”€â”€â”€ SKIP-TO-CONTENT LINK â”€â”€â”€ */
.skip-link {
  position: absolute;
  top: -100%;
  left: 0;
  z-index: 10000;
  padding: 10px 20px;
  background: var(--rust, #8B4513);
  color: #fff;
  font-size: 0.9rem;
  font-weight: 600;
  text-decoration: none;
  border-radius: 0 0 6px 0;
  transition: top 0.2s;
}
.skip-link:focus {
  top: 0;
  outline: 2px solid #fff;
  outline-offset: 2px;
}

/* â”€â”€â”€ COOKIE CONSENT BANNER â”€â”€â”€ */
.cookie-consent {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 9999;
  background: var(--bg-elevated, #1a1a2e);
  color: var(--text-primary, #eee);
  padding: 14px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  font-size: 0.85rem;
  box-shadow: 0 -4px 20px rgba(0,0,0,0.15);
  transform: translateY(100%);
  transition: transform 0.4s ease;
}
.cookie-consent.show {
  transform: translateY(0);
}
.cookie-consent p {
  margin: 0;
  flex: 1;
}
.cookie-consent a {
  color: var(--rust-light, #c0603a);
  text-decoration: underline;
}
.cookie-btns {
  display: flex;
  gap: 8px;
  flex-shrink: 0;
}
.cookie-btn {
  padding: 8px 18px;
  border: none;
  border-radius: 6px;
  font-size: 0.85rem;
  font-weight: 500;
  cursor: pointer;
  transition: opacity 0.2s;
}
.cookie-btn:hover { opacity: 0.85; }
.cookie-btn-accept {
  background: var(--rust, #8B4513);
  color: #fff;
}
.cookie-btn-refuse {
  background: transparent;
  color: var(--text-muted, #999);
  border: 1px solid var(--border-light, #333);
}
[data-theme="light"] .cookie-consent {
  background: var(--bg-elevated, #fff);
  border-top: 1px solid var(--border-light, #ddd);
}
[data-theme="light"] .cookie-btn-refuse {
  border-color: var(--border-light, #ccc);
}

/* â”€â”€â”€ BLOG SEARCH â”€â”€â”€ */
.blog-search-wrap {
  max-width: 400px;
  margin: 0 auto 24px;
}
.blog-search-input {
  width: 100%;
  padding: 10px 16px;
  border: 1px solid var(--border-light, #333);
  border-radius: 8px;
  background: var(--bg-primary, #111);
  color: var(--text-primary, #eee);
  font-size: 0.9rem;
  transition: border-color 0.2s;
}
.blog-search-input:focus {
  outline: none;
  border-color: var(--rust, #8B4513);
}
.blog-search-input::placeholder {
  color: var(--text-muted, #666);
}
[data-theme="light"] .blog-search-input {
  background: var(--bg-primary, #fff);
  border-color: var(--border-light, #ddd);
  color: var(--text-primary, #222);
}
.blog-search-noresult {
  text-align: center;
  padding: 60px 20px;
  color: var(--text-muted);
  font-size: 1rem;
}

/* â”€â”€â”€ FOCUS STYLES FOR ACCESSIBILITY â”€â”€â”€ */
button:focus-visible,
a:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
  outline: 2px solid var(--rust, #8B4513);
  outline-offset: 2px;
}
.hamburger:focus-visible {
  outline: 2px solid var(--rust, #8B4513);
  outline-offset: 3px;
}

/* Human design pass: quieter typography, fewer decorative effects */
:root {
  --rust: #9E4633;
  --rust-dark: #713225;
  --rust-light: #B85B45;
  --accent: #B9975B;
  --light: #F4EFE8;
  --white: #FFFCF7;
  --shadow-sm: 0 1px 4px rgba(35, 24, 18, 0.06);
  --shadow-md: 0 8px 22px rgba(35, 24, 18, 0.08);
  --shadow-lg: 0 16px 40px rgba(35, 24, 18, 0.11);
  --font-body: Arial, Calibri, sans-serif;
  --font-heading: "Arial Narrow", Arial, Calibri, sans-serif;
}

body,
button,
input,
select,
textarea,
.lang-btn,
.form-input,
.form-select,
.form-textarea,
.newsletter-input,
.newsletter-btn,
.contact-form .form-label {
  font-family: var(--font-body);
}

h1,
h2,
.nav-logo,
.stat-val,
.hero-badge-year,
.vm-text,
.standard-content h3,
.service-title,
.price-type,
.price-num,
.result-main,
.project-name,
.timeline-title,
.newsletter-title,
.footer-logo,
.num-val {
  font-family: var(--font-heading);
}

h1 {
  font-weight: 700;
  line-height: 1.04;
}

h2,
.service-title,
.timeline-title {
  font-weight: 650;
}

nav {
  animation: none;
}

nav.scrolled::after,
.nav-cta::before,
.hero-decor,
.hero-shapes,
.section-divider {
  display: none !important;
}

.nav-links > li {
  opacity: 1;
  animation: none;
}

.nav-links a,
.nav-submenu a,
.section-tag,
.stat-label,
.price-currency,
.price-unit,
.contact-label,
.num-label {
  letter-spacing: 0.06em;
}

.nav-links a.active,
.nav-links a:hover {
  text-shadow: none;
}

.nav-logo:hover,
.nav-logo:hover .nav-logo-img,
.hamburger:hover,
.lang-btn:hover,
.nav-cta:hover,
.btn-primary:hover,
.form-submit:hover,
.project-card:hover,
.dossier-card:hover,
.timeline-card:hover,
.service-card:hover,
.feat:hover {
  transform: none;
}

.nav-logo:hover .nav-logo-img,
.btn-primary:hover,
.form-submit:hover,
.nav-cta:hover,
.project-card:hover,
.dossier-card:hover,
.timeline-card:hover,
.service-card:hover,
.feat:hover {
  box-shadow: var(--shadow-md);
}

.hero-badge,
.about-img,
.team-card,
.price-card,
.service-card,
.timeline-card,
.contact-form,
.calc-form,
.calc-result,
.dossier-card {
  border-radius: 6px;
}

.hero-badge {
  box-shadow: var(--shadow-md);
}

.hero-tag,
.section-tag {
  color: var(--rust-light);
  font-weight: 600;
}

.hero-sub,
.section-lead,
.service-desc,
.timeline-excerpt,
.contact-val,
.newsletter-desc {
  line-height: 1.72;
}

.feat-icon,
.contact-icon,
.service-icon {
  width: 44px;
  height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(158, 70, 51, 0.28);
  border-radius: 50%;
  color: var(--rust);
  background: rgba(158, 70, 51, 0.07);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  flex-shrink: 0;
}

.service-icon {
  margin-bottom: 18px;
}

.contact-icon {
  font-size: 0.68rem;
}

.calc-placeholder-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 120px;
  min-height: 38px;
  margin-bottom: 16px;
  border: 1px solid var(--border-light);
  border-radius: 999px;
  color: var(--text-muted);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.timeline-badge {
  gap: 0;
}

.whatsapp-float {
  animation: none;
  box-shadow: var(--shadow-md);
}

.reveal.visible,
.reveal-stagger.visible > *,
.img-reveal.visible,
.team-card.revealed .team-avatar-wrap,
.team-card.revealed .team-name,
.team-card.revealed .team-role,
.team-card.revealed .team-desc {
  animation-timing-function: ease-out;
}

/* Project cards motion pass */
.projects-grid {
  perspective: 1200px;
}

.projects-grid.reveal-stagger:not(.visible) > .project-card {
  opacity: 0;
  transform: translateY(26px) scale(0.97);
}

.projects-grid.reveal-stagger.visible > .project-card {
  animation: projectCardArrive 760ms cubic-bezier(0.2, 0.8, 0.2, 1) backwards;
  animation-delay: var(--project-delay, 0ms);
}

.project-card {
  --pointer-x: 50%;
  --pointer-y: 50%;
  --tilt-x: 0deg;
  --tilt-y: 0deg;
  isolation: isolate;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: var(--bg-secondary);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.16);
  transform: translateY(0) rotateX(var(--tilt-x)) rotateY(var(--tilt-y));
  transform-style: preserve-3d;
  transition:
    transform 520ms cubic-bezier(0.2, 0.8, 0.2, 1),
    box-shadow 520ms ease,
    border-color 520ms ease,
    filter 520ms ease;
  will-change: transform;
}

.project-card::before,
.project-card::after {
  content: '';
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: 0;
  transition: opacity 420ms ease;
}

.project-card::before {
  z-index: 2;
  background:
    radial-gradient(circle at var(--pointer-x) var(--pointer-y),
      rgba(255, 255, 255, 0.22) 0%,
      rgba(184, 91, 69, 0.18) 22%,
      transparent 48%);
  mix-blend-mode: screen;
}

.project-card::after {
  z-index: 5;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: inherit;
  box-shadow: inset 0 0 0 1px rgba(184, 91, 69, 0.16);
}

.project-card:hover,
.project-card:focus-visible {
  transform: translateY(-8px) rotateX(var(--tilt-x)) rotateY(var(--tilt-y));
  border-color: rgba(184, 91, 69, 0.48);
  box-shadow: 0 24px 58px rgba(35, 24, 18, 0.24);
  filter: saturate(1.04);
}

.project-card:hover::before,
.project-card:hover::after,
.project-card:focus-visible::before,
.project-card:focus-visible::after {
  opacity: 1;
}

.project-card:focus-visible {
  outline: 2px solid var(--rust-light);
  outline-offset: 4px;
}

.project-img {
  transform: translateZ(0) scale(1.01);
  transition:
    transform 820ms cubic-bezier(0.2, 0.8, 0.2, 1),
    filter 520ms ease;
}

.project-card:hover .project-img,
.project-card:focus-visible .project-img {
  transform: translateZ(18px) scale(1.09);
  filter: brightness(1.08) contrast(1.06) saturate(1.12);
}

.project-overlay {
  z-index: 4;
  background:
    linear-gradient(to top, rgba(13, 13, 13, 0.92) 0%, rgba(13, 13, 13, 0.46) 46%, transparent 78%);
  transform: translateZ(26px);
}

.project-cat,
.project-name,
.project-loc {
  text-shadow: 0 2px 18px rgba(0, 0, 0, 0.34);
}

.project-cat {
  opacity: 0.86;
}

.project-name {
  max-width: 92%;
}

.project-loc {
  opacity: 0.72;
}

.project-card:hover .project-cat,
.project-card:hover .project-name,
.project-card:hover .project-loc,
.project-card:focus-visible .project-cat,
.project-card:focus-visible .project-name,
.project-card:focus-visible .project-loc {
  transform: translateY(-4px);
}

.project-card:hover .project-loc,
.project-card:focus-visible .project-loc {
  opacity: 0.9;
}

@keyframes projectCardArrive {
  0% {
    opacity: 0;
    transform: translateY(28px) scale(0.97);
    filter: blur(6px);
  }
  55% {
    opacity: 1;
    transform: translateY(-3px) scale(1.01);
    filter: blur(0);
  }
  100% {
    opacity: 1;
    transform: translateY(0) scale(1);
    filter: blur(0);
  }
}

@media (hover: none), (pointer: coarse) {
  .project-card {
    box-shadow: var(--shadow-md);
    transform: none;
    will-change: auto;
  }

  .project-card::before {
    display: none;
  }

  .project-card:active {
    transform: scale(0.985);
  }

  .project-card:hover .project-img,
  .project-card:focus-visible .project-img {
    transform: scale(1.04);
  }
}

@media (prefers-reduced-motion: reduce) {
  .projects-grid.reveal-stagger:not(.visible) > .project-card,
  .projects-grid.reveal-stagger.visible > .project-card,
  .project-card,
  .project-card:hover,
  .project-card:focus-visible,
  .project-img,
  .project-card:hover .project-img,
  .project-card:focus-visible .project-img {
    animation: none !important;
    transform: none !important;
    transition: none !important;
    filter: none !important;
  }
}

/* Global motion system */
:root {
  --motion-ease-out: cubic-bezier(0.2, 0.8, 0.2, 1);
  --motion-ease-soft: cubic-bezier(0.22, 1, 0.36, 1);
  --motion-ease-spring: cubic-bezier(0.34, 1.18, 0.64, 1);
  --motion-fast: 180ms;
  --motion-medium: 420ms;
  --motion-slow: 780ms;
}

body.motion-prep:not(.site-ready) nav,
body.motion-prep:not(.site-ready) #hero .hero-left,
body.motion-prep:not(.site-ready) #hero .hero-right {
  opacity: 0;
}

body.site-ready nav {
  animation: globalNavEnter 620ms var(--motion-ease-soft) both;
}

body.site-ready #hero .hero-left {
  animation: globalHeroCopyEnter 860ms var(--motion-ease-soft) 80ms both;
}

body.site-ready #hero .hero-right {
  animation: globalHeroMediaEnter 980ms var(--motion-ease-soft) 180ms both;
}

.reveal,
.reveal-left,
.reveal-right,
.reveal-scale {
  transition-duration: var(--motion-slow);
  transition-timing-function: var(--motion-ease-soft);
  will-change: opacity, transform, filter;
}

.reveal {
  transform: translateY(34px);
  filter: blur(4px);
}

.reveal-left {
  transform: translateX(-34px);
  filter: blur(4px);
}

.reveal-right {
  transform: translateX(34px);
  filter: blur(4px);
}

.reveal-scale {
  transform: scale(0.94);
  filter: blur(4px);
}

.reveal.visible,
.reveal-left.visible,
.reveal-right.visible,
.reveal-scale.visible {
  filter: blur(0);
  will-change: auto;
}

.reveal-stagger.visible > :not(.project-card) {
  animation: globalItemEnter 720ms var(--motion-ease-soft) both;
  animation-delay: var(--motion-delay, 0ms);
}

.img-reveal.img-visible {
  animation: globalImageReveal 820ms var(--motion-ease-soft) both;
}

.service-card,
.price-card,
.vm-card,
.standard-item,
.team-card,
.timeline-card,
.dossier-card,
.feat,
.contact-item,
.calc-form,
.calc-result {
  transition:
    transform var(--motion-medium) var(--motion-ease-soft),
    box-shadow var(--motion-medium) ease,
    border-color var(--motion-medium) ease,
    background-color var(--motion-medium) ease,
    filter var(--motion-medium) ease;
}

.service-card:hover,
.price-card:hover,
.vm-card:hover,
.standard-item:hover,
.team-card:hover,
.timeline-card:hover,
.dossier-card:hover,
.feat:hover,
.contact-item:hover,
.calc-form:hover,
.calc-result:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-lg);
}

.standard-item:hover,
.vm-card:hover,
.feat:hover,
.contact-item:hover {
  border-color: rgba(158, 70, 51, 0.36);
}

.btn-primary,
.btn-outline,
.nav-cta,
.form-submit,
.price-cta,
.newsletter-btn,
.blog-toggle,
.tab-btn,
.carousel-btn,
.dossier-download-btn,
.back-to-top {
  transition:
    transform var(--motion-fast) var(--motion-ease-out),
    box-shadow var(--motion-medium) ease,
    background-color var(--motion-medium) ease,
    border-color var(--motion-medium) ease,
    color var(--motion-medium) ease;
}

.btn-primary:hover,
.btn-outline:hover,
.nav-cta:hover,
.form-submit:hover,
.price-cta:hover,
.newsletter-btn:hover,
.blog-toggle:hover,
.tab-btn:hover,
.carousel-btn:hover,
.back-to-top:hover {
  transform: translateY(-2px);
}

.btn-primary:active,
.btn-outline:active,
.nav-cta:active,
.form-submit:active,
.price-cta:active,
.newsletter-btn:active,
.blog-toggle:active,
.tab-btn:active,
.carousel-btn:active,
.back-to-top:active {
  transform: translateY(0) scale(0.98);
}

.form-input,
.form-select,
.form-textarea,
.newsletter-input,
.blog-search-input {
  transition:
    border-color var(--motion-fast) ease,
    box-shadow var(--motion-medium) ease,
    background-color var(--motion-medium) ease,
    transform var(--motion-fast) var(--motion-ease-out);
}

.form-input:focus,
.form-select:focus,
.form-textarea:focus,
.newsletter-input:focus,
.blog-search-input:focus {
  transform: translateY(-1px);
  box-shadow: 0 10px 30px rgba(158, 70, 51, 0.11);
}

.pdf-modal.active .pdf-modal-content,
.blog-modal.active .blog-modal-content,
.gallery-modal.active .gallery-content {
  animation: globalModalEnter 420ms var(--motion-ease-soft) both;
}

.back-to-top.visible {
  animation: globalFloatIn 420ms var(--motion-ease-soft) both;
}

@keyframes globalNavEnter {
  from { opacity: 0; transform: translateY(-14px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes globalHeroCopyEnter {
  from { opacity: 0; transform: translateY(22px); filter: blur(6px); }
  to { opacity: 1; transform: translateY(0); filter: blur(0); }
}

@keyframes globalHeroMediaEnter {
  from { opacity: 0; transform: translateY(18px) scale(0.985); filter: blur(5px); }
  to { opacity: 1; transform: translateY(0) scale(1); filter: blur(0); }
}

@keyframes globalItemEnter {
  from { opacity: 0; transform: translateY(22px) scale(0.985); filter: blur(5px); }
  to { opacity: 1; transform: translateY(0) scale(1); filter: blur(0); }
}

@keyframes globalImageReveal {
  from { opacity: 0; transform: scale(0.98); filter: blur(8px) saturate(0.9); }
  to { opacity: 1; transform: scale(1); filter: blur(0) saturate(1); }
}

@keyframes globalModalEnter {
  from { opacity: 0; transform: translateY(16px) scale(0.985); filter: blur(5px); }
  to { opacity: 1; transform: translateY(0) scale(1); filter: blur(0); }
}

@keyframes globalFloatIn {
  from { opacity: 0; transform: translateY(12px) scale(0.94); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

@media (prefers-reduced-motion: reduce) {
  body.motion-prep:not(.site-ready) nav,
  body.motion-prep:not(.site-ready) #hero .hero-left,
  body.motion-prep:not(.site-ready) #hero .hero-right {
    opacity: 1;
  }

  body.site-ready nav,
  body.site-ready #hero .hero-left,
  body.site-ready #hero .hero-right,
  .reveal-stagger.visible > :not(.project-card),
  .img-reveal.img-visible,
  .pdf-modal.active .pdf-modal-content,
  .blog-modal.active .blog-modal-content,
  .gallery-modal.active .gallery-content,
  .back-to-top.visible {
    animation: none !important;
  }

  .reveal,
  .reveal-left,
  .reveal-right,
  .reveal-scale,
  .service-card,
  .price-card,
  .vm-card,
  .standard-item,
  .team-card,
  .timeline-card,
  .dossier-card,
  .feat,
  .contact-item,
  .calc-form,
  .calc-result {
    filter: none !important;
    transform: none !important;
  }
}

/* Navigation, blog modal, and PDF viewer polish */
nav {
  overflow: visible;
}

nav.nav-compact {
  padding-block: 10px;
  background: rgba(12, 12, 18, 0.92);
  box-shadow: 0 16px 45px rgba(0, 0, 0, 0.24);
}

nav.nav-compact .nav-logo-img {
  width: 42px;
  height: 42px;
}

.nav-scroll-progress {
  position: absolute;
  left: 0;
  bottom: -1px;
  z-index: 3;
  width: 0;
  height: 2px;
  pointer-events: none;
  background: linear-gradient(90deg, var(--rust), var(--accent), var(--rust-light));
  box-shadow: 0 0 16px rgba(232, 97, 74, 0.36);
  transition: width 120ms linear;
}

.nav-links a {
  border-radius: 6px;
}

.nav-links a:focus-visible,
.nav-cta:focus-visible,
.lang-btn:focus-visible,
.hamburger:focus-visible,
.pdf-modal-actions button:focus-visible,
.pdf-modal-close:focus-visible,
.blog-modal-close:focus-visible,
.blog-share-btn:focus-visible {
  outline: 2px solid var(--rust-light);
  outline-offset: 3px;
}

.nav-dropdown > a[aria-expanded="true"] {
  color: var(--rust-light);
}

.nav-dropdown > a[aria-expanded="true"]::after {
  transform: rotate(180deg);
}

.nav-submenu {
  overflow: hidden;
  border-radius: 8px;
  backdrop-filter: blur(18px) saturate(150%);
  -webkit-backdrop-filter: blur(18px) saturate(150%);
}

[data-theme="light"] nav.nav-compact {
  background: rgba(250, 248, 245, 0.94);
  box-shadow: 0 12px 36px rgba(40, 30, 24, 0.12);
}

[data-theme="light"] .nav-scroll-progress {
  box-shadow: 0 0 14px rgba(192, 64, 42, 0.24);
}

.blog-modal,
.pdf-modal {
  z-index: 10060;
}

.blog-modal {
  background:
    radial-gradient(circle at 18% 12%, rgba(232, 97, 74, 0.16), transparent 34%),
    rgba(5, 6, 9, 0.82);
  backdrop-filter: blur(18px) saturate(115%);
  -webkit-backdrop-filter: blur(18px) saturate(115%);
  opacity: 0;
  transition: opacity 260ms ease;
}

.blog-modal.active {
  opacity: 1;
}

.blog-modal-content {
  width: min(980px, calc(100vw - 32px));
  max-width: none;
  max-height: min(92dvh, 880px);
  display: grid;
  grid-template-rows: auto minmax(0, 1fr) auto;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  background-color: #111218;
  box-shadow: 0 28px 90px rgba(0, 0, 0, 0.48);
}

.blog-modal-content:focus {
  outline: none;
}

.blog-modal-content::before {
  background:
    linear-gradient(180deg, rgba(9, 10, 14, 0.7) 0%, rgba(9, 10, 14, 0.9) 44%, rgba(9, 10, 14, 0.98) 100%),
    rgba(9, 10, 14, 0.92);
}

.blog-modal-content.has-cover::before {
  background:
    linear-gradient(180deg, rgba(9, 10, 14, 0.52) 0%, rgba(9, 10, 14, 0.86) 42%, rgba(9, 10, 14, 0.98) 100%);
}

.blog-progress {
  height: 4px;
  background: linear-gradient(90deg, var(--rust), var(--accent), var(--rust-light));
  box-shadow: 0 0 18px rgba(232, 97, 74, 0.28);
}

.blog-modal-close {
  top: 18px;
  right: 18px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: rgba(255, 255, 255, 0.12);
}

.blog-modal-header {
  padding: 30px 78px 18px 38px;
  background: rgba(12, 13, 18, 0.66);
}

.blog-modal-title {
  margin: 0;
  font-size: clamp(1.32rem, 2.6vw, 2rem);
  letter-spacing: 0;
}

.blog-modal-body {
  min-height: 0;
  padding: 28px 42px 32px;
  background: rgba(12, 13, 18, 0.74);
  scrollbar-width: thin;
  scrollbar-color: rgba(232, 97, 74, 0.75) rgba(255, 255, 255, 0.08);
}

.blog-modal-body::-webkit-scrollbar {
  width: 9px;
}

.blog-modal-body::-webkit-scrollbar-track {
  background: rgba(255, 255, 255, 0.06);
}

.blog-modal-body::-webkit-scrollbar-thumb {
  background: rgba(232, 97, 74, 0.72);
  border-radius: 999px;
}

.blog-modal-footer {
  background: rgba(12, 13, 18, 0.88);
}

.blog-share {
  gap: 8px;
}

.blog-share-btn,
.blog-related-card {
  border: 1px solid rgba(255, 255, 255, 0.09);
}

.blog-share-btn:hover,
.blog-related-card:hover {
  transform: translateY(-2px);
}

.blog-related-card {
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.07);
}

.pdf-modal {
  background:
    radial-gradient(circle at 72% 18%, rgba(232, 97, 74, 0.12), transparent 34%),
    rgba(5, 6, 9, 0.8);
  backdrop-filter: blur(18px) saturate(115%);
  -webkit-backdrop-filter: blur(18px) saturate(115%);
}

.pdf-modal-content {
  max-width: min(1180px, calc(100vw - 32px));
  height: min(90dvh, 860px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  box-shadow: 0 30px 90px rgba(0, 0, 0, 0.5);
}

.pdf-modal-content:focus {
  outline: none;
}

.pdf-modal-header {
  min-height: 62px;
  background: rgba(18, 18, 25, 0.94);
  backdrop-filter: blur(16px) saturate(140%);
  -webkit-backdrop-filter: blur(16px) saturate(140%);
}

.pdf-modal-title {
  letter-spacing: 0;
}

.pdf-modal-actions button,
.pdf-modal-close {
  border-radius: 8px;
}

.pdf-modal-actions button:hover,
.pdf-modal-close:hover,
.pdf-error-btn:hover {
  transform: translateY(-1px);
}

.pdf-modal-body {
  background: #22252b;
}

.pdf-viewer-iframe {
  background: #fff;
}

.pdf-loading,
.pdf-error {
  background:
    linear-gradient(135deg, rgba(34, 37, 43, 0.96), rgba(20, 21, 27, 0.96));
}

[data-theme="light"] .blog-modal {
  background:
    radial-gradient(circle at 18% 12%, rgba(192, 64, 42, 0.14), transparent 34%),
    rgba(28, 22, 18, 0.28);
}

[data-theme="light"] .blog-modal-content,
[data-theme="light"] .pdf-modal-content {
  border-color: rgba(40, 30, 24, 0.12);
  box-shadow: 0 24px 70px rgba(40, 30, 24, 0.2);
}

[data-theme="light"] .pdf-modal-header {
  background: rgba(250, 248, 245, 0.94);
}

@media (max-width: 768px) {
  nav.nav-compact {
    padding-block: 9px;
  }

  .blog-modal-content {
    width: 100%;
    max-height: 94dvh;
    border-radius: 8px 8px 0 0;
  }

  .blog-modal-header {
    padding: 22px 58px 14px 20px;
  }

  .blog-modal-body {
    padding: 18px 20px 24px;
  }

  .blog-related-grid {
    grid-template-columns: 1fr;
  }

  .pdf-modal-content {
    max-width: calc(100% - 16px);
    height: 88dvh;
    border-radius: 8px 8px 0 0;
  }
}

@media (max-width: 480px) {
  .blog-modal-content,
  .pdf-modal-content {
    max-width: 100%;
    border-radius: 0;
  }

  .blog-modal-header {
    padding: 18px 48px 12px 16px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .nav-scroll-progress {
    transition: none;
  }

  .blog-modal,
  .pdf-modal {
    transition: none;
  }
}

/* Mobile rendering pass */
@media (max-width: 900px) {
  html {
    scroll-padding-top: 72px;
  }

  body {
    overflow-x: hidden;
  }

  body.mobile-nav-open {
    overflow: hidden;
    overscroll-behavior: none;
  }

  section,
  #vision-mission,
  #team,
  #newsletter,
  #dossiers {
    padding-left: clamp(16px, 5vw, 28px);
    padding-right: clamp(16px, 5vw, 28px);
  }

  .container {
    padding-left: clamp(16px, 5vw, 28px);
    padding-right: clamp(16px, 5vw, 28px);
  }

  .section-header,
  .calculator-header {
    margin-bottom: 32px;
  }

  .section-tag {
    gap: 8px;
    font-size: 0.68rem;
    letter-spacing: 0.14em;
    margin-bottom: 12px;
  }

  .section-tag::before {
    width: 20px;
  }

  .section-lead {
    max-width: 100%;
    font-size: 0.96rem;
    line-height: 1.65;
  }

  nav {
    min-height: 64px;
    padding: 10px 16px;
  }

  nav.nav-compact {
    padding-block: 8px;
  }

  .nav-logo {
    max-width: calc(100vw - 84px);
    min-width: 0;
    gap: 9px;
    overflow: hidden;
    white-space: nowrap;
    font-size: clamp(0.92rem, 4vw, 1.12rem);
    letter-spacing: 0.02em;
  }

  .nav-logo-img,
  nav.nav-compact .nav-logo-img {
    width: 38px;
    height: 38px;
  }

  .hamburger {
    display: flex;
    width: 44px;
    height: 44px;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--border-light);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.05);
  }

  .hamburger span {
    width: 22px;
  }

  .nav-links {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    z-index: 100;
    flex-direction: column;
    align-items: stretch;
    padding: 14px 16px;
    gap: 8px;
    background: rgba(11, 11, 14, 0.97);
    border-top: 1px solid rgba(255, 255, 255, 0.06);
    border-bottom: 0;
    box-shadow: 0 28px 70px rgba(0, 0, 0, 0.34);
    overscroll-behavior: contain;
    touch-action: pan-y;
    max-height: 90vh;
    overflow-y: auto;
  }

  .nav-links.active,
  .nav-links.closing {
    display: flex;
  }

  .nav-links.active > li {
    animation: mobileLinkSlide 0.35s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
  }
  .nav-links.active > li:nth-child(1) { animation-delay: 0.02s; }
  .nav-links.active > li:nth-child(2) { animation-delay: 0.04s; }
  .nav-links.active > li:nth-child(3) { animation-delay: 0.06s; }
  .nav-links.active > li:nth-child(4) { animation-delay: 0.08s; }
  .nav-links.active > li:nth-child(5) { animation-delay: 0.10s; }
  .nav-links.active > li:nth-child(6) { animation-delay: 0.12s; }
  .nav-links.active > li:nth-child(7) { animation-delay: 0.14s; }
  .nav-links.closing > li { opacity: 1; }

  .nav-links > li {
    width: 100%;
  }

  .nav-links a {
    display: block;
    min-height: 44px;
    padding: 12px 14px;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.045);
    font-size: 0.82rem;
    letter-spacing: 0.08em;
    cursor: pointer;
  }

  .nav-links a.active {
    border-left: 0;
    padding-left: 14px;
    background: rgba(192, 64, 42, 0.16);
  }

  .nav-submenu {
    position: static;
    display: none;
    min-width: 0;
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: none;
    margin: 6px 0 4px;
    padding: 6px;
    background: rgba(255, 255, 255, 0.045);
    border: 0;
    border-radius: 8px;
    box-shadow: none;
  }

  .nav-submenu::before {
    display: none;
  }

  .nav-dropdown.active .nav-submenu {
    display: block;
    transform: none;
  }

  .nav-submenu a {
    min-height: 42px;
    padding: 10px 12px 10px 26px;
    background: transparent;
  }

  .nav-lang-selector {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    width: 100%;
    gap: 6px;
    margin: 4px 0;
    padding: 0;
  }

  .lang-btn {
    width: 100%;
    min-height: 42px;
    border-radius: 8px;
  }

  .theme-switch-wrapper {
    justify-content: flex-start;
    padding: 8px 0;
  }

  .nav-cta {
    width: 100%;
    min-height: 50px;
    margin-top: 4px;
  }

  #hero {
    min-height: auto;
    grid-template-columns: 1fr;
  }

  .hero-left {
    min-height: min(720px, 100svh);
    padding: 94px 20px 36px;
    justify-content: center;
  }

  .hero-tag {
    gap: 8px;
    margin-bottom: 18px;
    font-size: 0.64rem;
    letter-spacing: 0.14em;
  }

  h1 {
    margin-bottom: 18px;
    font-size: clamp(2.35rem, 12vw, 4rem);
    line-height: 0.98;
  }

  .hero-sub {
    max-width: 100%;
    margin-bottom: 28px;
    font-size: 0.96rem;
    line-height: 1.6;
  }

  .hero-btns {
    display: grid;
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .btn-primary,
  .btn-outline,
  .price-cta,
  .form-submit,
  .newsletter-btn {
    width: 100%;
    min-height: 50px;
    padding: 14px 18px;
    font-size: 0.76rem;
    letter-spacing: 0.06em;
  }

  .hero-stats {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
    margin-top: 30px;
    padding-top: 22px;
  }

  .hero-stats > div {
    min-width: 0;
    padding: 14px;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.055);
  }

  .stat-val {
    font-size: clamp(1.7rem, 8vw, 2.4rem);
  }

  .stat-label {
    font-size: 0.6rem;
    letter-spacing: 0.08em;
    overflow-wrap: anywhere;
  }

  .hero-right {
    height: clamp(220px, 62vw, 360px);
  }

  .hero-overlay {
    background: linear-gradient(to bottom, rgba(0, 0, 0, 0.24), transparent 42%, rgba(0, 0, 0, 0.18));
  }

  .hero-badge {
    right: 16px;
    bottom: 16px;
    max-width: calc(100% - 32px);
    padding: 12px 14px;
  }

  .hero-badge-year {
    font-size: 1.45rem;
  }

  .hero-badge-label {
    font-size: 0.56rem;
    letter-spacing: 0.1em;
  }

  #about {
    gap: 28px;
  }

  #about > .about-image-wrap {
    order: 2;
  }

  #about > .reveal:not(.about-image-wrap) {
    order: 1;
  }

  .about-img {
    aspect-ratio: 16 / 11;
  }

  .about-img-accent {
    right: 12px;
    bottom: -12px;
    width: 38%;
    border-width: 3px;
  }

  .about-features {
    margin-top: 26px;
    gap: 12px;
  }

  .feat {
    padding: 16px;
    border-left-width: 0;
    border-top: 3px solid var(--rust);
    border-radius: 8px;
  }

  .feat-icon {
    width: 36px;
    height: 36px;
    font-size: 0.82rem;
  }

  .vision-mission-grid,
  .standards-grid,
  .services-grid,
  .projects-grid,
  .team-grid,
  .pricing-grid,
  .map-locations {
    gap: 16px;
  }

  .vm-card,
  .service-card,
  .team-card,
  .price-card {
    padding: 24px 18px;
    border-radius: 8px;
  }

  .vm-text {
    font-size: 1.08rem;
    line-height: 1.55;
  }

  .standard-item {
    gap: 16px;
    padding: 16px;
    border: 1px solid var(--border-light);
    border-radius: 8px;
    background: var(--bg-card);
  }

  .standard-icon {
    width: 48px;
    height: 48px;
  }

  .service-num {
    font-size: 2.2rem;
  }

  .service-title {
    font-size: 1.12rem;
  }

  .service-desc {
    font-size: 0.86rem;
  }

  .pricing-tabs {
    display: grid;
    grid-auto-flow: column;
    grid-auto-columns: minmax(132px, 1fr);
    gap: 8px;
    overflow-x: auto;
    padding-bottom: 6px;
    border-bottom: 0;
    scroll-snap-type: x proximity;
    -webkit-overflow-scrolling: touch;
  }

  .tab-btn {
    min-height: 44px;
    padding: 10px 14px;
    border: 1px solid var(--border-light);
    border-radius: 8px;
    background: var(--bg-card);
    scroll-snap-align: start;
  }

  .tab-btn.active {
    background: rgba(192, 64, 42, 0.12);
  }

  .price-card {
    min-width: 0;
  }

  .price-main,
  .price-foreign {
    flex-wrap: wrap;
  }

  .price-num {
    font-size: 2rem;
  }

  .pricing-footer {
    padding: 18px;
    border-left: 0;
    border-top: 3px solid var(--rust);
    border-radius: 8px;
  }

  .project-card {
    border-radius: 8px;
  }

  .project-img {
    aspect-ratio: 4 / 3;
  }

  .project-overlay {
    padding: 16px;
    background: linear-gradient(to top, rgba(13, 13, 13, 0.9) 0%, rgba(13, 13, 13, 0.12) 74%);
  }

  .project-name {
    font-size: 1.05rem;
  }

  .dossiers-grid {
    margin-right: calc(-1 * clamp(16px, 5vw, 28px));
    margin-left: calc(-1 * clamp(16px, 5vw, 28px));
    padding-right: clamp(16px, 5vw, 28px);
    padding-left: clamp(16px, 5vw, 28px);
    scroll-padding-inline: clamp(16px, 5vw, 28px);
  }

  .dossier-card {
    flex: 0 0 min(84vw, 330px);
    padding: 20px 16px;
    border-radius: 8px;
  }

  .dossier-download-btn {
    width: 40px;
    height: 40px;
  }

  .timeline-entry {
    margin-bottom: 18px;
  }

  .timeline-card {
    border-radius: 8px;
  }

  .timeline-img-wrap {
    min-height: auto;
    aspect-ratio: 16 / 10;
  }

  .timeline-body {
    padding: 18px;
  }

  .timeline-meta {
    flex-wrap: wrap;
    gap: 6px 10px;
  }

  .timeline-title {
    font-size: 1.05rem;
  }

  #contact {
    gap: 28px;
  }

  .contact-info {
    gap: 14px;
    margin-top: 30px;
  }

  .contact-item {
    gap: 12px;
    padding: 14px;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.045);
  }

  .contact-icon {
    width: 40px;
    height: 40px;
  }

  .contact-val {
    overflow-wrap: anywhere;
  }

  .contact-form {
    margin-top: 0;
    padding: 22px 16px;
    border-radius: 8px;
  }

  .form-input,
  .form-select,
  .form-textarea,
  .newsletter-input {
    min-height: 50px;
    font-size: 16px;
  }

  .budget-row {
    flex-direction: column;
  }

  .budget-currency-select {
    width: 100%;
  }

  .map-container {
    min-height: 260px;
  }

  .newsletter-container {
    max-width: 100%;
  }

  .newsletter-form,
  .newsletter-input-wrap {
    width: 100%;
  }

  footer {
    gap: 16px;
  }

  .footer-copy {
    max-width: 32rem;
    line-height: 1.6;
  }

  .footer-links {
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px 16px;
  }

  .blog-modal,
  .pdf-modal {
    align-items: flex-end;
    padding: 0;
  }

  .blog-modal-content,
  .pdf-modal-content {
    width: 100%;
    max-width: 100%;
    border-radius: 8px 8px 0 0;
  }

  .blog-modal-content {
    max-height: 92svh;
  }

  .blog-modal-header {
    padding: 20px 58px 14px 18px;
  }

  .blog-modal-body {
    padding: 18px;
    font-size: 0.94rem;
  }

  .blog-share {
    flex-wrap: wrap;
    padding: 12px 18px;
  }

  .blog-share-label {
    width: 100%;
    margin-right: 0;
  }

  .blog-related {
    padding: 0 18px 18px;
  }

  .pdf-modal-content {
    height: 92svh;
  }

  .pdf-modal-header {
    min-height: 58px;
    gap: 8px;
    padding: 14px 10px 12px 14px;
  }

  .pdf-modal-title-wrap {
    min-width: 0;
  }

  .pdf-modal-actions {
    gap: 4px;
  }

  .pdf-modal-actions button {
    min-width: 40px;
    padding: 8px;
  }

  .pdf-modal-actions button span {
    display: none;
  }
}

@media (max-width: 480px) {
  section,
  #vision-mission,
  #team,
  #newsletter,
  #dossiers {
    padding-left: 14px;
    padding-right: 14px;
  }

  .nav-logo span {
    display: none;
  }

  .nav-links {
    padding-right: 14px;
    padding-left: 14px;
  }

  .hero-left {
    min-height: min(680px, 100svh);
    padding: 86px 14px 28px;
  }

  h1 {
    font-size: clamp(2.05rem, 13vw, 3.15rem);
  }

  .hero-stats {
    gap: 10px;
  }

  .hero-stats > div {
    padding: 12px 10px;
  }

  .stat-label {
    font-size: 0.56rem;
  }

  .about-img {
    aspect-ratio: 4 / 3;
  }

  .standard-item {
    flex-direction: column;
  }

  .dossier-card {
    flex-basis: 86vw;
  }

  .timeline-img-wrap {
    aspect-ratio: 16 / 11;
  }

  .blog-modal-content,
  .pdf-modal-content {
    border-radius: 0;
  }

  .blog-related-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-height: 520px) and (orientation: landscape) {
  .nav-links {
    top: 56px;
    padding-top: 10px;
  }

  .hero-left {
    min-height: auto;
    padding-top: 72px;
  }

  .hero-stats {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  .hero-right {
    height: 180px;
  }
}

/* Hero refinement: stronger hierarchy, depth and responsive composition */
#hero {
  isolation: isolate;
  min-height: max(720px, 100svh);
  grid-template-columns: 1fr;
  background: #0d0d0d;
}

#hero::before {
  display: none;
}

.hero-left {
  z-index: 2;
  width: min(940px, 72vw);
  padding: clamp(120px, 13vh, 164px) clamp(42px, 5vw, 82px) clamp(52px, 7vh, 84px) clamp(42px, 6vw, 104px);
}

.hero-left-bg {
  background-position: 62% center;
  background-size: cover;
  visibility: visible;
  opacity: 0;
}

.hero-left-bg::after {
  display: none;
}

.hero-tag {
  width: fit-content;
  margin-bottom: clamp(20px, 3vh, 32px);
  padding: 9px 13px;
  border: 1px solid color-mix(in srgb, var(--rust) 28%, transparent);
  border-radius: 999px;
  color: #f08b76;
  background: rgba(15, 15, 15, 0.48);
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.16);
  backdrop-filter: blur(10px);
}

.hero-tag::before {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  box-shadow: 0 0 0 4px color-mix(in srgb, var(--rust-light) 15%, transparent);
}

#hero h1 {
  max-width: 720px;
  margin-bottom: clamp(22px, 3vh, 32px);
  padding: clamp(14px, 1.8vw, 24px) clamp(16px, 2.2vw, 30px);
  border-left: 4px solid color-mix(in srgb, var(--rust-light) 82%, transparent);
  border-radius: 0 10px 10px 0;
  color: #fff;
  background: linear-gradient(105deg, rgba(12, 12, 12, 0.72), rgba(12, 12, 12, 0.3));
  box-shadow: 0 18px 55px rgba(0, 0, 0, 0.22);
  backdrop-filter: blur(10px);
  font-size: clamp(3.6rem, 6.2vw, 7.15rem);
  line-height: 0.88;
  letter-spacing: -0.055em;
  text-wrap: balance;
}

#hero h1 em {
  position: relative;
  display: inline-block;
  color: var(--rust-light);
}

#hero h1 em::after {
  content: "";
  position: absolute;
  right: 2%;
  bottom: -8px;
  left: 3%;
  height: 5px;
  border-radius: 50%;
  background: linear-gradient(90deg, var(--rust), var(--accent));
  opacity: 0.6;
  transform: rotate(-1.5deg);
}

#hero .hero-sub {
  max-width: 600px;
  margin-bottom: clamp(28px, 4vh, 42px);
  padding-left: 18px;
  border-left: 2px solid color-mix(in srgb, var(--rust) 65%, transparent);
  font-size: clamp(0.98rem, 1.1vw, 1.08rem);
  color: rgba(255, 255, 255, 0.78);
}

.hero-btns {
  gap: 12px;
}

#hero .btn-primary,
#hero .btn-outline {
  min-height: 54px;
  padding: 16px 23px;
  gap: 18px;
  border-radius: 3px;
}

#hero .btn-primary::after,
#hero .btn-outline::after {
  display: inline-grid;
  width: 24px;
  height: 24px;
  place-items: center;
  border-radius: 50%;
  font-size: 1rem;
  line-height: 1;
  transition: transform var(--motion-fast) var(--motion-ease-out);
}

#hero .btn-primary::after {
  content: "\2197";
  background: rgba(255, 255, 255, 0.15);
}

#hero .btn-outline::after {
  content: "\2192";
  background: color-mix(in srgb, var(--rust) 10%, transparent);
}

#hero .btn-primary:hover::after,
#hero .btn-outline:hover::after {
  transform: translate(2px, -1px);
}

.hero-stats {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  width: min(100%, 760px);
  gap: 0;
  margin-top: clamp(36px, 6vh, 64px);
  padding: 0;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 8px;
  background: rgba(12, 12, 12, 0.5);
  box-shadow: 0 16px 50px rgba(0, 0, 0, 0.18);
  backdrop-filter: blur(12px);
}

.hero-stats > div {
  min-width: 0;
  padding: clamp(16px, 2vw, 24px) clamp(12px, 1.5vw, 20px);
}

.hero-stats > div + div {
  border-left: 1px solid rgba(255, 255, 255, 0.14);
}

.hero-scroll-cue {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  margin-top: 24px;
  color: rgba(255,255,255,0.62);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  text-decoration: none;
  transition: color 0.25s ease, transform 0.25s ease;
}

.hero-scroll-cue:hover,
.hero-scroll-cue:focus-visible {
  color: #fff;
  transform: translateX(3px);
}

.hero-scroll-cue-line {
  position: relative;
  display: inline-block;
  width: 42px;
  height: 1px;
  overflow: hidden;
  background: rgba(255,255,255,0.26);
}

.hero-scroll-cue-line::after {
  content: '';
  position: absolute;
  inset: 0;
  width: 16px;
  background: var(--rust-light);
  animation: heroCueSweep 2.2s ease-in-out infinite;
}

@keyframes heroCueSweep {
  0%, 100% { transform: translateX(-18px); opacity: 0.35; }
  50% { transform: translateX(42px); opacity: 1; }
}

#hero .stat-val {
  font-size: clamp(1.75rem, 2.5vw, 2.45rem);
  color: #fff;
}

#hero .stat-label {
  max-width: 16ch;
  line-height: 1.35;
  color: rgba(255, 255, 255, 0.58);
}

.hero-right {
  position: absolute;
  inset: 0;
  z-index: 0;
  width: 100%;
  height: 100%;
  margin: 0;
  overflow: hidden;
  border-radius: 0;
  box-shadow: none;
  isolation: isolate;
}

.hero-media {
  position: absolute;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  background: #111;
}

.hero-slide {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  visibility: hidden;
  object-fit: cover;
  transform: scale(1.055);
  transition:
    opacity 1.15s ease,
    visibility 1.15s ease,
    transform 7s ease;
}

.hero-slide.is-active {
  opacity: 1;
  visibility: visible;
  transform: scale(1.015);
}

.hero-right::after {
  content: "";
  position: absolute;
  inset: 22px;
  z-index: 3;
  pointer-events: none;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 2px;
}

.hero-img {
  object-position: 68% center;
  transform: scale(1.035);
}


.presentation-video-section {
  box-sizing: border-box;
  width: 100%;
  max-width: 100%;
  padding: clamp(30px, 5vw, 72px) clamp(12px, 4vw, 32px);
  overflow-x: hidden;
  background: var(--bg-secondary);
}

.presentation-video-wrap {
  box-sizing: border-box;
  width: min(100%, 1180px);
  aspect-ratio: 16 / 9;
  max-width: 100%;
  min-width: 0;
  margin: 0 auto;
  overflow: hidden;
  border: 1px solid color-mix(in srgb, var(--rust) 22%, var(--border-light));
  border-radius: 8px;
  background: #111;
  box-shadow: 0 20px 50px rgba(18, 12, 10, 0.16), 0 0 0 8px color-mix(in srgb, var(--rust) 6%, transparent);
}

.presentation-video {
  display: block;
  width: 100%;
  max-width: 100%;
  height: 100%;
  max-height: none;
  min-width: 0;
  inline-size: 100%;
  block-size: auto;
  object-fit: cover;
  border: 0;
  background: #111;
}

.presentation-video-cta {
  display: flex;
  justify-content: center;
  padding: 24px 16px;
  background: var(--bg-secondary);
}

.presentation-video-link {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: clamp(12px, 2vw, 24px);
  width: fit-content;
  max-width: calc(100% - 32px);
  height: auto;
  margin: auto;
  padding: 14px 20px;
  border: 1px solid rgba(255, 244, 223, 0.32);
  border-radius: 6px;
  background: rgba(20, 18, 15, 0.76);
  box-shadow: 0 12px 28px rgba(0,0,0,0.24);
  color: #fff4df;
  text-decoration: none;
  background:
    linear-gradient(135deg, rgba(26, 20, 15, 0.96), rgba(88, 48, 22, 0.82)),
    url('/images/hero/palas-ramena-photo.jpg') center / cover;
  transition: filter 0.25s ease, transform 0.25s ease;
}
.presentation-video-link:hover,
.presentation-video-link:focus-visible {
  filter: brightness(1.12);
}
.presentation-video-link-icon {
  display: grid;
  flex: 0 0 auto;
  place-items: center;
  width: 44px;
  height: 44px;
  padding-left: 4px;
  border: 1px solid rgba(255, 244, 223, 0.7);
  border-radius: 50%;
  color: #fff;
  font-size: 1rem;
  background: rgba(192, 120, 35, 0.85);
  box-shadow: 0 12px 30px rgba(0,0,0,0.3);
}
.presentation-video-link-text {
  max-width: 360px;
  font-family: var(--font-heading, Georgia, 'Times New Roman', serif);
  font-size: clamp(0.88rem, 1.8vw, 1.1rem);
  line-height: 1.3;
}
.presentation-video-link-arrow {
  flex: 0 0 auto;
  color: #e7b66b;
  font-size: 1.15rem;
}

@media (max-width: 520px) {
  .presentation-video-section {
    width: 100%;
    max-width: 100%;
    overflow-x: hidden;
    padding-right: 12px;
    padding-left: 12px;
  }

  .presentation-video-wrap {
    width: 100%;
    max-width: 100%;
    min-width: 0;
    aspect-ratio: 16 / 9;
  }

  .presentation-video {
    width: 100%;
    max-width: 100%;
    height: 100% !important;
    inline-size: 100%;
    block-size: 100%;
  }

  .presentation-video-link {
    max-width: calc(100% - 24px);
    padding: 11px 14px;
    gap: 12px;
  }
  .presentation-video-link-icon { width: 38px; height: 38px; font-size: 0.9rem; }
  .presentation-video-link-text { font-size: 0.86rem; }
}

#hero .hero-overlay,
[data-theme="light"] #hero .hero-overlay,
[data-theme="dark"] #hero .hero-overlay {
  z-index: 2;
  background:
    radial-gradient(circle at 78% 38%, rgba(232, 97, 74, 0.16), transparent 25%),
    linear-gradient(90deg, rgba(8, 8, 8, 0.95) 0%, rgba(8, 8, 8, 0.84) 38%, rgba(8, 8, 8, 0.43) 68%, rgba(8, 8, 8, 0.2) 100%),
    linear-gradient(0deg, rgba(8, 8, 8, 0.7) 0%, transparent 44%);
}

.hero-slider-nav {
  position: absolute;
  top: 50%;
  right: 34px;
  z-index: 4;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 9px;
  padding: 12px 9px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 999px;
  background: rgba(8, 8, 8, 0.34);
  box-shadow: 0 12px 35px rgba(0, 0, 0, 0.22);
  backdrop-filter: blur(10px);
  transform: translateY(-50%);
}

.hero-slider-dot {
  width: 7px;
  height: 7px;
  padding: 0;
  border: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.46);
  cursor: pointer;
  transition: height 260ms ease, background-color 260ms ease, box-shadow 260ms ease;
}

.hero-slider-dot:hover,
.hero-slider-dot:focus-visible {
  background: #fff;
  outline: 2px solid rgba(240, 139, 118, 0.55);
  outline-offset: 3px;
}

.hero-slider-dot.is-active {
  height: 28px;
  background: var(--rust-light);
  box-shadow: 0 0 16px rgba(232, 97, 74, 0.65);
}

.hero-badge {
  z-index: 20;
  right: clamp(28px, 5vw, 72px);
  bottom: clamp(28px, 5vh, 52px);
  min-width: 152px;
  padding: 18px 22px;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 4px;
  background: color-mix(in srgb, var(--rust-dark) 88%, transparent);
  box-shadow: 0 18px 42px rgba(18, 12, 10, 0.28);
  backdrop-filter: blur(12px);
  pointer-events: none;
}

.hero-badge-year {
  font-size: 2.25rem;
}

[data-theme="dark"] #hero {
  background: #0d0d0d;
}

[data-theme="light"] #hero {
  background: #0d0d0d;
}

[data-theme="light"] #hero .hero-stats {
  border-color: rgba(255, 255, 255, 0.16);
}

[data-theme="light"] #hero .btn-outline {
  border-color: rgba(255, 255, 255, 0.36);
  color: rgba(255, 255, 255, 0.9);
}

[data-theme="light"] #hero .btn-outline:hover {
  border-color: #f08b76;
  color: #f08b76;
  background: rgba(192, 64, 42, 0.16);
}

[data-theme="dark"] .hero-left-bg::after {
  background:
    linear-gradient(90deg, var(--bg-primary) 5%, rgba(13, 13, 13, 0.88) 52%, var(--bg-primary) 100%),
    linear-gradient(0deg, var(--bg-primary), transparent 42%);
}

@media (max-width: 1180px) and (min-width: 901px) {
  #hero {
    grid-template-columns: 1fr;
  }

  .hero-left {
    width: min(850px, 76vw);
    padding-right: 36px;
    padding-left: 48px;
  }

  #hero h1 {
    font-size: clamp(3.6rem, 6vw, 5.2rem);
  }

  .hero-stats > div {
    padding-inline: 12px;
  }
}

@media (max-width: 900px) {
  #hero {
    min-height: auto;
    grid-template-columns: 1fr;
    background: #0d0d0d;
  }

  #hero::before {
    display: none;
  }

  .hero-left {
    width: 100%;
    min-height: min(760px, 100svh);
    padding: 104px clamp(18px, 5vw, 40px) 42px;
  }

  #hero .hero-overlay,
  [data-theme="light"] #hero .hero-overlay,
  [data-theme="dark"] #hero .hero-overlay {
    background:
      linear-gradient(180deg, rgba(8, 8, 8, 0.88) 0%, rgba(8, 8, 8, 0.64) 58%, rgba(8, 8, 8, 0.82) 100%),
      radial-gradient(circle at 72% 30%, rgba(232, 97, 74, 0.16), transparent 32%);
  }

  #hero h1 {
    max-width: 680px;
    padding: clamp(12px, 3vw, 22px);
    font-size: clamp(3rem, 12vw, 5.8rem);
    line-height: 0.9;
  }

  .hero-sub {
    max-width: 620px;
  }

  .hero-stats {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    width: 100%;
    margin-top: 32px;
  }

  .hero-stats > div {
    padding: 16px;
    background: transparent;
  }

  .hero-stats > div:nth-child(3) {
    border-left: 0;
  }

  .hero-stats > div:nth-child(n + 3) {
    border-top: 1px solid var(--border-light);
  }

  .hero-right {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    margin: 0;
    border-radius: 0;
  }

  .hero-right::after {
    inset: 12px;
    border-radius: 2px;
  }

  .hero-img {
    object-position: 60% center;
  }

  .hero-video {
    object-position: center center;
  }

  .hero-slider-nav {
    top: auto;
    right: auto;
    bottom: 20px;
    left: 50%;
    flex-direction: row;
    padding: 9px 12px;
    transform: translateX(-50%);
  }

  .hero-slider-dot.is-active {
    width: 28px;
    height: 7px;
  }
}

@media (max-width: 520px) {
  .hero-left {
    min-height: auto;
    padding: 92px 14px 30px;
  }

  .hero-tag {
    max-width: 100%;
    margin-bottom: 20px;
    padding: 8px 11px;
    font-size: 0.59rem;
    letter-spacing: 0.1em;
  }

  #hero h1 {
    margin-bottom: 22px;
    padding: 12px 14px;
    border-left-width: 3px;
    border-radius: 0 7px 7px 0;
    font-size: clamp(2.7rem, 14vw, 4.2rem);
  }

  #hero h1 em::after {
    bottom: -5px;
    height: 3px;
  }

  .hero-sub {
    margin-bottom: 26px;
    padding-left: 13px;
    font-size: 0.9rem;
    line-height: 1.58;
  }

  #hero .btn-primary,
  #hero .btn-outline {
    justify-content: space-between;
    width: 100%;
  }

  .hero-stats {
    margin-top: 26px;
  }

  .hero-scroll-cue {
    margin-top: 20px;
    font-size: 0.6rem;
  }

  .hero-stats > div {
    padding: 14px 11px;
  }

  .stat-val {
    font-size: 1.75rem;
  }

  .hero-right {
    height: 100%;
    margin: 0;
    border-radius: 0;
  }

  .hero-right::after {
    inset: 8px;
    border-radius: 2px;
  }

  .hero-badge {
    right: 18px;
    bottom: 18px;
    min-width: 126px;
    padding: 13px 15px;
  }

  .hero-slider-nav {
    bottom: 12px;
  }
}

@media (max-height: 520px) and (orientation: landscape) {
  .hero-left {
    min-height: auto;
    padding-top: 78px;
  }

  .hero-right {
    height: 100%;
  }
}

@media (prefers-reduced-motion: reduce) {
  .hero-left-bg,
  .hero-slide,
  .hero-img,
  #hero .btn-primary::after,
  #hero .btn-outline::after {
    transition: none;
  }
}

/* Premium interface pass: visual rhythm, trust and conversion */
/* Archived after reverting to the previous site-wide design. */
@media not all {
:root {
  --premium-radius: 14px;
  --premium-border: color-mix(in srgb, var(--rust) 18%, var(--border-light));
  --premium-shadow: 0 24px 70px rgba(24, 16, 12, 0.11);
}

body {
  background: var(--bg-primary);
}

section:not(#hero):not(.trust-strip) {
  position: relative;
  overflow: hidden;
}

section:not(#hero):not(.trust-strip) > .container,
.calculator-container,
.newsletter-container {
  position: relative;
  z-index: 1;
}

section:not(#hero):not(.trust-strip) h2 {
  max-width: 900px;
  margin-bottom: 24px;
  font-size: clamp(2.5rem, 4.7vw, 5.25rem);
  line-height: 0.98;
  letter-spacing: -0.045em;
  text-wrap: balance;
}

section:not(#hero):not(.trust-strip) .section-lead {
  max-width: 680px;
  font-size: clamp(1rem, 1.25vw, 1.12rem);
}

section:not(#hero):not(.trust-strip) .section-tag {
  width: fit-content;
  margin-bottom: 20px;
  padding: 7px 11px;
  border: 1px solid color-mix(in srgb, var(--rust) 24%, transparent);
  border-radius: 999px;
  background: color-mix(in srgb, var(--bg-card) 72%, transparent);
  box-shadow: 0 8px 28px rgba(24, 16, 12, 0.05);
  backdrop-filter: blur(8px);
}

section:not(#hero):not(.trust-strip) .section-tag::before {
  width: 7px;
  height: 7px;
  border-radius: 50%;
}

/* Immediate proof points below the opening visual */
.trust-strip {
  position: relative;
  z-index: 5;
  display: grid;
  grid-template-columns: minmax(230px, 0.8fr) minmax(0, 2.2fr);
  align-items: stretch;
  gap: 0;
  max-width: 1320px;
  min-height: 118px;
  margin: -36px auto 0;
  padding: 0;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--premium-radius);
  background: rgba(18, 15, 13, 0.93);
  box-shadow: 0 28px 85px rgba(8, 6, 5, 0.3);
  color: #fff;
  backdrop-filter: blur(18px);
}

.trust-intro {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 24px 30px;
  background: linear-gradient(135deg, var(--rust-dark), var(--rust));
}

.trust-kicker {
  margin-bottom: 8px;
  color: rgba(255, 255, 255, 0.6);
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.28em;
}

.trust-intro p {
  max-width: 22ch;
  font-family: var(--font-heading);
  font-size: clamp(1.15rem, 1.5vw, 1.45rem);
  font-weight: 650;
  line-height: 1.22;
}

.trust-items {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.trust-item {
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-width: 0;
  padding: 24px clamp(16px, 2vw, 28px);
  border-left: 1px solid rgba(255, 255, 255, 0.1);
  transition: background-color 300ms ease, transform 300ms var(--motion-ease-soft);
}

.trust-item:hover {
  background: rgba(232, 97, 74, 0.1);
  transform: translateY(-3px);
}

.trust-item span {
  margin-bottom: 10px;
  color: var(--rust-light);
  font-family: var(--font-heading);
  font-size: 0.72rem;
  letter-spacing: 0.12em;
}

.trust-item strong {
  color: rgba(255, 255, 255, 0.88);
  font-size: 0.78rem;
  font-weight: 600;
  line-height: 1.4;
  letter-spacing: 0.055em;
  text-transform: uppercase;
}

/* About: editorial image composition and clearer benefit cards */
#about {
  padding-top: clamp(120px, 12vw, 170px);
  background:
    radial-gradient(circle at 8% 16%, rgba(184, 91, 69, 0.1), transparent 28%),
    var(--bg-primary);
}

.about-image-wrap {
  isolation: isolate;
}

.about-image-wrap::before {
  content: "";
  position: absolute;
  top: -22px;
  right: 36px;
  bottom: 28px;
  left: -22px;
  z-index: -1;
  border: 1px solid color-mix(in srgb, var(--rust) 30%, transparent);
  border-radius: var(--premium-radius);
}

.about-img {
  border-radius: var(--premium-radius);
  box-shadow: var(--premium-shadow);
}

.about-img-accent {
  border-radius: 10px;
  box-shadow: 0 20px 55px rgba(18, 12, 10, 0.25);
}

.feat {
  padding: 19px 20px;
  border: 1px solid var(--premium-border);
  border-left: 3px solid var(--rust);
  border-radius: 10px;
  background: color-mix(in srgb, var(--bg-card) 88%, transparent);
  box-shadow: 0 12px 36px rgba(24, 16, 12, 0.06);
}

.feat-icon {
  background: linear-gradient(145deg, var(--rust), var(--rust-light));
  box-shadow: 0 9px 24px rgba(158, 70, 51, 0.22);
}

/* Vision, standards and services share a more confident card language */
#vision-mission,
#values {
  background:
    linear-gradient(135deg, color-mix(in srgb, var(--bg-secondary) 92%, var(--rust) 8%), var(--bg-primary));
}

.vm-card {
  position: relative;
  overflow: hidden;
  border: 1px solid var(--premium-border);
  border-left: 4px solid var(--rust);
  border-radius: var(--premium-radius);
  box-shadow: 0 18px 50px rgba(24, 16, 12, 0.07);
}

.vm-card::before {
  content: "“";
  position: absolute;
  top: -28px;
  right: 16px;
  color: color-mix(in srgb, var(--rust) 12%, transparent);
  font-family: Georgia, serif;
  font-size: 10rem;
  line-height: 1;
  pointer-events: none;
}

#technical-standards {
  background:
    radial-gradient(circle at 92% 12%, rgba(184, 91, 69, 0.09), transparent 24%),
    var(--bg-primary);
}

.standards-grid {
  gap: 18px;
}

.standard-item {
  padding: 26px;
  border: 1px solid var(--premium-border);
  border-radius: var(--premium-radius);
  background: color-mix(in srgb, var(--bg-card) 92%, transparent);
  box-shadow: 0 14px 42px rgba(24, 16, 12, 0.06);
}

.standard-icon {
  overflow: hidden;
  border: 0;
  border-radius: 10px;
  background: color-mix(in srgb, var(--rust) 10%, var(--bg-card));
}

#services {
  background:
    linear-gradient(180deg, color-mix(in srgb, var(--bg-secondary) 94%, var(--rust) 6%), var(--bg-secondary));
}

.services-grid {
  gap: 18px;
}

.service-card {
  isolation: isolate;
  overflow: hidden;
  min-height: 310px;
  padding: 34px 30px;
  border: 1px solid var(--premium-border);
  border-top: 3px solid transparent;
  border-radius: var(--premium-radius);
  box-shadow: 0 16px 44px rgba(24, 16, 12, 0.07);
}

.service-card::before {
  content: "";
  position: absolute;
  right: -50px;
  bottom: -64px;
  z-index: -1;
  width: 180px;
  height: 180px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(184, 91, 69, 0.16), transparent 68%);
  transition: transform 500ms var(--motion-ease-soft);
}

.service-card::after {
  content: "↗";
  position: absolute;
  right: 24px;
  bottom: 22px;
  display: grid;
  width: 36px;
  height: 36px;
  place-items: center;
  border: 1px solid var(--premium-border);
  border-radius: 50%;
  color: var(--rust);
  transition: transform 300ms var(--motion-ease-soft), background-color 300ms ease, color 300ms ease;
}

.service-card:hover::before {
  transform: scale(1.35);
}

.service-card:hover::after {
  color: #fff;
  background: var(--rust);
  transform: translate(3px, -3px);
}

.service-num {
  color: color-mix(in srgb, var(--rust) 34%, var(--text-muted));
}

/* Pricing and calculator: clearer selection and stronger action */
.pricing-tabs {
  width: fit-content;
  padding: 5px;
  border: 1px solid var(--premium-border);
  border-radius: 999px;
  background: var(--bg-card);
  box-shadow: 0 12px 34px rgba(24, 16, 12, 0.06);
}

.tab-btn {
  margin: 0;
  border: 0;
  border-radius: 999px;
}

.tab-btn.active {
  border-color: transparent;
  background: var(--rust);
  color: #fff;
  box-shadow: 0 8px 22px rgba(158, 70, 51, 0.22);
}

.price-card,
.calc-form,
.calc-result {
  border-radius: var(--premium-radius);
}

.price-card {
  overflow: hidden;
  border-color: var(--premium-border);
  box-shadow: 0 16px 46px rgba(24, 16, 12, 0.07);
}

#calculator {
  background:
    radial-gradient(circle at 88% 20%, rgba(232, 97, 74, 0.13), transparent 26%),
    linear-gradient(135deg, #15100e, #221713);
}

#calculator .section-tag {
  background: rgba(255, 255, 255, 0.06);
}

#calculator .calc-form {
  background: rgba(255, 255, 255, 0.055);
  box-shadow: 0 24px 65px rgba(0, 0, 0, 0.2);
  backdrop-filter: blur(12px);
}

/* Numbers become a strong confidence landmark */
#numbers {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(circle at 18% 0%, rgba(255, 255, 255, 0.16), transparent 30%),
    linear-gradient(115deg, var(--rust-dark), var(--rust) 52%, #b84f3a);
  box-shadow: inset 0 1px rgba(255, 255, 255, 0.12), inset 0 -1px rgba(0, 0, 0, 0.14);
}

#numbers > .reveal {
  position: relative;
  padding: 18px;
}

#numbers > .reveal + .reveal::before {
  content: "";
  position: absolute;
  top: 12%;
  bottom: 12%;
  left: -20px;
  width: 1px;
  background: rgba(255, 255, 255, 0.2);
}

.num-val {
  text-shadow: 0 10px 30px rgba(77, 27, 18, 0.24);
}

/* Project gallery and contact close with stronger conversion */
#projects {
  background:
    radial-gradient(circle at 10% 20%, rgba(184, 91, 69, 0.08), transparent 24%),
    var(--bg-primary);
}

.project-card {
  border-radius: var(--premium-radius);
}

#contact,
[data-theme="light"] #contact {
  background:
    radial-gradient(circle at 8% 20%, rgba(232, 97, 74, 0.16), transparent 26%),
    linear-gradient(135deg, #15100e, #241713);
}

#contact h2,
[data-theme="light"] #contact h2 {
  color: #fff;
}

#contact .section-lead,
[data-theme="light"] #contact .section-lead {
  color: rgba(255, 255, 255, 0.68);
}

#contact .contact-item {
  padding: 16px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.045);
}

#contact .contact-form {
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--premium-radius);
  background: rgba(255, 255, 255, 0.94);
  box-shadow: 0 28px 80px rgba(0, 0, 0, 0.25);
}

#newsletter {
  background:
    radial-gradient(circle at 82% 30%, rgba(255, 255, 255, 0.12), transparent 25%),
    linear-gradient(120deg, var(--rust-dark), var(--rust));
}

.newsletter-container {
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: var(--premium-radius);
  background: rgba(20, 12, 10, 0.2);
  box-shadow: 0 24px 70px rgba(74, 25, 17, 0.2);
  backdrop-filter: blur(12px);
}

footer {
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  background: #0c0a09;
}

@media (hover: hover) {
  .about-img:hover {
    transform: scale(1.015);
    filter: saturate(1.05) contrast(1.02);
  }
}

@media (max-width: 1100px) {
  .trust-strip {
    width: calc(100% - 40px);
    grid-template-columns: 1fr;
  }

  .trust-intro {
    flex-direction: row;
    align-items: center;
    justify-content: flex-start;
    gap: 16px;
    padding: 18px 24px;
  }

  .trust-kicker {
    margin: 0;
  }

  .trust-intro p {
    max-width: none;
  }
}

@media (max-width: 700px) {
  section:not(#hero):not(.trust-strip) h2 {
    font-size: clamp(2.25rem, 11vw, 3.65rem);
  }

  .trust-strip {
    width: calc(100% - 24px);
    margin-top: -20px;
    border-radius: 10px;
  }

  .trust-intro {
    padding: 15px 18px;
  }

  .trust-intro p {
    font-size: 1rem;
  }

  .trust-items {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .trust-item {
    min-height: 92px;
    padding: 16px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
  }

  .trust-item:nth-child(odd) {
    border-left: 0;
  }

  .trust-item strong {
    font-size: 0.68rem;
  }

  #about {
    padding-top: 90px;
  }

  .about-image-wrap::before {
    top: -10px;
    right: 20px;
    bottom: 16px;
    left: -10px;
  }

  .pricing-tabs {
    width: 100%;
    border-radius: 10px;
  }

  .tab-btn {
    border-radius: 8px;
  }

  #numbers > .reveal + .reveal::before {
    display: none;
  }

  .service-card {
    min-height: 0;
  }
}

@media (prefers-reduced-motion: reduce) {
  .trust-item,
  .service-card::before,
  .service-card::after,
  .about-img {
    transition: none !important;
  }
}
}

/* Hero motion: cinematic entrance and subtle continuous accents */
@keyframes heroCopyReveal {
  from {
    opacity: 0;
    transform: translateY(26px);
    filter: blur(7px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
    filter: blur(0);
  }
}

@keyframes heroMediaReveal {
  from {
    opacity: 0;
    transform: translateX(34px) scale(0.97);
    clip-path: inset(0 0 0 100%);
  }
  to {
    opacity: 1;
    transform: translateX(0) scale(1);
    clip-path: inset(0 0 0 0);
  }
}

@keyframes heroImageDrift {
  0%, 100% { transform: scale(1.035) translate3d(0, 0, 0); }
  50% { transform: scale(1.09) translate3d(-1.2%, -0.8%, 0); }
}

/* A gentle, repeating PowerPoint-style emphasis for the hero headline. */
@keyframes heroTitlePresentation {
  0%, 100% {
    transform: translate3d(0, 0, 0) scale(1);
    text-shadow: 0 0 0 transparent;
  }
  12% {
    transform: translate3d(0, -7px, 0) scale(1.012);
    text-shadow: 0 10px 28px color-mix(in srgb, var(--rust-light) 22%, transparent);
  }
  24%, 82% {
    transform: translate3d(0, 0, 0) scale(1);
    text-shadow: 0 0 0 transparent;
  }
}

@keyframes heroExcellenceGlow {
  0%, 100% {
    filter: brightness(1);
  }
  50% {
    filter: brightness(1.28);
  }
}

@keyframes heroUnderlineDraw {
  from { opacity: 0; transform: scaleX(0) rotate(-1.5deg); }
  to { opacity: 0.6; transform: scaleX(1) rotate(-1.5deg); }
}

@keyframes heroTagPulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(184, 91, 69, 0.2); }
  50% { box-shadow: 0 0 0 7px rgba(184, 91, 69, 0); }
}

@keyframes heroBadgeFloat {
  0%, 100% { transform: translateY(0) rotate(0); }
  50% { transform: translateY(-7px) rotate(-0.6deg); }
}

@keyframes heroBadgeGlow {
  0%, 100% { opacity: 0.18; transform: scale(0.86); }
  50% { opacity: 0.42; transform: scale(1.08); }
}

@keyframes heroStatSweep {
  from { transform: translateX(-180%) skewX(-18deg); }
  to { transform: translateX(420%) skewX(-18deg); }
}

body.site-ready #hero .hero-left {
  animation: none;
}

body.site-ready #hero .hero-left > *:not(.hero-left-bg) {
  animation: heroCopyReveal 760ms var(--motion-ease-soft) both;
}

body.site-ready #hero .hero-tag { animation-delay: 100ms; }
body.site-ready #hero h1 {
  animation:
    heroCopyReveal 760ms var(--motion-ease-soft) 190ms both,
    heroTitlePresentation 5.4s ease-in-out 1.2s infinite;
  will-change: transform;
}
body.site-ready #hero .hero-sub { animation-delay: 300ms; }
body.site-ready #hero .hero-btns { animation-delay: 410ms; }
body.site-ready #hero .hero-stats { animation-delay: 520ms; }

body.site-ready #hero .hero-right {
  animation: heroMediaReveal 1050ms var(--motion-ease-soft) 170ms both;
}

body.site-ready #hero h1 em::after {
  transform-origin: left center;
  animation: heroUnderlineDraw 720ms var(--motion-ease-soft) 780ms both;
}

body.site-ready #hero h1 em {
  animation: heroExcellenceGlow 2.7s ease-in-out 1.2s infinite;
}

body.site-ready #hero .hero-img.is-active {
  animation: heroImageDrift 14s ease-in-out 1.1s infinite;
  will-change: transform;
}

.hero-tag::before {
  animation: heroTagPulse 2.4s ease-out infinite;
}

.hero-badge {
  animation: heroBadgeFloat 4.6s ease-in-out 1.4s infinite;
  will-change: transform;
}

.hero-badge::before {
  content: "";
  position: absolute;
  inset: -12px;
  z-index: -1;
  border-radius: inherit;
  background: var(--rust-light);
  filter: blur(18px);
  animation: heroBadgeGlow 3.2s ease-in-out infinite;
}

.hero-stats > div {
  position: relative;
  overflow: hidden;
  transition:
    transform 280ms var(--motion-ease-soft),
    background-color 280ms ease;
}

.hero-stats > div::after {
  content: "";
  position: absolute;
  inset: 0 auto 0 -30%;
  width: 22%;
  pointer-events: none;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.22), transparent);
  transform: translateX(-180%) skewX(-18deg);
}

body.site-ready .hero-stats > div::after {
  animation: heroStatSweep 1.15s var(--motion-ease-soft) both;
}

body.site-ready .hero-stats > div:nth-child(1)::after { animation-delay: 900ms; }
body.site-ready .hero-stats > div:nth-child(2)::after { animation-delay: 1030ms; }
body.site-ready .hero-stats > div:nth-child(3)::after { animation-delay: 1160ms; }
body.site-ready .hero-stats > div:nth-child(4)::after { animation-delay: 1290ms; }

.hero-stats > div:hover {
  z-index: 1;
  transform: translateY(-4px);
  background: color-mix(in srgb, var(--rust) 9%, var(--bg-card));
}

.hero-stats > div:hover .stat-val {
  color: var(--rust-light);
}

.stat-val {
  transition: color 280ms ease, transform 280ms var(--motion-ease-soft);
}

.hero-stats > div:hover .stat-val {
  transform: translateY(-2px);
}

#hero .btn-primary,
#hero .btn-outline {
  position: relative;
  overflow: hidden;
}

#hero .btn-primary::before,
#hero .btn-outline::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(115deg, transparent 25%, rgba(255, 255, 255, 0.2) 48%, transparent 70%);
  transform: translateX(-130%);
  transition: transform 620ms var(--motion-ease-soft);
}

#hero .btn-primary:hover::before,
#hero .btn-outline:hover::before {
  transform: translateX(130%);
}

@media (hover: none) {
  .hero-stats > div:hover,
  .hero-stats > div:hover .stat-val {
    transform: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  body.site-ready #hero .hero-left > *:not(.hero-left-bg),
  body.site-ready #hero .hero-right,
  body.site-ready #hero h1 em::after,
  body.site-ready #hero h1 em,
  body.site-ready #hero .hero-img,
  .hero-slide,
  .hero-tag::before,
  .hero-badge,
  .hero-badge::before,
  body.site-ready .hero-stats > div::after {
    animation: none !important;
  }

  body.site-ready #hero .hero-left > *:not(.hero-left-bg),
  body.site-ready #hero .hero-right {
    opacity: 1;
    transform: none;
    filter: none;
    clip-path: none;
  }

  body.site-ready #hero h1 em::after {
    opacity: 0.6;
    transform: rotate(-1.5deg);
  }

  body.site-ready #hero h1 {
    text-shadow: none;
  }
}

/* Mobile pricing service selector */
.pricing-tab-icon {
  display: none;
}

@media (max-width: 900px) {
  #pricing .pricing-intro {
    margin-bottom: 30px;
  }

  #pricing .pricing-tabs {
    display: grid;
    width: 100%;
    grid-auto-flow: column;
    grid-auto-columns: minmax(170px, 1fr);
    gap: 10px;
    margin-bottom: 28px;
    padding: 2px 0 10px;
    overflow-x: auto;
    border: 0;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
    scroll-padding-inline: 2px;
    scroll-snap-type: x mandatory;
    scrollbar-width: thin;
  }

  #pricing .tab-btn {
    position: relative;
    display: flex;
    min-width: 0;
    min-height: 66px;
    align-items: center;
    justify-content: flex-start;
    gap: 11px;
    padding: 10px 14px;
    border: 1px solid var(--border-light);
    border-radius: 12px;
    color: var(--text-primary);
    background: var(--bg-card);
    box-shadow: 0 8px 24px rgba(24, 16, 12, 0.06);
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.035em;
    line-height: 1.25;
    text-align: left;
    white-space: normal;
    scroll-snap-align: start;
  }

  #pricing .pricing-tab-icon {
    display: inline-grid;
    width: 40px;
    height: 40px;
    flex: 0 0 40px;
    place-items: center;
    border: 1px solid rgba(192, 64, 42, 0.18);
    border-radius: 50%;
    color: var(--rust);
    background: rgba(192, 64, 42, 0.09);
  }

  #pricing .pricing-tab-icon svg {
    width: 21px;
    height: 21px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
  }

  #pricing .pricing-tab-label {
    display: block;
    min-width: 0;
    text-wrap: balance;
  }

  #pricing .tab-btn.active {
    border-color: var(--rust);
    color: #fff;
    background: linear-gradient(120deg, var(--rust-dark), var(--rust));
    box-shadow: 0 10px 26px rgba(139, 45, 26, 0.24);
  }

  #pricing .tab-btn.active::after {
    content: "✓";
    display: grid;
    width: 20px;
    height: 20px;
    margin-left: auto;
    flex: 0 0 20px;
    place-items: center;
    border-radius: 50%;
    color: var(--rust-dark);
    background: #fff;
    font-size: 0.72rem;
    line-height: 1;
  }

  #pricing .tab-btn.active .pricing-tab-icon {
    border-color: rgba(255, 255, 255, 0.28);
    color: #fff;
    background: rgba(255, 255, 255, 0.14);
  }
}

@media (max-width: 600px) {
  #pricing .pricing-tabs {
    grid-auto-flow: row;
    grid-auto-columns: auto;
    grid-template-columns: minmax(0, 1fr);
    gap: 9px;
    padding-bottom: 0;
    overflow: visible;
    scroll-snap-type: none;
  }

  #pricing .tab-btn {
    width: 100%;
    min-height: 62px;
    padding: 10px 13px;
  }
}

@media (max-width: 360px) {
  #pricing .tab-btn {
    min-height: 58px;
    gap: 9px;
    padding: 8px 10px;
    font-size: 0.69rem;
  }

  #pricing .pricing-tab-icon {
    width: 36px;
    height: 36px;
    flex-basis: 36px;
  }

  #pricing .pricing-tab-icon svg {
    width: 19px;
    height: 19px;
  }
}

/* ─── Team & services visual refresh ─── */
.nav-logo-img,
nav.nav-compact .nav-logo-img {
  width: 62px;
  height: 62px;
  border-width: 3px;
  box-shadow: 0 8px 24px rgba(105, 37, 25, 0.28);
}

.team-groups { margin-top: 56px; }
.team-group + .team-group { margin-top: 62px; }
.team-group-heading {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 24px;
}
.team-group-kicker {
  display: grid;
  width: 46px;
  height: 46px;
  flex: 0 0 46px;
  place-items: center;
  border: 1px solid rgba(192, 64, 42, 0.3);
  border-radius: 50%;
  color: var(--rust-light);
  background: rgba(192, 64, 42, 0.08);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.12em;
}
.team-group-heading h3 {
  margin: 0 0 3px;
  color: var(--text-primary);
  font-family: var(--font-heading, Georgia, serif);
  font-size: clamp(1.25rem, 2vw, 1.7rem);
}
.team-group-heading p { margin: 0; color: var(--text-secondary); font-size: 0.9rem; }
.team-grid { margin-top: 0; }
.team-group .team-grid {
  grid-template-columns: repeat(auto-fit, minmax(300px, 340px));
  justify-content: start;
}
.team-card {
  position: relative;
  overflow: hidden;
  padding: 26px 20px 24px;
  border-radius: 18px;
  background: linear-gradient(145deg, var(--bg-card), color-mix(in srgb, var(--bg-card) 86%, var(--rust) 14%));
  box-shadow: 0 12px 32px rgba(39, 23, 17, 0.08);
}
.team-card::after {
  content: '';
  position: absolute;
  inset: auto -25% -70% auto;
  width: 150px;
  height: 150px;
  border-radius: 50%;
  background: rgba(192, 64, 42, 0.13);
  transition: transform 500ms ease;
}
.team-card:hover::after { transform: scale(1.65); }
.team-avatar-wrap { position: relative; z-index: 1; width: 106px; height: 106px; margin: 0 auto 18px; padding: 4px; border-radius: 50%; background: linear-gradient(135deg, var(--rust-light), var(--accent, #f4b183)); }
.team-avatar { width: 100%; height: 100%; margin: 0; border: 0; background: var(--bg-secondary); }
.team-name, .team-role, .team-desc { position: relative; z-index: 1; }

/* Galerie photo : aucun texte, toute l'attention est portée sur les équipes. */
.team-card--photo {
  min-height: 0;
  padding: 10px;
  border: 1px solid rgba(192, 64, 42, 0.2);
  border-radius: 22px;
  background: linear-gradient(145deg, rgba(255,255,255,.92), rgba(192,64,42,.14));
  box-shadow: 0 18px 40px rgba(53, 25, 17, .13);
}
.team-card--photo::before {
  content: '';
  position: absolute;
  inset: 13px;
  z-index: 1;
  border: 1px solid rgba(255,255,255,.7);
  border-radius: 16px;
  pointer-events: none;
}
.team-card--photo::after {
  right: -34px;
  bottom: -34px;
  width: 125px;
  height: 125px;
  background: radial-gradient(circle, rgba(244, 177, 131, .72), rgba(192,64,42,.04) 68%);
}
.team-card--photo .team-avatar-wrap {
  width: 100%;
  height: auto;
  aspect-ratio: 4 / 5;
  margin: 0;
  padding: 0;
  overflow: hidden;
  border-radius: 14px;
  background: linear-gradient(135deg, var(--rust-dark), var(--rust-light));
}
.team-card--photo .team-avatar {
  width: 100%;
  height: 100%;
  border-radius: 0;
  object-fit: cover;
  filter: saturate(.9) contrast(1.04);
  transform: scale(1.01);
  transition: transform 700ms cubic-bezier(.2,.8,.2,1), filter 500ms ease;
}
.team-card--photo:hover { transform: translateY(-10px) rotate(-1deg); border-color: var(--rust-light); }
.team-card--photo:hover .team-avatar { transform: scale(1.1); filter: saturate(1.12) contrast(1.08); }
.team-card--photo.spotlight-visible .team-avatar { animation: teamPhotoAppear 900ms cubic-bezier(.2,.8,.2,1) both; }
@keyframes teamPhotoAppear { from { opacity: 0; transform: scale(1.16); } to { opacity: 1; transform: scale(1.01); } }
@media (max-width: 900px) {
  .team-group .team-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 600px) {
  .team-group .team-grid { grid-template-columns: repeat(3, 1fr); gap: 8px; }
  .team-card--photo { padding: 4px; border-radius: 12px; cursor: zoom-in; }
  .team-card--photo::before { inset: 6px; border-radius: 8px; border-color: rgba(255,255,255,.55); }
  .team-card--photo .team-avatar-wrap { aspect-ratio: 1 / 1; border-radius: 9px; }
  .team-card--photo:hover { transform: none; }
}

/* Lightbox photos d'équipe */
.team-lightbox {
  position: fixed;
  inset: 0;
  z-index: 99999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  background: rgba(8, 8, 8, 0.93);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.25s ease, visibility 0.25s ease;
}
.team-lightbox.is-open { opacity: 1; visibility: visible; }
.team-lightbox-media {
  max-width: min(1000px, 94vw);
  max-height: 90vh;
  overflow: hidden;
  border-radius: 18px;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.5);
  transform: scale(0.94);
  transition: transform 0.28s cubic-bezier(0.2, 0.8, 0.2, 1);
}
.team-lightbox.is-open .team-lightbox-media { transform: scale(1); }
.team-lightbox-media img {
  display: block;
  width: 100%;
  height: auto;
  max-height: 90vh;
  object-fit: contain;
}
.team-lightbox-close {
  position: absolute;
  top: 18px;
  right: 18px;
  z-index: 2;
  display: grid;
  width: 46px;
  height: 46px;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.35);
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
  font-size: 1.6rem;
  line-height: 1;
  cursor: pointer;
  transition: background 0.2s, transform 0.2s;
}
.team-lightbox-close:hover { background: var(--rust); transform: rotate(90deg); }
@media (max-width: 600px) {
  .team-lightbox-close { top: 14px; right: 14px; width: 42px; height: 42px; }
}

.services-grid { display: block; }
.service-card { position: relative; min-height: 385px; padding: 0; display: flex; flex-direction: column; border: 0; background: var(--bg-card); }
.service-media { position: relative; height: 158px; overflow: hidden; background: linear-gradient(135deg, #562016, var(--rust)); }
.service-media img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform 700ms cubic-bezier(.2,.8,.2,1); }
.service-media-shade { position: absolute; inset: 0; background: linear-gradient(135deg, rgba(29, 15, 12, 0.2), rgba(192, 64, 42, 0.38)); }
.service-card:hover .service-media img { transform: scale(1.1); }
.service-content { position: relative; flex: 1; padding: 24px 26px 34px; }
.service-icon { position: absolute; top: -46px; right: 20px; display: grid; width: 58px; height: 58px; place-items: center; border: 3px solid var(--bg-card); border-radius: 50%; color: #fff; background: var(--rust); box-shadow: 0 10px 22px rgba(100, 34, 24, .3); }
.service-num { position: static; margin-bottom: 10px; font-size: .72rem; font-weight: 700; letter-spacing: .15em; }
.service-title { font-size: 1.25rem; }
.service-desc { margin-bottom: 0; }

@media (max-width: 900px) {
  .service-card { flex-basis: min(70vw, 340px); }
}
@media (max-width: 600px) {
  .nav-logo-img, nav.nav-compact .nav-logo-img { width: 48px; height: 48px; }
  .team-groups { margin-top: 38px; }
  .team-group + .team-group { margin-top: 45px; }
  .team-group-heading { align-items: flex-start; }
  .team-group-heading p { line-height: 1.45; }
  .service-card { flex-basis: min(82vw, 300px); }
}

/* ─── Premium card system: a consistent, editorial finish across the site ─── */
:root {
  --card-radius-premium: 20px;
  --card-border-premium: color-mix(in srgb, var(--rust) 14%, var(--border-light));
  --card-shadow-premium: 0 16px 42px rgba(31, 20, 15, 0.09);
}

.project-card,
.dossier-card,
.service-card,
.team-card--photo,
.price-card {
  border-radius: var(--card-radius-premium);
  box-shadow: var(--card-shadow-premium);
}

.project-card,
.dossier-card,
.price-card {
  border-color: var(--card-border-premium);
}

.project-card,
.dossier-card,
.price-card,
.service-card,
.team-card--photo {
  transition: transform 360ms cubic-bezier(.2,.8,.2,1), box-shadow 360ms ease, border-color 360ms ease;
}

.project-card:hover,
.dossier-card:hover,
.price-card:hover {
  transform: translateY(-9px);
  box-shadow: 0 25px 55px rgba(47, 26, 18, 0.16);
}

.project-card { overflow: hidden; }
.project-card::after {
  content: '';
  position: absolute;
  inset: 12px;
  z-index: 2;
  border: 1px solid rgba(255, 255, 255, 0.46);
  border-radius: calc(var(--card-radius-premium) - 8px);
  pointer-events: none;
  opacity: 0;
  transition: opacity 300ms ease;
}
.project-card:hover::after { opacity: 1; }

.dossier-card {
  padding: 14px;
  text-align: left;
  background: linear-gradient(155deg, var(--bg-card), color-mix(in srgb, var(--bg-card) 93%, var(--rust) 7%));
}
.dossier-card::before { height: 4px; border-radius: 20px 20px 0 0; }
.dossier-thumb { margin-bottom: 18px; border-radius: 13px; aspect-ratio: 16 / 10; }
.dossier-name { padding: 0 5px; font-size: 1.12rem; }
.dossier-meta { justify-content: flex-start; padding: 0 5px; }
.dossier-badge { margin-left: 5px; padding: 5px 12px; border: 1px solid rgba(192, 64, 42, 0.16); }
.dossier-video { margin: 18px 5px 5px; border: 1px solid rgba(255,255,255,0.18); border-radius: 12px; box-shadow: 0 9px 20px rgba(0,0,0,.14); }
.dossier-video-wrap { margin: 18px 5px 5px; }
.dossier-download-btn { top: 14px; right: 14px; width: 42px; height: 42px; }

.price-card {
  overflow: hidden;
  border-width: 1px;
  border-top: 4px solid var(--rust);
  background: linear-gradient(155deg, var(--bg-card), color-mix(in srgb, var(--bg-card) 93%, var(--rust) 7%));
}
.price-card.featured {
  border-top-color: var(--accent);
  box-shadow: 0 22px 52px rgba(139, 45, 26, .2);
}
.price-card.featured::before {
  content: 'CHOIX POPULAIRE';
  position: absolute;
  top: 17px;
  right: -32px;
  padding: 6px 34px;
  transform: rotate(42deg);
  color: #fff;
  background: var(--rust);
  font-size: .55rem;
  font-weight: 800;
  letter-spacing: .1em;
}

[data-theme="dark"] .dossier-card,
[data-theme="dark"] .price-card:not(.featured) {
  background: linear-gradient(155deg, rgba(255,255,255,.07), rgba(192,64,42,.11));
}

@media (max-width: 600px) {
  :root { --card-radius-premium: 16px; }
  .dossier-card { padding: 11px; }
  .dossier-name, .dossier-meta { padding-right: 3px; padding-left: 3px; }
  .dossier-video { margin-right: 3px; margin-left: 3px; }
  .dossier-video-wrap { margin-right: 3px; margin-left: 3px; }
  .price-card.featured::before { top: 14px; right: -37px; font-size: .5rem; }
}

@media (prefers-reduced-motion: reduce) {
  .project-card,
  .dossier-card,
  .price-card,
  .service-card,
  .team-card--photo { transition: none; }
}

