/* Milan Hydrotech — deep ocean, water cyan, sunset orange */
:root {
  --deep: #04192e;
  --deep-2: #0a2a47;
  --ocean: #0b4f86;
  --blue: #0c7bdc;
  --cyan: #22c3e6;
  --accent: #ff7a1a;
  --accent-2: #ffb547;
  --ink: #0d1b2a;
  --text: #33465a;
  --muted: #6b7c8f;
  --line: #e3eaf2;
  --bg: #f6f9fc;
  --card: #ffffff;
  --soft: #eaf4fc;
  --r-sm: 12px;
  --r: 20px;
  --r-lg: 28px;
  --shadow-sm: 0 2px 8px rgba(4, 25, 46, .06);
  --shadow: 0 18px 40px -12px rgba(4, 25, 46, .18);
  --shadow-lg: 0 30px 70px -20px rgba(4, 25, 46, .35);
  --grad-accent: linear-gradient(120deg, var(--accent), var(--accent-2));
  --grad-water: linear-gradient(120deg, var(--cyan), #7be0f5 55%, #c8f3ff);
  --font: "Plus Jakarta Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  --header-h: 78px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body { margin: 0; font-family: var(--font); color: var(--text); background: var(--bg); line-height: 1.7; font-size: 16px; -webkit-font-smoothing: antialiased; }
img { max-width: 100%; display: block; }
a { color: var(--blue); text-decoration: none; }
h1, h2, h3 { color: var(--ink); line-height: 1.12; margin: 0 0 .5em; letter-spacing: -.02em; font-weight: 800; }
h1 { font-size: clamp(2.4rem, 6vw, 4.4rem); letter-spacing: -.035em; }
h2 { font-size: clamp(1.9rem, 3.8vw, 2.9rem); }
h3 { font-size: 1.15rem; font-weight: 700; letter-spacing: -.01em; }
p { margin: 0 0 1em; }
.icon { flex: none; vertical-align: middle; }
.container { width: min(1200px, 100% - 32px); margin-inline: auto; position: relative; }
.center { text-align: center; }
.muted { color: var(--muted); }
.small { font-size: .9rem; }
.skip { position: absolute; left: -999px; }
.skip:focus { left: 16px; top: 16px; z-index: 200; background: #fff; padding: 8px 12px; border-radius: 8px; }
::selection { background: var(--cyan); color: var(--deep); }

/* ---------- buttons ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: .55em; padding: .8em 1.4em; border-radius: 999px; font: 700 .95rem/1 var(--font); border: 1.5px solid transparent; cursor: pointer; transition: transform .2s, box-shadow .2s, background .2s, color .2s, border-color .2s; white-space: nowrap; }
.btn .icon { transition: transform .2s; }
.btn:hover .icon:last-child { transform: translateX(3px); }
.btn--lg { padding: 1.05em 1.75em; font-size: 1rem; }
.btn--accent { background: var(--grad-accent); color: #fff; box-shadow: 0 10px 24px -8px rgba(255, 122, 26, .7); }
.btn--accent:hover { transform: translateY(-2px); box-shadow: 0 16px 30px -10px rgba(255, 122, 26, .8); }
.btn--glass { background: rgba(255,255,255,.08); color: #fff; border-color: rgba(255,255,255,.28); backdrop-filter: blur(10px); }
.btn--glass:hover { background: rgba(255,255,255,.18); border-color: rgba(255,255,255,.5); }
.btn--light { background: #fff; color: var(--deep); }
.btn--light:hover { transform: translateY(-2px); box-shadow: var(--shadow); }
.btn--outline { border-color: var(--line); color: var(--ink); background: var(--card); }
.btn--outline:hover { border-color: var(--blue); color: var(--blue); }
.link { display: inline-flex; align-items: center; gap: .35em; font-weight: 700; color: var(--blue); }

/* ---------- small labels ---------- */
.eyebrow { display: inline-flex; align-items: center; gap: 10px; font-size: .8rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--blue); margin-bottom: 14px; }
.eyebrow::before { content: ""; width: 26px; height: 2px; border-radius: 2px; background: var(--grad-accent); }
.eyebrow--light { color: #9fe3f4; }
.hero .eyebrow::before { display: none; }
.hero .eyebrow { padding: .5em 1em; border-radius: 999px; background: rgba(34,195,230,.1); border: 1px solid rgba(34,195,230,.28); letter-spacing: .06em; text-transform: none; font-size: .88rem; }
.pulse { width: 8px; height: 8px; border-radius: 50%; background: var(--cyan); box-shadow: 0 0 0 0 rgba(34,195,230,.7); animation: pulse 2s infinite; }
@keyframes pulse { 70% { box-shadow: 0 0 0 10px rgba(34,195,230,0); } 100% { box-shadow: 0 0 0 0 rgba(34,195,230,0); } }
.grad { background: var(--grad-water); -webkit-background-clip: text; background-clip: text; color: transparent; }

/* ---------- header ---------- */
.header { position: fixed; inset: 0 0 auto 0; z-index: 80; height: var(--header-h); display: flex; align-items: center; transition: background .3s, box-shadow .3s, height .3s; }
.header.is-scrolled { background: rgba(4, 25, 46, .82); backdrop-filter: blur(14px) saturate(1.4); box-shadow: 0 10px 30px -18px rgba(0,0,0,.6); --header-h: 66px; }
.header__inner { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.brand { display: flex; align-items: center; color: #fff; flex: none; }
/* the logo has a white background: it sits on a white rounded card over the dark header and footer */
.brand__logo { display: block; height: 60px; width: auto; padding: 4px 10px; background: #fff; border-radius: 14px; box-shadow: 0 6px 18px -6px rgba(0,0,0,.45); transition: height .3s; }
.header.is-scrolled .brand__logo { height: 52px; }
.brand--footer .brand__logo { height: 92px; padding: 6px 14px; border-radius: 18px; }
.lang-modal__card .lang-modal__logo { width: 200px; height: auto; margin: 0 auto 14px; }
.nav { display: flex; align-items: center; gap: 2px; }
.nav > a:not(.btn) { position: relative; white-space: nowrap; padding: .55em .8em; color: rgba(255,255,255,.82); font-weight: 600; font-size: .93rem; border-radius: 999px; transition: color .2s, background .2s; }
.nav > a:not(.btn):hover { color: #fff; background: rgba(255,255,255,.08); }
.nav > a.active { color: #fff; }
.nav > a.active::after { content: ""; position: absolute; left: 50%; bottom: 2px; width: 18px; height: 3px; margin-left: -9px; border-radius: 3px; background: var(--grad-accent); }
.nav .lang { display: inline-flex; align-items: center; gap: 6px; }
.nav__phone { display: inline-flex !important; align-items: center; gap: 8px; margin-left: 6px; }
.nav__phone span { display: grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; background: rgba(34,195,230,.16); color: var(--cyan); }
.nav__cta { margin-left: 8px; padding: .75em 1.2em; }
.nav-toggle { display: none; width: 46px; height: 46px; border-radius: 14px; border: 1px solid rgba(255,255,255,.2); background: rgba(255,255,255,.06); color: #fff; cursor: pointer; place-items: center; }

/* ---------- shared dark backdrop ---------- */
.hero__bg { position: absolute; inset: 0; overflow: hidden; pointer-events: none; }
.glow { position: absolute; border-radius: 50%; filter: blur(80px); opacity: .55; }
.glow--a { width: 560px; height: 560px; background: #0c7bdc; top: -160px; right: -120px; animation: drift 14s ease-in-out infinite alternate; }
.glow--b { width: 420px; height: 420px; background: #ff7a1a; bottom: -220px; left: -140px; opacity: .28; animation: drift 18s ease-in-out infinite alternate-reverse; }
.glow--c { width: 520px; height: 520px; background: #22c3e6; top: -260px; left: 30%; opacity: .22; }
@keyframes drift { to { transform: translate(-60px, 40px) scale(1.1); } }
.dots { position: absolute; inset: 0; background-image: radial-gradient(rgba(255,255,255,.09) 1px, transparent 1px); background-size: 26px 26px; mask-image: radial-gradient(ellipse at 70% 40%, #000 20%, transparent 75%); -webkit-mask-image: radial-gradient(ellipse at 70% 40%, #000 20%, transparent 75%); }

/* ---------- hero ---------- */
.hero { position: relative; background: radial-gradient(120% 120% at 80% 0%, #0b3a66 0%, var(--deep) 55%); color: #c9d8e8; padding: calc(var(--header-h) + 64px) 0 150px; overflow: hidden; }
.hero__grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: 56px; align-items: center; }
.hero h1 { color: #fff; margin-bottom: .35em; }
.hero h1 .grad { display: inline-block; }
.hero__text { font-size: 1.15rem; max-width: 50ch; color: #b9cadb; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 14px; margin: 34px 0 30px; }
.trust { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 10px 22px; font-size: .92rem; font-weight: 600; color: #dbe7f2; }
.trust li { display: inline-flex; align-items: center; gap: 8px; }
.trust .icon { color: var(--cyan); }
.hero__visual { position: relative; min-height: 470px; }
.frame { margin: 0; position: absolute; overflow: hidden; border-radius: var(--r-lg); box-shadow: var(--shadow-lg); border: 1px solid rgba(255,255,255,.14); }
.frame img { width: 100%; height: 100%; object-fit: cover; }
.frame--main { inset: 0 0 60px 50px; animation: float 8s ease-in-out infinite; }
.frame--main::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 50%, rgba(4,25,46,.45)); }
.frame--small { width: 46%; aspect-ratio: 1; left: 0; bottom: 0; border: 6px solid var(--deep); animation: float 8s ease-in-out -4s infinite; }
@keyframes float { 50% { transform: translateY(-10px); } }
.float-card { position: absolute; display: flex; align-items: center; gap: 12px; padding: 12px 16px 12px 12px; border-radius: 16px; background: rgba(255,255,255,.94); box-shadow: var(--shadow); color: var(--ink); backdrop-filter: blur(10px); }
.float-card strong { display: block; font-size: .95rem; line-height: 1.2; }
.float-card small { display: block; color: var(--muted); font-size: .78rem; line-height: 1.3; }
.float-card__icon { display: grid; place-items: center; width: 42px; height: 42px; border-radius: 12px; background: var(--soft); color: var(--blue); }
.float-card__icon--accent { background: #fff1e6; color: var(--accent); }
.float-card--a { top: 34%; left: 0; animation: float 7s ease-in-out -2s infinite; }
.float-card--b { right: -14px; bottom: 96px; animation: float 7s ease-in-out -5s infinite; }
.wave { position: absolute; left: 0; right: 0; bottom: -1px; width: 100%; height: 110px; }
.wave__line { stroke: rgba(34,195,230,.5); stroke-width: 2; transform: translateY(-14px); }

/* ---------- stats ---------- */
.stats-wrap { position: relative; z-index: 2; margin-top: -86px; }
.stats { display: grid; grid-template-columns: repeat(4, 1fr); background: var(--card); border-radius: var(--r-lg); box-shadow: var(--shadow); border: 1px solid var(--line); padding: 10px; }
.stat { display: flex; align-items: center; gap: 16px; padding: 22px 24px; border-radius: var(--r); transition: background .2s; }
.stat:hover { background: var(--bg); }
.stat__icon { display: grid; place-items: center; width: 54px; height: 54px; border-radius: 16px; background: linear-gradient(135deg, var(--soft), #fff); color: var(--blue); border: 1px solid var(--line); }
.stat strong { display: block; font-size: 2rem; font-weight: 800; color: var(--ink); line-height: 1; letter-spacing: -.03em; }
.stat div > span { font-size: .85rem; color: var(--muted); font-weight: 600; }

/* ---------- brand card with the logo ---------- */
.brandcard-wrap { padding: 56px 0 0; }
.brandcard { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); align-items: center; gap: 40px; padding: 36px 44px; background: var(--card); border: 1px solid var(--line); border-radius: var(--r-lg); box-shadow: var(--shadow); position: relative; overflow: hidden; }
.brandcard::before { content: ""; position: absolute; inset: 0 0 auto 0; height: 5px; background: linear-gradient(90deg, var(--cyan), var(--blue), var(--accent)); }
.brandcard__logo img { width: 100%; height: auto; display: block; }
.brandcard__body h2 { margin-bottom: .3em; }
.brandcard__body > p:not(.eyebrow) { color: var(--muted); font-size: 1.05rem; }
.brandcard__facts { list-style: none; padding: 0; margin: 0 0 22px; display: flex; flex-wrap: wrap; gap: 8px 22px; font-weight: 600; color: var(--ink); }
.brandcard__facts li { display: inline-flex; align-items: center; gap: 8px; }
.brandcard__facts .icon { color: var(--accent); }
.brandcard__actions { display: flex; flex-wrap: wrap; gap: 12px; }
@media (max-width: 860px) {
  .brandcard { grid-template-columns: 1fr; gap: 22px; padding: 28px 22px; text-align: center; }
  .brandcard__logo { max-width: 380px; margin: 0 auto; }
  .brandcard .eyebrow, .brandcard__facts, .brandcard__actions { justify-content: center; }
}

/* ---------- sections ---------- */
.section { position: relative; padding: 110px 0; }
.section--soft { background: linear-gradient(180deg, var(--bg), #e9f2fa); }
.section--tint { background: var(--soft); }
.section--deep { background: var(--deep); color: #b9cadb; overflow: hidden; }
.section--deep h2, .section--deep h3 { color: #fff; }
.head { margin-bottom: 52px; }
.head--split { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; flex-wrap: wrap; }
.head--center { text-align: center; max-width: 720px; margin-inline: auto; }
.head--center .eyebrow { justify-content: center; }
.head__lead, .section__head p { color: var(--muted); font-size: 1.1rem; max-width: 56ch; margin: 0; }
.section__head { text-align: center; max-width: 700px; margin: 0 auto 48px; }

/* ---------- services bento ---------- */
.bento { display: grid; grid-template-columns: repeat(3, 1fr); grid-auto-rows: 300px; gap: 20px; }
.tile { position: relative; display: flex; flex-direction: column; justify-content: flex-end; border-radius: var(--r-lg); overflow: hidden; padding: 26px; color: #fff; isolation: isolate; background: var(--deep-2); box-shadow: var(--shadow-sm); transition: transform .35s cubic-bezier(.2,.8,.2,1), box-shadow .35s; }
.tile--big { grid-row: span 2; grid-column: span 2; }
.tile__img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; transition: transform .7s cubic-bezier(.2,.8,.2,1); }
.tile::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(4,25,46,.05) 20%, rgba(4,25,46,.55) 55%, rgba(4,25,46,.95)); transition: background .35s; }
.tile--plain { background: radial-gradient(120% 100% at 100% 0%, var(--ocean), var(--deep)); }
.tile--plain::before { background: radial-gradient(rgba(255,255,255,.08) 1px, transparent 1px) 0 0/22px 22px; }
.tile:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); }
.tile:hover .tile__img { transform: scale(1.08); }
.tile:hover::before { background: linear-gradient(180deg, rgba(4,25,46,.15) 10%, rgba(11,79,134,.7) 50%, rgba(4,25,46,.97)); }
.tile__num { position: absolute; top: 22px; right: 24px; font-weight: 800; font-size: .85rem; letter-spacing: .1em; color: rgba(255,255,255,.7); }
.tile h3 { display: flex; align-items: center; gap: 12px; }
.tile__icon { flex: none; display: grid; place-items: center; width: 42px; height: 42px; border-radius: 13px; background: rgba(255,255,255,.14); border: 1px solid rgba(255,255,255,.25); backdrop-filter: blur(10px); color: #fff; }
.tile h3 { color: #fff; font-size: 1.25rem; margin-bottom: .35em; }
.tile--big h3 { font-size: 1.7rem; }
.tile p { color: rgba(255,255,255,.8); font-size: .95rem; margin: 0; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.tile--big p { -webkit-line-clamp: 4; font-size: 1.02rem; }
.tile__more { display: inline-flex; align-items: center; gap: 6px; margin-top: 14px; font-weight: 700; font-size: .9rem; color: var(--accent-2); max-height: 0; opacity: 0; transition: max-height .35s, opacity .35s; }
.tile:hover .tile__more, .tile:focus-visible .tile__more, .tile--big .tile__more { max-height: 30px; opacity: 1; }

/* ---------- process timeline ---------- */
.timeline { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; position: relative; }
.timeline::before { content: ""; position: absolute; top: 31px; left: 12%; right: 12%; height: 2px; background: linear-gradient(90deg, transparent, rgba(34,195,230,.6), rgba(255,122,26,.6), transparent); }
.timeline__item { position: relative; text-align: center; padding: 0 8px; transition-delay: calc(var(--d) * 120ms) !important; }
.timeline__num { position: relative; display: inline-grid; place-items: center; width: 64px; height: 64px; border-radius: 50%; margin-bottom: 22px; font-size: 1.3rem; font-weight: 800; color: #fff; background: var(--deep); border: 2px solid rgba(34,195,230,.6); box-shadow: 0 0 0 8px rgba(34,195,230,.08), 0 0 30px rgba(34,195,230,.35); }
.timeline__item:last-child .timeline__num { border-color: var(--accent); box-shadow: 0 0 0 8px rgba(255,122,26,.08), 0 0 30px rgba(255,122,26,.35); }
.timeline__item p { color: #9fb4c8; font-size: .95rem; margin: 0; }

/* ---------- project mosaic ---------- */
.mosaic { display: grid; grid-template-columns: repeat(3, 1fr); grid-auto-rows: 250px; gap: 16px; }
.mosaic__item { position: relative; display: block; border-radius: var(--r); overflow: hidden; background: var(--soft); }
.mosaic__item:nth-child(1) { grid-column: span 2; grid-row: span 2; }
.mosaic__item img { width: 100%; height: 100%; object-fit: cover; transition: transform .7s cubic-bezier(.2,.8,.2,1); }
.mosaic__item:hover img { transform: scale(1.07); }
.mosaic__cap { position: absolute; inset: auto 0 0 0; padding: 40px 18px 16px; color: #fff; font-weight: 700; line-height: 1.3; background: linear-gradient(transparent, rgba(4,25,46,.92)); display: flex; flex-direction: column; gap: 4px; transform: translateY(8px); opacity: .92; transition: transform .3s, opacity .3s; }
.mosaic__cap small { color: var(--accent-2); font-size: .72rem; letter-spacing: .1em; text-transform: uppercase; }
.mosaic__item:hover .mosaic__cap { transform: none; opacity: 1; }

/* ---------- why us ---------- */
.why { display: grid; grid-template-columns: 1fr 1.05fr; gap: 72px; align-items: center; }
.why__visual { position: relative; padding: 0 30px 30px 0; }
.why__visual::before { content: ""; position: absolute; inset: 30px 0 0 30px; border-radius: var(--r-lg); background: var(--grad-accent); opacity: .9; }
.why__img { position: relative; width: 100%; aspect-ratio: 4/5; object-fit: cover; border-radius: var(--r-lg); box-shadow: var(--shadow-lg); }
.why__badge { position: absolute; left: -16px; bottom: 60px; max-width: 250px; padding: 18px 20px; border-radius: var(--r); background: var(--deep); color: #b9cadb; box-shadow: var(--shadow-lg); font-size: .85rem; }
.why__badge strong { display: block; color: #fff; font-size: 1.25rem; margin-bottom: 4px; }
.why__list { list-style: none; padding: 0; margin: 28px 0 32px; display: grid; gap: 14px; }
.why__list li { display: flex; gap: 16px; padding: 18px 20px; border-radius: var(--r); background: var(--card); border: 1px solid var(--line); transition: transform .25s, box-shadow .25s, border-color .25s; }
.why__list li:hover { transform: translateX(6px); box-shadow: var(--shadow); border-color: transparent; }
.why__list h3 { margin-bottom: .2em; font-size: 1.05rem; }
.why__list p { margin: 0; color: var(--muted); font-size: .95rem; }
.why__icon { display: grid; place-items: center; flex: none; width: 42px; height: 42px; border-radius: 12px; background: var(--grad-accent); color: #fff; box-shadow: 0 8px 18px -8px rgba(255,122,26,.8); }
.regions__title { font-weight: 800; color: var(--ink); margin-bottom: 10px; }
.chips { list-style: none; padding: 0; margin: 0 0 12px; display: flex; flex-wrap: wrap; gap: 10px; }
.chips li { display: inline-flex; align-items: center; gap: 6px; padding: .55em 1.05em; border-radius: 999px; background: var(--card); border: 1px solid var(--line); color: var(--ink); font-weight: 600; font-size: .92rem; box-shadow: var(--shadow-sm); }
.chips .icon { color: var(--accent); }
.chips--center { justify-content: center; }

/* ---------- CTA ---------- */
.cta { padding: 20px 0 110px; }
.cta__panel { position: relative; overflow: hidden; display: flex; align-items: center; justify-content: space-between; gap: 30px; flex-wrap: wrap; padding: 56px 60px; border-radius: 32px; color: #d5e4f2; background: radial-gradient(90% 140% at 100% 0%, #0c7bdc 0%, #0b4f86 35%, var(--deep) 80%); box-shadow: var(--shadow-lg); }
.cta__panel h2 { color: #fff; margin-bottom: .25em; }
.cta__panel p:last-child { margin: 0; font-size: 1.08rem; max-width: 46ch; }
.cta__copy, .cta__actions { position: relative; z-index: 1; }
.cta__actions { display: flex; flex-wrap: wrap; gap: 12px; }
.cta__ring { position: absolute; border-radius: 50%; border: 2px solid rgba(255,255,255,.08); }
.cta__ring--a { width: 420px; height: 420px; right: -120px; top: -200px; box-shadow: 0 0 0 40px rgba(255,255,255,.03), 0 0 0 80px rgba(255,255,255,.02); }
.cta__ring--b { width: 220px; height: 220px; left: 38%; bottom: -150px; border-color: rgba(255,122,26,.3); }

/* ---------- inner page heads ---------- */
.page-head { --hero: none; position: relative; overflow: hidden; color: #b9cadb; padding: calc(var(--header-h) + 70px) 0 120px; background: radial-gradient(70% 120% at 85% 0%, rgba(12,123,220,.55), transparent 60%), radial-gradient(50% 80% at 0% 100%, rgba(255,122,26,.18), transparent 60%), linear-gradient(100deg, rgba(4,25,46,.97) 30%, rgba(4,25,46,.82)), var(--hero) center/cover, var(--deep); }
.page-head::before { content: ""; position: absolute; inset: 0; background-image: radial-gradient(rgba(255,255,255,.08) 1px, transparent 1px); background-size: 26px 26px; mask-image: linear-gradient(90deg, transparent, #000); -webkit-mask-image: linear-gradient(90deg, transparent, #000); }
.page-head::after { content: ""; position: absolute; left: 0; right: 0; bottom: -1px; height: 70px; background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1440 80' preserveAspectRatio='none'%3E%3Cpath d='M0 40c160 30 320 40 480 26s320-50 480-46 320 40 480 40V80H0z' fill='%23f6f9fc'/%3E%3C/svg%3E") center/100% 100% no-repeat; }
.page-head .container { z-index: 1; }
.page-head h1 { color: #fff; font-size: clamp(2.2rem, 5vw, 3.6rem); margin-bottom: .3em; }
.page-head p { font-size: 1.12rem; max-width: 60ch; margin: 0; }
.crumbs { margin-bottom: 12px !important; font-size: .9rem !important; font-weight: 600; }
.crumbs a { color: var(--accent-2); }

/* sliding pictures in page heads: a framed photo beside the title, shown at its own size so the photo
   stays sharp and its watermark readable (as a full-width background it was blown up and hidden by the header) */
.page-head--slides { min-height: 540px; padding-top: calc(var(--header-h) + 90px); padding-bottom: 150px; }
.page-head--slides .container { z-index: 2; padding-right: min(50%, 610px); }
.page-head--slides::after { z-index: 3; }
.slides { position: absolute; z-index: 2; top: calc(var(--header-h) + 34px); bottom: 104px; right: max(16px, calc((100% - 1200px) / 2)); width: min(44%, 540px); border-radius: 26px; overflow: hidden; background: var(--deep-2); border: 1px solid rgba(255,255,255,.16); box-shadow: 0 30px 70px -20px rgba(0,0,0,.6); }
.slide { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 0; opacity: 0; transform-origin: 50% 0; transition: opacity 1.4s ease; will-change: opacity, transform; }
.slide.is-active { opacity: 1; animation: kenburns 9s ease-out forwards; }
.slide:nth-of-type(even).is-active { animation-name: kenburns-b; }
@keyframes kenburns { from { transform: scale(1); } to { transform: scale(1.06); } }
@keyframes kenburns-b { from { transform: scale(1.06); } to { transform: scale(1); } }
.slides__dots { position: absolute; z-index: 2; left: 18px; bottom: 16px; display: flex; gap: 7px; padding: 7px 10px; border-radius: 999px; background: rgba(4,25,46,.55); backdrop-filter: blur(6px); }
.slides__dots span { width: 18px; height: 4px; border-radius: 4px; background: rgba(255,255,255,.4); transition: width .4s, background .4s; }
.slides__dots span.is-active { width: 32px; background: var(--grad-accent); }
@media (max-width: 860px) {
  .page-head--slides { min-height: 0; padding-top: calc(var(--header-h) + 50px); padding-bottom: 370px; }
  .page-head--slides .container { padding-right: 0; }
  .slides { top: auto; bottom: 92px; left: 16px; right: 16px; width: auto; height: 250px; border-radius: 20px; }
}

/* ---------- services list ---------- */
.service-list { display: grid; gap: 26px; }
.service-row { display: grid; grid-template-columns: 380px 1fr; background: var(--card); border: 1px solid var(--line); border-radius: var(--r-lg); overflow: hidden; transition: transform .3s, box-shadow .3s; }
.service-row:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.service-row:nth-child(even) { grid-template-columns: 1fr 380px; }
.service-row:nth-child(even) .service-row__img { order: 2; }
.service-row__img { position: relative; display: block; min-height: 250px; overflow: hidden; background: radial-gradient(120% 100% at 100% 0%, var(--ocean), var(--deep)); }
.service-row__img img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .7s; }
.service-row:hover .service-row__img img { transform: scale(1.06); }
.service-row__ph { display: grid; place-items: center; height: 100%; min-height: 250px; color: rgba(255,255,255,.85); }
.service-row__body { padding: 36px 40px; display: flex; flex-direction: column; justify-content: center; }
.service-row__body h2 { font-size: 1.6rem; }
.service-row__body h2 a { color: var(--ink); }
.service-row__body p { color: var(--muted); }
.card__icon { display: inline-grid; place-items: center; width: 50px; height: 50px; border-radius: 15px; background: var(--grad-accent); color: #fff; margin-bottom: 16px; box-shadow: 0 8px 18px -8px rgba(255,122,26,.8); }

/* ---------- service detail ---------- */
.split { display: grid; grid-template-columns: 1.2fr 1fr; gap: 64px; align-items: start; }
.split--detail { grid-template-columns: 1.6fr 1fr; }
.split--contact { grid-template-columns: 1.35fr 1fr; }
.prose { font-size: 1.07rem; }
.prose h2 { margin-top: 1.4em; font-size: 1.7rem; }
.checklist { list-style: none; padding: 0; margin: 0 0 32px; counter-reset: c; display: grid; gap: 12px; }
.checklist li { counter-increment: c; display: flex; gap: 14px; align-items: center; background: var(--card); border: 1px solid var(--line); padding: 14px 18px; border-radius: var(--r-sm); font-weight: 500; color: var(--ink); }
.checklist li::before { content: counter(c, decimal-leading-zero); flex: none; display: grid; place-items: center; width: 36px; height: 36px; border-radius: 10px; background: var(--soft); color: var(--blue); font-weight: 800; font-size: .85rem; }
.side { display: grid; gap: 20px; position: sticky; top: 96px; }
.side__img { border-radius: var(--r-lg); box-shadow: var(--shadow); width: 100%; aspect-ratio: 4/3; object-fit: cover; }
.side__box { background: var(--card); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 24px; }
.side__box h3 { margin-bottom: 12px; }
.side__box ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 4px; }
.side__box a { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border-radius: var(--r-sm); color: var(--text); font-weight: 600; font-size: .95rem; transition: background .2s, color .2s; }
.side__box a .icon { color: var(--blue); }
.side__box a:hover { background: var(--soft); color: var(--ink); }

.final-step { display: grid; grid-template-columns: 170px 1fr; margin: 4px 0 30px; border-radius: var(--r-lg); overflow: hidden; background: var(--deep); color: #b9cadb; box-shadow: var(--shadow); transition: transform .3s, box-shadow .3s; }
.final-step:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.final-step img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 0; }
.final-step__body { display: flex; flex-direction: column; gap: 6px; padding: 22px 24px; }
.final-step small { color: var(--accent-2); font-weight: 800; font-size: .75rem; letter-spacing: .14em; text-transform: uppercase; }
.final-step strong { display: flex; align-items: center; gap: 10px; color: #fff; font-size: 1.2rem; line-height: 1.3; }
.final-step strong .icon { color: var(--cyan); }
.final-step__body > span:not(.link) { font-size: .95rem; }
.final-step .link { color: var(--accent-2); margin-top: 4px; }
@media (max-width: 600px) { .final-step { grid-template-columns: 1fr; } .final-step img { height: 180px; } }

/* ---------- about ---------- */
.facts { list-style: none; padding: 22px 24px; margin: 28px 0; background: var(--card); border: 1px solid var(--line); border-radius: var(--r); display: grid; gap: 8px; }
.facts strong { color: var(--ink); }
.about__img { margin: 0; position: relative; padding: 0 24px 24px 0; }
.about__img::before { content: ""; position: absolute; inset: 24px 0 0 24px; border-radius: var(--r-lg); background: var(--grad-accent); }
.about__img img { position: relative; border-radius: var(--r-lg); box-shadow: var(--shadow-lg); width: 100%; max-height: 560px; object-fit: cover; }
.team { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 22px; }
.member { background: var(--card); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 30px 20px 26px; text-align: center; transition: transform .3s, box-shadow .3s; }
.member:hover { transform: translateY(-6px); box-shadow: var(--shadow); }
.member__photo { width: 108px; height: 108px; border-radius: 50%; object-fit: cover; margin: 0 auto 18px; box-shadow: 0 0 0 5px #fff, 0 0 0 7px var(--line); }
.member__photo--initials { display: grid; place-items: center; color: #fff; font-size: 1.9rem; font-weight: 800; }
.member h3 { margin-bottom: .25em; font-size: 1.05rem; }
.member p { color: var(--accent); font-weight: 700; font-size: .88rem; margin: 0; }

/* ---------- projects page ---------- */
.gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(270px, 1fr)); gap: 18px; margin-bottom: 32px; }
.gallery__item { position: relative; border-radius: var(--r); overflow: hidden; aspect-ratio: 4/3; background: var(--soft); display: block; }
.gallery__item img { width: 100%; height: 100%; object-fit: cover; transition: transform .7s cubic-bezier(.2,.8,.2,1); }
.gallery__item:hover img { transform: scale(1.07); }
.gallery__cap { position: absolute; inset: auto 0 0 0; padding: 40px 16px 14px; color: #fff; font-weight: 700; line-height: 1.3; background: linear-gradient(transparent, rgba(4,25,46,.9)); display: flex; flex-direction: column; }
.gallery__cap small { opacity: .8; font-weight: 500; }
.gallery__item.is-hidden { display: none; }
.filters { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; margin-bottom: 34px; }
.filter { border: 1px solid var(--line); background: var(--card); padding: .6em 1.15em; border-radius: 999px; cursor: pointer; font: 600 .9rem var(--font); color: var(--text); transition: all .2s; }
.filter:hover { border-color: var(--blue); color: var(--blue); }
.filter.active { background: var(--deep); border-color: var(--deep); color: #fff; }

/* ---------- contact ---------- */
.form { display: grid; grid-template-columns: 1fr 1fr; gap: 18px 20px; background: var(--card); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 38px; box-shadow: var(--shadow); align-items: start; }
.form .btn { grid-column: 1 / -1; justify-self: start; margin-top: 4px; }
.field { display: grid; gap: 7px; }
.field--wide { grid-column: 1 / -1; }
.field label { font-weight: 700; font-size: .88rem; color: var(--ink); }
.field input, .field select, .field textarea { width: 100%; padding: .9em 1em; border: 1.5px solid var(--line); border-radius: var(--r-sm); font: inherit; font-size: .97rem; color: var(--ink); background: var(--bg); transition: border-color .2s, box-shadow .2s, background .2s; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--blue); background: #fff; box-shadow: 0 0 0 4px rgba(12,123,220,.12); }
.field--error input, .field--error select, .field--error textarea { border-color: #e0453a; }
.error { color: #d0342c; font-weight: 600; }
.hp { position: absolute; left: -9999px; height: 0; overflow: hidden; }
.contact-cards { display: grid; gap: 14px; }
.contact-card { display: flex; gap: 16px; align-items: center; padding: 18px 20px; border-radius: var(--r); background: var(--card); border: 1px solid var(--line); color: var(--ink); font-weight: 600; transition: transform .25s, box-shadow .25s, border-color .25s; }
a.contact-card:hover { transform: translateY(-3px); box-shadow: var(--shadow); border-color: transparent; }
.contact-card small { display: block; color: var(--muted); font-size: .74rem; font-weight: 700; text-transform: uppercase; letter-spacing: .1em; margin-bottom: 2px; }
.contact-card__icon { display: grid; place-items: center; width: 50px; height: 50px; border-radius: 15px; background: var(--soft); color: var(--blue); flex: none; }
.contact-card--wa .contact-card__icon { background: #e3f9ec; color: #1ea952; }
.map { width: 100%; height: 260px; border: 0; border-radius: var(--r); box-shadow: var(--shadow-sm); }

/* ---------- videos ---------- */
.vcard { --r-card: 22px; position: relative; display: block; width: 100%; padding: 0; border: 0; cursor: pointer; text-align: left; color: #fff; font: inherit; border-radius: var(--r-card); overflow: hidden; aspect-ratio: 16 / 10; background: radial-gradient(120% 100% at 100% 0%, var(--ocean), var(--deep)); isolation: isolate; box-shadow: 0 20px 40px -20px rgba(0,0,0,.6); transition: transform .4s cubic-bezier(.2,.8,.2,1), box-shadow .4s; }
.vcard--tall { aspect-ratio: 9 / 16; }
.vcard:hover, .vcard:focus-visible { transform: translateY(-6px); box-shadow: 0 30px 60px -20px rgba(0,0,0,.7); outline: none; }
.vcard__media, .vcard__media img, .vcard__media video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.vcard__media { z-index: -2; transition: transform .8s cubic-bezier(.2,.8,.2,1); }
.vcard:hover .vcard__media { transform: scale(1.07); }
.vcard__ph { position: absolute; inset: 0; display: grid; place-items: center; color: rgba(255,255,255,.2); background-image: radial-gradient(rgba(255,255,255,.08) 1px, transparent 1px); background-size: 20px 20px; }
.vcard--facebook .vcard__ph { background-color: #12305e; }
.vcard--instagram .vcard__ph { background: linear-gradient(135deg, #4f5bd5, #962fbf 40%, #d62976 70%, #fa7e1e); color: rgba(255,255,255,.3); }
.vcard__shade { position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(4,25,46,.35) 0%, transparent 30%, transparent 45%, rgba(4,25,46,.92) 100%); transition: background .4s; }
.vcard:hover .vcard__shade { background: linear-gradient(180deg, rgba(4,25,46,.45) 0%, rgba(4,25,46,.15) 40%, rgba(4,25,46,.95) 100%); }
.vcard__play { position: absolute; left: 50%; top: 50%; width: 74px; height: 74px; margin: -37px 0 0 -37px; display: grid; place-items: center; padding-left: 4px; border-radius: 50%; color: var(--deep); background: rgba(255,255,255,.92); box-shadow: 0 10px 30px rgba(0,0,0,.35); transition: transform .35s cubic-bezier(.2,.8,.2,1), background .35s, color .35s; }
.vcard__play::before, .vcard__play::after { content: ""; position: absolute; inset: 0; border-radius: 50%; border: 2px solid rgba(255,255,255,.65); animation: vring 2.6s ease-out infinite; }
.vcard__play::after { animation-delay: 1.3s; }
@keyframes vring { from { transform: scale(1); opacity: .9; } to { transform: scale(1.75); opacity: 0; } }
.vcard:hover .vcard__play { transform: scale(1.1); background: var(--grad-accent); color: #fff; }
.vcard__body { position: absolute; left: 0; right: 0; bottom: 0; padding: 20px 20px 18px; display: flex; flex-direction: column; gap: 4px; }
.vcard__body small { color: var(--accent-2); font-size: .72rem; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; }
.vcard__body strong { font-size: 1.08rem; line-height: 1.3; font-weight: 700; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.vcard--tall .vcard__play { width: 64px; height: 64px; margin: -32px 0 0 -32px; }

/* home: sideways rail */
.vsection { padding-bottom: 100px; }
.head__lead--light { color: #9fb4c8; }
.rail-nav { display: flex; align-items: center; gap: 10px; }
.rail-btn { display: grid; place-items: center; width: 48px; height: 48px; border-radius: 50%; border: 1px solid rgba(255,255,255,.22); background: rgba(255,255,255,.06); color: #fff; cursor: pointer; transition: background .2s, border-color .2s; }
.rail-btn:hover { background: rgba(255,255,255,.16); border-color: rgba(255,255,255,.45); }
.rail { --edge: max(16px, calc((100% - 1200px) / 2)); position: relative; display: flex; align-items: flex-end; gap: 22px; overflow-x: auto; scroll-snap-type: x mandatory; scroll-padding-inline: var(--edge); scroll-behavior: smooth; padding: 10px var(--edge) 26px; scrollbar-width: none; }
.rail::-webkit-scrollbar { display: none; }
.rail__item { flex: none; scroll-snap-align: start; height: 420px; }
.rail__item .vcard { height: 100%; width: auto; }
.rail__item:first-child .vcard:not(.vcard--tall) { aspect-ratio: 16 / 10; }

/* videos page: masonry wall */
.vwall { columns: 3 320px; column-gap: 22px; }
.vwall__item { break-inside: avoid; margin-bottom: 22px; }
.empty { text-align: center; padding: 60px 20px; color: var(--muted); }
.empty__icon { display: inline-grid; place-items: center; width: 84px; height: 84px; border-radius: 24px; background: var(--soft); color: var(--blue); margin-bottom: 16px; }

/* player */
.vplayer { position: fixed; inset: 0; z-index: 170; display: flex; align-items: center; justify-content: center; padding: 70px 80px 30px; background: rgba(2,10,20,.92); backdrop-filter: blur(14px); opacity: 0; transition: opacity .3s; }
.vplayer[hidden] { display: none; }
.vplayer.open { opacity: 1; }
.vplayer__stage { display: flex; flex-direction: column; align-items: center; gap: 18px; width: min(1100px, 100%); max-height: 100%; }
.vplayer__frame { position: relative; width: 100%; aspect-ratio: 16 / 9; max-height: calc(100vh - 190px); border-radius: 18px; overflow: hidden; background: #000; box-shadow: 0 40px 100px rgba(0,0,0,.6); transform: scale(.96); transition: transform .35s cubic-bezier(.2,.8,.2,1); }
.vplayer.open .vplayer__frame { transform: none; }
.vplayer--tall .vplayer__frame { width: auto; height: calc(100vh - 190px); aspect-ratio: 9 / 16; max-width: 100%; }
.vplayer__frame iframe, .vplayer__frame video { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; background: #000; }
.vplayer__frame::before { content: ""; position: absolute; left: 50%; top: 50%; width: 42px; height: 42px; margin: -21px; border-radius: 50%; border: 3px solid rgba(255,255,255,.15); border-top-color: var(--cyan); animation: spin 1s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.vplayer__info { display: flex; align-items: flex-start; justify-content: space-between; gap: 20px; width: 100%; max-width: 900px; color: #c9d8e8; }
.vplayer__title { color: #fff; font-size: 1.15rem; }
.vplayer__text { margin: 4px 0 0; font-size: .92rem; color: #9fb4c8; }
.vplayer__text:empty { display: none; }
.vplayer__btn { position: fixed; display: grid; place-items: center; width: 52px; height: 52px; border-radius: 50%; border: 1px solid rgba(255,255,255,.18); background: rgba(255,255,255,.08); color: #fff; cursor: pointer; z-index: 2; transition: background .2s; }
.vplayer__btn:hover { background: rgba(255,255,255,.2); }
.vplayer__close { top: 16px; right: 16px; }
.vplayer__prev { left: 16px; top: 50%; margin-top: -26px; }
.vplayer__next { right: 16px; top: 50%; margin-top: -26px; }
.vplayer--single .vplayer__prev, .vplayer--single .vplayer__next { display: none; }
@media (max-width: 760px) {
  .vplayer { padding: 64px 0 16px; }
  .vplayer__frame { border-radius: 0; max-height: calc(100vh - 210px); }
  .vplayer--tall .vplayer__frame { height: calc(100vh - 210px); border-radius: 14px; }
  .vplayer__info { padding: 0 16px; flex-direction: column; gap: 10px; }
  .vplayer__prev, .vplayer__next { top: auto; bottom: 16px; margin: 0; width: 46px; height: 46px; }
  .vplayer__prev { left: auto; right: 72px; }
  .rail { align-items: stretch; }
  .rail__item { height: auto; width: 74vw; }
  .rail__item .vcard, .rail__item:first-child .vcard:not(.vcard--tall) { width: 100%; height: auto; aspect-ratio: 4 / 5; }
  .rail { gap: 14px; }
  .rail-nav .rail-btn { display: none; }
  .vcard__play { width: 62px; height: 62px; margin: -31px 0 0 -31px; }
  .vwall { columns: 1; }
  .vwall__item { margin-bottom: 16px; }
  .vwall .vcard--tall { aspect-ratio: 4 / 5; }
}

/* ---------- watermark ---------- */
/* pictures carry the company badge at the top centre: when a box crops them, keep the top */
.tile__img, .mosaic__item img, .gallery__item img, .frame img, .why__img, .service-row__img img, .side__img,
.about__img img, .vcard__media img { object-position: 50% 0; }
.slide { background-position: 50% 0; }
/* videos from YouTube, Facebook and Instagram cannot be stamped: the badge sits on the player instead */
.vplayer__wm { position: absolute; z-index: 3; top: 3%; left: 50%; transform: translateX(-50%); display: none; flex-direction: column; align-items: center; color: #0a0a0a; pointer-events: none; white-space: nowrap; text-transform: uppercase; text-align: center; line-height: 1.15;
  text-shadow: 1px 1px 0 #fff, -1px 1px 0 #fff, 1px -1px 0 #fff, -1px -1px 0 #fff, 0 1px 0 #fff, 0 -1px 0 #fff, 1px 0 0 #fff, -1px 0 0 #fff; }
.vplayer--embed .vplayer__wm { display: flex; }
.vplayer__wm strong { font-size: 1.6rem; font-weight: 800; letter-spacing: .06em; }
.vplayer__wm small { font-size: .9rem; font-weight: 800; letter-spacing: .05em; }
@media (max-width: 600px) { .vplayer__wm strong { font-size: 1.05rem; } .vplayer__wm small { font-size: .62rem; } }

/* ---------- toasts ---------- */
.toasts { position: fixed; top: 90px; right: 18px; z-index: 150; display: grid; gap: 10px; max-width: min(420px, calc(100% - 36px)); }
.toast { display: flex; gap: 12px; align-items: center; padding: 16px 18px; border-radius: var(--r); background: var(--card); box-shadow: var(--shadow-lg); font-weight: 600; color: var(--ink); border-left: 5px solid var(--blue); animation: toast-in .45s cubic-bezier(.2,.8,.2,1); }
.toast--success { border-color: #1ea952; }
.toast--success .icon { color: #1ea952; }
.toast--error { border-color: #e0453a; }
.toast.is-gone { opacity: 0; transform: translateX(30px); transition: all .4s; }
@keyframes toast-in { from { opacity: 0; transform: translateX(40px); } }
.big404 { font-size: clamp(5rem, 14vw, 9rem); margin: 0; background: var(--grad-water); -webkit-background-clip: text; background-clip: text; color: transparent; }

/* ---------- footer ---------- */
.footer { position: relative; background: var(--deep); color: #8fa5bb; padding-top: 80px; font-size: .95rem; margin-top: 40px; }
.footer__wave { position: absolute; left: 0; right: 0; top: -58px; width: 100%; height: 60px; color: var(--deep); }
.footer__grid { display: grid; grid-template-columns: 1.5fr 1fr .8fr 1.3fr; gap: 40px; padding-bottom: 56px; }
.footer h3 { color: #fff; font-size: .95rem; letter-spacing: .02em; margin-bottom: 1.1em; }
.footer a { color: #8fa5bb; transition: color .2s; }
.footer a:hover { color: #fff; }
.footer__tagline { margin-top: 18px; max-width: 36ch; }
.footer__links, .footer__contact { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.footer__contact li { display: flex; gap: 10px; align-items: flex-start; }
.footer__contact .icon { margin-top: 4px; color: var(--accent); }
.social { display: flex; gap: 10px; }
.social a { display: grid; place-items: center; width: 42px; height: 42px; border-radius: 12px; background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.08); color: #fff; }
.social a:hover { background: var(--accent); border-color: var(--accent); }
.footer__bottom { border-top: 1px solid rgba(255,255,255,.07); padding: 22px 0; font-size: .86rem; }

/* ---------- floating WhatsApp ---------- */
.wa-float { position: fixed; right: 20px; bottom: 20px; z-index: 60; width: 60px; height: 60px; border-radius: 50%; background: #25d366; color: #fff; display: grid; place-items: center; box-shadow: 0 12px 28px -6px rgba(37,211,102,.65); transition: transform .25s; }
.wa-float::before { content: ""; position: absolute; inset: 0; border-radius: 50%; border: 2px solid #25d366; animation: ring 2.4s infinite; }
@keyframes ring { from { transform: scale(1); opacity: .8; } to { transform: scale(1.6); opacity: 0; } }
.wa-float:hover { transform: scale(1.08); }

/* ---------- lightbox ---------- */
.lightbox { position: fixed; inset: 0; z-index: 140; background: rgba(2,12,24,.94); display: none; align-items: center; justify-content: center; flex-direction: column; padding: 24px; }
.lightbox.open { display: flex; }
.lightbox img { max-width: min(1100px, 100%); max-height: 80vh; border-radius: var(--r); }
.lightbox p { color: #fff; margin-top: 16px; text-align: center; font-weight: 600; }
.lightbox button { position: absolute; background: rgba(255,255,255,.1); color: #fff; border: 1px solid rgba(255,255,255,.15); width: 50px; height: 50px; border-radius: 50%; font-size: 1.6rem; cursor: pointer; }
.lightbox button:hover { background: rgba(255,255,255,.2); }
.lightbox .lb-close { top: 18px; right: 18px; }
.lightbox .lb-prev { left: 18px; top: 50%; }
.lightbox .lb-next { right: 18px; top: 50%; }

/* ---------- first-visit language popup ---------- */
.lang-modal { position: fixed; inset: 0; z-index: 160; display: flex; align-items: center; justify-content: center; padding: 16px; background: rgba(2,12,24,.7); backdrop-filter: blur(6px); opacity: 0; transition: opacity .3s ease; }
.lang-modal[hidden] { display: none; }
.lang-modal.open { opacity: 1; }
.lang-modal__card { position: relative; width: min(440px, 100%); background: #fff; border-radius: var(--r-lg); padding: 38px 28px 24px; text-align: center; box-shadow: var(--shadow-lg); transform: translateY(20px) scale(.96); transition: transform .35s cubic-bezier(.2,.8,.2,1); overflow: hidden; }
.lang-modal__card::before { content: ""; position: absolute; inset: 0 0 auto 0; height: 5px; background: linear-gradient(90deg, var(--cyan), var(--blue), var(--accent)); }
.lang-modal.open .lang-modal__card { transform: none; }
.lang-modal__card img { margin: 0 auto 14px; }
.lang-modal__card h2 { font-size: 1.5rem; margin-bottom: .4em; }
.lang-modal__card h2 span, .lang-modal__card p span { display: block; font-weight: 500; font-size: .95rem; color: var(--muted); margin-top: 4px; letter-spacing: 0; }
.lang-modal__card > p { font-weight: 700; color: var(--ink); margin-bottom: 20px; }
.lang-modal__options { display: grid; gap: 12px; }
.lang-option { display: flex; flex-direction: column; align-items: center; padding: 16px; border: 1.5px solid var(--line); border-radius: var(--r); color: var(--text); transition: border-color .2s, background .2s, transform .2s; }
.lang-option strong { font-size: 1.15rem; color: var(--ink); }
.lang-option small { color: var(--muted); }
.lang-option:hover, .lang-option:focus-visible { border-color: var(--blue); background: var(--soft); transform: translateY(-2px); outline: none; }
.lang-modal__note { font-size: .82rem; color: var(--muted); margin: 18px 0 0; }
.lang-modal__close { position: absolute; top: 14px; right: 14px; width: 40px; height: 40px; border: 0; border-radius: 50%; background: transparent; color: var(--muted); cursor: pointer; display: grid; place-items: center; }
.lang-modal__close:hover { background: var(--soft); color: var(--ink); }
body.modal-open, body.nav-open { overflow: hidden; }
/* a backdrop-filter would trap the full-screen menu inside the header */
body.nav-open .header { backdrop-filter: none; background: transparent; box-shadow: none; }

/* ---------- reveal on scroll ---------- */
.js .reveal { opacity: 0; transform: translateY(28px); transition: opacity .8s cubic-bezier(.2,.8,.2,1), transform .8s cubic-bezier(.2,.8,.2,1); }
.js .reveal.in { opacity: 1; transform: none; }
.bento .tile:nth-child(3n+2), .mosaic__item:nth-child(3n+2) { transition-delay: .08s; }
.bento .tile:nth-child(3n), .mosaic__item:nth-child(3n) { transition-delay: .16s; }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; }
  .js .reveal { opacity: 1; transform: none; transition: none; }
  html { scroll-behavior: auto; }
}

/* ---------- responsive ---------- */
@media (max-width: 1360px) {
  .nav__phone { display: none !important; }
}
@media (max-width: 1080px) {
  .nav-toggle { display: grid; }
  .nav { display: none; position: fixed; inset: 0; top: 0; z-index: -1; flex-direction: column; align-items: stretch; justify-content: center; gap: 6px; padding: 90px 24px 40px; background: radial-gradient(100% 60% at 100% 0%, #0b3a66, var(--deep) 70%); }
  .nav.open { display: flex; animation: nav-in .3s ease; }
  @keyframes nav-in { from { opacity: 0; } }
  .nav > a:not(.btn) { font-size: 1.35rem; font-weight: 700; padding: .55em .4em; border-radius: 12px; }
  .nav > a.active::after { left: .4em; margin: 0; bottom: 6px; }
  .nav__phone { display: inline-flex !important; font-size: 1.05rem !important; margin: 10px 0 0; }
  .nav .nav__cta { margin: 14px 0 0; padding: 1.05em; font-size: 1.05rem; }
}
@media (max-width: 980px) {
  .hero { padding-bottom: 130px; }
  .hero__grid { grid-template-columns: 1fr; gap: 40px; }
  .hero__visual { min-height: 400px; max-width: 560px; }
  .stats { grid-template-columns: repeat(2, 1fr); }
  .bento { grid-template-columns: repeat(2, 1fr); grid-auto-rows: 270px; }
  .timeline { grid-template-columns: repeat(2, 1fr); gap: 40px 20px; }
  .timeline::before { display: none; }
  .mosaic { grid-template-columns: repeat(2, 1fr); grid-auto-rows: 200px; }
  .why, .split, .split--detail, .split--contact { grid-template-columns: 1fr; gap: 48px; }
  .why__visual { max-width: 520px; }
  .side { position: static; }
  .service-row, .service-row:nth-child(even) { grid-template-columns: 1fr; }
  .service-row:nth-child(even) .service-row__img { order: 0; }
  .service-row__img { aspect-ratio: 16/9; min-height: 0; }
  .footer__grid { grid-template-columns: 1fr 1fr; }
  .cta__panel { padding: 44px 36px; }
}
@media (max-width: 600px) {
  body { font-size: 15.5px; }
  .section { padding: 76px 0; }
  .hero { padding-top: calc(var(--header-h) + 36px); }
  .hero__text { font-size: 1.05rem; }
  .hero__actions .btn { width: 100%; }
  .hero__visual { min-height: 320px; }
  .frame--main { inset: 0 0 50px 30px; }
  .float-card { padding: 9px 12px 9px 9px; }
  .float-card__icon { width: 36px; height: 36px; }
  .float-card--b { right: 0; bottom: 70px; }
  .stats-wrap { margin-top: -70px; }
  .stat { padding: 16px 12px; gap: 12px; flex-direction: column; align-items: flex-start; }
  .stat__icon { width: 44px; height: 44px; border-radius: 13px; }
  .stat strong { font-size: 1.6rem; }
  .bento { grid-template-columns: 1fr; grid-auto-rows: 260px; }
  .tile--big { grid-row: span 1; grid-column: auto; }
  .tile--big h3 { font-size: 1.35rem; }
  .tile--big p { -webkit-line-clamp: 2; }
  .tile__more { max-height: 30px; opacity: 1; }
  .timeline { grid-template-columns: 1fr; text-align: left; }
  .timeline__item { display: grid; grid-template-columns: 64px 1fr; column-gap: 18px; text-align: left; }
  .timeline__num { grid-row: span 2; margin: 0; }
  .mosaic { grid-auto-rows: 160px; gap: 10px; }
  .mosaic__item:nth-child(1) { grid-row: span 2; }
  .mosaic__cap { padding: 30px 12px 10px; font-size: .85rem; }
  .why { gap: 40px; }
  .why__visual { padding: 0 18px 18px 0; }
  .why__visual::before { inset: 18px 0 0 18px; }
  .why__badge { left: 10px; bottom: 34px; }
  .cta { padding-bottom: 80px; }
  .cta__panel { padding: 36px 24px; border-radius: 24px; }
  .cta__actions, .cta__actions .btn { width: 100%; }
  .form { grid-template-columns: 1fr; padding: 24px; }
  .service-row__body { padding: 26px 24px; }
  .footer__grid { grid-template-columns: 1fr; gap: 32px; }
  .brand__logo { height: 50px; padding: 3px 8px; border-radius: 12px; }
  .header.is-scrolled .brand__logo { height: 46px; }
  .head { margin-bottom: 36px; }
}
