.hero {
  position: relative; overflow: hidden;
  padding: calc(var(--header-h) + 4rem) 0 4.5rem;
  background: var(--white);
}
.hero__canvas {
  position: absolute; inset: 0; width: 100%; height: 100%;
  pointer-events: none; opacity: 0.95;
}
@media (prefers-reduced-motion: reduce) {
  .hero__canvas { display: none; }
}
.hero__grid {
  position: relative; z-index: 1;
  display: grid; grid-template-columns: 1fr 1.15fr; gap: 3.5rem; align-items: center;
}
.hero__content {
  position: relative;
}
.hero__content::before {
  content: ""; position: absolute; inset: -4rem -6rem;
  background: radial-gradient(ellipse at 40% 50%, rgba(252, 255, 255, 0.95) 0%, rgba(252, 255, 255, 0.8) 40%, transparent 80%);
  z-index: -1; pointer-events: none;
}
.hero__eyebrow {
  display: block; margin-bottom: 1rem;
  font-size: 0.8125rem; font-weight: 600; letter-spacing: 0.06em;
  text-transform: uppercase; color: var(--brand);
}
.hero__title {
  font-size: clamp(2rem, 4.5vw, 3rem); font-weight: 800;
  line-height: 1.1; letter-spacing: -0.04em;
  color: #000;
  margin-bottom: 0.5rem;
  max-width: 40rem;
}
.hero__lead { 
  margin-top: 1.25rem; font-size: 1.125rem; color: var(--text-soft); max-width: 30rem; 
  text-shadow: 0 1px 10px rgba(252, 255, 255, 0.6);
}
.hero__actions { 
  display: flex; flex-wrap: wrap; gap: 0.875rem; margin-top: 2rem; 
  position: relative; z-index: 2;
}

.stats { padding: 2.5rem 0; background: var(--bg-alt); border-block: 1px solid var(--line); }
.stats__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2rem; text-align: center; }
.stat {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
}
.stats__grid.is-visible .stat:nth-child(1) { transition-delay: 0.05s; }
.stats__grid.is-visible .stat:nth-child(2) { transition-delay: 0.15s; }
.stats__grid.is-visible .stat:nth-child(3) { transition-delay: 0.25s; }
.stats__grid.is-visible .stat {
  opacity: 1;
  transform: none;
}
.stat__value {
  font-size: clamp(2rem, 4vw, 2.75rem); font-weight: 700; letter-spacing: -0.03em;
  color: var(--brand-dark); line-height: 1;
  font-variant-numeric: tabular-nums;
  transition: color 0.3s var(--ease), transform 0.3s var(--ease);
}
.stat.is-counting .stat__value { transform: translateY(-2px); }
.stat.is-counted .stat__value { transform: none; }
.stat__label { margin-top: 0.5rem; font-size: 0.9375rem; color: var(--text-soft); }
@media (prefers-reduced-motion: reduce) {
  .stat { opacity: 1; transform: none; transition: none; }
}

.section { padding: 5rem 0; }
.section--alt { background: var(--bg-alt); }
.section__head { max-width: 36rem; margin-bottom: 3rem; }
.section__head--center { margin-inline: auto; text-align: center; }
.section__eyebrow {
  display: block; margin-bottom: 0.75rem;
  font-size: 0.8125rem; font-weight: 600; letter-spacing: 0.06em;
  text-transform: uppercase; color: var(--brand);
}
.section__title { font-size: clamp(1.75rem, 3vw, 2.25rem); font-weight: 700; letter-spacing: -0.025em; line-height: 1.2; }
.section__desc { margin-top: 0.875rem; font-size: 1.0625rem; color: var(--text-soft); }

