/* =========================================================
   Consaltera Limited — styles
   Mobile-first. Breakpoints: 640 / 960 / 1200
   ========================================================= */

:root {
  /* Palette: white, blue, black only */
  --white: #FFFFFF;
  --black: #000000;
  --blue: #1E4FD8;
  --blue-dark: #163BA6;      /* hover/pressed state of the same blue */
  --blue-soft: #EDF2FD;      /* light blue tint for backgrounds */

  --bg: #F5F7FB;              /* off-white with a hint of the brand blue */
  --surface: var(--white);
  --tint: var(--blue-soft);
  --text: var(--black);
  --muted: rgba(0, 0, 0, .64);
  --border: rgba(0, 0, 0, .08);

  --radius-sm: 10px;
  --radius: 16px;
  --radius-lg: 24px;
  /* layered shadows: tight black contact shadow + wide soft blue ambient */
  --shadow-sm: 0 1px 2px rgba(0, 0, 0, .05), 0 2px 8px rgba(30, 79, 216, .05);
  --shadow: 0 1px 2px rgba(0, 0, 0, .04), 0 6px 16px rgba(0, 0, 0, .04), 0 18px 40px rgba(30, 79, 216, .08);
  --shadow-lg: 0 2px 6px rgba(0, 0, 0, .05), 0 24px 56px rgba(30, 79, 216, .16);

  --font-body: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --font-head: "Manrope", "Inter", system-ui, sans-serif;

  --header-h: 72px;
  --container: 1200px;
  --gutter: 16px;
  --section-y: clamp(64px, 9vw, 112px);
}

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

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img { display: block; max-width: 100%; height: auto; }
a { color: var(--blue); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--blue-dark); }
h1, h2, h3 { font-family: var(--font-head); line-height: 1.2; margin: 0; letter-spacing: -.01em; }
p { margin: 0 0 1em; }
p:last-child { margin-bottom: 0; }
ul { margin: 0; padding: 0; list-style: none; }

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

section[id], [id="top"] { scroll-margin-top: calc(var(--header-h) + 8px); }

.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

@media (min-width: 640px) { :root { --gutter: 24px; } }
@media (min-width: 1200px) { :root { --gutter: 32px; } }

.skip-link {
  position: absolute;
  left: 16px; top: -48px;
  z-index: 100;
  padding: 10px 16px;
  background: var(--blue);
  color: #fff;
  border-radius: var(--radius-sm);
  transition: top .2s;
}
.skip-link:focus { top: 12px; color: #fff; }

/* ---------- Buttons ---------- */
.btn {
  --btn-bg: transparent;
  --btn-fg: var(--blue);
  --btn-border: transparent;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 48px;
  padding: 12px 24px;
  border: 1.5px solid var(--btn-border);
  border-radius: var(--radius-sm);
  background: var(--btn-bg);
  color: var(--btn-fg);
  font: 600 1rem/1.2 var(--font-body);
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
  transition: background-color .2s, border-color .2s, color .2s, transform .2s, box-shadow .2s;
}
.btn:hover { color: var(--btn-fg); transform: translateY(-1px); }
.btn:active { transform: translateY(0); }

.btn--primary { --btn-bg: var(--blue); --btn-fg: #fff; box-shadow: 0 6px 16px rgba(30, 79, 216, .25); }
.btn--primary:hover { --btn-bg: var(--blue-dark); }

.btn--outline { --btn-border: rgba(0, 0, 0, .2); --btn-fg: var(--black); --btn-bg: var(--surface); }
.btn--outline:hover { --btn-border: var(--blue); --btn-fg: var(--blue); }

.btn--light { --btn-bg: var(--white); --btn-fg: var(--blue); }
.btn--light:hover { --btn-bg: var(--blue-soft); }

.btn--sm { min-height: 44px; padding: 10px 18px; font-size: .9375rem; }

.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-weight: 600;
  text-decoration: none;
}
.link-arrow::after { content: "→"; transition: transform .2s; }
.link-arrow:hover::after { transform: translateX(4px); }

/* ---------- Header ---------- */
.header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(245, 247, 251, .78);
  backdrop-filter: saturate(180%) blur(12px);
  -webkit-backdrop-filter: saturate(180%) blur(12px);
  border-bottom: 1px solid transparent;
  transition: border-color .2s, box-shadow .2s;
}
.header.is-scrolled { border-color: var(--border); box-shadow: var(--shadow-sm); }

