/* Brand-guideline refinement layer. The master-derived stylesheet remains unchanged. */

body.menu-open { overflow: hidden; }

h1, h2 { font-weight: 700; }
h1 span, h2 span { font-weight: 500; }

.site-header { transition: background-color .24s ease, box-shadow .24s ease; }
.site-header.is-scrolled { background: rgba(240,239,236,.985); box-shadow: 0 12px 32px rgba(7,26,75,.08); }
.topline__message,
.footer-slogan,
.contact-signature p span { font-weight: 500; letter-spacing: .12em; text-transform: uppercase; }
.navigation > a:not(.button).is-active { color: var(--navy); }
.navigation > a:not(.button).is-active::after,
.navigation > a:not(.button)[aria-current="page"]::after { transform: scaleX(1); }

.hero__copy > * { animation: ustawi-rise .72s cubic-bezier(.22,.75,.28,1) both; }
.hero__copy > :nth-child(2) { animation-delay: .07s; }
.hero__copy > :nth-child(3) { animation-delay: .14s; }
.hero__copy > :nth-child(4) { animation-delay: .2s; }
.hero__copy > :nth-child(5) { animation-delay: .26s; }
.hero__copy > :nth-child(6) { animation-delay: .32s; }

.hero-visual { background: var(--navy-deep); }
.hero-visual__image,
.hero-visual__veil { position: absolute; inset: 0; width: 100%; height: 100%; }
.hero-visual__image { z-index: -5; object-fit: cover; object-position: 52% center; filter: saturate(.72) contrast(1.02); transform: scale(1.015); transition: transform 1.1s cubic-bezier(.22,.75,.28,1); }
.hero-visual.is-visible .hero-visual__image { transform: scale(1); }
.hero-visual__veil { z-index: -4; background: linear-gradient(145deg, rgba(7,26,75,.92) 4%, rgba(10,35,99,.69) 46%, rgba(7,26,75,.36) 100%); }
.hero-visual__grid { z-index: -1; opacity: .08; background-image: url('/assets/images/ustawi-mark.svg'); background-size: 94px 94px; filter: brightness(0) invert(1); mask-image: linear-gradient(135deg, transparent 2%, black 80%); }
.hero-visual__orbit { opacity: .88; }
.visual-core { left: 43%; align-items: flex-start; }
.visual-core__mark { width: 122px; height: 122px; }
.visual-core__caption { font-size: 20px; }
.visual-card { display: none; }

.service-card { min-height: 590px; overflow: hidden; padding: 0 28px 25px; }
.service-card__media { position: relative; display: block; height: 180px; margin-inline: -28px; overflow: hidden; background: var(--navy); }
.service-card__media::after { position: absolute; inset: 0; content: ''; background: linear-gradient(180deg, transparent 35%, rgba(7,26,75,.45)); transition: background .3s ease; }
.service-card__media img { width: 100%; height: 100%; object-fit: cover; filter: saturate(.72) contrast(1.03); transition: transform .55s cubic-bezier(.22,.75,.28,1), filter .3s ease; }
.service-card:hover .service-card__media img { transform: scale(1.035); filter: saturate(.9) contrast(1.03); }
.service-card__top { align-items: center; margin: 23px 0 11px; }
.service-icon { width: 46px; height: 46px; flex-basis: 46px; }
.service-icon svg { width: 26px; height: 26px; }
.service-card__formal { align-self: flex-start; margin-bottom: 7px; color: var(--gold-text); font-size: 9px; font-weight: 500; letter-spacing: .14em; text-transform: uppercase; }
.service-card__formal:hover { color: var(--navy); }
.service-card h3 { margin-bottom: 12px; }

.about-art { background: var(--navy-deep); }
.about-art__image,
.about-art__veil { position: absolute; inset: 0; width: 100%; height: 100%; }
.about-art__image { object-fit: cover; filter: saturate(.45) contrast(1.08); }
.about-art__veil { background: linear-gradient(135deg, rgba(7,26,75,.22), rgba(7,26,75,.68)); }
.about-art__pattern { z-index: 1; opacity: .07; background-image: url('/assets/images/ustawi-mark.svg'); background-size: 86px 86px; filter: brightness(0) invert(1); mask-image: linear-gradient(90deg, black, transparent 80%); }
.about-art__symbol { position: absolute; z-index: 2; right: -44px; width: 310px; opacity: .24; filter: grayscale(1) brightness(2.5); }
.about-art__caption { z-index: 3; color: var(--white); }
.about-art::before, .about-art::after { z-index: 2; }

.footer-contact > a:not(.footer-contact__link) { color: rgba(255,255,255,.76); font-size: 11px; transition: color .2s ease; }
.footer-contact > a:not(.footer-contact__link):hover { color: var(--gold-light); }
.footer-legal { display: flex; flex-wrap: wrap; gap: 16px; }
.footer-legal a { color: rgba(255,255,255,.68); }
.footer-legal a:hover { color: var(--gold-light); }
.contact-details { display: grid; gap: 5px; margin: 0 0 26px; padding: 21px 0; border-block: 1px solid rgba(255,255,255,.18); color: rgba(255,255,255,.76); font-size: 12px; font-style: normal; }
.contact-details a { color: var(--white); transition: color .2s ease; }
.contact-details a:hover { color: var(--gold-light); }
.contact-details span { max-width: 390px; margin-top: 5px; color: rgba(255,255,255,.62); }
.contact-details + .contact-signature { padding-top: 0; border-top: 0; }

.js [data-reveal] { opacity: 0; transform: translateY(24px); transition: opacity .7s cubic-bezier(.22,.75,.28,1), transform .7s cubic-bezier(.22,.75,.28,1); }
.js [data-reveal="media"] { transform: translateY(18px) scale(.985); }
.js [data-reveal].is-visible { opacity: 1; transform: none; }
.services-grid [data-reveal]:nth-child(2) { transition-delay: .08s; }
.services-grid [data-reveal]:nth-child(3) { transition-delay: .16s; }

@keyframes ustawi-rise {
  from { opacity: 0; transform: translateY(18px); }
  to { opacity: 1; transform: none; }
}

@media (max-width: 1080px) {
  .service-card { padding-inline: 22px; }
  .service-card__media { margin-inline: -22px; }
}

@media (max-width: 820px) {
  .navigation { max-height: calc(100svh - 108px); overflow-y: auto; }
  .navigation.is-open { animation: ustawi-menu .2s ease both; }
  .navigation > a:not(.button).is-active { border-bottom-color: var(--gold); }
  .hero-visual__image { object-position: center; }
  .service-card { min-height: 0; }
  .service-card__media { height: 250px; }
  .footer-legal { width: 100%; justify-content: center; }
}

@media (max-width: 540px) {
  .hero-visual__veil { background: linear-gradient(155deg, rgba(7,26,75,.9), rgba(10,35,99,.48)); }
  .visual-core { left: 38%; }
  .service-card__media { height: 205px; }
  .about-art__symbol { right: -64px; width: 275px; }
}

@keyframes ustawi-menu {
  from { opacity: 0; transform: translateY(-8px); }
  to { opacity: 1; transform: none; }
}

@media (prefers-reduced-motion: reduce) {
  .hero__copy > *,
  .navigation.is-open { animation: none; }
  .hero-visual__image,
  .service-card__media img,
  .js [data-reveal] { opacity: 1; transform: none; transition: none; }
}