.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; }
a.card { color: inherit; text-decoration: none; }
.card {
  position: relative; overflow: hidden;
  padding: 1.5rem 1.5rem 1.625rem;
  background: var(--bg-alt); border-radius: 20px;
  border: 1px solid transparent;
  transition: background var(--t), border-color var(--t), transform var(--t);
}
.card::after {
  content: ""; position: absolute; left: 1.5rem; bottom: 0;
  width: 2rem; height: 2px; border-radius: 1px;
  background: var(--brand); opacity: 0;
  transition: opacity var(--t), width var(--t);
}
.card:hover {
  background: var(--white); border-color: var(--line);
  transform: translateY(-2px);
}
.card:hover::after { opacity: 1; width: 3rem; }
.card__icon {
  width: 64px; height: 64px; object-fit: contain;
  margin-bottom: 1.25rem;
}
.card__title {
  margin-top: 0; font-size: 1.125rem; font-weight: 600;
  letter-spacing: -0.02em; color: var(--text); line-height: 1.3;
}
.card__text {
  margin-top: 0.5rem; font-size: 0.875rem; color: var(--text-soft);
  line-height: 1.6;
}

.video-frame {
  position: relative; aspect-ratio: 16/9; overflow: hidden;
  background: var(--bg-muted); border-radius: var(--radius-lg); box-shadow: var(--shadow-video);
}
.hero .video-frame {
  box-shadow: none;
}
.video-frame iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.service__media picture img { width: 100%; border-radius: var(--radius-lg); box-shadow: var(--shadow-video); }

.service {
  display: grid; grid-template-columns: 1fr 1fr; gap: 3.5rem;
  align-items: center; padding-block: 3.5rem;
}
#directions { padding-bottom: 2.5rem; }
.service-block { padding: 4rem 0; background: var(--bg); }
.service-block--alt { background: var(--bg-alt); }
.service-block .section__head { margin-bottom: 3rem; }
.service-block .service { padding-block: 0; }
#services-list + .section { border-top: 1px solid var(--line); }
.service--reverse .service__media { order: 2; }
.service--reverse .service__content { order: 1; }
.service__tag { font-size: 0.875rem; font-weight: 600; color: var(--brand); margin-bottom: 0.5rem; }
.service__title { font-size: 1.625rem; font-weight: 700; letter-spacing: -0.02em; }
.service__list { margin-top: 1.25rem; }
.service__list li { font-size: 1.0625rem; color: var(--text-soft); padding-left: 1rem; text-indent: -1rem; line-height: 1.55; }
.service__list li::before { content: "– "; color: var(--brand); }
.service__list li + li { margin-top: 0.5625rem; }
.service__more { display: inline-block; margin-top: 1.25rem; font-size: 1rem; font-weight: 600; }

.xr-block { padding: 4.5rem 0; background: var(--bg); }
.xr-block + .xr-block { border-top: 1px solid var(--line); }
.xr-block__title {
  margin-bottom: 2.5rem; text-align: center;
  font-size: clamp(1.25rem, 2.5vw, 1.5rem); font-weight: 700; color: var(--brand-dark);
}
.xr-block .service { padding-block: 0; }
.xr-band { padding: 2.75rem 0; background: var(--bg-muted); border-block: 1px solid var(--line); }

.gallery-scroll {
  display: flex; gap: 1rem; overflow-x: auto; padding-bottom: 0.5rem; scroll-snap-type: x mandatory;
}
.gallery-scroll__item {
  flex: 0 0 auto; width: min(280px, 70vw); scroll-snap-align: start;
  border-radius: var(--radius); overflow: hidden; aspect-ratio: 4/3;
}
.gallery-scroll__item img { width: 100%; height: 100%; object-fit: cover; }

.portfolio-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1rem; }
.portfolio-grid__item {
  padding: 0; border: none; border-radius: var(--radius); overflow: hidden;
  aspect-ratio: 4/3; background: var(--bg-muted); cursor: zoom-in;
  transition: transform var(--t), box-shadow var(--t);
}
.portfolio-grid__item:hover { transform: translateY(-2px); box-shadow: var(--shadow); }
.portfolio-grid__item img { width: 100%; height: 100%; object-fit: cover; }

