/* ── Reset ── */
*,:after,:before { box-sizing: border-box; }
* { -webkit-tap-highlight-color: transparent; }
ol,ul { list-style: none; padding: 0; }
body,h1,h2,h3,h4,p,ul,ol,li,figure,figcaption,blockquote,dl,dd { margin: 0; }
html { -webkit-font-smoothing: antialiased; overscroll-behavior: none; }
body { text-rendering: optimizeLegibility; scroll-behavior: smooth; overflow-x: hidden; }
h1,h2,h3,h4,h5,h6 { font-weight: 400; text-wrap: balance; }
p { text-wrap: pretty; }
a { color: inherit; text-decoration: none; }
img,svg,video { display: block; }
button { cursor: pointer; background: none; border: 0; color: inherit; font: inherit; padding: 0; margin: 0; min-height: 44px; min-width: 44px; }
input,textarea { -webkit-appearance: none; appearance: none; background: none; border: 0; color: inherit; font: inherit; margin: 0; padding: 0; }
/* Smooth font rendering on all platforms */
* { -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; }

/* ── Tokens ── */
:root {
  --cream:        #F3F1EB;
  --cream-light:  #FAF8F3;
  --cream-warm:   #E7E3D9;
  --dark:         #1A1712;
  --dark-2:       #100E0A;
  --dark-soft:    rgba(26,23,18,0.66);
  --dark-faded:   rgba(26,23,18,0.38);
  --blue:         #2A2620;
  --blue-bright:  #8A8271;
  --light:        #F3F1EB;
  --light-soft:   rgba(243,241,235,0.65);
  --light-faded:  rgba(243,241,235,0.35);
  --line:         rgba(26,23,18,0.14);
  --line-soft:    rgba(26,23,18,0.06);
  --line-dark:    rgba(243,241,235,0.15);
  --mono:         'JetBrains Mono', monospace;
  --sans:         'Outfit', sans-serif;
  --serif:        'Newsreader', Georgia, serif;

  /* fluid.glass easings */
  --ease-quart:   cubic-bezier(.77,0,.175,1);
  --ease-cubic:   cubic-bezier(.645,.045,.355,1);
  --ease-out:     cubic-bezier(.165,.84,.44,1);
}

/* ── Dark mode ── */
[data-theme="dark"] {
  --cream:       #14120E;
  --cream-light: #1A1813;
  --cream-warm:  #221F18;
  --dark:        #F3F1EB;
  --dark-2:      #201D17;
  --dark-soft:   rgba(243,241,235,0.7);
  --blue:        #C9C2B2;
  --blue-bright: #B0A892;
  --dark-faded:  rgba(243,241,235,0.4);
  --line:        rgba(243,241,235,0.12);
  --line-soft:   rgba(243,241,235,0.06);
  /* Mantener secciones oscuras con fondo oscuro real */
  --section-dark-bg: #100E0A;
}
/* ── Dark mode — contraste correcto ── */
[data-theme="dark"] .header { background: rgba(20,18,14,0.85); }
[data-theme="dark"] .logo-img { filter: invert(1); }
[data-theme="dark"] .intro { background: var(--cream); color: var(--dark); }

/* Textos en fondos claros (cream) → deben ser claros en dark mode */
[data-theme="dark"] .section-label { color: var(--dark-soft); }
[data-theme="dark"] .section-label::before { background: var(--dark-soft); }
[data-theme="dark"] .base-heading,
[data-theme="dark"] h1, [data-theme="dark"] h2, [data-theme="dark"] h3, [data-theme="dark"] h4,
[data-theme="dark"] p { color: var(--dark); }
[data-theme="dark"] .stat-number { color: var(--dark); }
[data-theme="dark"] .stat-label { color: var(--dark-soft); }
[data-theme="dark"] .service-block { border-color: var(--line); color: var(--dark); background: var(--cream-light); }
[data-theme="dark"] .service-title { color: var(--dark); }
[data-theme="dark"] .why-cell { color: var(--dark); }
[data-theme="dark"] .why-cell h3 { color: var(--dark); }
[data-theme="dark"] .process-row { border-color: var(--line); color: var(--dark); }
[data-theme="dark"] .testimonial-card { background: var(--cream-warm); color: var(--dark); }
[data-theme="dark"] .contact-section { background: var(--cream-light); color: var(--dark); }
[data-theme="dark"] .field input, [data-theme="dark"] .field textarea, [data-theme="dark"] .field select { color: var(--dark); border-color: var(--line); background: transparent; }
[data-theme="dark"] .field label { color: var(--dark-soft); }
[data-theme="dark"] .team-modal { background: var(--cream-light); color: var(--dark); }
[data-theme="dark"] .team-modal h2, [data-theme="dark"] .team-modal h3,
[data-theme="dark"] .team-modal p { color: var(--dark); }
[data-theme="dark"] .team-modal-close { color: var(--dark); border-color: var(--line); }

