/* =========================================================================
   Alphabet Education — Homepage
   Type:   Verdana (headings & titles) · Manrope (body)
   Motion: assets/js/main.js (GSAP + ScrollTrigger + SplitText + Lenis)
   ========================================================================= */

/* 1. Tokens ---------------------------------------------------------------- */
:root {
  --c-indigo: #2E2D9F;
  --c-indigo-700: #28278F;
  --c-indigo-800: #23227F;
  --c-indigo-900: #191860;
  --c-ink: #1F1E55;
  --c-blue: #2F37D6;
  --c-icon: #51aeff;
  --c-azure: #49A6F2;
  --c-cyan: #2DD3F0;
  --c-red: #F2122F;
  --c-violet: #A35BF1;
  --c-violet-dark: #8E45E6;
  --c-orange: #F45A1E;
  --c-mist: #EEF1F6;
  --c-text: #3C4060;
  --c-muted: #6B7090;
  --c-lavender: #A3A5EA;
  --c-white: #FFFFFF;

  --brand-metropolitan: #E3241B;
  --brand-akmi: #2C2F94;
  --brand-keele: #241E4E;
  --brand-akmi-int: #7B52AD;

  --ff-head: Verdana, Geneva, "DejaVu Sans", Tahoma, sans-serif;
  --ff-body: "Manrope", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;

  --container: 1220px;
  --container-narrow: 1110px;
  --gutter: clamp(20px, 4vw, 56px);

  --ease-out: cubic-bezier(.16, 1, .3, 1);
  --ease-in-out: cubic-bezier(.77, 0, .175, 1);
}

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

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

body {
  margin: 0;
  font-family: var(--ff-body);
  font-size: 16px;
  line-height: 1.6;
  color: var(--c-text);
  background: var(--c-white);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: clip;
}

