/* ============================================================
   L2F Marketing — styles
   ============================================================ */

:root {
  --ink: #0C1220;
  --ink-soft: #4B5566;
  --ink-faint: #7D8798;
  --paper: #FBFAF7;
  --paper-2: #F1EFE9;
  --card: #FFFFFF;
  --blue: #004AAD;
  --blue-bright: #2A5BD0;
  --blue-deep: #0E2E64;
  --line: rgba(12, 18, 32, 0.10);
  --line-strong: rgba(12, 18, 32, 0.16);

  /* Radial "glow" background model — reused across dark sections */
  --glow-1: #1D64D8;
  --glow-2: #0F3E90;
  --glow-3: #071B46;
  --glow-bg: radial-gradient(90% 85% at 50% 46%, var(--glow-1) 0%, var(--glow-2) 52%, var(--glow-3) 100%);

  --font-display: "Fraunces", Georgia, serif;
  --font-body: "Inter", system-ui, -apple-system, sans-serif;

  --container: 1220px;
  --gutter: clamp(1.25rem, 5vw, 5rem);
  --radius: 16px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: 85px; -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--paper);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
h1, h2, h3 { margin: 0; font-weight: 500; letter-spacing: -0.01em; }
p { margin: 0; }

::selection { background: var(--blue); color: #fff; }

.skip-link {
  position: absolute; left: -999px; top: 0; z-index: 100;
  background: var(--ink); color: #fff; padding: .75rem 1.25rem; border-radius: 0 0 10px 0;
}
.skip-link:focus { left: 0; }

:focus-visible { outline: 2.5px solid var(--blue-bright); outline-offset: 3px; border-radius: 4px; }

/* ---------- Layout helpers ---------- */
.eyebrow {
  font-size: .78rem; font-weight: 600; letter-spacing: .18em; text-transform: uppercase;
  color: var(--blue); margin-bottom: 1.25rem;
}
.eyebrow--light { color: rgba(255,255,255,.72); }

.section-title {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4.6vw, 3.6rem);
  line-height: 1.04;
  letter-spacing: -0.02em;
  max-width: 26ch;
}
.section-title em, .hero__title em, .about__title em, .cta__title em {
  font-style: italic; font-weight: 400; color: var(--blue);
}