/* Secciones oscuras → mantener fondo oscuro real con texto claro */
[data-theme="dark"] .btn-dark,
[data-theme="dark"] .banner-section,
[data-theme="dark"] .marquee-section { background: #100E0A !important; color: var(--light) !important; }
[data-theme="dark"] .btn-dark span,
[data-theme="dark"] .banner-section *,
[data-theme="dark"] .marquee-section * { color: var(--light); }

/* Workflow / How it works section */
[data-theme="dark"] .workflow-section { background: #1A1813 !important; color: var(--light) !important; }
[data-theme="dark"] .workflow-section * { color: var(--light) !important; }
[data-theme="dark"] .workflow-section em { color: var(--blue-bright) !important; }
[data-theme="dark"] .workflow-step-num { color: rgba(243,241,235,0.25) !important; }
[data-theme="dark"] .workflow-step-desc { color: rgba(243,241,235,0.6) !important; }
[data-theme="dark"] .workflow-badge { border-color: rgba(243,241,235,0.15) !important; color: rgba(243,241,235,0.5) !important; }

/* Stats section — fondo oscuro real, texto blanco */
[data-theme="dark"] .stats-section { background: #1A1813 !important; color: var(--light) !important; border-top-color: rgba(243,241,235,0.08) !important; }
[data-theme="dark"] .stat-num { color: var(--light) !important; }
[data-theme="dark"] .stat-item { border-left-color: rgba(243,241,235,0.12) !important; }
[data-theme="dark"] .stat-label { color: rgba(243,241,235,0.55) !important; }

/* Services split (dark side) — text claro */
[data-theme="dark"] .services-split .split-dark { background: #1A1813 !important; }
[data-theme="dark"] .services-split .split-dark * { color: var(--light) !important; }

/* Why section cards */
[data-theme="dark"] .why-cell { background: #221F18 !important; border-color: rgba(243,241,235,0.08) !important; }
[data-theme="dark"] .why-cell h3, [data-theme="dark"] .why-cell h4 { color: var(--light) !important; }
[data-theme="dark"] .why-cell p { color: rgba(243,241,235,0.6) !important; }

/* Process rows */
[data-theme="dark"] .process-row { background: transparent !important; color: var(--light) !important; }
[data-theme="dark"] .process-row * { color: var(--light) !important; }

/* Services section list items */
[data-theme="dark"] .service-list li { border-color: rgba(243,241,235,0.1) !important; color: rgba(243,241,235,0.7) !important; }

/* Testimonials section */
[data-theme="dark"] .testimonials-section { background: var(--cream) !important; }
[data-theme="dark"] .testimonial-card { background: #221F18 !important; color: var(--light) !important; }
[data-theme="dark"] .testimonial-card p, [data-theme="dark"] .testimonial-card cite { color: rgba(243,241,235,0.7) !important; }
[data-theme="dark"] footer,
[data-theme="dark"] .footer { background: #0C0A07 !important; color: var(--light) !important; }
[data-theme="dark"] footer h4, [data-theme="dark"] footer h5,
[data-theme="dark"] .footer-col h5 { color: var(--blue-bright) !important; }
[data-theme="dark"] footer .footer-col a,
[data-theme="dark"] footer .footer-col p { color: rgba(243,241,235,0.6) !important; }
[data-theme="dark"] footer .footer-col a:hover { color: var(--light) !important; }
[data-theme="dark"] footer .footer-bottom { border-color: rgba(243,241,235,0.1) !important; color: rgba(243,241,235,0.35) !important; }
[data-theme="dark"] footer .marquee-track { color: var(--light) !important; }
[data-theme="dark"] footer .footer-marquee { border-bottom-color: rgba(243,241,235,0.08) !important; }
[data-theme="dark"] .photo-break-label { color: var(--light); }
[data-theme="dark"] .photo-break-label h3,
[data-theme="dark"] .photo-break-label span { color: var(--light); }

/* Proyectos / portfolio */
[data-theme="dark"] .project-info h3 { color: var(--dark); }
[data-theme="dark"] .project-info span { color: var(--dark-soft); }

/* Formulario */
[data-theme="dark"] .form-section { background: var(--cream-light); }
[data-theme="dark"] .btn-submit { color: #fff; }

body {
  background: var(--cream);
  color: var(--dark);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.6;
}

/* ══════════════════════════════════════════
   INTRO LOADER
══════════════════════════════════════════ */
.intro {
  position: fixed; inset: 0;
  background: var(--cream);
  color: var(--dark);
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 40px;
  transition: opacity 0.9s var(--ease-quart), visibility 0.9s var(--ease-quart);
}
.intro.done { opacity: 0; visibility: hidden; pointer-events: none; }

.intro-logo {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  animation: introLogoIn 0.8s 0.3s var(--ease-out) both;
}
@keyframes introLogoIn {
  from { opacity: 0; transform: translateY(20px); }
  to   { opacity: 1; transform: translateY(0); }
}
.intro-logo img { height: 72px; }
.intro-bar {
  width: 200px; height: 1px;
  background: var(--line);
  position: relative; overflow: hidden;
  animation: introLogoIn 0.5s 0.6s var(--ease-out) both;
}
.intro-bar::after {
  content: '';
  position: absolute; inset: 0;
  background: var(--blue);
  transform-origin: left;
  animation: barFill 0.9s 0.8s var(--ease-quart) forwards;
  transform: scaleX(0);
}
@keyframes barFill { to { transform: scaleX(1); } }
.intro-label {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.35em;
  text-transform: uppercase;
  color: var(--dark-faded);
  animation: introLogoIn 0.5s 0.6s var(--ease-out) both;
}

/* ══════════════════════════════════════════
   SCROLL PROGRESS
══════════════════════════════════════════ */
.scroll-progress {
  position: fixed; top: 0; left: 0;
  height: 2px; background: var(--blue);
  width: 0%; z-index: 9998;
  transition: width 0.08s linear;
}

/* ══════════════════════════════════════════
   HEADER (bottom-centered like fluid.glass)
══════════════════════════════════════════ */
.header {
  position: fixed;
  top: 20px; left: 50%;
  transform: translate3d(-50%, 0, 0);
  z-index: 100;
  display: flex;
  align-items: center;
  height: 56px;
  width: auto;
  max-width: 1100px;
  padding: 0 6px 0 16px;
  background: rgba(26,23,18,0.85);
  backdrop-filter: blur(20px);
  border-radius: 100px;
  border: 1px solid rgba(243,241,235,0.08);
  gap: 2px;
  color: var(--light);
  transition: top 0.6s cubic-bezier(.77,0,.175,1),
              bottom 0.6s cubic-bezier(.77,0,.175,1),
              transform 0.6s cubic-bezier(.77,0,.175,1),
              opacity 0.4s;
}
.header.is-bottom {
  top: auto;
  bottom: 24px;
  transform: translate3d(-50%, 0, 0);
  width: 420px;
  max-width: 92vw;
  padding: 0 8px 0 20px;
  background: rgba(32,34,36,0.97);
  justify-content: space-between;
  gap: 0;
  height: 52px;
}
/* Ocultar todo excepto logo, section name y burger */
.header.is-bottom nav,
.header.is-bottom .header-cta,
.header.is-bottom .theme-toggle,
.header.is-bottom .lang-btn,
.header.is-bottom .btn-icon:not(.burger),
.header.is-bottom .header-actions > div {
  display: none !important;
}
.header.is-bottom .header-actions {
  padding: 0;
  gap: 0;
  flex-shrink: 0;
}
.header.is-bottom .header-logo {
  padding: 0;
  margin-right: 0;
  flex-shrink: 0;
}
/* Mostrar logo completo pero más pequeño */
.header.is-bottom .logo-full {
  display: block !important;
  height: 18px !important;
  width: auto;
  filter: invert(1);
  opacity: 0.9;
}
.header.is-bottom .logo-icon { display: none !important; }

/* Nombre sección centrado */
.header-section-name {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--light);
  opacity: 0;
  transition: opacity 0.4s;
  pointer-events: none;
  white-space: nowrap;
}
.header.is-bottom .header-section-name { opacity: 0.6; font-size: 11px; }

/* Botón hamburger en bottom bar — solo las líneas, sin fondo */
.header.is-bottom .burger {
  background: none !important;
  border: none !important;
  border-radius: 0 !important;
  width: 44px;
  height: 44px;
  padding: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
  flex-shrink: 0;
  opacity: 0.75;
}
.header.is-bottom .burger:hover { opacity: 1; }
.header.is-bottom .burger span {
  width: 18px;
  height: 1.5px;
  background: rgba(255,255,255,0.9);
  border-radius: 2px;
}
.header.is-bottom .burger span {
  display: block;
  width: 16px;
  height: 1.5px;
  background: var(--light);
  border-radius: 2px;
}

.header-logo {
  display: flex; align-items: center;
  padding: 0 16px 0 0;
  height: 100%;
  margin-right: 8px;
}
.header-logo img {
  height: 28px;
  filter: invert(1);
}

.header-nav {
  display: flex; align-items: center;
  gap: 0;
  list-style: none;
}
.header-nav a {
  display: block;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 8px 14px;
  opacity: 0.6;
  border-radius: 100px;
  transition: opacity 0.3s, background 0.3s;
}
.header-nav a:hover { opacity: 1; background: rgba(243,241,235,0.1); }

.header-cta {
  display: flex; align-items: center; gap: 7px;
  background: var(--blue);
  color: #fff;
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 9px 16px;
  border-radius: 100px;
  margin: 5px 5px 5px 4px;
  transition: background 0.3s, transform 0.3s;
  white-space: nowrap;
  flex-shrink: 0;
}
.header-cta:hover { background: var(--blue-bright); transform: translateY(-1px); }
@media (max-width: 1200px) {
  .header-cta { font-size: 9px; padding: 8px 12px; }
}
@media (max-width: 1024px) {
  .header-cta span { display: none; }
  .header-cta { padding: 8px; min-width: 36px; justify-content: center; }
}

.header-actions {
  display: flex; align-items: center; gap: 4px;
  padding: 0 8px;
}

.btn-icon {
  width: 44px; height: 44px;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  opacity: 0.6;
  transition: opacity 0.3s, background 0.3s;
}
.btn-icon:hover { opacity: 1; background: rgba(243,241,235,0.1); }
.btn-icon svg { width: 16px; height: 16px; stroke: currentColor; fill: none; stroke-width: 1.5; }

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

/* Burger */
.burger {
  display: none;
  flex-direction: column; gap: 5px;
  padding: 8px;
  opacity: 0.6;
  transition: opacity 0.3s;
}
.burger:hover { opacity: 1; }
.burger span {
  display: block; width: 20px; height: 1px;
  background: currentColor;
  transition: transform 0.4s var(--ease-quart), opacity 0.3s;
}
.burger.open span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.burger.open span:nth-child(2) { opacity: 0; }
.burger.open span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

/* ══════════════════════════════════════════
   MENU PANEL (fluid.glass style — compact floating)
══════════════════════════════════════════ */
.menu-overlay {
  position: fixed;
  bottom: 6rem;
  left: 50%;
  transform: translate3d(-50%, 20px, 0);
  width: 38rem;
  max-width: calc(100vw - 3rem);
  background: #1A1813;
  color: var(--light);
  z-index: 200;
  display: flex;
  flex-direction: column;
  padding: 3rem 3rem 0;
  pointer-events: none;
  opacity: 0;
  visibility: hidden;
  border-radius: 16px;
  transition: opacity 0.4s ease, transform 0.4s cubic-bezier(0.16,1,0.3,1), visibility 0.4s;
}
.menu-overlay.open {
  pointer-events: all;
  opacity: 1;
  visibility: visible;
  transform: translate3d(-50%, 0, 0);
}
.menu-overlay-label {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  opacity: 0.45;
  margin-bottom: 1.5rem;
}
.menu-nav { list-style: none; }
.menu-nav-item { overflow: hidden; }
.menu-nav a {
  display: block;
  font-family: var(--serif);
  font-size: clamp(30px, 4.4vw, 52px);
  font-weight: 400;
  letter-spacing: -0.01em;
  line-height: 1.2;
  transform: translateY(110%);
  transition: transform 0.6s var(--ease-quart), color 0.5s ease, opacity 0.5s ease;
  color: rgba(255,255,255,0.85);
  overflow: hidden;
  position: relative;
}
/* Dim all cuando hay hover en el nav */
.menu-nav:hover a { opacity: 0.3; color: rgba(255,255,255,0.3); }
.menu-nav:hover a:hover { opacity: 1; color: #fff; }

/* Texto deslizante al hover — dos copias */
.menu-nav a .text-default,
.menu-nav a .text-hover {
  display: block;
  transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}
.menu-nav a .text-hover {
  position: absolute;
  top: 100%;
  left: 0;
}
.menu-nav a:hover .text-default { transform: translateY(-100%); }
.menu-nav a:hover .text-hover   { transform: translateY(-100%); }

.menu-overlay.open .menu-nav a { transform: translateY(0); }
.menu-nav-item:nth-child(1) a { transition-delay: 0.04s; }
.menu-nav-item:nth-child(2) a { transition-delay: 0.08s; }
.menu-nav-item:nth-child(3) a { transition-delay: 0.12s; }
.menu-nav-item:nth-child(4) a { transition-delay: 0.16s; }
.menu-nav-item:nth-child(5) a { transition-delay: 0.20s; }

.menu-footer {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.5rem;
  padding: 1.5rem 0 0;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.04em;
  color: rgba(255,255,255,0.4);
}
.menu-footer a { color: inherit; transition: color 0.3s; }
.menu-footer a:hover { color: rgba(255,255,255,0.8); }
.menu-footer-col { display: flex; flex-direction: column; gap: 5px; }

.menu-cta {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: calc(100% + 6rem);
  margin-left: -3rem;
  background: #081220;
  color: #fff;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  padding: 18px;
  margin-top: 1.5rem;
  transition: background 0.3s;
  border: none;
  cursor: pointer;
  text-decoration: none;
  border-radius: 0 0 16px 16px;
}
.menu-cta:hover { background: #1a1a1a; }

/* ══════════════════════════════════════════
   MAIN SCROLL WRAPPER
══════════════════════════════════════════ */
.main { }

/* ══════════════════════════════════════════
   HERO / HOME-HEADER
══════════════════════════════════════════ */
.home-header {
  position: relative;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 0 0 8rem;
  overflow: hidden;
  color: var(--light);
}

.home-header-bg {
  position: absolute; inset: 0; z-index: 0;
}
.home-header-bg video {
  width: 100%; height: 100%;
  object-fit: cover;
  opacity: 0.5;
}
.home-header-bg::after {
  content: '';
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(26,23,18,0.2) 0%, rgba(26,23,18,0.75) 100%);
}

.home-header-inner {
  position: relative; z-index: 2;
  max-width: 1440px;
  margin: 0 auto;
  padding: 0 6rem;
  width: 100%;
}

.home-header-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 4rem;
  margin-bottom: 2rem;
}

.home-header-tagline {
  font-family: var(--serif);
  font-size: clamp(32px, 4.5vw, 70px);
  font-weight: 400;
  line-height: 1.06;
  letter-spacing: -0.012em;
  max-width: 800px;
  overflow: hidden;
}
.home-header-tagline span {
  display: block;
  transform: translateY(100%);
  transition: transform 0.9s var(--ease-quart);
}
.intro.done ~ .main .home-header-tagline span { transform: translateY(0); }
.home-header-tagline span:nth-child(2) { transition-delay: 0.12s; font-style: italic; color: var(--blue-bright); }

.home-header-scroll {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--light-faded);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  padding-bottom: 4px;
  white-space: nowrap;
}
.home-header-scroll-line {
  width: 1px; height: 40px;
  background: linear-gradient(180deg, transparent, var(--blue-bright));
  animation: scrollPulse 2s ease-in-out infinite;
}
@keyframes scrollPulse {
  0%,100% { transform: scaleY(0.4); transform-origin: top; }
  50%      { transform: scaleY(1);   transform-origin: top; }
}

.home-header-bottom {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: end;
  padding-top: 3rem;
  border-top: 1px solid var(--line-dark);
}

.home-header-title {
  font-family: var(--serif);
  font-size: clamp(48px, 7vw, 116px);
  font-weight: 400;
  letter-spacing: -0.02em;
  line-height: 0.98;
}
.home-header-title em {
  font-style: italic;
  color: var(--dark);
}

.home-header-desc {
  font-size: 17px;
  line-height: 1.6;
  color: var(--light-soft);
  font-weight: 300;
  max-width: 480px;
}
.home-header-meta {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--light-faded);
  margin-bottom: 16px;
  display: flex; align-items: center; gap: 10px;
}
.home-header-meta .dot {
  width: 6px; height: 6px;
  background: var(--blue-bright);
  border-radius: 50%;
  animation: dotPulse 2s ease-in-out infinite;
}
@keyframes dotPulse { 0%,100%{opacity:0.4} 50%{opacity:1} }
@keyframes heroLogoIn {
  from { opacity: 0; transform: translateY(20px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ══════════════════════════════════════════
   BASE BUTTON
══════════════════════════════════════════ */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-weight: 500;
  padding: 16px 24px;
  position: relative;
  overflow: hidden;
  transition: color 0.4s;
}
.btn-dark {
  background: var(--dark);
  color: var(--light);
}
.btn-dark:hover { background: var(--dark-2); }
.btn-blue {
  background: var(--blue);
  color: #fff;
}
.btn-blue:hover { background: var(--blue-bright); }
.btn-outline {
  background: transparent;
  border: 1px solid var(--line);
  color: var(--dark);
  padding: 14px 22px;
  transition: border-color 0.3s, background 0.3s;
}
.btn-outline:hover { background: var(--cream-warm); border-color: var(--blue); }
.btn svg {
  width: 14px; height: 11px;
  flex-shrink: 0;
  transition: transform 0.4s var(--ease-out);
}
.btn:hover svg { transform: translateX(4px); }

/* ══════════════════════════════════════════
   PARALLAX PHOTO SECTIONS
══════════════════════════════════════════ */
.photo-break {
  position: relative;
  height: 100vh;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}
.photo-break-img {
  position: absolute;
  inset: 0;
  height: 100%;
  background-size: cover;
  background-position: center;
  will-change: transform;
  transform: scale(1.0);
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
}
.photo-break-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(
    180deg,
    rgba(26,23,18,0.2) 0%,
    rgba(26,23,18,0.5) 50%,
    rgba(26,23,18,0.2) 100%
  );
  z-index: 1;
}
.photo-break-label {
  position: relative;
  z-index: 2;
  text-align: center;
  color: var(--light);
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 1s var(--ease-out), transform 1s var(--ease-out);
}
.photo-break-label.visible {
  opacity: 1;
  transform: translateY(0);
}
.photo-break-label span {
  display: block;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.35em;
  text-transform: uppercase;
  color: var(--light-faded);
  margin-bottom: 20px;
}
.photo-break-label h3 {
  font-family: var(--serif);
  font-size: clamp(40px, 7vw, 96px);
  font-weight: 400;
  letter-spacing: -0.018em;
  line-height: 0.98;
}
.photo-break-label h3 em {
  font-style: italic;
  color: var(--light);
}

/* ══════════════════════════════════════════
   SECTION BASE
══════════════════════════════════════════ */
.section { position: relative; }
.wrap { max-width: 1440px; margin: 0 auto; padding: 0 6rem; }

.section-label {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--blue);
  display: flex; align-items: center; gap: 14px;
  margin-bottom: 24px;
}
.section-label::before {
  content: '';
  width: 20px; height: 1px;
  background: var(--blue);
}

.section-title {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(46px, 6.2vw, 94px);
  letter-spacing: -0.018em;
  line-height: 1.02;
  margin-bottom: 32px;
  text-wrap: balance;
}
.section-title em { font-style: italic; font-weight: 400; color: var(--dark); }

/* ══════════════════════════════════════════
   TEXT CTA (About)
══════════════════════════════════════════ */
.text-cta {
  padding: 10rem 0;
  background: var(--cream-light);
  border-top: 1px solid var(--line-soft);
}
.text-cta-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6rem;
  align-items: end;
}
.text-cta-left .base-heading {
  font-family: var(--serif);
  font-size: clamp(26px, 3.2vw, 48px);
  font-weight: 400;
  line-height: 1.14;
  letter-spacing: -0.012em;
  margin-bottom: 3rem;
}
.text-cta-right p {
  font-size: 16px;
  line-height: 1.7;
  color: var(--dark-soft);
  margin-bottom: 2rem;
}

/* ══════════════════════════════════════════
   TEAM SECTION
══════════════════════════════════════════ */
.team-section {
  padding: 8rem 0 10rem;
  background: var(--cream-light);
  border-top: 1px solid var(--line-soft);
}
.team-intro {
  max-width: 560px;
  margin-bottom: 5rem;
}
.team-intro .base-heading {
  font-family: var(--serif);
  font-size: clamp(30px, 3.5vw, 52px);
  font-weight: 400;
  line-height: 1.08;
  letter-spacing: -0.014em;
  margin-top: 12px;
}
.team-intro .base-heading em {
  font-style: italic;
  color: var(--dark-soft);
}
.team-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.team-card {
  background: var(--cream);
  border: 1px solid var(--line-soft);
  overflow: hidden;
  transition: transform 0.5s var(--ease-out), box-shadow 0.5s var(--ease-out), border-color 0.4s;
}
.team-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 24px 48px rgba(26,23,18,0.1);
  border-color: var(--blue);
}
.team-photo {
  width: 100%;
  aspect-ratio: 3/4;
  background: var(--cream-warm);
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}
.team-photo-placeholder {
  width: 64px; height: 64px;
  border-radius: 50%;
  background: var(--line);
  position: relative;
}
.team-photo-placeholder::after {
  content: '';
  position: absolute;
  bottom: -24px; left: 50%;
  transform: translateX(-50%);
  width: 96px; height: 64px;
  border-radius: 48px 48px 0 0;
  background: var(--line);
}
.team-photo-num {
  position: absolute;
  bottom: 16px; right: 16px;
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.2em;
  color: var(--dark-faded);
  text-transform: uppercase;
}
.team-info {
  padding: 24px 24px 28px;
  border-top: 1px solid var(--line-soft);
}
.team-name {
  font-size: 20px;
  font-weight: 600;
  letter-spacing: -0.01em;
  margin-bottom: 6px;
}
.team-role {
  font-size: 13px;
  color: var(--dark-soft);
  line-height: 1.5;
  margin-bottom: 14px;
}
.team-tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--blue);
  padding: 5px 12px;
  border: 1px solid rgba(42,38,32,0.25);
  border-radius: 100px;
}
.team-tag::before {
  content: '';
  width: 5px; height: 5px;
  border-radius: 50%;
  background: var(--blue);
}
@media (max-width: 768px) {
  .team-grid { grid-template-columns: 1fr; max-width: 400px; }
}
@media (max-width: 1024px) {
  .team-grid { grid-template-columns: repeat(3, 1fr); gap: 16px; }
}

/* ══════════════════════════════════════════
   TEAM MODAL
══════════════════════════════════════════ */
.team-modal-backdrop {
  display: none;
  position: fixed; top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(10,15,26,0.75);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  z-index: 9000;
  align-items: center;
  justify-content: center;
  padding: 24px;
}
.team-modal-backdrop.open {
  display: flex;
  animation: fadeInBg 0.35s ease both;
}
.team-modal {
  background: var(--cream-light);
  color: var(--dark);
  width: 100%;
  max-width: 900px;
  max-height: 90vh;
  overflow-y: auto;
  position: relative;
  padding: 3.5rem;
  animation: teamZoomIn 0.5s cubic-bezier(.34,1.56,.64,1) both;
}
@keyframes teamZoomIn {
  from { opacity: 0; transform: scale(0.88); }
  to   { opacity: 1; transform: scale(1); }
}
.team-modal-close {
  position: absolute; top: 20px; right: 20px;
  background: transparent; border: 1px solid var(--line);
  color: var(--dark); width: 36px; height: 36px;
  display: flex; align-items: center; justify-content: center;
  cursor: pointer; font-size: 16px; border-radius: 50%;
  transition: background 0.3s, border-color 0.3s;
}
.team-modal-close:hover { background: var(--cream-warm); border-color: var(--blue); }
.team-modal-header { margin-bottom: 3rem; }
.team-modal-header .section-label { color: var(--blue); margin-bottom: 12px; }
.team-modal-header .section-label::before { background: var(--blue); }
.team-modal-header h2 {
  font-family: var(--serif);
  font-size: clamp(28px, 4vw, 52px); font-weight: 400;
  letter-spacing: -0.015em; line-height: 1;
}
.team-modal-header h2 em { font-style: italic; color: var(--blue); }

.team-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.team-card {
  background: var(--cream);
  border: 1px solid var(--line-soft);
  overflow: hidden;
  transition: transform 0.5s var(--ease-out), box-shadow 0.5s var(--ease-out), border-color 0.4s;
  animation: teamCardIn 0.6s var(--ease-out) both;
}
.team-card:nth-child(1) { animation-delay: 0.1s; }
.team-card:nth-child(2) { animation-delay: 0.2s; }
.team-card:nth-child(3) { animation-delay: 0.3s; }
@keyframes teamCardIn {
  from { opacity: 0; transform: translateY(24px) scale(0.96); }
  to   { opacity: 1; transform: translateY(0) scale(1); }
}
.team-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 20px 40px rgba(26,23,18,0.12);
  border-color: var(--blue);
}
.team-photo {
  width: 100%; aspect-ratio: 3/4;
  background: var(--cream-warm);
  position: relative;
  display: flex; align-items: center; justify-content: center;
  overflow: hidden;
}
.team-photo-placeholder {
  width: 60px; height: 60px; border-radius: 50%;
  background: rgba(26,23,18,0.12);
  position: relative;
}
.team-photo-placeholder::after {
  content: '';
  position: absolute;
  bottom: -22px; left: 50%;
  transform: translateX(-50%);
  width: 90px; height: 60px;
  border-radius: 45px 45px 0 0;
  background: rgba(26,23,18,0.08);
}
.team-photo-num {
  position: absolute; bottom: 14px; right: 14px;
  font-family: var(--mono); font-size: 10px;
  letter-spacing: 0.2em; color: var(--dark-faded);
  text-transform: uppercase;
}
.team-info { padding: 22px 22px 26px; border-top: 1px solid var(--line-soft); }
.team-name { font-size: 18px; font-weight: 600; letter-spacing: -0.01em; margin-bottom: 6px; }
.team-role { font-size: 13px; color: var(--dark-soft); line-height: 1.5; margin-bottom: 14px; }
.team-tag {
  display: inline-flex; align-items: center; gap: 6px;
  font-family: var(--mono); font-size: 10px;
  letter-spacing: 0.15em; text-transform: uppercase;
  color: var(--blue); padding: 5px 12px;
  border: 1px solid rgba(42,38,32,0.25); border-radius: 100px;
}
.team-tag::before { content: ''; width: 5px; height: 5px; border-radius: 50%; background: var(--blue); }
@media (max-width: 600px) {
  .team-grid { grid-template-columns: 1fr; }
  .team-modal { padding: 2rem 1.2rem; }
}