img, svg, video { display: block; max-width: 100%; }
img { height: auto; }
a { color: inherit; text-decoration: none; }
ul, ol { list-style: none; margin: 0; padding: 0; }
h1, h2, h3, h4, p, figure, blockquote { margin: 0; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
address { font-style: normal; }

:focus-visible { outline: 2px solid var(--c-cyan); outline-offset: 3px; }
::selection { background: var(--c-cyan); color: var(--c-indigo-900); }

html.is-loading { overflow: hidden; }

/* Lenis (smooth scroll) */
html.lenis, html.lenis body { height: auto; }
.lenis:not(.lenis-autoToggle).lenis-stopped { overflow: clip; }
.lenis [data-lenis-prevent] { overscroll-behavior: contain; }
.lenis.lenis-smooth iframe { pointer-events: none; }

/* 3. Helpers --------------------------------------------------------------- */
.container {
  width: 100%;
  max-width: calc(var(--container) + var(--gutter) * 2);
  margin-inline: auto;
  padding-inline: var(--gutter);
}
.container--narrow { max-width: calc(var(--container-narrow) + var(--gutter) * 2); }

.visually-hidden {
  position: absolute !important;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: fixed; top: 12px; left: 12px; z-index: 400;
  padding: 10px 16px;
  background: var(--c-white); color: var(--c-indigo);
  font-weight: 700;
  transform: translateY(-160%);
  transition: transform .3s var(--ease-out);
}
.skip-link:focus { transform: none; }

/* underline-on-hover links */
.u-link {
  background: linear-gradient(currentColor, currentColor) 0 100% / 0 1px no-repeat;
  transition: background-size .5s var(--ease-out);
}
.u-link:hover, .u-link:focus-visible { background-size: 100% 1px; }

/* elements revealed by the intro timeline stay hidden until JS takes over */
.has-anim [data-intro] { visibility: hidden; }

/* 4. Intro curtain --------------------------------------------------------- */
.loader { display: none; }
.has-anim .loader {
  display: block;
  position: fixed; inset: 0; z-index: 200;
}
.loader__layer { position: absolute; inset: 0; }
.loader__layer--accent { background: var(--c-cyan); }
.loader__layer--main { display: grid; place-items: center; background: var(--c-indigo); }
.loader__inner {
  display: grid; justify-items: center; gap: 26px;
  opacity: 0; transform: translateY(14px);
}
.loader__logo { width: 220px; }
.loader__bar { display: block; width: 180px; height: 2px; overflow: hidden; background: rgba(255, 255, 255, .18); }
.loader__bar i { display: block; height: 100%; background: var(--c-cyan); transform: scaleX(0); transform-origin: left center; }

/* 5. Header ---------------------------------------------------------------- */
.site-header {
  position: fixed; inset: 0 0 auto; z-index: 100;
  color: var(--c-white);
  transition: transform .7s var(--ease-out), background-color .45s ease, box-shadow .45s ease;
}
.site-header::before { /* soft gradient for legibility over the hero photo */
  content: "";
  position: absolute; inset: 0 0 -60px;
  background: linear-gradient(180deg, rgba(16, 15, 62, .55) 0%, rgba(16, 15, 62, 0) 100%);
  pointer-events: none;
  transition: opacity .45s ease;
}
.site-header.is-solid {
  background-color: rgba(35, 34, 127, .94);
  box-shadow: 0 12px 34px -16px rgba(8, 6, 50, .6);
  -webkit-backdrop-filter: saturate(140%) blur(12px);
  backdrop-filter: saturate(140%) blur(12px);
}
.site-header.is-solid::before { opacity: 0; }
.site-header.is-hidden { transform: translateY(-101%); box-shadow: none; }

.site-header__inner {
  position: relative;
  display: flex; align-items: flex-start;
  gap: clamp(20px, 2.5vw, 40px);
  padding: clamp(18px, 3.3vw, 50px) var(--gutter) 18px;
  transition: padding .5s var(--ease-out);
}
.site-header.is-solid .site-header__inner { padding-top: 14px; padding-bottom: 14px; align-items: center; }

.brand { flex: none; display: grid; gap: 10px; }
.brand__logo { width: clamp(168px, 15vw, 240px); transition: width .5s var(--ease-out); }
.site-header.is-solid .brand__logo { width: clamp(150px, 12vw, 190px); }
.brand__member {
    display: block;
    max-height: 90px;
    overflow: hidden;
    padding-left: 35%;
    font-family: var(--ff-head);
    font-size: 8.5px;
    letter-spacing: .14em;
    text-transform: uppercase;
    white-space: nowrap;
    opacity: .85;
    transition: max-height .5s var(--ease-out), opacity .3s ease, margin .5s var(--ease-out);
    width: 188px;
}
.brand__member strong { font-weight: 700; letter-spacing: .08em; }
.site-header.is-solid .brand__member { max-height: 0; margin-top: -10px; opacity: 0; }

.nav { margin-left: auto; padding-top: 10px; transition: padding .5s var(--ease-out); }
.site-header.is-solid .nav { padding-top: 0; }
.nav__list { display: flex; gap: clamp(14px, 1.8vw, 27px); }
.nav__link {
  position: relative; display: inline-block;
  padding: 4px 0 7px;
  font-family: var(--ff-head); font-size: clamp(12px, .97vw, 14px);
  letter-spacing: .06em; text-transform: uppercase; white-space: nowrap;
  transition: color .3s ease;
}
.nav__link::after {
  content: "";
  position: absolute; left: 0; right: 0; bottom: 0; height: 2px;
  background: var(--c-cyan);
  transform: scaleX(0); transform-origin: right center;
  transition: transform .6s var(--ease-out);
}
.nav__link:hover::after,
.nav__link:focus-visible::after,
.nav__link.is-active::after { transform: scaleX(1); transform-origin: left center; }
.nav__link.is-active { color: var(--c-cyan); }

/* text-roll hover (markup injected by main.js) */
.roll { position: relative; display: inline-block; overflow: hidden; vertical-align: top; }
.roll > span { display: block; transition: transform .6s var(--ease-out); }
.roll > span + span { position: absolute; left: 0; top: 100%; color: var(--c-cyan); }
a:hover > .roll > span, a:focus-visible > .roll > span { transform: translateY(-100%); }

.lang {
  display: grid; gap: 3px;
  padding-top: 2px;
  font-family: var(--ff-head); font-size: 12px; line-height: 1.25; letter-spacing: .06em;
}
.site-header.is-solid .lang { padding-top: 0; }
.lang__link { opacity: .9; transition: color .3s ease, opacity .3s ease; }
.lang__link:hover, .lang__link.is-active { color: var(--c-cyan); opacity: 1; }

.burger { display: none; position: relative; width: 46px; height: 46px; margin: -6px -10px 0 auto; }
.burger__line {
  position: absolute; left: 11px; right: 11px; height: 2px;
  background: currentColor; border-radius: 2px;
  transition: transform .6s var(--ease-out), top .6s var(--ease-out);
}
.burger__line:nth-child(1) { top: 18px; }
.burger__line:nth-child(2) { top: 26px; }
.menu-open .burger__line:nth-child(1) { top: 22px; transform: rotate(45deg); }
.menu-open .burger__line:nth-child(2) { top: 22px; transform: rotate(-45deg); }

/* 6. Mobile menu ----------------------------------------------------------- */
.menu { position: fixed; inset: 0; z-index: 90; visibility: hidden; transition: visibility 0s linear .9s; }
.menu.is-open { visibility: visible; transition-delay: 0s; }
.menu__bg {
  position: absolute; inset: 0;
  background: var(--c-indigo);
  clip-path: circle(0% at calc(100% - 40px) 40px);
  transition: clip-path .9s var(--ease-in-out);
}
.menu.is-open .menu__bg { clip-path: circle(150% at calc(100% - 40px) 40px); }
.menu__nav {
  position: relative; height: 100%; overflow-y: auto;
  display: flex; flex-direction: column; justify-content: center; gap: 36px;
  padding: 110px var(--gutter) 40px;
  color: var(--c-white);
}
.menu__link, .menu__foot { opacity: 0; transform: translateY(26px); transition: opacity .35s ease, transform .5s var(--ease-out), color .3s ease; }
.menu__link {
  display: inline-block; padding: 4px 0;
  font-family: var(--ff-head); font-weight: 700;
  font-size: clamp(24px, 6.4vw, 42px); line-height: 1.2; text-transform: uppercase;
}
.menu.is-open .menu__link,
.menu.is-open .menu__foot {
  opacity: 1; transform: none;
  transition: opacity .6s ease calc(.3s + var(--i) * .05s), transform .9s var(--ease-out) calc(.3s + var(--i) * .05s), color .3s ease;
}
.menu__link:hover { color: var(--c-cyan); }
.menu__foot {
  display: flex; justify-content: space-between; align-items: center; gap: 20px;
  padding-top: 22px; border-top: 1px solid rgba(255, 255, 255, .2);
  font-family: var(--ff-head); font-size: 14px; letter-spacing: .06em;
}
.menu__lang { display: flex; gap: 16px; }
.menu__lang .is-active { color: var(--c-cyan); }
.menu__phone { font-weight: 700; }

.menu-open .site-header {
  transform: none; background-color: transparent; box-shadow: none;
  -webkit-backdrop-filter: none; backdrop-filter: none;
}
.menu-open .site-header::before { opacity: 0; }

/* 7. Hero ------------------------------------------------------------------ */
.hero {
  position: relative; isolation: isolate;
  display: grid; place-items: center;
  height: 100vh; height: 100svh; min-height: 560px; max-height: 1080px;
  overflow: hidden;
  color: var(--c-white);
  background: var(--c-indigo-900);
}
.hero__media { position: absolute; inset: 0; z-index: -1; overflow: hidden; }
.hero__parallax { position: absolute; inset: 0; transform-origin: 50% 40%; will-change: transform; }
.hero__img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 35%; }
.hero__shade {
  position: absolute; inset: 0;
  background:
    linear-gradient(90deg, rgba(19, 18, 72, .62) 0%, rgba(19, 18, 72, .32) 50%, rgba(19, 18, 72, .18) 100%),
    linear-gradient(0deg, rgba(19, 18, 72, .45) 0%, rgba(19, 18, 72, 0) 45%);
}
.hero__content { position: relative; padding: 120px var(--gutter) 80px; text-align: center; will-change: transform, opacity; }
.hero__title {
  font-family: var(--ff-head); font-weight: 400;
  font-size: clamp(28px, 2.8vw, 46px); line-height: 1.35; letter-spacing: .01em;
  text-shadow: 0 2px 30px rgba(10, 9, 50, .35);
}
.hero__scroll { position: absolute; left: 50%; bottom: clamp(18px, 3vw, 34px); translate: -50% 0; padding: 8px; }
.hero__scroll-track { position: relative; display: block; width: 1px; height: 64px; overflow: hidden; background: rgba(255, 255, 255, .28); }
.hero__scroll-line { position: absolute; inset: 0; background: var(--c-cyan); animation: scrollcue 2.4s var(--ease-in-out) infinite; }
@keyframes scrollcue {
  0% { transform: translateY(-101%); }
  55%, 100% { transform: translateY(101%); }
}