.section-head { padding: clamp(2.25rem, 4.5vw, 3.5rem) var(--gutter) 2.5rem; max-width: var(--container); margin-inline: auto; }
.section-head--split {
  display: flex; flex-wrap: wrap; gap: 2rem 3rem; align-items: end; justify-content: space-between;
}
.section-head--split .section-title { max-width: 24ch; }
.section-head__aside { color: var(--ink-soft); max-width: 34ch; font-size: 1.02rem; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: .55rem;
  font-family: var(--font-body); font-weight: 500; font-size: .98rem;
  padding: .95rem 1.6rem; border-radius: 100px; cursor: pointer;
  border: 1px solid transparent; transition: background .25s var(--ease), color .25s var(--ease), border-color .25s var(--ease), transform .25s var(--ease);
  white-space: nowrap;
}
.btn:active { transform: translateY(1px); }
.btn--solid { background: var(--blue); color: #fff; }
.btn--solid:hover { background: var(--blue-deep); }
.btn--ghost { background: transparent; color: var(--ink); border-color: var(--line-strong); }
.btn--ghost:hover { border-color: var(--ink); background: var(--ink); color: #fff; }
.btn--light { background: #fff; color: var(--blue-deep); }
.btn--light:hover { background: var(--paper-2); }
.btn--wa { background: transparent; color: #fff; border-color: rgba(255,255,255,.35); }
.btn--wa:hover { background: #25D366; border-color: #25D366; color: #06331a; }

/* ============================================================
   NAVBAR
   ============================================================ */
.nav {
  position: fixed; inset: 0 0 auto 0; z-index: 50;
  transition: background .35s var(--ease), box-shadow .35s var(--ease), backdrop-filter .35s var(--ease);
}
.nav__inner {
  max-width: var(--container); margin-inline: auto;
  display: flex; align-items: center; gap: 2rem;
  padding: 1.15rem var(--gutter);
}
.nav__brand { display: flex; align-items: center; }
.nav__logo { height: 42px; width: auto; }
.nav__logo--dark { display: none; }
.nav__logo--light { display: block; }
.nav__links { display: flex; gap: 2rem; margin-left: auto; }
.nav__links a { font-size: .96rem; color: #fff; position: relative; padding: .25rem 0; transition: color .2s; }
.nav__links a::after {
  content: ""; position: absolute; left: 0; bottom: -2px; height: 1.5px; width: 0; background: #fff;
  transition: width .3s var(--ease);
}
.nav__links a:hover { color: #9DC1F7; }
.nav__links a:hover::after { width: 100%; background: #9DC1F7; }
.nav__cta { padding: .7rem 1.3rem; font-size: .92rem; background: #fff; color: var(--blue-deep); }
.nav__cta:hover { background: #E9EFFB; }

/* Transparent over the blue hero glow; solid + dark text once scrolled past it */
.nav--scrolled {
  background: rgba(251, 250, 247, 0.82);
  backdrop-filter: saturate(180%) blur(14px);
  -webkit-backdrop-filter: saturate(180%) blur(14px);
  box-shadow: 0 1px 0 var(--line);
}
.nav--scrolled .nav__logo--dark { display: block; }
.nav--scrolled .nav__logo--light { display: none; }
.nav--scrolled .nav__links a { color: var(--ink); }
.nav--scrolled .nav__links a::after { background: var(--blue); }
.nav--scrolled .nav__links a:hover { color: var(--blue); }
.nav--scrolled .nav__links a:hover::after { background: var(--blue); }
.nav--scrolled .nav__cta { background: var(--blue); color: #fff; }
.nav--scrolled .nav__cta:hover { background: var(--blue-deep); }
.nav--scrolled .nav__toggle span { background: var(--ink); }

.nav__toggle {
  display: none; flex-direction: column; gap: 6px; background: none; border: none; cursor: pointer;
  padding: 8px; margin-left: auto;
}
.nav__toggle span { width: 26px; height: 2px; background: #fff; transition: transform .3s var(--ease), opacity .3s, background .3s var(--ease); }
.nav__toggle[aria-expanded="true"] span:first-child { transform: translateY(4px) rotate(45deg); }
.nav__toggle[aria-expanded="true"] span:last-child { transform: translateY(-4px) rotate(-45deg); }

.nav__mobile {
  display: none; flex-direction: column; gap: .25rem;
  padding: 0 var(--gutter); max-height: 0; overflow: hidden;
  background: rgba(251,250,247,.97); backdrop-filter: blur(14px);
  transition: max-height .4s var(--ease), padding .4s var(--ease);
}
.nav__mobile a:not(.btn) {
  padding: 1rem .25rem; border-bottom: 1px solid var(--line); font-size: 1.1rem; color: var(--ink);
  transition: color .2s var(--ease), padding-left .25s var(--ease);
}
.nav__mobile a:not(.btn):hover,
.nav__mobile a:not(.btn):focus-visible { color: var(--blue); padding-left: .5rem; }
.nav__mobile .btn {
  margin: 1.25rem 0 1.5rem; justify-content: center;
  box-shadow: 0 12px 28px -10px rgba(0, 74, 173, 0.55);
}
.nav__mobile .btn--solid:hover { box-shadow: 0 14px 32px -10px rgba(0, 74, 173, 0.65); }
.nav__mobile--open { max-height: 420px; }

/* ============================================================
   HERO
   ============================================================ */
.hero {
  position: relative; isolation: isolate; color: #fff;
  padding: clamp(8.5rem, 15vw, 12.5rem) var(--gutter) clamp(3.5rem, 7vw, 5rem);
  max-width: var(--container); margin-inline: auto;
}
.hero::before {
  content: ""; position: absolute; z-index: -1;
  top: 0; bottom: 0; left: 50%; width: 100vw; transform: translateX(-50%);
  background: var(--glow-bg);
}
.hero .eyebrow { color: #A9C6F5; }
.hero__title {
  font-family: var(--font-display);
  font-size: clamp(2rem, 8.2vw, 7rem);
  line-height: 0.98; letter-spacing: -0.035em; margin: 1.4rem 0 0;
  max-width: 16ch; overflow-wrap: break-word; color: #fff;
}
/* Kinetic rotating word */
.rotator {
  display: inline-block; color: #9DC1F7; font-style: italic; font-weight: 400;
  font-size: inherit; line-height: inherit;
}
.rotator__word {
  display: inline-block; font-size: inherit; line-height: inherit;
  transition: opacity .45s var(--ease), transform .45s var(--ease);
}
.rotator__word.is-out { opacity: 0; transform: translateY(-0.32em); }

.hero__meta {
  display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end;
  gap: 2.5rem 4rem; margin-top: clamp(2.75rem, 6vw, 4.5rem);
}
.hero__lead-col { max-width: 46ch; }
.hero__lead { font-size: clamp(1.05rem, 1.5vw, 1.25rem); color: rgba(255,255,255,.78); margin-bottom: 2rem; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 1rem; }

.hero__frentes { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: .85rem; }
.hero__frentes li {
  display: flex; align-items: baseline; gap: .8rem; min-width: 260px;
  font-family: var(--font-display); font-size: 1.1rem; color: #fff;
  border-top: 1px solid rgba(255,255,255,.18); padding-top: .85rem;
}
.hero__frentes-num { font-family: var(--font-body); font-size: .78rem; letter-spacing: .08em; color: #9DC1F7; }

.hero .btn--solid { background: #fff; color: var(--blue-deep); }
.hero .btn--solid:hover { background: #E9EFFB; }
.hero .btn--ghost { color: #fff; border-color: rgba(255,255,255,.32); }
.hero .btn--ghost:hover { border-color: #fff; background: #fff; color: var(--blue-deep); }

/* ---- Marquee ---- */
.marquee {
  overflow: hidden; border-block: 1px solid var(--line);
  margin-top: clamp(1rem, 2.5vw, 1.75rem); padding: 1.15rem 0;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
          mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
}
.marquee__track { display: inline-flex; white-space: nowrap; will-change: transform; animation: marquee 90s linear infinite; }
.marquee__track span {
  display: inline-flex; align-items: center;
  font-family: var(--font-display); font-size: clamp(1.15rem, 2vw, 1.7rem);
  color: var(--ink); opacity: .5; padding: 0 clamp(1.5rem, 3vw, 2.75rem);
}
.marquee__track span::after {
  content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--blue);
  margin-left: clamp(1.5rem, 3vw, 2.75rem); opacity: .7;
}
@keyframes marquee { from { transform: translateX(0); } to { transform: translateX(-50%); } }
.marquee:hover .marquee__track { animation-play-state: paused; }

/* ============================================================
   AUTHORITY
   ============================================================ */
.authority {
  padding: clamp(2.25rem, 4.5vw, 3.5rem) var(--gutter) clamp(3rem, 6vw, 4.5rem);
  max-width: var(--container); margin-inline: auto;
}
.authority__intro { margin-bottom: clamp(1.5rem, 3vw, 2.25rem); padding-bottom: clamp(1.5rem, 3vw, 2rem); border-bottom: 1px solid var(--line); }
.authority__grid {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.5rem;
}
.authority__item {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 1.9rem 1.6rem 2.1rem;
  transition: transform .3s var(--ease), box-shadow .3s var(--ease), border-color .3s var(--ease);
}
.authority__item:hover {
  transform: translateY(-4px);
  box-shadow: 0 20px 36px -24px rgba(12, 18, 32, 0.22);
  border-color: var(--line-strong);
}
.authority__icon {
  display: inline-flex; align-items: center; justify-content: center;
  width: 46px; height: 46px; border-radius: 12px; margin-bottom: 1.25rem;
  background: rgba(19, 62, 135, 0.08); color: var(--blue);
  transition: background .3s var(--ease), color .3s var(--ease);
}
.authority__item:hover .authority__icon { background: var(--blue); color: #fff; }
.authority__item h3 { font-family: var(--font-display); font-size: 1.4rem; margin-bottom: .5rem; }
.authority__item p { color: var(--ink-soft); font-size: .98rem; }
.authority__brands {
  margin-top: 2.5rem; padding-top: 2.25rem; border-top: 1px solid var(--line);
}
.authority__brands-label { display: block; }
.brand-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 1.25rem;
}
.brand-card {
  position: relative; display: flex; align-items: center; justify-content: center;
  height: 130px; padding: 1.25rem; background: var(--card);
  border: 1px solid var(--line); border-radius: var(--radius); cursor: pointer;
  transition: box-shadow .3s var(--ease), border-color .3s var(--ease);
}
.brand-card:hover {
  box-shadow: 0 20px 36px -24px rgba(12, 18, 32, 0.22);
  border-color: var(--line-strong);
}
.brand-card__logo { position: relative; display: inline-flex; max-width: 100%; }
.brand-card__logo img {
  display: block; max-width: 100%; max-height: 68px; width: auto; height: auto; object-fit: contain;
}
.brand-card__insta {
  position: absolute; top: 10px; right: 10px; width: 28px; height: 28px; border-radius: 50%;
  display: grid; place-items: center; color: var(--ink-faint); background: var(--paper-2);
  transition: background .3s var(--ease), color .3s var(--ease);
}
.brand-card:hover .brand-card__insta { background: var(--blue); color: #fff; }

/* ============================================================
   SERVICES
   ============================================================ */
.services { max-width: var(--container); margin-inline: auto; }
.services__list { padding: 0 var(--gutter) clamp(3rem, 7vw, 6rem); }
.service {
  display: grid; grid-template-columns: 90px 1fr; gap: 1.5rem;
  padding: 2.25rem 0; border-top: 1px solid var(--line);
}
.service:last-child { border-bottom: 1px solid var(--line); }
.service__num { font-family: var(--font-display); font-size: 1.05rem; color: var(--blue); padding-top: .4rem; }
.service__body { display: grid; grid-template-columns: 1.1fr 1.3fr; gap: 1rem 3rem; align-items: baseline; }
.service__body h3 { font-family: var(--font-display); font-size: clamp(1.5rem, 2.6vw, 2.1rem); line-height: 1.1; transition: color .25s var(--ease); }
.service__body p { color: var(--ink-soft); font-size: 1.02rem; }
.service:hover .service__body h3 { color: var(--blue); }

/* ============================================================
   WORK / PORTFOLIO
   ============================================================ */
.work { position: relative; isolation: isolate; color: var(--paper); max-width: var(--container); margin-inline: auto; }
.work::before {
  content: ""; position: absolute; z-index: -1;
  top: 0; bottom: 0; left: 50%; width: 100vw; transform: translateX(-50%);
  background: var(--glow-bg);
}
.work .section-head { padding-inline: var(--gutter); }
.work .eyebrow { color: #9DB4E8; }
.work .section-title { color: #fff; }
.work .section-title em { color: #9DB4E8; }
.work .section-head__aside { color: rgba(255,255,255,.6); }

/* ---- Carousel ---- */
.carousel__nav { display: flex; gap: .6rem; }
.carousel__btn {
  width: 46px; height: 46px; border-radius: 50%; cursor: pointer;
  display: grid; place-items: center;
  background: transparent; color: #fff; border: 1px solid rgba(255,255,255,.28);
  transition: background .2s var(--ease), border-color .2s var(--ease), opacity .2s, color .2s;
}
.carousel__btn:hover { background: #fff; color: var(--ink); border-color: #fff; }
.carousel__btn:disabled { opacity: .3; cursor: default; }
.carousel__btn:disabled:hover { background: transparent; color: #fff; border-color: rgba(255,255,255,.28); }

.carousel { padding: 0 0 clamp(3rem, 6vw, 5rem); }
.carousel__track {
  list-style: none; margin: 0;
  display: flex; gap: clamp(1rem, 2.2vw, 1.75rem);
  overflow-x: auto; scroll-snap-type: x proximity;
  -webkit-overflow-scrolling: touch; scrollbar-width: none;
  padding: .5rem var(--gutter) 1.5rem;
  scroll-padding-left: var(--gutter);
}
.carousel__track::-webkit-scrollbar { display: none; }

/* When every card fits, center the row and hide the controls */
.work.is-static .carousel__nav,
.work.is-static .carousel__dots { display: none; }
.work.is-static .carousel__track { justify-content: center; }

.work__item {
  flex: 0 0 auto; width: clamp(270px, 32vw, 360px);
  scroll-snap-align: start; cursor: pointer; margin: 0;
}
.work__media {
  position: relative; border-radius: 16px; overflow: hidden; background: #0a0e18;
  box-shadow: 0 20px 40px -24px rgba(0,0,0,.6);
}
.work__media img {
  width: 100%; aspect-ratio: 4/5; object-fit: cover; display: block;
}
.work__zoom {
  position: absolute; top: 12px; right: 12px; width: 38px; height: 38px; border-radius: 50%;
  display: grid; place-items: center; color: #fff;
  background: rgba(12,18,32,.5); backdrop-filter: blur(6px);
  opacity: 0; transform: scale(.85); transition: opacity .3s var(--ease), transform .3s var(--ease);
}
.work__item:hover .work__zoom, .work__item:focus-visible .work__zoom { opacity: 1; transform: scale(1); }

.work__caption { padding: 1.1rem .25rem 0; }
.work__cat { font-size: .72rem; letter-spacing: .12em; text-transform: uppercase; color: #9DB4E8; }
.work__caption h3 { font-family: var(--font-display); font-size: 1.35rem; margin: .35rem 0 .4rem; color: #fff; }
.work__caption p { color: rgba(255,255,255,.62); font-size: .92rem; line-height: 1.5; }

.carousel__dots { display: flex; gap: .5rem; justify-content: center; margin-top: .5rem; }
.carousel__dots button {
  width: 8px; height: 8px; padding: 0; border-radius: 50%; cursor: pointer;
  border: none; background: rgba(255,255,255,.28); transition: background .25s var(--ease), width .25s var(--ease);
}
.carousel__dots button[aria-selected="true"] { background: #fff; width: 22px; border-radius: 4px; }

/* ============================================================
   SITES SHOWCASE
   ============================================================ */
.sites {
  max-width: var(--container); margin-inline: auto;
  min-height: calc(100vh - 85px);
  display: flex; flex-direction: column; justify-content: center;
}
@media (min-height: 965px) {
  .sites { min-height: 880px; }
}
.sites .section-title { max-width: 30ch; }
.sites__grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: clamp(1.5rem, 3vw, 2.25rem);
  padding: 0 var(--gutter) clamp(4rem, 9vw, 7rem);
}
.site-card {
  display: flex; flex-direction: column; border-radius: var(--radius); overflow: hidden;
  background: var(--card); border: 1px solid var(--line);
  transition: box-shadow .3s var(--ease), border-color .3s var(--ease);
}
.site-card:hover { box-shadow: 0 24px 44px -26px rgba(12, 18, 32, 0.26); border-color: var(--line-strong); }
.site-card__frame { display: block; background: var(--paper-2); }
.site-card__bar {
  display: flex; align-items: center; gap: .4rem; padding: .65rem .8rem;
  background: var(--paper-2); border-bottom: 1px solid var(--line);
}
.site-card__dot { width: 8px; height: 8px; border-radius: 50%; background: var(--line-strong); }
.site-card__url {
  margin-left: .6rem; padding: .3rem .75rem; border-radius: 100px; background: var(--card);
  font-size: .78rem; color: var(--ink-faint); border: 1px solid var(--line);
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.site-card__frame img { display: block; width: 100%; aspect-ratio: 16 / 10; object-fit: cover; object-position: top; }
.site-card__body { display: flex; flex-direction: column; align-items: flex-start; gap: .35rem; padding: 1.5rem 1.6rem 1.75rem; }
.site-card__cat { font-size: .72rem; letter-spacing: .12em; text-transform: uppercase; color: var(--blue); }
.site-card__body h3 { font-family: var(--font-display); font-size: 1.3rem; margin: .1rem 0 .35rem; }
.site-card__link {
  display: inline-flex; align-items: center; gap: .4rem; font-size: .92rem; font-weight: 500;
  color: var(--ink-soft); transition: color .25s var(--ease), gap .25s var(--ease);
}
.site-card:hover .site-card__link { color: var(--blue); gap: .6rem; }

/* ============================================================
   ABOUT
   ============================================================ */
.about__grid { display: grid; grid-template-columns: 220px 1fr; gap: clamp(1.5rem, 4vw, 4rem); }
.about__grid .eyebrow { margin-bottom: 0; padding-top: .4rem; }
.about__title {
  font-family: var(--font-display); font-size: clamp(1.7rem, 3.4vw, 2.9rem); line-height: 1.12;
  letter-spacing: -0.02em; max-width: 24ch; margin-bottom: 1.75rem;
}
.about__text p { color: var(--ink-soft); max-width: 56ch; margin-bottom: 1.1rem; font-size: 1.08rem; }

/* ============================================================
   CTA
   ============================================================ */
.cta {
  padding: 0 var(--gutter) clamp(2rem, 5vw, 3.5rem);
  min-height: calc(70vh - 85px);
  display: flex; align-items: center;
}
@media (min-height: 985px) {
  .cta { min-height: 605px; }
}
.cta__inner {
  max-width: var(--container); margin-inline: auto;
  background: var(--glow-bg);
  color: #fff; border-radius: clamp(24px, 4vw, 40px);
  padding: clamp(3.5rem, 8vw, 7rem) clamp(1.75rem, 6vw, 6rem);
  position: relative; overflow: hidden;
}
.cta__inner::after {
  content: ""; position: absolute; width: 380px; height: 380px; right: -80px; top: -120px;
  background: radial-gradient(circle, rgba(255,255,255,.12), transparent 68%); pointer-events: none;
}
.cta__title { font-family: var(--font-display); font-size: clamp(2.1rem, 5vw, 4rem); line-height: 1.03; letter-spacing: -0.02em; max-width: 24ch; margin-bottom: 1.25rem; }
.cta__lead { color: rgba(255,255,255,.78); max-width: 46ch; font-size: 1.1rem; margin-bottom: 2.5rem; }
.cta__actions { display: flex; flex-wrap: wrap; gap: 1rem; position: relative; z-index: 1; }

/* ============================================================
   FOOTER
   ============================================================ */
.footer { background: var(--ink); color: rgba(255,255,255,.7); padding: clamp(3.5rem, 7vw, 5.5rem) var(--gutter) 2.5rem; }
.footer__grid {
  max-width: var(--container); margin-inline: auto;
  display: grid; grid-template-columns: 1.6fr 1fr 1.3fr; gap: 3rem;
  padding-bottom: 3rem; border-bottom: 1px solid rgba(255,255,255,.12);
}
.footer__brand img { height: 34px; width: auto; margin-bottom: 1.25rem; }
.footer__brand p { max-width: 34ch; font-size: .98rem; line-height: 1.65; }
.footer__label { display: block; font-size: .74rem; letter-spacing: .16em; text-transform: uppercase; color: rgba(255,255,255,.4); margin-bottom: 1.1rem; }
.footer__nav, .footer__contact { display: flex; flex-direction: column; gap: .7rem; }
.footer__nav a, .footer__contact a { font-size: .98rem; color: rgba(255,255,255,.72); transition: color .2s; width: fit-content; }
.footer__nav a:hover, .footer__contact a:hover { color: #fff; }
.footer__social-link { display: flex; align-items: center; gap: .6rem; }
.footer__social-link svg { flex-shrink: 0; }
.footer__bottom {
  max-width: var(--container); margin: 2rem auto 0;
  display: flex; flex-wrap: wrap; gap: .5rem 2rem; justify-content: space-between;
  font-size: .85rem; color: rgba(255,255,255,.45);
}

/* ============================================================
   LIGHTBOX
   ============================================================ */
.lightbox {
  position: fixed; inset: 0; z-index: 100; display: grid; place-items: center;
  background: rgba(6,9,16,.9); backdrop-filter: blur(8px);
  opacity: 0; pointer-events: none; transition: opacity .3s var(--ease); padding: 5vw;
}
.lightbox--open { opacity: 1; pointer-events: auto; }
.lightbox img {
  max-width: min(92vw, 620px); max-height: 88vh; border-radius: 14px; box-shadow: 0 30px 80px rgba(0,0,0,.5);
  transform: scale(.99); opacity: 0; transition: transform .5s var(--ease), opacity .4s var(--ease);
}
.lightbox--open img { transform: scale(1); opacity: 1; }
.lightbox__close {
  position: absolute; top: clamp(1rem, 3vw, 2rem); right: clamp(1rem, 3vw, 2rem);
  width: 48px; height: 48px; border-radius: 50%; border: 1px solid rgba(255,255,255,.25);
  background: rgba(255,255,255,.08); color: #fff; font-size: 1.8rem; line-height: 1; cursor: pointer;
  transition: background .2s, transform .2s;
}
.lightbox__close:hover { background: rgba(255,255,255,.18); transform: rotate(90deg); }

/* ============================================================
   REVEAL ANIMATION
   ============================================================ */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
.reveal.is-visible { opacity: 1; transform: none; }

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 940px) {
  .nav__links, .nav__cta { display: none; }
  .nav__toggle { display: flex; }
  .nav__mobile { display: flex; }

  .hero__meta { flex-direction: column; align-items: stretch; gap: 2.5rem; }

  .authority__grid { grid-template-columns: 1fr 1fr; gap: 2rem; }
  .service__body { grid-template-columns: 1fr; gap: .6rem; }
  .about__grid { grid-template-columns: 1fr; gap: 1.5rem; }
  .footer__grid { grid-template-columns: 1fr 1fr; gap: 2.5rem; }
}

@media (max-width: 620px) {
  body { font-size: 16px; }
  .authority__grid { grid-template-columns: 1fr; }
  .work__item { width: 82vw; }
  .work__zoom { opacity: 1; transform: none; }
  .service { grid-template-columns: 56px 1fr; gap: 1rem; }
  .footer__grid { grid-template-columns: 1fr; gap: 2.25rem; }
  .hero__actions .btn, .cta__actions .btn { flex: 1 1 auto; justify-content: center; }
}

/* ============================================================
   REDUCED MOTION
   ============================================================ */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
  }
  .reveal { opacity: 1; transform: none; }
  /* Keep only the gentle marquee glide (opt-out of the global reset) */
  .marquee__track {
    animation: marquee 90s linear infinite !important;
    transform: none;
  }
}