.header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  height: var(--header-h);
}

.logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--black);
  text-decoration: none;
  font: 800 1.25rem/1 var(--font-head);
  letter-spacing: -.02em;
  white-space: nowrap;
}
.logo:hover { color: var(--black); }
.logo__mark {
  display: grid;
  place-items: center;
  width: 36px; height: 36px;
  border-radius: 10px;
  background: var(--blue);
  color: #fff;
  font-size: 1.125rem;
}
.logo__text span { color: var(--muted); font-weight: 600; }
.logo--light, .logo--light:hover { color: #fff; }
.logo--light .logo__mark { background: var(--blue); color: var(--white); }
.logo--light .logo__text span { color: rgba(255, 255, 255, .65); }

/* nav — mobile first: slide-down panel */
.nav {
  position: fixed;
  inset: var(--header-h) 0 auto 0;
  display: flex;
  flex-direction: column;
  gap: 24px;
  padding: 24px var(--gutter) 32px;
  background: var(--surface);
  border-bottom: 1px solid var(--border);
  box-shadow: var(--shadow-lg);
  transform: translateY(-8px);
  opacity: 0;
  visibility: hidden;
  transition: opacity .2s, transform .2s, visibility .2s;
}
.nav.is-open { opacity: 1; transform: none; visibility: visible; }

.nav__list { display: flex; flex-direction: column; }
.nav__link {
  display: block;
  padding: 14px 4px;
  border-bottom: 1px solid var(--border);
  color: var(--text);
  font-weight: 600;
  font-size: 1.0625rem;
  text-decoration: none;
}
.nav__link:hover, .nav__link.is-active { color: var(--blue); }

.nav__actions { display: flex; align-items: center; justify-content: space-between; gap: 16px; }

.lang {
  display: inline-flex;
  padding: 3px;
  border-radius: 999px;
  background: var(--tint);
}
.lang__item {
  min-width: 40px;
  padding: 6px 10px;
  border-radius: 999px;
  color: var(--muted);
  font-size: .8125rem;
  font-weight: 600;
  text-align: center;
  text-decoration: none;
}
.lang__item.is-active { background: var(--surface); color: var(--black); box-shadow: var(--shadow-sm); }

.burger {
  display: inline-flex;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 44px; height: 44px;
  padding: 0 11px;
  border: 0;
  border-radius: var(--radius-sm);
  background: transparent;
  cursor: pointer;
}
.burger span {
  display: block;
  height: 2px;
  border-radius: 2px;
  background: var(--black);
  transition: transform .25s, opacity .2s;
}
.burger[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.burger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.burger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

@media (min-width: 960px) {
  .burger { display: none; }
  .nav {
    position: static;
    flex-direction: row;
    align-items: center;
    gap: 32px;
    padding: 0;
    background: none;
    border: 0;
    box-shadow: none;
    transform: none;
    opacity: 1;
    visibility: visible;
  }
  .nav__list { flex-direction: row; gap: 4px; }
  .nav__link {
    position: relative;
    padding: 8px 12px;
    border: 0;
    font-size: .9375rem;
    color: var(--muted);
  }
  .nav__link::after {
    content: "";
    position: absolute;
    left: 12px; right: 12px; bottom: 2px;
    height: 2px;
    border-radius: 2px;
    background: var(--blue);
    transform: scaleX(0);
    transition: transform .2s;
  }
  .nav__link:hover::after, .nav__link.is-active::after { transform: scaleX(1); }
  .nav__link.is-active { color: var(--text); }
}

/* ---------- Typography helpers ---------- */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 16px;
  color: var(--blue);
  font-size: .8125rem;
  font-weight: 600;
  letter-spacing: .08em;
  text-transform: uppercase;
}
.eyebrow::before { content: ""; width: 24px; height: 2px; background: currentColor; border-radius: 2px; }
.eyebrow--light { color: #fff; opacity: .8; }

.section { padding-block: var(--section-y); }
.section--tint {
  background: linear-gradient(180deg, transparent, var(--tint) 18%, var(--tint) 82%, transparent);
}

.section__head { max-width: 720px; margin-bottom: clamp(32px, 5vw, 56px); }
.section__title { font-size: clamp(1.75rem, 1.2rem + 2.4vw, 2.75rem); font-weight: 800; color: var(--black); }
.section__lead { margin-top: 16px; color: var(--muted); font-size: 1.0625rem; }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  padding-block: clamp(40px, 7vw, 88px) clamp(48px, 7vw, 80px);
  overflow: clip;
  isolation: isolate;
}
.hero__grid {
  display: grid;
  gap: 40px;
  align-items: center;
}
.hero__title {
  font-size: clamp(2.5rem, 1.4rem + 5vw, 4.5rem);
  font-weight: 800;
  line-height: 1.02;
  letter-spacing: -.035em;
  color: var(--black);
}
.hero__title span { color: var(--blue); }
.hero__lead {
  max-width: 56ch;
  margin-top: 24px;
  color: var(--muted);
  font-size: clamp(1.0625rem, 1rem + .3vw, 1.1875rem);
}
.hero__actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }
@media (max-width: 639px) { .hero__actions .btn { flex: 1 1 200px; } }