/* 8. Intro ----------------------------------------------------------------- */
.intro { position: relative; overflow: hidden; padding: clamp(64px, 7vw, 104px) 0; background: var(--c-indigo); color: var(--c-white); }
.intro__grid { display: grid; grid-template-columns: 1fr 1fr; align-items: center; column-gap: clamp(32px, 4vw, 58px); row-gap: 28px; }
.intro__title {
  justify-self: end; max-width: 14.6em;
  font-family: var(--ff-head); font-weight: 700;
  font-size: clamp(24px, 2.5vw, 40px); line-height: 1.27; text-align: right;
}
.intro__text { display: grid; gap: 1.35em; max-width: 590px; font-size: 14px; line-height: 1.65; color: rgba(255, 255, 255, .88); }

/* 9. Companies ------------------------------------------------------------- */
.brands { padding: clamp(22px, 2.9vw, 42px) clamp(14px, 2.2vw, 32px) clamp(28px, 3.75vw, 54px); background: var(--c-mist); }
.brands__grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: clamp(10px, 1.46vw, 21px); }
.brand-card {
  position: relative; isolation: isolate;
  display: grid; place-items: center;
  height: clamp(110px, 12.2vw, 196px);
  overflow: hidden;
  background: var(--brand-bg, var(--c-indigo));
  will-change: transform;
}
.brand-card--metropolitan { --brand-bg: var(--brand-metropolitan); }
.brand-card--akmi { --brand-bg: var(--brand-akmi); }
.brand-card--keele { --brand-bg: var(--brand-keele); }
.brand-card--akmi-int { --brand-bg: var(--brand-akmi-int); }
.brand-card img { width: 72%; max-width: 250px; max-height: 62%; object-fit: contain; transition: transform .8s var(--ease-out); }
.brand-card::before { /* light sweep */
  content: "";
  position: absolute; top: 0; bottom: 0; left: -75%; z-index: 1;
  width: 50%;
  background: linear-gradient(100deg, rgba(255, 255, 255, 0) 0%, rgba(255, 255, 255, .22) 50%, rgba(255, 255, 255, 0) 100%);
  transform: skewX(-18deg);
  pointer-events: none;
}
.brand-card::after { /* spotlight that follows the pointer (--mx/--my set in JS) */
  content: "";
  position: absolute; inset: 0; z-index: -1;
  background: radial-gradient(120% 120% at var(--mx, 50%) var(--my, 50%), rgba(255, 255, 255, .16), rgba(255, 255, 255, 0) 55%);
  opacity: 0;
  transition: opacity .5s ease;
}
.brand-card:hover::before { animation: shine 1s var(--ease-out); }
.brand-card:hover::after { opacity: 1; }
.brand-card:hover img { transform: scale(1.06); }
@keyframes shine { from { left: -75%; } to { left: 135%; } }