/* ══════════════════════════════════════════
   SERVICES (product-collection style)
══════════════════════════════════════════ */
.services-section {
  padding: 10rem 0;
  background: var(--cream);
}
.services-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  margin-bottom: 5rem;
}
.services-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2px;
  background: var(--line);
}
.service-block {
  background: var(--cream-light);
  padding: 4rem 3.5rem;
  position: relative;
  overflow: hidden;
  min-height: 480px;
  display: flex;
  flex-direction: column;
  transition: background 0.6s var(--ease-quart);
}
.service-block::before {
  content: '';
  position: absolute; inset: 0;
  background: var(--dark);
  transform: scaleY(0);
  transform-origin: bottom;
  transition: transform 0.7s var(--ease-quart);
  z-index: 0;
}
.service-block:hover::before { transform: scaleY(1); }
.service-block:hover { color: var(--light); }
.service-block:hover .service-num { color: var(--blue-bright); }
.service-block:hover .service-title em { color: var(--blue-bright); }
.service-block:hover .service-list li { border-color: var(--line-dark); }
.service-block > * { position: relative; z-index: 1; }

.service-num {
  font-family: var(--mono);
  font-size: 11px; letter-spacing: 0.2em;
  color: var(--blue);
  margin-bottom: 2rem;
  transition: color 0.6s;
}
.service-title {
  font-family: var(--serif);
  font-size: clamp(38px, 4vw, 60px);
  font-weight: 400;
  letter-spacing: -0.01em;
  line-height: 1.02;
  margin-bottom: 1.5rem;
}
.service-title em { font-style: italic; color: var(--dark-soft); transition: color 0.6s; }
.service-desc {
  font-size: 15px;
  line-height: 1.6;
  color: var(--dark-soft);
  margin-bottom: auto;
  padding-bottom: 2rem;
  transition: color 0.6s;
}
.service-block:hover .service-desc { color: var(--light-soft); }
.service-list { list-style: none; margin-top: auto; }
.service-list li {
  padding: 12px 0;
  border-bottom: 1px solid var(--line-soft);
  display: flex; justify-content: space-between;
  font-size: 14px;
  transition: border-color 0.6s, padding-left 0.4s var(--ease-out);
}
.service-block:hover .service-list li { padding-left: 8px; }
.service-list li:last-child { border: none; }
.service-list .num {
  font-family: var(--mono);
  font-size: 10px;
  color: var(--blue);
  transition: color 0.6s;
}
.service-block:hover .service-list .num { color: var(--blue-bright); }