.hero__media { position: relative; margin: 0; }
.hero__media img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  object-position: 45% 40%;
  /* crisp edges + layered shadow: tight contact, mid-depth, wide soft blue */
  position: relative;
  border-radius: var(--radius-lg);
  box-shadow:
    0 2px 4px rgba(0, 0, 0, .08),
    0 12px 24px rgba(0, 0, 0, .10),
    0 32px 64px rgba(0, 0, 0, .14),
    0 48px 96px rgba(30, 79, 216, .22);
}
.hero__badge {
  position: absolute;
  left: 16px; bottom: 16px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 14px;
  border-radius: 999px;
  background: rgba(255, 255, 255, .92);
  box-shadow: var(--shadow);
  color: var(--black);
  font-size: .875rem;
  font-weight: 600;
}
.dot { width: 8px; height: 8px; border-radius: 50%; background: var(--blue); box-shadow: 0 0 0 4px rgba(30, 79, 216, .18); }

@media (min-width: 960px) {
  .hero__grid { grid-template-columns: 1.05fr 1fr; gap: 64px; }
  .hero__media img { aspect-ratio: 5 / 4; }
}

.stats {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1px;
  margin-top: clamp(48px, 7vw, 80px);
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--border);
  box-shadow: var(--shadow);
}
.stats__item {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 20px;
  background: var(--surface);
}
.stats__item strong {
  font: 800 clamp(1.75rem, 1.3rem + 1.8vw, 2.5rem)/1 var(--font-head);
  color: var(--blue);
  letter-spacing: -.02em;
}
.stats__item span { color: var(--muted); font-size: .875rem; line-height: 1.4; }
@media (min-width: 960px) {
  .stats { grid-template-columns: repeat(4, 1fr); }
  .stats__item { padding: 28px 32px; }
}