/* 10. Stats ---------------------------------------------------------------- */
.stats { padding: clamp(52px, 4.4vw, 68px) 0 clamp(56px, 4.6vw, 72px); background: var(--c-white); }
.stats__grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); column-gap: 24px; row-gap: clamp(40px, 4.4vw, 66px); }
.stat { display: flex; flex-direction: column; align-items: center; text-align: center; color: var(--c-indigo); }
.stat__icon {
  width: clamp(50px, 4.3vw, 62px); height: auto;
  margin-bottom: clamp(10px, 1vw, 16px);
  overflow: visible;
  fill: none; stroke: var(--c-icon); stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round;
}
.stat:hover .stat__icon { animation: bob 1s var(--ease-out); }
@keyframes bob { 0%, 100% { transform: translateY(0); } 40% { transform: translateY(-6px); } }
.stat__value {
  font-family: var(--ff-head); font-weight: 700;
  font-size: clamp(28px, 2.5vw, 40px); line-height: 1.05; letter-spacing: -.01em;
  font-variant-numeric: tabular-nums; white-space: nowrap;
}
.stat__label {
  margin-top: 4px;
  font-family: var(--ff-head); font-size: clamp(11px, .97vw, 14px);
  line-height: 1.25; letter-spacing: .03em; text-transform: uppercase;
}
.stat__label--pre { margin: 0 0 2px; }

/* 11. Photo mosaic --------------------------------------------------------- */
.mosaic { background: var(--c-indigo-900); }
.mosaic__grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); grid-template-rows: repeat(3, clamp(220px, 25vw, 520px)); }
.tile {
  position: relative; isolation: isolate;
  display: grid; place-items: center;
  min-width: 0; overflow: hidden;
  color: var(--c-white); text-align: center;
}
.tile--a { grid-area: 1 / 1 / 2 / 3; }
.tile--b { grid-area: 1 / 3 / 2 / 4; }
.tile--c { grid-area: 1 / 4 / 2 / 5; }
.tile--d { grid-area: 2 / 1 / 3 / 2; }
.tile--e { grid-area: 2 / 2 / 4 / 3; }
.tile--f { grid-area: 2 / 3 / 3 / 5; }
.tile--g { grid-area: 3 / 1 / 4 / 2; }
.tile--h { grid-area: 3 / 3 / 4 / 5; }