/* ══════════════════════════════════════════
   WHY US (3 cells)
══════════════════════════════════════════ */
.why-section {
  padding: 10rem 0;
  background: var(--cream-light);
  border-top: 1px solid var(--line-soft);
}
.why-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2px;
  background: var(--line);
  margin-top: 4rem;
}
.why-cell {
  background: var(--cream);
  padding: 3.5rem 2.5rem;
  border: 1px solid transparent;
  transition: transform 0.5s var(--ease-out), border-color 0.4s, background 0.4s;
}
.why-cell:hover {
  transform: translateY(-4px);
  border-color: var(--blue);
  background: var(--cream-warm);
}
.why-icon {
  width: 44px; height: 44px;
  stroke: var(--blue); fill: none; stroke-width: 1;
  margin-bottom: 1.5rem;
}
.why-cell h4 {
  font-family: var(--serif);
  font-size: 22px;
  font-weight: 400;
  margin-bottom: 10px;
  letter-spacing: -0.005em;
}
.why-cell p { font-size: 14px; color: var(--dark-soft); line-height: 1.6; }

/* ══════════════════════════════════════════
   STATS
══════════════════════════════════════════ */
.stats-section {
  padding: 6rem 0;
  background: var(--dark);
  color: var(--light);
  border-top: 1px solid var(--line-dark);
}
.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
}
.stat-item {
  border-left: 1px solid var(--line-dark);
  padding: 2rem;
  transition: border-color 0.4s;
}
.stat-item:hover { border-left-color: var(--blue-bright); }
.stat-num {
  font-family: var(--serif);
  font-size: clamp(56px, 6vw, 86px);
  font-weight: 400;
  letter-spacing: -0.02em;
  line-height: 1;
  display: flex; align-items: baseline; gap: 4px;
}
.stat-num .suffix { font-size: 28px; color: var(--blue-bright); }
.stat-label {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--light-faded);
  margin-top: 12px;
}

/* ══════════════════════════════════════════
   PORTFOLIO (featured projects)
══════════════════════════════════════════ */
.portfolio-section {
  padding: 10rem 0;
  background: var(--cream-light);
  border-top: 1px solid var(--line-soft);
}
.portfolio-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  margin-bottom: 4rem;
}
.portfolio-grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 16px;
}
.project {
  position: relative;
  overflow: hidden;
  text-decoration: none;
  color: inherit;
  background: var(--cream-warm);
}
.project img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 1.2s var(--ease-quart);
  filter: grayscale(8%);
}
.project:hover img { transform: scale(1.06); filter: grayscale(0%); }
.project-info {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  padding: 24px;
  background: linear-gradient(180deg, transparent, rgba(26,23,18,0.85));
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  color: var(--light);
  transform: translateY(8px);
  opacity: 0;
  transition: transform 0.5s var(--ease-out), opacity 0.4s;
}
.project:hover .project-info { transform: translateY(0); opacity: 1; }
.project-name {
  font-size: 20px; font-weight: 300;
}
.project-name em { font-style: italic; color: var(--blue-bright); }
.project-tag {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--blue-bright);
}
.p1 { grid-column: span 7; aspect-ratio: 16/10; }
.p2 { grid-column: span 5; aspect-ratio: 4/5; }
.p3 { grid-column: span 5; aspect-ratio: 4/5; }
.p4 { grid-column: span 7; aspect-ratio: 16/10; }
.p5 { grid-column: span 4; aspect-ratio: 1; }
.p6 { grid-column: span 4; aspect-ratio: 1; }
.p7 { grid-column: span 4; aspect-ratio: 1; }

/* ══════════════════════════════════════════
   WORKFLOW
══════════════════════════════════════════ */
.workflow-section {
  padding: 10rem 0;
  background: var(--dark);
  color: var(--light);
  position: relative;
  overflow: hidden;
}
.workflow-section::before {
  content: '';
  position: absolute; top: 0; left: 0; right: 0; height: 1px;
  background: linear-gradient(90deg, transparent, var(--blue), transparent);
}

.workflow-steps {
  position: relative;
  margin-top: 5rem;
}

/* Línea vertical conectora */
.workflow-line {
  position: absolute;
  left: 50%;
  top: 0; bottom: 0;
  width: 1px;
  background: var(--line-dark);
  transform: translateX(-50%);
}
.workflow-line-fill {
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 0%;
  background: linear-gradient(180deg, var(--blue), var(--blue-bright));
  transition: height 0.1s linear;
}

/* Cada paso */
.workflow-step {
  display: grid;
  grid-template-columns: 1fr 80px 1fr;
  gap: 0;
  align-items: center;
  margin-bottom: 5rem;
  position: relative;
}
.workflow-step:last-child { margin-bottom: 0; }

/* Contenido izquierda */
.workflow-content-left {
  text-align: right;
  padding-right: 4rem;
  opacity: 0;
  transform: translateX(-40px);
  transition: opacity 0.7s var(--ease-out), transform 0.7s var(--ease-out);
}
.workflow-step.visible .workflow-content-left {
  opacity: 1; transform: translateX(0);
}

/* Contenido derecha */
.workflow-content-right {
  text-align: left;
  padding-left: 4rem;
  opacity: 0;
  transform: translateX(40px);
  transition: opacity 0.7s var(--ease-out), transform 0.7s var(--ease-out);
}
.workflow-step.visible .workflow-content-right {
  opacity: 1; transform: translateX(0);
}

/* Nodo central */
.workflow-node {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  position: relative;
  z-index: 2;
}
.workflow-node-circle {
  width: 56px; height: 56px;
  border-radius: 50%;
  border: 1px solid var(--line-dark);
  background: var(--dark);
  display: flex; align-items: center; justify-content: center;
  font-family: var(--mono);
  font-size: 13px;
  letter-spacing: 0.1em;
  color: var(--light-faded);
  transition: border-color 0.5s, color 0.5s, background 0.5s, box-shadow 0.5s;
}
.workflow-step.visible .workflow-node-circle {
  border-color: var(--blue);
  color: var(--blue-bright);
  background: rgba(42,38,32,0.12);
  box-shadow: 0 0 24px rgba(138,130,113,0.3);
}

/* Texto del paso */
.workflow-step-num {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--blue-bright);
  margin-bottom: 8px;
  display: block;
}
.workflow-step-title {
  font-family: var(--serif);
  font-size: clamp(22px, 2.7vw, 34px);
  font-weight: 400;
  letter-spacing: -0.01em;
  line-height: 1.12;
  margin-bottom: 10px;
}
.workflow-step-title em { font-style: italic; color: var(--blue-bright); }
.workflow-step-desc {
  font-size: 14px;
  line-height: 1.65;
  color: var(--light-soft);
  max-width: 320px;
}
.workflow-content-left .workflow-step-desc { margin-left: auto; }
.workflow-step-time {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--blue);
  margin-top: 14px;
  padding: 6px 14px;
  border: 1px solid rgba(42,38,32,0.3);
  border-radius: 100px;
}
.workflow-step-icon {
  width: 20px; height: 20px;
  stroke: var(--blue-bright); fill: none; stroke-width: 1.5;
}