/* ---------- Grid & cards ---------- */
.grid { display: grid; gap: 20px; }
@media (min-width: 640px) { .grid--2, .grid--team { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 960px) {
  .grid { gap: 24px; }
  .grid--3, .grid--team { grid-template-columns: repeat(3, 1fr); }
}

.card {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: clamp(24px, 3vw, 32px);
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  transition: transform .2s, box-shadow .2s;
}
.card:hover { transform: translateY(-2px); box-shadow: var(--shadow), 0 16px 32px rgba(0, 0, 0, .08); }
.card p { color: var(--muted); }
.card__title { font-size: 1.1875rem; font-weight: 700; color: var(--black); }

.card--accent {
  background: var(--blue);
  border-color: transparent;
  color: #fff;
}
.card--accent .card__title { color: #fff; }
.card--accent p { color: rgba(255, 255, 255, .8); }

/* details / "Подробнее" */
.more { margin-top: auto; padding-top: 4px; }
.more summary {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 44px;
  color: var(--blue);
  font-weight: 600;
  font-size: .9375rem;
  list-style: none;
  cursor: pointer;
}
.more summary::-webkit-details-marker { display: none; }
.more summary::after {
  content: "";
  width: 8px; height: 8px;
  border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  transform: rotate(45deg) translateY(-3px);
  transition: transform .2s;
}
.more[open] summary::after { transform: rotate(-135deg) translate(-2px, -1px); }
.more p { font-size: .9375rem; }

/* ---------- Why ---------- */
.why { display: grid; gap: 20px; }
.why__item {
  padding: clamp(24px, 3vw, 40px);
  border-left: 3px solid var(--blue);
  background: var(--surface);
  border-radius: 0 var(--radius) var(--radius) 0;
  box-shadow: var(--shadow);
}
.why__item h3 { margin-bottom: 16px; font-size: 1.3125rem; color: var(--black); }
.why__item p { color: var(--muted); }
@media (min-width: 960px) { .why { grid-template-columns: 1fr 1fr; gap: 24px; } }

/* ---------- Principles ---------- */
.principle__num {
  font: 800 .875rem/1 var(--font-head);
  color: var(--blue);
  letter-spacing: .08em;
}

/* ---------- Services ---------- */
.service__icon {
  display: grid;
  place-items: center;
  width: 52px; height: 52px;
  margin-bottom: 4px;
  border-radius: 14px;
  background: var(--blue-soft);
  color: var(--blue);
}
.service__icon svg { width: 26px; height: 26px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }

.checklist { display: grid; gap: 12px; margin-top: 4px; }
.checklist li {
  position: relative;
  padding-left: 30px;
  color: var(--muted);
  font-size: .9688rem;
}
.checklist li::before {
  content: "";
  position: absolute;
  left: 0; top: 3px;
  width: 18px; height: 18px;
  border-radius: 50%;
  background: var(--blue-soft) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 18 18'%3E%3Cpath d='M5 9.5l2.5 2.5L13 6.5' fill='none' stroke='%231E4FD8' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 18px no-repeat;
}

.cta-inline {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 16px;
  margin-top: 32px;
  padding: 24px clamp(24px, 3vw, 32px);
  border: 1px dashed rgba(30, 79, 216, .35);
  border-radius: var(--radius);
}
.cta-inline p { font-weight: 500; color: var(--black); }
@media (min-width: 640px) {
  .cta-inline { flex-direction: row; align-items: center; justify-content: space-between; }
}

/* ---------- About ---------- */
.about { display: grid; gap: 40px; align-items: center; }
.about__text .section__title { margin-bottom: 24px; }
.about__text p { color: var(--muted); max-width: 64ch; }
@media (min-width: 960px) { .about { grid-template-columns: 1.2fr 1fr; gap: 64px; } }

.geo { align-items: stretch; color: var(--blue); }
.geo:hover { transform: none; }
.geo__map { width: 100%; height: auto; overflow: visible; }
.geo__grid path { stroke: var(--border); stroke-width: 1; fill: none; }
.geo__lines path { fill: none; stroke: var(--blue); stroke-width: 1.5; stroke-dasharray: 4 5; opacity: .6; }
.geo__pin circle:last-child { fill: var(--blue); stroke: #fff; stroke-width: 3; }
.geo text { font: 600 11px var(--font-body); fill: var(--black); }
.geo__caption { text-align: center; font-size: .875rem; }

/* ---------- Team ---------- */
.person__head { display: flex; align-items: center; gap: 16px; margin-bottom: 4px; }
.avatar {
  flex: none;
  display: grid;
  place-items: center;
  width: 56px; height: 56px;
  border-radius: 50%;
  background: var(--blue-soft);
  color: var(--blue);
  font: 700 1.0625rem/1 var(--font-head);
}
.avatar--alt { background: var(--blue); color: var(--white); }
.person__name { font-size: 1.125rem; font-weight: 700; color: var(--black); }
.person__role { margin: 4px 0 0; font-size: .875rem; color: var(--muted); }

.join { justify-content: center; }
.join .btn { align-self: flex-start; margin-top: 8px; }

/* ---------- Gallery ---------- */
.gallery {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
}
@media (min-width: 640px) { .gallery { grid-template-columns: repeat(3, 1fr); gap: 16px; } }
@media (min-width: 960px) { .gallery { grid-template-columns: repeat(4, 1fr); } }
@media (min-width: 1200px) { .gallery { grid-template-columns: repeat(7, 1fr); } }

.gallery__item {
  display: block;
  width: 100%;
  padding: 0;
  border: 0;
  border-radius: 12px;
  overflow: hidden;
  background: var(--border);
  cursor: zoom-in;
}
.gallery__item img {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  transition: transform .35s, filter .35s;
}
.gallery__item:hover img { transform: scale(1.06); filter: saturate(1.1); }

/* ---------- Contact ---------- */
.contact {
  display: grid;
  gap: 40px;
  padding: clamp(32px, 6vw, 72px);
  border-radius: var(--radius-lg);
  background:
    radial-gradient(60% 80% at 100% 0%, rgba(255, 255, 255, .14), transparent 60%),
    var(--blue);
  color: #fff;
  box-shadow: var(--shadow-lg);
}
.contact__title { font-size: clamp(2rem, 1.4rem + 2.8vw, 3.25rem); font-weight: 800; letter-spacing: -.03em; margin-bottom: 16px; }
.contact__text p { color: rgba(255, 255, 255, .8); max-width: 44ch; font-size: 1.0625rem; }
.contact__list { display: grid; gap: 0; align-content: center; }
.contact__list li {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 16px 0;
  border-bottom: 1px solid rgba(255, 255, 255, .15);
}
.contact__list li:last-child { border-bottom: 0; }
.contact__label { font-size: .8125rem; letter-spacing: .06em; text-transform: uppercase; color: rgba(255, 255, 255, .6); }
.contact__list a { color: #fff; font-size: 1.125rem; font-weight: 600; text-decoration: none; word-break: break-word; }
.contact__list a:hover { text-decoration: underline; }
.contact__todo { color: rgba(255, 255, 255, .5); font-style: italic; }
@media (min-width: 960px) { .contact { grid-template-columns: 1.3fr 1fr; gap: 64px; } }

/* ---------- Footer ---------- */
.footer { padding-block: 40px; background: var(--black); color: rgba(255, 255, 255, .7); }
.footer__inner { display: flex; flex-direction: column; gap: 24px; }
.footer__nav { display: flex; flex-wrap: wrap; gap: 8px 24px; }
.footer__nav a { color: rgba(255, 255, 255, .8); text-decoration: none; font-size: .9375rem; }
.footer__nav a:hover { color: #fff; }
.footer__copy { margin: 0; font-size: .875rem; }
@media (min-width: 960px) {
  .footer__inner { flex-direction: row; align-items: center; justify-content: space-between; }
}

/* ---------- Lightbox ---------- */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: grid;
  place-items: center;
  padding: 64px 16px;
  background: rgba(0, 0, 0, .92);
}
.lightbox[hidden] { display: none; }
.lightbox__img {
  max-width: min(92vw, 900px);
  max-height: 80vh;
  width: auto;
  border-radius: 12px;
  box-shadow: var(--shadow-lg);
  image-rendering: auto;
}
.lightbox__btn {
  position: absolute;
  display: grid;
  place-items: center;
  width: 48px; height: 48px;
  border: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, .12);
  color: #fff;
  font-size: 1.75rem;
  line-height: 1;
  cursor: pointer;
  transition: background-color .2s;
}
.lightbox__btn:hover { background: rgba(255, 255, 255, .24); }
.lightbox__close { top: 16px; right: 16px; }
.lightbox__prev { left: 12px; top: 50%; transform: translateY(-50%); }
.lightbox__next { right: 12px; top: 50%; transform: translateY(-50%); }
@media (max-width: 639px) {
  .lightbox__prev, .lightbox__next { top: auto; bottom: 16px; transform: none; }
  .lightbox__prev { left: calc(50% - 60px); }
  .lightbox__next { right: calc(50% - 60px); }
}

body.no-scroll { overflow: hidden; }


/* =========================================================
   Background & depth
   ========================================================= */

/* faint dot grid over the whole page, fading towards the bottom of the viewport */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background-image: radial-gradient(rgba(0, 0, 0, .07) 1px, transparent 1.2px);
  background-size: 24px 24px;
  -webkit-mask-image: linear-gradient(180deg, #000, rgba(0, 0, 0, .25) 70%, transparent);
          mask-image: linear-gradient(180deg, #000, rgba(0, 0, 0, .25) 70%, transparent);
}

/* hero: two slowly drifting blurred blue glows */
.hero::before,
.hero::after {
  content: "";
  position: absolute;
  z-index: -1;
  border-radius: 50%;
  filter: blur(60px);
  pointer-events: none;
}
.hero::before {
  width: 520px; height: 520px;
  top: -180px; right: -120px;
  background: radial-gradient(circle, rgba(30, 79, 216, .28), transparent 65%);
  animation: drift 18s ease-in-out infinite alternate;
}
.hero::after {
  width: 420px; height: 420px;
  bottom: -160px; left: -140px;
  background: radial-gradient(circle, rgba(30, 79, 216, .16), transparent 65%);
  animation: drift 22s ease-in-out -6s infinite alternate-reverse;
}
@keyframes drift {
  from { transform: translate(0, 0) scale(1); }
  to   { transform: translate(-60px, 40px) scale(1.12); }
}

/* soft blue halo behind the hero photo */
/* offset blue panel behind the photo — gives a second layer of depth */
.hero__media::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  border-radius: var(--radius-lg);
  background: linear-gradient(135deg, var(--blue), var(--blue-dark));
  transform: translate(18px, 18px) rotate(2deg);
  opacity: .9;
  box-shadow: 0 30px 60px rgba(30, 79, 216, .3);
}
@media (max-width: 639px) {
  .hero__media::before { transform: translate(10px, 10px) rotate(1.5deg); }
}

/* hero accent: a thin blue ring peeking out from behind the photo */
@media (min-width: 960px) {
  .hero__media::after {
    content: "";
    position: absolute;
    z-index: -1;
    width: 180px; height: 180px;
    top: -36px; right: -28px;
    border: 1.5px solid rgba(30, 79, 216, .35);
    border-radius: 50%;
  }
}

/* stats bar: frosted glass over the glows */
.stats { background: rgba(0, 0, 0, .06); }
.stats__item {
  background: rgba(255, 255, 255, .78);
  -webkit-backdrop-filter: blur(12px);
          backdrop-filter: blur(12px);
}

/* cards: blue accent line slides in on hover, deeper lift */
.card { position: relative; overflow: hidden; }
.card::before {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 3px;
  background: linear-gradient(90deg, var(--blue), rgba(30, 79, 216, .2));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .35s ease;
}
.card:hover::before { transform: scaleX(1); }
.card:hover { box-shadow: var(--shadow-lg); }
.card--accent::before, .geo::before { display: none; }

.why__item { box-shadow: var(--shadow); }

/* blue blocks: fine white grid + light sheen for depth */
.card--accent,
.contact {
  position: relative;
  isolation: isolate;
  overflow: hidden;
}
.card--accent::after,
.contact::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background-image:
    linear-gradient(rgba(255, 255, 255, .08) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, .08) 1px, transparent 1px);
  background-size: 32px 32px;
  -webkit-mask-image: radial-gradient(ellipse at 100% 0%, #000, transparent 70%);
          mask-image: radial-gradient(ellipse at 100% 0%, #000, transparent 70%);
}
.contact { box-shadow: 0 30px 70px rgba(30, 79, 216, .35); }

/* gallery tiles get a little lift */
.gallery__item { box-shadow: var(--shadow-sm); transition: box-shadow .3s, transform .3s; }
.gallery__item:hover { box-shadow: var(--shadow-lg); transform: translateY(-2px); }

/* footer: glowing blue edge */
.footer { position: relative; }
.footer::before {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--blue), transparent);
  box-shadow: 0 0 24px 2px rgba(30, 79, 216, .6);
}

/* ---------- Reveal on scroll ---------- */
.reveal { opacity: 0; transform: translateY(16px); transition: opacity .6s ease, transform .6s ease; }
.reveal.is-visible { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: .01ms !important; animation-duration: .01ms !important; }
  .reveal { opacity: 1; transform: none; }
  .hero::before, .hero::after { animation: none; }
}