/* three layers: parallax (JS) > hover zoom (CSS) > image (reveal scale, JS) */
.tile__media { position: absolute; inset: -12% 0; z-index: -2; will-change: transform; }
.tile__zoom { position: absolute; inset: 0; transition: transform 1.4s var(--ease-out); }
.tile__zoom img { width: 100%; height: 100%; object-fit: cover; }
.tile--photo::after {
  content: "";
  position: absolute; inset: 0; z-index: -1;
  background-color: rgba(18, 17, 66, 0);
  transition: background-color .7s var(--ease-out);
}
.tile--captioned::after { background-image: linear-gradient(0deg, rgba(18, 17, 66, .5), rgba(18, 17, 66, .22)); }
.tile--photo:hover .tile__zoom { transform: scale(1.07); }
.tile--photo:hover::after { background-color: rgba(18, 17, 66, .2); }

.tile__caption { padding: 24px; transition: transform .8s var(--ease-out); }
.tile__caption::after {
  content: "";
  display: block; width: 44px; height: 2px; margin: 16px auto 0;
  background: var(--c-cyan);
  transform: scaleX(0);
  transition: transform .7s var(--ease-out);
}
.tile:hover .tile__caption { transform: translateY(-6px); }
.tile:hover .tile__caption::after { transform: scaleX(1); }
.tile__title {
  font-family: var(--ff-head); font-weight: 700;
  font-size: clamp(19px, 2.1vw, 34px); line-height: 1.2;
  text-shadow: 0 2px 24px rgba(10, 9, 50, .3);
}
.tile__sub { margin-top: 6px; font-family: var(--ff-head); font-size: clamp(12px, .97vw, 15px); opacity: .92; }

.tile--quote { padding: clamp(18px, 2.4vw, 40px); background: var(--c-red); }
.tile__quote {
  font-family: var(--ff-head); font-weight: 700;
  font-size: clamp(14px, 1.46vw, 24px); line-height: 1.33;
  text-wrap: balance;
}

.tile--cta {
  align-content: center; justify-items: start; gap: 2px;
  padding: 20px 20px 20px clamp(22px, 5.3vw, 84px);
  background: var(--c-violet);
  text-align: left;
  transition: background-color .6s var(--ease-out);
}
.tile--cta:hover { background-color: var(--c-violet-dark); }
.tile__view { font-size: clamp(13px, 1vw, 16px); opacity: .9; }
.tile__all {
  font-family: var(--ff-head); font-weight: 700;
  font-size: clamp(17px, 1.74vw, 28px); line-height: 1.15;
  text-transform: uppercase; letter-spacing: .01em;
}
.tile__arrow {
  display: grid; place-items: center;
  width: 40px; height: 40px; margin-top: 16px;
  border: 1.5px solid rgba(255, 255, 255, .6); border-radius: 50%;
  transition: background-color .5s var(--ease-out), border-color .5s ease, color .5s ease, transform .6s var(--ease-out);
}
.tile__arrow svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.tile--cta:hover .tile__arrow { transform: translateX(8px); background-color: var(--c-white); border-color: var(--c-white); color: var(--c-violet-dark); }

/* 12. Statement ------------------------------------------------------------ */
.statement { padding: clamp(56px, 5.2vw, 84px) 0; background: var(--c-white); }
.statement__text {
  max-width: 40em; margin-inline: auto;
  font-family: var(--ff-head); font-size: clamp(18px, 1.8vw, 30px); line-height: 1.55;
  text-align: center; text-wrap: balance;
  color: var(--c-indigo);
}
.br-lg { display: none; }

/* 13. Nationwide presence -------------------------------------------------- */
.presence { display: grid; grid-template-columns: 1fr 1fr; min-height: clamp(460px, 35vw, 620px); }
.presence__panel {
  padding: clamp(40px, 3.75vw, 56px) clamp(20px, 2.2vw, 40px) clamp(40px, 3.75vw, 56px) max(var(--gutter), calc(50vw - var(--container-narrow) / 2));
  background: var(--c-azure);
}
.presence__title {
  margin-bottom: clamp(14px, 1.4vw, 22px);
  font-family: var(--ff-head); font-weight: 700;
  font-size: clamp(19px, 1.6vw, 28px); line-height: 1.3;
  color: var(--c-indigo);
}
.presence__list { display: grid; }
.city {
  display: flex; align-items: center; gap: .55em;
  width: fit-content;
  font-family: var(--ff-head); font-weight: 700;
  font-size: clamp(15px, 1.25vw, 20px); line-height: 2;
  color: var(--c-white);
  cursor: default;
  transition: color .35s ease, transform .6s var(--ease-out);
}
.city__pin { flex: none; width: 1em; height: 1em; fill: none; stroke: var(--c-cyan); stroke-width: 2; transition: transform .5s var(--ease-out), fill .3s ease; }
.city:hover, .city.is-active { color: var(--c-indigo); transform: translateX(8px); }
.city:hover .city__pin, .city.is-active .city__pin { fill: rgba(45, 211, 240, .3); transform: translateY(-3px) scale(1.15); }