/* Alternating layout — pasos pares a la derecha */
.workflow-step.alt .workflow-content-left { order: 3; text-align: left; padding-left: 4rem; padding-right: 0; transform: translateX(40px); }
.workflow-step.alt .workflow-content-left .workflow-step-desc { margin-left: 0; }
.workflow-step.alt .workflow-node { order: 2; }
.workflow-step.alt .workflow-content-right { order: 1; text-align: right; padding-right: 4rem; padding-left: 0; transform: translateX(-40px); }
.workflow-step.alt .workflow-content-right .workflow-step-desc { margin-left: auto; }
.workflow-step.alt.visible .workflow-content-left { transform: translateX(0); }
.workflow-step.alt.visible .workflow-content-right { transform: translateX(0); }

@media (max-width: 768px) {
  .workflow-line { left: 28px; }
  .workflow-step {
    grid-template-columns: 56px 1fr;
    gap: 0 1.5rem;
  }
  .workflow-content-left,
  .workflow-step.alt .workflow-content-left { order: 2; text-align: left; padding: 0; transform: translateY(20px); }
  .workflow-node, .workflow-step.alt .workflow-node { order: 1; }
  .workflow-content-right { display: none; }
  .workflow-step.alt .workflow-content-right { display: none; }
  .workflow-step.alt.visible .workflow-content-left { transform: translateY(0); }
}

/* ══════════════════════════════════════════
   HORIZONTAL SCROLL CAROUSEL
══════════════════════════════════════════ */
.h-scroll-wrapper {
  height: 400vh;
  position: relative;
  overflow: clip; /* Chrome-safe: doesn't break sticky like overflow:hidden */
}
.h-scroll-sticky {
  position: sticky;
  top: 0;
  height: 100vh;
  overflow: hidden;
  display: flex;
  align-items: center;
}
.h-scroll-track {
  display: flex;
  gap: 2vw;
  padding: 0 6vw;
  will-change: transform;
  transition: transform 0.05s linear;
}
.h-scroll-slide {
  flex-shrink: 0;
  width: 75vw;
  height: 80vh;
  position: relative;
  overflow: hidden;
}
.h-scroll-slide img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 0.6s var(--ease-out);
}
.h-scroll-slide:hover img { transform: scale(1.04); }
.h-scroll-caption {
  position: absolute;
  bottom: 2rem; left: 2rem; right: 2rem;
  color: var(--light);
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  background: linear-gradient(180deg, transparent, rgba(26,23,18,0.7));
  padding: 3rem 1.5rem 1.5rem;
  margin: -1.5rem;
}
.h-scroll-caption-name {
  font-size: 22px; font-weight: 300;
}
.h-scroll-caption-name em { font-style: italic; color: var(--blue-bright); }
.h-scroll-caption-tag {
  font-family: var(--mono); font-size: 10px;
  letter-spacing: 0.2em; text-transform: uppercase;
  color: var(--blue-bright);
}
.h-scroll-header {
  position: absolute;
  top: 3rem; left: 6vw; right: 6vw;
  z-index: 2;
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  color: var(--light);
  pointer-events: none;
}
.h-scroll-header .section-label { color: var(--blue-bright); }
.h-scroll-header .section-label::before { background: var(--blue-bright); }
.h-scroll-progress {
  display: flex; gap: 6px; align-items: center;
}
.h-scroll-progress-dot {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: rgba(243,241,235,0.3);
  transition: background 0.4s, width 0.4s;
}
.h-scroll-progress-dot.active {
  background: var(--blue-bright);
  width: 24px; border-radius: 3px;
}

/* ══════════════════════════════════════════
   PROCESS
══════════════════════════════════════════ */
.process-section {
  padding: 10rem 0;
  background: var(--cream);
  border-top: 1px solid var(--line-soft);
}
.process-list { margin-top: 4rem; }
.process-row {
  display: grid;
  grid-template-columns: 80px 1fr 1fr 120px;
  gap: 3rem;
  padding: 2.5rem 0;
  border-top: 1px solid var(--line-soft);
  align-items: start;
  transition: padding-left 0.4s var(--ease-out), background 0.3s;
}
.process-row:last-child { border-bottom: 1px solid var(--line-soft); }
.process-row:hover { padding-left: 12px; background: var(--cream-warm); }
.process-step {
  font-size: 48px; font-weight: 700;
  color: var(--blue); letter-spacing: -0.03em; line-height: 1;
}
.process-row h4 {
  font-family: var(--serif);
  font-size: 28px; font-weight: 400;
  letter-spacing: -0.01em; line-height: 1.15;
}
.process-row h4 em { font-style: normal; color: var(--blue); }
.process-row p { font-size: 14px; color: var(--dark-soft); line-height: 1.6; }
.process-time {
  font-family: var(--mono);
  font-size: 10px; letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--dark-soft);
  text-align: right; padding-top: 8px;
}

/* ══════════════════════════════════════════
   TESTIMONIALS (client stories)
══════════════════════════════════════════ */
.testimonials-section {
  padding: 10rem 0;
  background: var(--cream-light);
  border-top: 1px solid var(--line-soft);
}
.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2px;
  background: var(--line);
  margin-top: 4rem;
}
.testimonial {
  background: var(--cream);
  padding: 3rem 2.5rem;
  transition: transform 0.5s var(--ease-out), box-shadow 0.5s var(--ease-out), background 0.4s;
}
.testimonial:hover {
  transform: translateY(-8px);
  box-shadow: 0 24px 48px rgba(26,23,18,0.1);
  background: var(--cream-warm);
}
.stars { color: var(--blue); font-size: 13px; letter-spacing: 4px; margin-bottom: 1.2rem; }
.testimonial-quote {
  font-size: 17px; font-style: italic; font-weight: 300;
  line-height: 1.5; margin-bottom: 2rem;
}
.testimonial-quote::before {
  content: '"';
  font-size: 48px; color: var(--blue);
  line-height: 0; vertical-align: -14px;
  margin-right: 4px; opacity: 0.6;
}
.testimonial-author { border-top: 1px solid var(--line-soft); padding-top: 16px; }
.testimonial-name { font-size: 14px; font-weight: 500; margin-bottom: 4px; }
.testimonial-role {
  font-family: var(--mono); font-size: 10px;
  letter-spacing: 0.15em; text-transform: uppercase; color: var(--dark-soft);
}

/* ══════════════════════════════════════════
   BANNER (dark section — appointment)
══════════════════════════════════════════ */
.banner-section {
  background: var(--dark);
  color: var(--light);
  padding: 10rem 0;
  position: relative;
  overflow: hidden;
  border-top: 1px solid rgba(138,130,113,0.3);
}
.banner-section::before {
  content: ''; position: absolute;
  top: 0; left: 0; right: 0; height: 1px;
  background: var(--blue); opacity: 0.4;
}
.banner-inner {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 6rem;
  align-items: start;
}
.banner-label {
  font-family: var(--mono); font-size: 10px;
  letter-spacing: 0.25em; text-transform: uppercase;
  color: var(--blue-bright); display: flex; align-items: center; gap: 14px;
  margin-bottom: 24px;
}
.banner-label::before { content: ''; width: 20px; height: 1px; background: var(--blue-bright); }
.banner-title {
  font-family: var(--serif);
  font-size: clamp(36px, 5vw, 70px); font-weight: 400;
  letter-spacing: -0.015em; line-height: 1.02; margin-bottom: 2rem;
}
.banner-title em { font-style: italic; color: var(--light); }
.banner-desc { color: var(--light-soft); font-size: 16px; line-height: 1.7; margin-bottom: 2rem; max-width: 420px; }

.meet-badge {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 10px 16px;
  background: rgba(243,241,235,0.08);
  border: 1px solid var(--line-dark);
  border-radius: 100px;
  font-family: var(--mono); font-size: 11px; letter-spacing: 0.15em;
  text-transform: uppercase;
  margin-bottom: 2rem;
}
.meet-badge svg { width: 16px; height: 16px; }

.info-block {
  border-top: 1px solid var(--line-dark);
  padding: 18px 0;
  display: flex; align-items: center; gap: 16px;
}
.info-block:last-child { border-bottom: 1px solid var(--line-dark); }
.info-icon { width: 32px; height: 32px; stroke: var(--blue-bright); fill: none; stroke-width: 1.2; flex-shrink: 0; }
.info-block-text small {
  font-family: var(--mono); font-size: 10px; letter-spacing: 0.15em;
  text-transform: uppercase; color: var(--light-soft); display: block; margin-bottom: 3px;
}
.info-block-text strong { font-size: 14px; font-weight: 400; }

