/* Reliable content first: effects must never be required to read the site. */
html:not(.has-reveal-motion) .reveal,
html:not(.has-home-motion) .cat-cards .cat-card,
html:not(.has-home-motion) .proj-preview-grid .proj-preview-item,
html:not(.has-page-motion) .how-steps .how-step,
html:not(.has-page-motion) .benefit-cards .benefit-card,
html:not(.has-home-motion) .tilt-card {
  opacity: 1 !important;
  transform: none !important;
  filter: none !important;
}
img[loading="lazy"] { opacity: 1; }
.about-visual, .proj-preview-item, .lam-proj-img-wrap, .lam-mat-img-wrap {
  animation: none;
}
html:not(.has-home-motion) .hero-stage { height: auto; }
html:not(.has-home-motion) .hero-stage .hero { position: relative; min-height: min(780px, 100svh); }
html:not(.has-home-motion) .hero-media { clip-path: none; }
html:not(.has-home-motion) .hero-media .hero-vid { transform: none; }
html:not(.has-home-motion) .hero-content { opacity: 1; transform: none; }
.hero-video-toggle {
  position: absolute; z-index: 4; right: 24px; bottom: 24px;
  padding: 11px 16px; min-height: 44px; border: 1px solid #ffffff80;
  border-radius: 24px; background: #12110fd9; color: #fff;
  font: 500 .75rem var(--font); cursor: pointer;
}
.pirineus-controls { position: relative; z-index: 4; display: flex; justify-content: center; gap: 12px; margin: 20px auto 0; }
.pirineus-controls button { min-height: 44px; padding: 10px 20px; border: 1px solid var(--gold); border-radius: 24px; background: transparent; color: var(--charcoal); font: 500 .8rem var(--font); cursor: pointer; }
.pirineus-controls button:disabled { opacity: .6; cursor: wait; }
.pirineus-status { margin: 10px 20px 0; min-height: 2.8em; line-height: 1.4; text-align: center; font-size: .8rem; color: var(--text-light); }
.pirineus-canvas { touch-action: pan-y; }
.pirineus-stage-3d { flex-shrink: 0; }
.about-visual { min-width: 0; }
.about-grid > *, .qs-grid > *, .contact-grid > * { min-width: 0; }
.values-grid--mission { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.value-card { min-width: 0; overflow-wrap: anywhere; }
.mat-card-img, .cat-card-img { overflow: hidden; }
.mat-card-img > img, .cat-card-img > img { width: 100%; height: 100%; object-fit: cover; position: absolute; inset: 0; }
.cat-card-img { position: relative; }
:focus-visible { outline: 3px solid var(--gold); outline-offset: 4px; }
.skip-link { position: fixed; top: 10px; left: 12px; z-index: 10001; padding: 12px 18px; background: var(--cream); color: var(--charcoal); transform: translateY(-180%); }
.skip-link:focus { transform: none; }
.form-error-msg { line-height: 1.6; }
.mobile-nav { overflow-y: auto; overscroll-behavior: contain; }
@media (min-width: 769px) and (max-width: 1024px) {
  .header-nav, .site-header > .header-inner > .lang-switcher { display: none; }
  .menu-toggle { display: flex; }
}
@media (max-width: 768px) {
  .values-grid--mission { grid-template-columns: 1fr; }
  .hero-title-main { font-size: clamp(1.85rem, 7.8vw, 3.2rem); overflow-wrap: anywhere; }
  .hero-content { width: 100%; max-width: 100%; padding-inline: 20px; }
  .about-grid { gap: 36px; }
  .about-img-frame { border-radius: 10px; }
  .hero-video-toggle { right: 16px; bottom: 18px; }
  input, textarea, select { font-size: max(16px, 1em); }
  .lang-btn, .cf-arrow { min-width: 44px; min-height: 44px; }
  .pirineus-sticky { min-height: 0; padding: 56px 0; }
  .pirineus-stage-3d { max-width: 100%; }
  .wa-btn { right: 16px; bottom: max(16px, env(safe-area-inset-bottom)); }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
  .slider-track { animation: none !important; }
}

html.is-site-loading { overflow: hidden; }
html.is-site-loading::before { content: ''; position: fixed; inset: 0; z-index: 20000; background: #f8f5ef; }
.site-loader { position: fixed; inset: 0; z-index: 20001; display: flex; flex-direction: column; gap: 20px; align-items: center; justify-content: center; background: #f8f5ef; color: #322e27; transition: opacity .3s ease; }
.site-loader[hidden] { display: none; }
.site-loader img { width: 156px; height: auto; filter: brightness(0); opacity: .88; }
.site-loader p { font: 400 .65rem var(--font); letter-spacing: .22em; text-transform: uppercase; }
.site-loader-bar { width: 130px; height: 2px; background: #d9d0bf; overflow: hidden; }
.site-loader-bar::after { content: ''; display: block; width: 45%; height: 100%; background: #b39758; animation: site-preparation 1.1s ease-in-out infinite alternate; }
.site-loader.is-complete { opacity: 0; pointer-events: none; }
@keyframes site-preparation { to { transform: translateX(125%); } }