.presence__map { position: relative; min-height: 360px; overflow: hidden; background: var(--c-indigo-800); }
.greece { position: absolute; inset: 6% 7%; width: 86%; height: 88%; overflow: visible; }
.greece__land { fill: rgba(150, 158, 255, .17); stroke: rgba(196, 202, 255, .5); stroke-width: 1.1; stroke-linejoin: round; }
.map-pin { cursor: pointer; }
.map-pin__body { transform-box: fill-box; transform-origin: 50% 100%; transition: transform .5s var(--ease-out); }
.map-pin__shape { fill: var(--c-indigo-800); stroke: var(--c-cyan); stroke-width: 2.4; transition: fill .3s ease; }
.map-pin__dot { fill: var(--c-cyan); transition: fill .3s ease; }
.map-pin__pulse {
  fill: none; stroke: var(--c-cyan); stroke-width: 1.5;
  opacity: 0;
  transform-box: fill-box; transform-origin: center;
  animation: pin-pulse 2.6s var(--ease-out) infinite;
}
.map-pin:nth-child(2n) .map-pin__pulse { animation-delay: .9s; }
.map-pin:nth-child(3n) .map-pin__pulse { animation-delay: 1.7s; }
.map-pin:hover .map-pin__body, .map-pin.is-active .map-pin__body { transform: scale(1.3); }
.map-pin:hover .map-pin__shape, .map-pin.is-active .map-pin__shape { fill: var(--c-cyan); }
.map-pin:hover .map-pin__dot, .map-pin.is-active .map-pin__dot { fill: var(--c-indigo-900); }
@keyframes pin-pulse {
  0% { opacity: .9; transform: scale(.3); }
  100% { opacity: 0; transform: scale(2.8); }
}

.map-tip {
  position: absolute; left: 0; top: 0; z-index: 2;
  padding: 7px 12px 8px;
  border-radius: 4px;
  background: var(--c-white); color: var(--c-indigo);
  font-family: var(--ff-head); font-size: 13px; font-weight: 700; line-height: 1; white-space: nowrap;
  box-shadow: 0 14px 30px -12px rgba(8, 6, 50, .55);
  pointer-events: none;
  opacity: 0;
  transform: translate(-50%, -100%) translateY(6px) scale(.92);
  transition: opacity .25s ease, transform .45s var(--ease-out);
}
.map-tip::after { content: ""; position: absolute; left: 50%; top: 100%; margin-left: -6px; border: 6px solid transparent; border-top-color: var(--c-white); }
.map-tip.is-visible { opacity: 1; transform: translate(-50%, -100%) translateY(-8px); }

/* 14. News ----------------------------------------------------------------- */
.news { padding: clamp(56px, 5.5vw, 84px) 0 clamp(60px, 5vw, 76px); background: var(--c-indigo); }
.news__list { display: grid; gap: clamp(20px, 2.6vw, 38px); }
.news-card { --bw: clamp(68px, 6.95vw, 100px); } /* date badge width */
.news-card__link {
  position: relative;
  display: grid; grid-template-columns: 30% minmax(0, 1fr);
  min-height: clamp(170px, 13.7vw, 205px);
  background: var(--c-white); color: var(--c-ink);
  transition: transform .7s var(--ease-out), box-shadow .7s var(--ease-out);
}
.news-card__link::after {
  content: "";
  position: absolute; left: 0; right: 0; bottom: 0; height: 4px;
  background: var(--c-cyan);
  transform: scaleX(0); transform-origin: right center;
  transition: transform .8s var(--ease-out);
}
.news-card__link:hover { transform: translateY(-6px); box-shadow: 0 28px 50px -24px rgba(5, 4, 40, .65); }
.news-card__link:hover::after { transform: scaleX(1); transform-origin: left center; }
.news-card__media { position: relative; }
.news-card__img { position: absolute; inset: 0; overflow: hidden; background: var(--c-indigo-800); }
.news-card__img img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease-out); }
.news-card__link:hover .news-card__img img { transform: scale(1.07); }
.news-card__date {
  position: absolute; right: calc(var(--bw) * -0.46); bottom: clamp(8px, 2.7vw, 2vw); z-index: 2;
  display: grid; place-content: center; justify-items: center;
  width: var(--bw); aspect-ratio: 100 / 129;
  background: var(--c-blue); color: var(--c-white);
  font-family: var(--ff-head); line-height: 1; text-transform: uppercase;
}
.news-card__day { font-size: calc(var(--bw) * .44); letter-spacing: -.02em; }
.news-card__month { margin-top: .35em; font-size: calc(var(--bw) * .2); letter-spacing: .04em; }
.news-card__body {
  align-self: center;
  padding: clamp(18px, 1.7vw, 26px) clamp(20px, 2.6vw, 38px) clamp(18px, 1.7vw, 26px) calc(var(--bw) * .46 + clamp(18px, 2.6vw, 37px));
}
.news-card__title {
  font-family: var(--ff-head); font-weight: 400;
  font-size: clamp(15px, 1.25vw, 19px); line-height: 1.45;
  color: var(--c-ink);
  transition: color .4s ease;
}
.news-card__link:hover .news-card__title { color: var(--c-indigo); }
.news-card__excerpt { margin-top: 10px; font-size: 12px; line-height: 1.6; color: var(--c-muted); }