/* Form */
.booking-steps { position: relative; }
.booking-step { width: 100%; }
.booking-step-label {
  display: flex; align-items: center; gap: 12px;
  font-family: var(--mono); font-size: 11px;
  letter-spacing: 0.15em; text-transform: uppercase;
  color: var(--light-soft); margin-bottom: 2rem;
}
.booking-step-num {
  font-size: 10px; color: var(--blue-bright);
  border: 1px solid var(--blue-bright);
  padding: 3px 7px; border-radius: 4px;
}
.booking-back {
  background: none; border: none; cursor: pointer;
  color: var(--light-soft); display: flex; align-items: center;
  gap: 6px; font-family: var(--mono); font-size: 11px;
  letter-spacing: 0.1em; text-transform: uppercase;
  padding: 0; margin-right: auto;
  transition: color 0.3s;
}
.booking-back:hover { color: var(--light); }
.booking-prefill-summary {
  background: rgba(42,38,32,0.1);
  border: 1px solid rgba(42,38,32,0.25);
  border-radius: 8px; padding: 12px 16px;
  font-size: 13px; color: var(--light-soft);
  display: flex; flex-wrap: wrap; gap: 8px 24px;
}
.booking-prefill-summary span { display: flex; align-items: center; gap: 6px; }
.booking-prefill-summary strong { color: var(--light); }
.form-card--calendar { padding: 2rem 2.5rem; }
.form-card {
  background: var(--dark-2);
  border: 1px solid var(--line-dark);
  padding: 3rem;
  position: relative;
}
.form-card::before {
  content: ''; position: absolute; top: -1px; left: -1px;
  width: 48px; height: 48px;
  border-top: 1px solid var(--blue-bright); border-left: 1px solid var(--blue-bright);
}
.form-card::after {
  content: ''; position: absolute; bottom: -1px; right: -1px;
  width: 48px; height: 48px;
  border-bottom: 1px solid var(--blue-bright); border-right: 1px solid var(--blue-bright);
}
.form-row {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 20px; margin-bottom: 20px;
}
.form-row.single { grid-template-columns: 1fr; }
.field label {
  display: block;
  font-family: var(--mono); font-size: 10px; letter-spacing: 0.2em;
  text-transform: uppercase; color: var(--light-soft); margin-bottom: 8px;
}
.field label .req { color: var(--blue-bright); }
.field input, .field select, .field textarea {
  width: 100%; background: transparent;
  border: none; border-bottom: 1px solid var(--line-dark);
  padding: 10px 0; color: var(--light);
  font-family: var(--sans); font-size: 15px;
  transition: border-color 0.3s;
}
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none; border-bottom-color: var(--blue-bright);
}
.field textarea { resize: vertical; min-height: 100px; line-height: 1.5; }
.field select {
  appearance: none;
  background-image: url("data:image/svg+xml;charset=US-ASCII,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%234A8FE0' d='M6 9L1 4h10z'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right center; padding-right: 20px;
}
.field select option { background: var(--dark-2); color: var(--light); }

.btn-submit {
  width: 100%; margin-top: 16px;
  background: var(--blue-bright); color: var(--dark);
  border: none; padding: 18px;
  font-family: var(--mono); font-size: 11px;
  letter-spacing: 0.2em; text-transform: uppercase; font-weight: 600;
  position: relative; overflow: hidden;
  transition: color 0.4s; cursor: pointer;
}
.btn-submit::before {
  content: ''; position: absolute; inset: 0;
  background: var(--dark); transform: scaleX(0); transform-origin: right;
  transition: transform 0.5s var(--ease-quart);
}
.btn-submit:hover { color: var(--light); }
.btn-submit:hover::before { transform: scaleX(1); transform-origin: left; }
.btn-submit span { position: relative; z-index: 1; display: flex; align-items: center; justify-content: center; gap: 10px; }

.form-success { display: none; text-align: center; padding: 3rem 1.5rem; }
.form-success.show { display: block; animation: fadeUp 0.5s var(--ease-out) both; }
.form-success svg { width: 48px; height: 48px; stroke: var(--blue-bright); fill: none; stroke-width: 1; margin: 0 auto 1.5rem; }
.form-success h3 { font-family: var(--serif); font-size: 28px; font-weight: 400; margin-bottom: 8px; }
.form-success p { color: var(--light-soft); font-size: 14px; }

/* ══════════════════════════════════════════
   CONTACT
══════════════════════════════════════════ */
.contact-section {
  padding: 10rem 0;
  background: var(--cream);
  border-top: 1px solid var(--line-soft);
}
.contact-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6rem;
  align-items: start;
  margin-top: 3rem;
}
.contact-info p { color: var(--dark-soft); font-size: 16px; line-height: 1.7; margin-bottom: 2.5rem; max-width: 440px; }
.contact-list { list-style: none; }
.contact-list li {
  border-top: 1px solid var(--line-soft);
  padding: 18px 0;
  display: flex; justify-content: space-between; align-items: center; gap: 16px;
}
.contact-list li:last-child { border-bottom: 1px solid var(--line-soft); }
.contact-list small {
  font-family: var(--mono); font-size: 10px;
  letter-spacing: 0.2em; text-transform: uppercase; color: var(--dark-soft);
}
.contact-list a, .contact-list span {
  font-size: 15px; color: var(--dark); transition: color 0.3s;
}
.contact-list a:hover { color: var(--blue); }

/* Contact form (light) */
.form-light {
  background: var(--cream-light);
  border: 1px solid var(--line);
  padding: 3rem;
  position: relative;
}
.form-light::before {
  content: ''; position: absolute; top: -1px; left: -1px;
  width: 48px; height: 48px;
  border-top: 1px solid var(--blue); border-left: 1px solid var(--blue);
}
.form-light::after {
  content: ''; position: absolute; bottom: -1px; right: -1px;
  width: 48px; height: 48px;
  border-bottom: 1px solid var(--blue); border-right: 1px solid var(--blue);
}
.form-light .field label { color: var(--dark-soft); }
.form-light .field input,
.form-light .field select,
.form-light .field textarea {
  color: var(--dark); border-bottom-color: var(--line);
}
.form-light .field select option { background: var(--cream-light); color: var(--dark); }

/* ══════════════════════════════════════════
   FILE UPLOAD FIELD
══════════════════════════════════════════ */
.file-field { margin-bottom: 20px; }
.file-field > label {
  display: block; font-family: var(--mono); font-size: 10px; letter-spacing: 0.2em;
  text-transform: uppercase; color: var(--light-soft); margin-bottom: 10px;
}
.file-field > label .file-label-hint {
  text-transform: none; letter-spacing: 0; font-family: var(--sans);
  opacity: 0.55; margin-left: 6px; font-size: 11px;
}
.file-drop {
  border: 1px dashed var(--line-dark);
  padding: 1.2rem 1.4rem;
  display: flex; align-items: center; gap: 14px; flex-wrap: wrap;
  transition: border-color 0.3s, background 0.3s;
  cursor: pointer;
}
.file-drop.dragover { border-color: var(--blue-bright); background: rgba(74,143,224,0.06); }
.file-btn {
  display: inline-flex; align-items: center; gap: 8px; flex-shrink: 0;
  padding: 10px 18px; border: 1px solid var(--line-dark); border-radius: 100px;
  font-family: var(--mono); font-size: 10px; letter-spacing: 0.15em; text-transform: uppercase;
  color: var(--light); background: transparent; cursor: pointer; transition: all 0.3s;
}
.file-btn:hover { border-color: var(--blue-bright); color: var(--blue-bright); }
.file-btn svg { width: 13px; height: 13px; }
.file-drop-text { font-size: 13px; color: var(--light-faded); }
.file-list { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.file-chip {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 6px 6px 6px 14px; border: 1px solid var(--line-dark); border-radius: 100px;
  font-size: 12px; color: var(--light-soft); max-width: 240px;
}
.file-chip span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.file-chip button {
  width: 20px; height: 20px; min-width: 0; min-height: 0; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  background: rgba(255,255,255,0.08); color: var(--light); flex-shrink: 0; font-size: 14px; line-height: 1;
}
.file-chip button:hover { background: var(--blue-bright); color: var(--dark); }
.file-error { color: #e0665a; font-size: 12px; margin-top: 8px; display: none; }
.file-error.show { display: block; }

.modal-form .file-field > label { color: var(--dark-soft); }
.modal-form .file-drop { border-color: var(--line); }
.modal-form .file-btn { border-color: var(--line); color: var(--dark); }
.modal-form .file-btn:hover { border-color: var(--blue); color: var(--blue); }
.modal-form .file-drop-text { color: var(--dark-faded); }
.modal-form .file-chip { border-color: var(--line); color: var(--dark-soft); }
.modal-form .file-chip button { background: rgba(15,23,18,0.08); color: var(--dark); }

/* ══════════════════════════════════════════
   FOOTER
══════════════════════════════════════════ */
footer {
  background: var(--dark);
  color: var(--light);
  padding: 5rem 0 2.5rem;
}
.footer-marquee {
  overflow: hidden;
  border-bottom: 1px solid var(--line-dark);
  padding: 2rem 0;
  margin-bottom: 3.5rem;
}
.marquee-track {
  display: flex; gap: 60px; white-space: nowrap;
  animation: marquee 30s linear infinite;
  font-family: var(--serif);
  font-size: clamp(40px, 6vw, 80px);
  font-weight: 400; letter-spacing: -0.01em;
}
.marquee-track em { font-style: italic; color: var(--blue-bright); }
.marquee-track .dot { color: var(--blue-bright); font-size: 40px; align-self: center; }
@keyframes marquee { from { transform: translateX(0); } to { transform: translateX(-50%); } }

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 4rem; margin-bottom: 4rem;
}
.footer-col h5 {
  font-family: var(--mono); font-size: 10px;
  letter-spacing: 0.2em; text-transform: uppercase;
  color: var(--blue-bright); margin-bottom: 1.5rem;
}
.footer-col a, .footer-col p {
  color: var(--light-soft); font-size: 14px;
  display: block; padding: 5px 0;
  transition: color 0.3s, padding-left 0.3s;
}
.footer-col a:hover { color: var(--light); padding-left: 6px; }
.footer-bottom {
  border-top: 1px solid var(--line-dark);
  padding-top: 2rem;
  display: flex; justify-content: space-between; align-items: center;
  font-family: var(--mono); font-size: 10px;
  letter-spacing: 0.15em; text-transform: uppercase;
  color: var(--light-faded);
}

/* ══════════════════════════════════════════
   CAPABILITIES / AUTHORITY PROJECTS
══════════════════════════════════════════ */
.capabilities-section {
  padding: 8rem 0;
  background: var(--cream-light);
  border-top: 1px solid var(--line-soft);
}
.cap-intro {
  max-width: 420px;
  font-size: 15px;
  line-height: 1.7;
  color: var(--dark-soft);
  align-self: flex-end;
}
.cap-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  margin-top: 3rem;
}
.cap-card {
  background: var(--cream);
  padding: 2.8rem 2.2rem;
  display: flex;
  flex-direction: column;
  transition: background 0.5s var(--ease-quart), transform 0.5s var(--ease-quart);
}
.cap-card:hover { background: var(--cream-warm); }
.cap-num {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.2em;
  color: var(--blue);
  margin-bottom: 1.5rem;
}
.cap-card h3 {
  font-family: var(--serif);
  font-size: 23px;
  font-weight: 400;
  letter-spacing: -0.005em;
  line-height: 1.2;
  margin-bottom: 1rem;
}
.cap-card p {
  font-size: 14px;
  line-height: 1.65;
  color: var(--dark-soft);
  margin-bottom: 1.5rem;
}
.cap-list {
  list-style: none;
  margin-top: auto;
  padding: 0;
  border-top: 1px solid var(--line-soft);
}
.cap-list li {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--dark-faded);
  padding: 9px 0;
  border-bottom: 1px solid var(--line-soft);
}
.cap-list li:last-child { border-bottom: none; }
[data-theme="dark"] .capabilities-section { background: var(--cream-light); }
[data-theme="dark"] .cap-card { background: var(--cream); }
[data-theme="dark"] .cap-card:hover { background: var(--cream-warm); }
[data-theme="dark"] .cap-card h3 { color: var(--dark); }
@media (max-width: 900px) { .cap-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 600px) {
  .cap-grid { grid-template-columns: 1fr; }
  .capabilities-section { padding: 5rem 0; }
}