.clients { padding: 3.5rem 0; background: var(--bg-muted); }
.clients__title {
  text-align: center; margin-bottom: 2rem;
  font-size: 0.8125rem; font-weight: 600; letter-spacing: 0.08em;
  text-transform: uppercase; color: var(--text-soft);
}
.clients__marquee-wrap {
  position: relative; display: flex; flex-direction: column; align-items: center;
}
.clients__marquee-wrap .marquee { width: 100%; }
.marquee { overflow: hidden; mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); }
.marquee__track {
  display: flex; align-items: center; gap: 3.5rem; padding-inline: 1.75rem;
  animation: marquee 110s linear infinite;
}
.marquee__track img {
  height: 40px; width: auto; max-width: 150px; object-fit: contain;
  opacity: 0.55; filter: grayscale(1);
  transition: opacity var(--t), filter var(--t);
}
.marquee__track img:hover { opacity: 1; filter: none; }
.clients__toggle {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.625rem;
  margin: 3.25rem auto 0; padding: 0.875rem 1.75rem;
  border: 1px solid rgba(46, 105, 166, 0.14); border-radius: 100px;
  background: color-mix(in srgb, var(--white) 88%, transparent);
  color: var(--brand-dark); cursor: pointer;
  font: 600 0.875rem/1 var(--font); letter-spacing: 0.01em;
  box-shadow: 0 8px 28px rgba(46, 105, 166, 0.1);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  transition: background var(--t), color var(--t), border-color var(--t), box-shadow var(--t), transform var(--t);
}
.clients__toggle svg {
  width: 16px; height: 16px; stroke: currentColor; fill: none;
  stroke-width: 2.25; stroke-linecap: round; stroke-linejoin: round;
  transition: transform var(--t);
}
.clients__toggle:hover {
  color: var(--white); background: var(--brand-gradient);
  border-color: transparent;
  box-shadow: 0 14px 36px rgba(46, 105, 166, 0.22);
  transform: translateY(-1px);
}
.clients__toggle.is-open {
  color: var(--white); background: var(--brand-gradient);
  border-color: transparent;
  box-shadow: 0 14px 36px rgba(46, 105, 166, 0.22);
}
.clients__toggle.is-open svg { transform: rotate(180deg); }
.clients__panel {
  margin-top: 0.5rem; padding: 2.75rem 0 3.25rem;
  background: var(--white); border-top: 1px solid var(--line);
}
.clients__grid {
  display: grid; grid-template-columns: repeat(6, 1fr); gap: 2rem 1.5rem;
  align-items: center; justify-items: center;
}
.clients__item {
  display: grid; place-items: center; width: 100%; min-height: 52px;
}
.clients__grid img {
  height: 44px; width: auto; max-width: 130px; object-fit: contain;
  opacity: 1; filter: none;
  transition: transform var(--t), opacity var(--t);
}
.clients__grid img:hover { transform: scale(1.05); opacity: 0.9; }
@keyframes titleGradient {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

@keyframes marquee { from { transform: translateX(0); } to { transform: translateX(-50%); } }

.cta { padding: 5rem 0; }
.cta__box {
  position: relative; overflow: hidden;
  padding: 5rem 2rem; text-align: center; border-radius: 24px;
  background: linear-gradient(135deg, #0f2a4a 0%, #2e69a6 50%, #1e5590 100%);
  color: var(--white);
  box-shadow: 0 32px 64px -16px rgba(15, 42, 74, 0.4);
  transition: transform var(--t), box-shadow var(--t);
}
.cta__box:hover {
  transform: translateY(-4px);
  box-shadow: 0 40px 80px -20px rgba(15, 42, 74, 0.5);
}
.cta__box::before {
  content: ""; position: absolute; inset: 0;
  background: radial-gradient(circle at 20% 20%, rgba(255,255,255,0.1) 0%, transparent 40%),
              radial-gradient(circle at 80% 80%, rgba(49, 121, 217, 0.2) 0%, transparent 50%);
  pointer-events: none;
}
.cta__title { font-size: clamp(1.75rem, 4vw, 2.5rem); font-weight: 700; letter-spacing: -0.03em; line-height: 1.1; }
.cta__text { margin: 1rem auto 0; max-width: 30rem; opacity: 0.85; font-size: 1.125rem; }
.cta .btn--primary {
  margin-top: 2.5rem; background: var(--white); color: var(--brand-dark) !important;
  padding: 1rem 2.5rem; font-size: 1.0625rem; box-shadow: 0 10px 20px rgba(0,0,0,0.1);
  transition: transform var(--t), box-shadow var(--t), background var(--t);
}
.cta .btn--primary:hover {
  background: var(--bg); color: var(--brand-hover) !important;
  transform: translateY(-2px);
  box-shadow: 0 15px 30px rgba(0,0,0,0.15);
}

.page-hero {
  position: relative; overflow: hidden;
  padding: calc(var(--header-h) + 4rem) 0 3rem; text-align: center;
  background: var(--white); border-bottom: 1px solid var(--line);
}
.page-hero .container {
  position: relative; z-index: 1;
}
.page-hero__content {
  position: relative;
  display: inline-block;
  max-width: 100%;
  text-align: center;
}
.page-hero__content::before {
  content: ""; position: absolute; inset: -4rem -6rem;
  background: radial-gradient(ellipse at 50% 50%, rgba(252, 255, 255, 0.95) 0%, rgba(252, 255, 255, 0.8) 40%, transparent 80%);
  z-index: -1; pointer-events: none;
}
.page-hero--contact {
  padding: calc(var(--header-h) + 1.75rem) 0 1.5rem;
  background: var(--bg-alt);
}
.page-hero--contact .page-hero__title { font-size: clamp(1.75rem, 4vw, 2.5rem); }
.page-hero--contact .page-hero__lead { margin-top: 0.5rem; font-size: 1rem; }
.page-hero__title { 
  font-size: clamp(2rem, 4.5vw, 2.75rem); font-weight: 800; 
  letter-spacing: -0.04em; line-height: 1.1;
  color: #000;
}
.page-hero__lead {
  margin-top: 1rem; max-width: 40rem; margin-inline: auto;
  color: var(--text-soft); font-size: 1.125rem;
  text-shadow: 0 1px 10px rgba(252, 255, 255, 0.6);
}
.pills {
  display: flex; flex-wrap: wrap; justify-content: center; gap: 0.75rem;
  margin-top: 2.25rem; position: relative; z-index: 1;
}
.pill {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 0.75rem 1.375rem;
  font-size: 0.9375rem; font-weight: 600; letter-spacing: 0.01em;
  color: var(--brand-dark);
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border: 1px solid rgba(46, 105, 166, 0.16);
  border-radius: 100px;
  box-shadow: 0 4px 18px rgba(46, 105, 166, 0.1);
  transition: background var(--t), color var(--t), border-color var(--t), box-shadow var(--t), transform var(--t);
}
.pill:hover {
  color: var(--white);
  background: var(--brand-gradient);
  border-color: transparent;
  box-shadow: 0 10px 28px rgba(46, 105, 166, 0.22);
  transform: translateY(-1px);
}
.pill:focus-visible {
  outline: 2px solid var(--brand);
  outline-offset: 3px;
}
@media (prefers-reduced-motion: reduce) {
  .pill:hover { transform: none; }
}

.contact.section { padding: 3rem 0 4rem; }
.contact-layout { display: grid; grid-template-columns: 1fr; gap: 2rem; }
.contact-panel {
  padding: 2rem 2.25rem; background: var(--white); border-radius: var(--radius-lg);
  border: 1px solid var(--line);
  box-shadow: 0 16px 48px -24px rgba(46, 105, 166, 0.18);
}
.contact-panel__title {
  font-size: 1.375rem; font-weight: 700; letter-spacing: -0.02em; color: var(--brand-dark);
}
.contact-panel__items {
  margin-top: 1.5rem; display: grid;
  grid-template-columns: repeat(2, 1fr); gap: 1rem;
}
.contact-item {
  display: flex; gap: 1rem; align-items: flex-start;
  padding: 1.25rem; border-radius: var(--radius);
  background: var(--bg-alt); border: 1px solid transparent;
  transition: border-color var(--t), box-shadow var(--t);
}
.contact-item:hover {
  border-color: var(--line);
  box-shadow: 0 8px 24px -16px rgba(46, 105, 166, 0.2);
}
.contact-item__icon {
  flex-shrink: 0; display: grid; place-items: center;
  width: 44px; height: 44px; border-radius: 12px;
  background: var(--white); color: var(--brand);
  box-shadow: 0 4px 12px rgba(46, 105, 166, 0.1);
}
.contact-item__icon svg { width: 22px; height: 22px; }
.contact-panel__social {
  margin-top: 1.5rem; padding-top: 1.5rem; border-top: 1px solid var(--line);
  display: flex; align-items: center; justify-content: space-between; gap: 1rem; flex-wrap: wrap;
}
.contact-panel__social .social { margin-top: 0; }
.contact-info__label { font-size: 0.8125rem; font-weight: 600; color: var(--brand); margin-bottom: 0.375rem; }
.contact-info__value { font-size: 1.0625rem; font-weight: 600; color: var(--brand-dark); line-height: 1.4; }
.contact-info__value a { color: inherit; }
.contact-info__value a:hover { color: var(--brand); }
.contact-info__note { margin-top: 0.375rem; font-size: 0.875rem; color: var(--text-soft); line-height: 1.5; }
.contact-panel__about {
  margin-top: 2rem; padding-top: 2rem; border-top: 1px solid var(--line);
}
.contact-about__title {
  margin-top: 0.5rem; font-size: clamp(1.375rem, 2.5vw, 1.625rem);
  font-weight: 700; letter-spacing: -0.02em; color: var(--brand-dark);
}
.contact-about__highlight {
  margin-top: 1.25rem; padding: 1rem 1.25rem; border-radius: var(--radius);
  background: linear-gradient(135deg, rgba(49, 121, 217, 0.08), rgba(46, 105, 166, 0.04));
  border-left: 3px solid var(--brand); color: var(--brand-dark); font-weight: 600;
}
.about-text { margin-top: 1.25rem; color: var(--text-soft); line-height: 1.75; }
.about-text p + p { margin-top: 1rem; }
.contact-map { padding: 0 0 4rem; }
.contact-map__frame {
  position: relative; aspect-ratio: 21/8; min-height: 320px;
  border-radius: var(--radius-lg); overflow: hidden;
  border: 1px solid var(--line); box-shadow: var(--shadow);
}
.contact-map__frame iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }

.lightbox {
  position: fixed; inset: 0; z-index: 200; display: grid; place-items: center;
  padding: 2rem; background: rgba(12, 27, 46, 0.9);
  opacity: 0; visibility: hidden; transition: opacity 0.3s, visibility 0.3s;
}
.lightbox.is-open { opacity: 1; visibility: visible; }
.lightbox__img { max-width: min(100%, 1100px); max-height: 85vh; border-radius: var(--radius-lg); }
.lightbox__close {
  position: absolute; top: 1.25rem; right: 1.25rem; width: 44px; height: 44px;
  border: none; border-radius: 50%; background: rgba(255,255,255,0.15);
  color: #fff; font-size: 1.5rem; cursor: pointer;
}

/* Cookie Banner */
.cookie-banner {
  position: fixed; bottom: 1.5rem; left: 1.25rem; right: 1.25rem; z-index: 400;
  width: min(100%, 42rem); max-width: calc(100% - 2.5rem); margin-inline: auto;
  display: flex; align-items: center; justify-content: space-between; gap: 1.25rem;
  padding: 1.125rem 1.375rem;
  background: linear-gradient(135deg, #0f2a4a 0%, #2e69a6 55%, #1e5590 100%);
  border-radius: 18px; color: var(--white);
  border: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow: 0 20px 56px rgba(15, 42, 74, 0.35);
  transform: translateY(calc(100% + 2.5rem));
  transition: transform 0.5s var(--ease), opacity 0.5s var(--ease);
}
.cookie-banner.is-visible { transform: translateY(0); }
.cookie-banner__text { font-size: 0.875rem; color: rgba(255, 255, 255, 0.88); line-height: 1.55; }
.cookie-banner__text a { color: var(--white); text-decoration: underline; text-underline-offset: 2px; }
.cookie-banner__text a:hover { opacity: 0.85; }
.cookie-banner__actions { flex-shrink: 0; }
.cookie-banner .btn {
  background: var(--white); color: var(--brand-dark) !important;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
  white-space: nowrap;
}
.cookie-banner .btn:hover {
  background: var(--bg); color: var(--brand-hover) !important;
  transform: translateY(-1px);
}

@media (max-width: 600px) {
  .cookie-banner {
    flex-direction: column; align-items: stretch; text-align: center;
    bottom: 1rem; width: min(100%, 22rem); padding: 1.125rem 1.125rem 1rem;
  }
  .cookie-banner__actions .btn { width: 100%; }
}

/* Scroll to top */
.scroll-top {
  position: fixed; right: 1.25rem; bottom: 1.25rem; z-index: 350;
  display: grid; place-items: center;
  width: 44px; height: 44px; padding: 0;
  border: 1px solid var(--line); border-radius: 50%;
  background: color-mix(in srgb, var(--white) 92%, transparent);
  color: var(--brand-dark); cursor: pointer;
  box-shadow: 0 8px 24px rgba(46, 105, 166, 0.14);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  opacity: 0; visibility: hidden; pointer-events: none;
  transform: translateY(0.75rem);
  transition: opacity var(--t), visibility var(--t), transform var(--t), background var(--t), color var(--t), box-shadow var(--t);
}
.scroll-top.is-visible {
  opacity: 1; visibility: visible; pointer-events: auto; transform: none;
}
.scroll-top:hover {
  background: var(--brand-gradient); color: var(--white);
  border-color: transparent;
  box-shadow: 0 12px 28px rgba(46, 105, 166, 0.22);
  transform: translateY(-2px);
}
.scroll-top svg { width: 18px; height: 18px; stroke: currentColor; fill: none; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }

@media (max-width: 600px) {
  .scroll-top { right: 1rem; bottom: 1rem; width: 40px; height: 40px; }
}

@media (max-width: 960px) {
  .hero__grid, .service { grid-template-columns: 1fr; gap: 2rem; }
  .service--reverse .service__media, .service--reverse .service__content { order: unset; }
  .cards, .portfolio-grid { grid-template-columns: repeat(2, 1fr); }
  .clients__grid { grid-template-columns: repeat(4, 1fr); gap: 1.5rem 1rem; }
}
@media (max-width: 600px) {
  .clients__grid { grid-template-columns: repeat(3, 1fr); gap: 1.25rem 0.75rem; }
  .clients__grid img { height: 36px; max-width: 100px; }
  .cards, .stats__grid { grid-template-columns: 1fr; }
  .portfolio-grid {
    display: flex;
    gap: 1rem;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    padding-bottom: 0.5rem;
    margin-inline: -1.25rem;
    padding-inline: 1.25rem;
  }
  .portfolio-grid::-webkit-scrollbar { display: none; }
  .portfolio-grid__item {
    flex: 0 0 auto;
    width: min(280px, 78vw);
    scroll-snap-align: start;
  }
  .hero__actions { flex-direction: column; }
  .hero__actions .btn { width: 100%; }
  .section { padding: 3.5rem 0; }
  .contact-panel { padding: 1.5rem; }
  .contact-panel__items { grid-template-columns: 1fr; }
  .contact-map__frame { aspect-ratio: 4/3; min-height: 0; }
}