/* 15. Let's connect -------------------------------------------------------- */
.connect { padding: clamp(30px, 2.9vw, 44px) 0; background: var(--c-mist); }
.connect__inner { display: flex; flex-wrap: wrap; align-items: center; column-gap: clamp(24px, 3.3vw, 48px); row-gap: 20px; }
.connect__title { margin-right: auto; font-family: var(--ff-head); font-weight: 400; font-size: clamp(18px, 1.39vw, 22px); line-height: 1.3; color: var(--c-ink); }
.connect__actions { display: flex; flex-wrap: wrap; align-items: center; gap: clamp(20px, 3.3vw, 48px); }

.btn {
  position: relative; isolation: isolate;
  display: inline-flex; align-items: center; gap: 10px;
  height: 42px; padding: 0 20px 0 22px;
  overflow: hidden;
  background: var(--c-orange); color: var(--c-white);
  font-family: var(--ff-head); font-size: 14px; font-weight: 700; letter-spacing: .01em; white-space: nowrap;
}
.btn::before {
  content: "";
  position: absolute; inset: 0; z-index: -1;
  background: var(--c-indigo);
  transform: translateY(101%);
  transition: transform .6s var(--ease-out);
}
.btn:hover::before, .btn:focus-visible::before { transform: translateY(0); }
.btn__arrow { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 2.6; stroke-linecap: round; stroke-linejoin: round; transition: transform .6s var(--ease-out); }
.btn:hover .btn__arrow { transform: translateX(4px); }

.phone { display: inline-flex; align-items: center; gap: 14px; font-family: var(--ff-head); font-weight: 700; font-size: clamp(16px, 1.32vw, 20px); color: var(--c-ink); white-space: nowrap; }
.phone__icon { position: relative; display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; background: var(--c-indigo); color: var(--c-white); }
.phone__icon::before {
  content: "";
  position: absolute; inset: 0;
  border: 2px solid var(--c-indigo); border-radius: 50%;
  animation: ring-pulse 2.4s var(--ease-out) infinite;
}
.phone__icon svg { width: 18px; height: 18px; fill: currentColor; }
.phone:hover .phone__icon svg { animation: ring .9s ease; }
.phone__num { transition: color .3s ease; }
.phone:hover .phone__num { color: var(--c-indigo); }
@keyframes ring-pulse { 0% { transform: scale(1); opacity: .6; } 100% { transform: scale(1.7); opacity: 0; } }
@keyframes ring {
  0%, 100% { transform: rotate(0); }
  15% { transform: rotate(-16deg); }
  30% { transform: rotate(13deg); }
  45% { transform: rotate(-9deg); }
  60% { transform: rotate(6deg); }
  75% { transform: rotate(-3deg); }
}

/* 16. Footer --------------------------------------------------------------- */
.site-footer { padding: clamp(48px, 4.2vw, 64px) 0 clamp(22px, 2vw, 30px); background: var(--c-indigo); color: var(--c-white); }
.footer__grid { display: grid; grid-template-columns: 2fr 1.15fr 1fr; gap: 32px; }
.footer__brand { justify-self: start; display: grid; justify-items: center; align-content: start; gap: 14px; padding-top: 6px; }
.footer__logo { width: clamp(170px, 15vw, 230px); }
.footer__member { font-family: var(--ff-head); font-size: 8.5px; letter-spacing: .14em; text-transform: uppercase; opacity: .85; }
.footer__label { margin-bottom: 10px; font-family: var(--ff-head); font-weight: 400; font-size: 10px; letter-spacing: .14em; text-transform: uppercase; color: var(--c-lavender); }
.footer__links a, .footer__hq > * { font-family: var(--ff-head); font-size: 12px; line-height: 3.5; }
.footer__links a, .footer__mail { text-transform: uppercase; letter-spacing: .03em; }
.footer__hq { display: grid; justify-items: start; }
.footer__bottom { display: grid; grid-template-columns: 2fr 1.15fr 1fr; gap: 32px; align-items: center; margin-top: clamp(28px, 3vw, 44px); }
.footer__legal { grid-column: 1 / 3; display: flex; flex-wrap: wrap; gap: 4px 8px; font-size: 10.5px; color: rgba(255, 255, 255, .82); }
.footer__social { display: flex; gap: 6px; margin-left: -7px; }
.footer__social a { display: grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; transition: background-color .3s ease, transform .5s var(--ease-out); }
.footer__social img { width: 15px; height: 15px; filter: brightness(0) invert(1); }
.footer__social a:hover { background-color: rgba(255, 255, 255, .14); transform: translateY(-3px); }