/* ══════════════════════════════════════════
   REVEAL ANIMATIONS — Chrome + Safari compatible
══════════════════════════════════════════ */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  filter: blur(7px);
  transition: opacity 1.2s cubic-bezier(0.22, 1, 0.36, 1),
              transform 1.2s cubic-bezier(0.22, 1, 0.36, 1),
              filter 1.2s cubic-bezier(0.22, 1, 0.36, 1);
  will-change: opacity, transform, filter;
}
.reveal.in {
  opacity: 1;
  transform: translateY(0);
  filter: blur(0);
}
.reveal.d1 { transition-delay: 0.1s; }
.reveal.d2 { transition-delay: 0.2s; }
.reveal.d3 { transition-delay: 0.3s; }
.reveal.d4 { transition-delay: 0.4s; }
.reveal.d5 { transition-delay: 0.5s; }



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

/* ══════════════════════════════════════════
   MODAL
══════════════════════════════════════════ */
.modal-backdrop {
  display: none; position: fixed; inset: 0;
  background: rgba(10,15,26,0.7);
  backdrop-filter: blur(8px);
  z-index: 9000;
  align-items: center; justify-content: center;
  padding: 24px;
}
.modal-backdrop.open { display: flex; animation: fadeInBg 0.3s ease; }
@keyframes fadeInBg { from { opacity: 0; } to { opacity: 1; } }
.modal {
  background: #fff; color: var(--dark);
  border: 1px solid var(--line);
  width: 100%; max-width: 680px; max-height: 90vh;
  overflow-y: auto; position: relative; padding: 3rem;
  animation: slideUpModal 0.4s var(--ease-out);
}
@keyframes slideUpModal {
  from { opacity: 0; transform: translateY(32px); }
  to   { opacity: 1; transform: translateY(0); }
}
.modal::before { content: ''; position: absolute; top: -1px; left: -1px; width: 48px; height: 48px; border-top: 1px solid var(--blue); border-left: 1px solid var(--blue); }
.modal::after  { content: ''; position: absolute; bottom: -1px; right: -1px; width: 48px; height: 48px; border-bottom: 1px solid var(--blue); border-right: 1px solid var(--blue); }
.modal-close {
  position: absolute; top: 16px; right: 16px;
  background: transparent; border: 1px solid var(--line);
  color: var(--dark); width: 36px; height: 36px;
  display: flex; align-items: center; justify-content: center;
  cursor: pointer; font-size: 16px;
  transition: background 0.3s, border-color 0.3s; z-index: 2;
}
.modal-close:hover { background: var(--cream-warm); border-color: var(--blue); }
.modal-head { margin-bottom: 2rem; }
.modal-head .section-label { color: var(--blue); margin-bottom: 12px; }
.modal-head .section-label::before { background: var(--blue); }
.modal-head h2 {
  font-family: var(--serif);
  font-size: clamp(26px, 4vw, 42px); font-weight: 400;
  letter-spacing: -0.012em; line-height: 1.04;
}
.modal-head h2 em { font-style: italic; color: var(--blue); }
.modal-head p { margin-top: 10px; color: var(--dark-soft); font-size: 14px; line-height: 1.6; }
.modal .meet-badge { background: rgba(26,23,18,0.06); border-color: var(--line); color: var(--dark); margin-top: 16px; }
.modal .info-block { border-top-color: var(--line-soft); }
.modal .info-block:last-child { border-bottom-color: var(--line-soft); }
.modal .info-icon { stroke: var(--blue); }
.modal .info-block-text small { color: var(--dark-soft); }
.modal .info-block-text strong { color: var(--dark); }
.modal-form .field label { color: var(--dark-soft); }
.modal-form .field input, .modal-form .field select, .modal-form .field textarea {
  color: var(--dark); border-bottom-color: var(--line);
}
.modal-form .field select option { background: #fff; color: var(--dark); }
.modal .btn-submit { background: var(--blue); color: #fff; }
.modal .btn-submit::before { background: var(--dark); }
.modal .form-success svg { stroke: var(--blue); }
.modal .form-success p { color: var(--dark-soft); }

/* ══════════════════════════════════════════
   RESPONSIVE
══════════════════════════════════════════ */
@media (max-width: 1024px) {
  .wrap { padding: 0 2.5rem; }
  .header-nav { display: none; }
  .burger { display: flex; }
  .home-header-inner { padding: 0 2.5rem; }
  .home-header-bottom { grid-template-columns: 1fr; gap: 2rem; }
  .text-cta-inner { grid-template-columns: 1fr; gap: 3rem; }
  .services-grid { grid-template-columns: 1fr; }
  .why-grid { grid-template-columns: 1fr 1fr; }
  .stats-grid { grid-template-columns: 1fr 1fr; }
  .portfolio-grid { grid-template-columns: 1fr 1fr; gap: 12px; }
  .p1,.p2,.p3,.p4,.p5,.p6,.p7 { grid-column: span 1; aspect-ratio: 4/3; }
  .process-row { grid-template-columns: 60px 1fr; gap: 16px; }
  .process-row p, .process-time { grid-column: 2; }
  .process-time { text-align: left; }
  .testimonials-grid { grid-template-columns: 1fr; }
  .banner-inner { grid-template-columns: 1fr; gap: 3rem; }
  .contact-inner { grid-template-columns: 1fr; gap: 3rem; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 2rem; }
  .form-row { grid-template-columns: 1fr; }
  .home-header { padding-bottom: 6rem; }
}
/* ── Tablet (768px) ── */
@media (max-width: 768px) {
  .home-header-title { font-size: clamp(38px, 9vw, 64px); }
  .section-title { font-size: clamp(28px, 6vw, 48px); }
  .base-heading { font-size: clamp(22px, 5vw, 36px); }
  .team-grid { grid-template-columns: 1fr !important; }
  .h-scroll-track { gap: 1rem; }
  .h-scroll-slide { min-width: 280px; }
  .banner-title { font-size: clamp(32px, 7vw, 56px); }
  .photo-break { height: 60vh; }
  .photo-break-label h3 { font-size: clamp(24px, 5vw, 40px); }
}

/* ── Mobile (480px) ── */
@media (max-width: 480px) {
  .wrap { padding: 0 1rem; }
  .home-header-inner { padding: 0 1rem; }
  .home-header-title { font-size: clamp(32px, 10vw, 52px); }
  .home-header-tagline { font-size: 13px; }
  .section { padding: 4rem 0; }
  .section-title { font-size: clamp(26px, 8vw, 40px); }
  .base-heading { font-size: clamp(20px, 6vw, 30px); }
  .stats-grid { grid-template-columns: 1fr 1fr; gap: 1.5rem; }
  .stat-number { font-size: clamp(36px, 10vw, 56px); }
  .portfolio-grid { grid-template-columns: 1fr; gap: 8px; }
  .process-row { grid-template-columns: 48px 1fr; }
  .footer-grid { grid-template-columns: 1fr; gap: 2rem; }
  .footer-bottom { flex-direction: column; gap: 8px; text-align: center; }
  .marquee-track { font-size: 32px; gap: 2rem; }
  .photo-break { height: 50vh; }
  .photo-break-label h3 { font-size: clamp(20px, 7vw, 32px); }
  .team-modal { padding: 1.5rem 1rem; }
  .menu-overlay { width: calc(100vw - 2rem); padding: 2rem 1.5rem 0; bottom: 5rem; }
  .menu-nav a { font-size: clamp(24px, 8vw, 36px); }
  .header.is-bottom { width: calc(100vw - 3rem); }
  .banner-inner { gap: 2rem; }
  .contact-inner { gap: 2rem; }
  .h-scroll-slide { min-width: 240px; }
  .why-grid { grid-template-columns: 1fr; }
  .testimonials-grid { grid-template-columns: 1fr; }
}

/* ══════════════════════════════════════════
   SCROLL VIDEO SECTION
══════════════════════════════════════════ */
.scroll-video-section {
  height: 400vh;
  position: relative;
}
.scroll-video-sticky {
  position: sticky;
  top: 0;
  height: 100vh;
  overflow: hidden;
  background: #000;
}
.scroll-video-el {
  position: absolute;
  inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  will-change: transform;
  opacity: 0;
  transition: opacity 1.2s ease;
}
/* El vídeo sólo se muestra cuando hay datos suficientes: hasta entonces, negro */
.scroll-video-el.is-ready { opacity: 1; }
.scroll-video-grain {
  position: absolute; inset: 0; z-index: 1; pointer-events: none;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.04'/%3E%3C/svg%3E");
  opacity: 0.35; mix-blend-mode: overlay;
}
.scroll-video-vignette {
  position: absolute; inset: 0; z-index: 2; pointer-events: none;
  background: radial-gradient(ellipse at center, transparent 40%, rgba(0,0,0,0.7) 100%);
}
/* Niebla oscura que se disipa — el logo emerge del negro */
.scroll-video-fog {
  position: absolute; inset: -10%; z-index: 2; pointer-events: none;
  background:
    radial-gradient(60% 55% at 30% 20%, rgba(0,0,0,0.92), transparent 62%),
    radial-gradient(55% 60% at 75% 30%, rgba(0,0,0,0.88), transparent 64%),
    radial-gradient(70% 65% at 50% 85%, rgba(0,0,0,0.95), transparent 66%),
    linear-gradient(180deg, rgba(0,0,0,0.9), rgba(0,0,0,0.55) 45%, rgba(0,0,0,0.9));
  filter: blur(14px);
  opacity: 1;
  animation: fogClear 3.4s cubic-bezier(0.4, 0, 0.2, 1) 0.3s forwards;
}
@keyframes fogClear {
  0%   { opacity: 1;    transform: scale(1.15); }
  100% { opacity: 0;    transform: scale(1); }
}
.scroll-video-logo-wrap {
  position: absolute; inset: 0; z-index: 3;
  display: flex; align-items: center; justify-content: center;
  pointer-events: none;
}
.scroll-video-logo {
  width: clamp(180px, 26vw, 420px);
  filter: invert(1);
  opacity: 0;
  will-change: transform, opacity, filter;
}
@keyframes logoBloom {
  0%   { opacity: 0; filter: invert(1) blur(80px) brightness(10); transform: scale(1.4); }
  20%  { opacity: 1; filter: invert(1) blur(20px) brightness(5);  transform: scale(1.15); }
  55%  { opacity: 1; filter: invert(1) blur(4px)  brightness(2);  transform: scale(1.04); }
  80%  { opacity: 1; filter: invert(1) blur(1px)  brightness(1.3);transform: scale(1.01); }
  100% { opacity: 1; filter: invert(1) blur(0px)  brightness(1.05);transform: scale(1); }
}
.scroll-video-logo.logo-visible {
  animation: logoBloom 2s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}
.scroll-video-bar {
  position: absolute; bottom: 2.5rem; left: 50%;
  transform: translateX(-50%);
  width: 120px; height: 2px;
  background: rgba(255,255,255,0.15);
  border-radius: 2px; z-index: 4;
}
.scroll-video-bar-fill {
  height: 100%; width: 0%;
  background: var(--blue-bright);
  border-radius: 2px;
  transition: width 0.1s linear;
}
/* ══════════════════════════════════════════
   BIG WORDS — hover image reveal list
══════════════════════════════════════════ */
.bigwords-section {
  background: #100E0A;
  color: var(--light);
  padding: 8rem 0 0;
  border-top: 1px solid rgba(243,241,235,0.08);
}
.bigwords-head { margin-bottom: 3.5rem; }
.bigwords-head .section-title { color: var(--light); }
.bigwords-head .section-title em { color: var(--light); opacity: 0.5; }
.bigwords-head .section-label { color: rgba(243,241,235,0.5); }
.bigwords-head .section-label::before { background: rgba(243,241,235,0.5); }
.bigwords-list { border-top: 1px solid rgba(243,241,235,0.12); }
.bigword-row {
  position: relative;
  display: block;
  overflow: hidden;
  border-bottom: 1px solid rgba(243,241,235,0.12);
  color: var(--light);
}
.bigword-img {
  position: absolute; inset: 0;
  background-size: cover; background-position: center;
  opacity: 0;
  transform: scale(1.14);
  transition: opacity 0.7s cubic-bezier(0.22,1,0.36,1),
              transform 0.9s cubic-bezier(0.22,1,0.36,1);
  z-index: 0;
}
.bigword-img::after {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(90deg, rgba(16,14,10,0.85) 0%, rgba(16,14,10,0.55) 48%, rgba(16,14,10,0.35) 100%);
}
.bigword-row:hover .bigword-img { opacity: 1; transform: scale(1); }
.bigword-inner {
  position: relative; z-index: 1;
  display: grid;
  grid-template-columns: 56px minmax(200px, 1fr) auto 52px;
  align-items: center;
  gap: 2rem;
  padding: 2.4rem 0;
  transition: padding-left 0.5s cubic-bezier(0.22,1,0.36,1);
}
.bigword-row:hover .bigword-inner { padding-left: 1.4rem; }
.bigword-num {
  font-family: var(--mono); font-size: 12px; letter-spacing: 0.2em;
  color: rgba(243,241,235,0.5);
}
.bigword-desc {
  font-size: 14px; line-height: 1.55; max-width: 330px;
  color: rgba(243,241,235,0.62);
}
.bigword-word {
  font-family: var(--serif);
  font-size: clamp(46px, 8vw, 116px);
  font-weight: 400;
  letter-spacing: -0.02em;
  line-height: 0.95;
  text-align: right;
  justify-self: end;
  transition: transform 0.5s cubic-bezier(0.22,1,0.36,1);
}
.bigword-row:hover .bigword-word { transform: translateX(-8px); }
.bigword-arrow {
  width: 46px; height: 46px; border-radius: 50%;
  border: 1px solid rgba(243,241,235,0.35);
  display: flex; align-items: center; justify-content: center;
  opacity: 0; transform: translateX(-16px);
  transition: opacity 0.5s ease, transform 0.5s cubic-bezier(0.22,1,0.36,1);
  justify-self: end;
}
.bigword-row:hover .bigword-arrow { opacity: 1; transform: translateX(0); }
.bigword-arrow svg { width: 18px; height: 18px; stroke: var(--light); }
@media (max-width: 780px) {
  .bigwords-section { padding-top: 5rem; }
  .bigword-inner { grid-template-columns: 40px 1fr; grid-auto-rows: auto; gap: 0.5rem 1rem; padding: 1.9rem 0; }
  .bigword-num { order: 1; }
  .bigword-word { grid-column: 1 / -1; order: 2; text-align: left; justify-self: start; font-size: clamp(44px, 15vw, 82px); }
  .bigword-desc { grid-column: 2; order: 3; max-width: none; }
  .bigword-arrow { display: none; }
  .bigword-img { opacity: 0.3; }
  .bigword-row:hover .bigword-img { opacity: 0.42; }
}

/* ══════════════════════════════════════════
   LANDING PAGES (Arkitektur / Konstruktion)
══════════════════════════════════════════ */
.lp-hero {
  position: relative;
  min-height: 78vh;
  display: flex;
  align-items: flex-end;
  background: #100E0A;
  color: var(--light);
  overflow: hidden;
  padding: 9rem 0 4rem;
}
.lp-hero-bg {
  position: absolute; inset: 0;
  background-size: cover; background-position: center;
  opacity: 0.34;
  transform: scale(1.06);
  will-change: transform;
}
.lp-hero-bg::after {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(16,14,10,0.72) 0%, rgba(16,14,10,0.45) 45%, rgba(16,14,10,0.96) 100%);
}
.lp-hero-inner { position: relative; z-index: 2; width: 100%; }
.lp-hero .section-label { color: rgba(243,241,235,0.55); }
.lp-hero .section-label::before { background: rgba(243,241,235,0.55); }
.lp-hero h1 {
  font-family: var(--serif);
  font-size: clamp(46px, 8vw, 120px);
  font-weight: 400;
  letter-spacing: -0.022em;
  line-height: 0.98;
  margin: 0.4rem 0 1.6rem;
  max-width: 16ch;
}
.lp-hero h1 em { font-style: italic; color: rgba(243,241,235,0.62); }
.lp-hero-lead {
  font-size: clamp(15px, 1.5vw, 19px);
  line-height: 1.65;
  color: rgba(243,241,235,0.7);
  max-width: 56ch;
  font-weight: 300;
}
.lp-hero-actions { display: flex; gap: 14px; flex-wrap: wrap; margin-top: 2.6rem; }
.lp-hero-meta {
  display: flex; gap: 2.5rem; flex-wrap: wrap;
  margin-top: 3.4rem; padding-top: 1.6rem;
  border-top: 1px solid rgba(243,241,235,0.14);
}
.lp-hero-meta div { display: flex; flex-direction: column; gap: 6px; }
.lp-hero-meta small {
  font-family: var(--mono); font-size: 10px; letter-spacing: 0.2em;
  text-transform: uppercase; color: rgba(243,241,235,0.45);
}
.lp-hero-meta strong {
  font-family: var(--serif); font-size: 20px; font-weight: 400; color: var(--light);
}

/* Breadcrumb */
.lp-crumb {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--mono); font-size: 10px; letter-spacing: 0.18em;
  text-transform: uppercase; color: rgba(243,241,235,0.5);
  margin-bottom: 1.2rem; transition: color 0.3s;
}
.lp-crumb:hover { color: var(--light); }
.lp-crumb svg { width: 13px; height: 13px; }

/* Intro split */
.lp-intro-grid {
  display: grid; grid-template-columns: 1fr 1fr; gap: 5rem; align-items: start;
}
.lp-intro-grid p { font-size: 16px; line-height: 1.75; color: var(--dark-soft); margin-bottom: 1.4rem; }

/* Numbered deliverables list */
.lp-list { border-top: 1px solid var(--line); margin-top: 2.5rem; }
.lp-list-row {
  display: grid; grid-template-columns: 60px 1fr auto;
  gap: 1.5rem; align-items: baseline;
  padding: 1.5rem 0; border-bottom: 1px solid var(--line);
  transition: padding-left 0.45s var(--ease-out), background 0.3s;
}
.lp-list-row:hover { padding-left: 12px; background: var(--cream-warm); }
.lp-list-num { font-family: var(--mono); font-size: 11px; letter-spacing: 0.2em; color: var(--blue); }
.lp-list-row h4 {
  font-family: var(--serif); font-size: clamp(19px, 2vw, 25px);
  font-weight: 400; letter-spacing: -0.005em; margin-bottom: 6px;
}
.lp-list-row p { font-size: 14px; line-height: 1.6; color: var(--dark-soft); max-width: 62ch; }
.lp-list-tag {
  font-family: var(--mono); font-size: 10px; letter-spacing: 0.15em;
  text-transform: uppercase; color: var(--dark-faded); white-space: nowrap;
}

/* Final CTA band */
.lp-cta {
  background: #100E0A; color: var(--light);
  padding: 7rem 0; text-align: center;
}
.lp-cta h2 {
  font-family: var(--serif); font-size: clamp(34px, 5vw, 68px);
  font-weight: 400; letter-spacing: -0.015em; line-height: 1.04; margin-bottom: 1.2rem;
}
.lp-cta h2 em { font-style: italic; color: rgba(243,241,235,0.6); }
.lp-cta p {
  font-size: 16px; line-height: 1.65; color: rgba(243,241,235,0.65);
  max-width: 52ch; margin: 0 auto 2.4rem;
}

/* Cross-link to the other discipline */
.lp-switch { padding: 5rem 0; background: var(--cream-light); border-top: 1px solid var(--line-soft); }
.lp-switch-card {
  display: flex; align-items: center; justify-content: space-between;
  gap: 2rem; flex-wrap: wrap;
  padding: 2.6rem 2.8rem; border: 1px solid var(--line);
  background: var(--cream); transition: background 0.35s, border-color 0.35s;
}
.lp-switch-card:hover { background: var(--cream-warm); border-color: var(--blue); }
.lp-switch-card h3 {
  font-family: var(--serif); font-size: clamp(24px, 3vw, 38px);
  font-weight: 400; letter-spacing: -0.01em; margin-bottom: 6px;
}
.lp-switch-card p { font-size: 14px; color: var(--dark-soft); max-width: 48ch; }
.lp-switch-arrow {
  width: 52px; height: 52px; border-radius: 50%; flex-shrink: 0;
  border: 1px solid var(--line); display: flex; align-items: center; justify-content: center;
  transition: background 0.35s, border-color 0.35s, transform 0.35s;
}
.lp-switch-card:hover .lp-switch-arrow { background: var(--dark); border-color: var(--dark); transform: translateX(6px); }
.lp-switch-card:hover .lp-switch-arrow svg { stroke: var(--cream); }
.lp-switch-arrow svg { width: 20px; height: 20px; stroke: var(--dark); }

@media (max-width: 900px) {
  .lp-intro-grid { grid-template-columns: 1fr; gap: 2.5rem; }
}
@media (max-width: 768px) {
  .lp-hero { min-height: 68vh; padding: 7.5rem 0 3rem; }
  .lp-hero-meta { gap: 1.6rem; }
  .lp-list-row { grid-template-columns: 44px 1fr; }
  .lp-list-tag { grid-column: 2; }
  .lp-switch-card { padding: 2rem 1.6rem; }
}