/* 17. Cursor follower (fine pointers only, created in JS) ----------------- */
.cursor { position: fixed; left: 0; top: 0; z-index: 300; pointer-events: none; opacity: 0; mix-blend-mode: difference; transition: opacity .35s ease; }
.cursor.is-visible { opacity: 1; }
.cursor__ring {
  position: absolute; left: -18px; top: -18px;
  width: 36px; height: 36px;
  border: 1.5px solid #fff; border-radius: 50%;
  transition: transform .55s var(--ease-out), background-color .4s ease, border-color .4s ease;
}
.cursor.is-link .cursor__ring { transform: scale(1.55); }
.cursor.is-down .cursor__ring { transform: scale(.8); }
.cursor.is-view { mix-blend-mode: normal; }
.cursor.is-view .cursor__ring { transform: scale(2.3); background-color: var(--c-cyan); border-color: var(--c-cyan); }
.cursor__label {
  position: absolute; left: 0; top: 0;
  font-family: var(--ff-head); font-size: 11px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase;
  color: var(--c-indigo-900);
  opacity: 0;
  transform: translate(-50%, -50%) scale(.5);
  transition: opacity .3s ease, transform .55s var(--ease-out);
}
.cursor.is-view .cursor__label { opacity: 1; transform: translate(-50%, -50%) scale(1); }

/* 18. Responsive ----------------------------------------------------------- */
@media (min-width: 1024px) {
  .br-lg { display: inline; }
}

@media (max-width: 1100px) {
  .nav, .site-header .lang { display: none; }
  .brand__member {
    position: absolute;
    top: 34px;
    width: 140px;
}
  .burger { display: block; }
  .site-header__inner, .site-header.is-solid .site-header__inner { align-items: center; padding-top: 16px; padding-bottom: 16px; }
}

@media (max-width: 900px) {
  .intro__grid { grid-template-columns: minmax(0, 1fr); }
  .intro__title { justify-self: start; max-width: 18em; text-align: left; }
  .brands__grid, .stats__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .presence { grid-template-columns: minmax(0, 1fr); }
  .presence__panel { padding-inline: var(--gutter); }
  .presence__list { grid-template-columns: repeat(2, minmax(0, max-content)); column-gap: clamp(20px, 7vw, 64px); }
  .presence__map { min-height: 0; aspect-ratio: 1 / 1; }
  .footer__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .footer__brand { grid-column: 1 / -1; justify-items: start; }
  .footer__bottom { grid-template-columns: minmax(0, 1fr); gap: 16px; }
  .footer__legal { grid-column: auto; }
}

@media (max-width: 767px) {
  .mosaic__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); grid-template-rows: none; grid-auto-rows: 52vw; }
  .tile--a, .tile--b, .tile--h { grid-area: auto / 1 / auto / 3; }
  .tile--c { grid-area: auto / 1 / auto / 2; }
  .tile--d, .tile--f, .tile--g { grid-area: auto / 2 / auto / 3; }
  .tile--e { grid-area: auto / 1 / span 2 / 2; }
  .tile__quote { font-size: clamp(16px, 4.4vw, 22px); }
  .hero__img { object-position: 65% 35%; }
  .brands__grid li:nth-child(3) img { width: 100% !important; }
}

@media (max-width: 700px) {
  .news-card { --bw: 64px; }
  .news-card__link { grid-template-columns: 1fr; }
  .news-card__media { aspect-ratio: 16 / 9; }
  .news-card__date { right: auto; left: 18px; bottom: calc(var(--bw) * -.5); }
  .news-card__body { padding: calc(var(--bw) * .5 + 18px) 20px 22px; }
  .connect__inner { flex-direction: column; align-items: flex-start; }
  .connect__title { margin-right: 0; }
}

@media (max-width: 560px) {
  .footer__grid { grid-template-columns: minmax(0, 1fr); }
  .city { font-size: 14px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
    scroll-behavior: auto !important;
  }
}
