/* =========================================================
   Rigtcom Geo Services — site stylesheet
   ========================================================= */
:root {
    --red: #e8141b;
    --red-dark: #c10d13;
    --navy: #0d1b2e;
    --navy-2: #13263f;
    --slate: #353f4f;
    --blue: #1e9be6;
    --sky: #4cc3ff;
    --ink: #1a2433;
    --muted: #5f6b7c;
    --line: #e6eaf0;
    --bg: #ffffff;
    --bg-soft: #f5f7fb;
    --radius: 18px;
    --shadow: 0 10px 30px rgba(13, 27, 46, .08);
    --shadow-lg: 0 24px 60px rgba(13, 27, 46, .16);
    --header-h: 78px;
    --font: "Plus Jakarta Sans", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
    --font-display: "Sora", "Plus Jakarta Sans", system-ui, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; scroll-padding-top: var(--header-h); }
body { font-family: var(--font); color: var(--ink); background: var(--bg); line-height: 1.65; -webkit-font-smoothing: antialiased; overflow-x: hidden; }
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }
button { font: inherit; cursor: pointer; border: 0; background: none; color: inherit; }

.container { width: min(1200px, 100% - 3rem); margin-inline: auto; }
.section { padding: 110px 0; }

/* ---------- Typography helpers ---------- */
.section__tag {
    display: inline-flex; align-items: center; gap: .6rem;
    font-size: .78rem; font-weight: 700; letter-spacing: .18em; text-transform: uppercase;
    color: var(--red); margin-bottom: 1rem;
}
.section__tag::before { content: ""; width: 28px; height: 2px; background: currentColor; border-radius: 2px; }
.section__tag--light { color: var(--sky); }
.section__title {
    font-family: var(--font-display); font-weight: 700; color: var(--navy);
    font-size: clamp(1.7rem, 1.1rem + 2vw, 2.6rem); line-height: 1.2; letter-spacing: -.02em; margin-bottom: 1.2rem;
}
.section__head { text-align: center; max-width: 760px; margin: 0 auto 3.5rem; }
.section__head .section__tag::after { content: ""; width: 28px; height: 2px; background: currentColor; border-radius: 2px; }
.section__sub { color: var(--muted); font-size: 1.05rem; }

/* ---------- Buttons ---------- */
.btn {
    display: inline-flex; align-items: center; gap: .55rem; padding: .9rem 1.6rem; border-radius: 999px;
    font-weight: 700; font-size: .95rem; transition: transform .25s ease, box-shadow .25s ease, background .25s ease;
    white-space: nowrap;
}
.btn--red { background: var(--red); color: #fff; box-shadow: 0 10px 24px rgba(232, 20, 27, .3); }
.btn--red:hover { background: var(--red-dark); transform: translateY(-2px); box-shadow: 0 14px 30px rgba(232, 20, 27, .38); }
.btn--glass { background: rgba(255,255,255,.12); color: #fff; border: 1px solid rgba(255,255,255,.35); backdrop-filter: blur(8px); }
.btn--glass:hover { background: rgba(255,255,255,.22); transform: translateY(-2px); }

/* =========================================================
   HEADER
   ========================================================= */
.header {
    position: fixed; inset: 0 0 auto 0; z-index: 100; height: var(--header-h);
    background: rgba(255,255,255,.92); backdrop-filter: saturate(180%) blur(14px);
    border-bottom: 1px solid rgba(13,27,46,.06);
    transition: box-shadow .3s ease, height .3s ease;
}
.scroll-header { box-shadow: 0 8px 30px rgba(13,27,46,.10); }
.nav { height: 100%; display: flex; align-items: center; justify-content: space-between; gap: 1.5rem; }
.nav__logo img { height: 46px; width: auto; transition: height .3s ease; }
.scroll-header .nav__logo img { height: 40px; }
.nav__list { display: flex; align-items: center; gap: 2rem; }
.nav__link { position: relative; font-weight: 600; font-size: .93rem; color: var(--slate); padding: .4rem 0; transition: color .2s; display: inline-flex; align-items: center; gap: .4rem; }
.nav__link::after { content: ""; position: absolute; left: 0; bottom: -2px; width: 0; height: 2px; background: var(--red); border-radius: 2px; transition: width .3s ease; }
.nav__link:hover, .active-link { color: var(--red); }
.nav__link:hover::after, .active-link::after { width: 100%; }
.nav__badge { font-size: .62rem; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; background: var(--red); color: #fff; padding: .15rem .45rem; border-radius: 999px; animation: pulse 2s infinite; }
@keyframes pulse { 0%,100% { box-shadow: 0 0 0 0 rgba(232,20,27,.45);} 50% { box-shadow: 0 0 0 6px rgba(232,20,27,0);} }
.nav__cta { padding: .7rem 1.25rem; font-size: .88rem; }
.nav__toggle, .nav__close { display: none; font-size: 1.6rem; color: var(--navy); }

/* =========================================================
   HERO SLIDER
   ========================================================= */
.hero { position: relative; height: 100vh; min-height: 640px; max-height: 1000px; overflow: hidden; color: #fff; background: var(--navy); }
.hero__slides { position: absolute; inset: 0; }
.hero__slide { position: absolute; inset: 0; opacity: 0; transition: opacity 1.4s ease; overflow: hidden; }
.hero__slide.is-active { opacity: 1; z-index: 1; }
.hero__slide .bg { position: absolute; inset: -30px; background-size: cover; background-position: center; filter: blur(28px) brightness(.55); transform: scale(1.1); }
.hero__slide img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center 35%; transform: scale(1.12); }
.hero__slide.fit-contain img { object-fit: contain; }
.hero__slide.is-active img { animation: kenburns 7s ease-out forwards; }
.hero__slide.is-active.alt img { animation-name: kenburns-alt; }
@keyframes kenburns { from { transform: scale(1.14) translate(1%, 1%); } to { transform: scale(1.02) translate(0, 0); } }
@keyframes kenburns-alt { from { transform: scale(1.02) translate(0,0); } to { transform: scale(1.12) translate(-1%, -1%); } }

.hero__shade {
    position: absolute; inset: 0; z-index: 2; pointer-events: none;
    background:
        linear-gradient(90deg, rgba(8,18,33,.88) 0%, rgba(8,18,33,.55) 45%, rgba(8,18,33,.1) 100%),
        linear-gradient(0deg, rgba(8,18,33,.75) 0%, rgba(8,18,33,0) 35%);
}
.hero__content { position: relative; z-index: 3; height: 100%; display: flex; flex-direction: column; justify-content: center; padding-top: var(--header-h); max-width: 1200px; }
.hero__content > * { max-width: 700px; }
.hero__eyebrow { display: inline-flex; align-items: center; gap: .6rem; width: fit-content; padding: .45rem 1rem; border-radius: 999px; background: rgba(255,255,255,.1); border: 1px solid rgba(255,255,255,.2); backdrop-filter: blur(6px); font-size: .82rem; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; margin-bottom: 1.4rem; }
.hero__eyebrow .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--red); box-shadow: 0 0 0 4px rgba(232,20,27,.3); }
.hero__title { font-family: var(--font-display); font-weight: 800; font-size: clamp(2.1rem, 1.2rem + 3.6vw, 4rem); line-height: 1.08; letter-spacing: -.03em; margin-bottom: 1.3rem; text-shadow: 0 4px 30px rgba(0,0,0,.25); }
.hero__title .accent { background: linear-gradient(90deg, #ff4b50, #ff8a3d); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero__text { font-size: 1.1rem; color: rgba(255,255,255,.82); margin-bottom: 2.2rem; max-width: 560px; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 1rem; }
.hero__content > * { animation: rise .9s ease both; }
.hero__content > *:nth-child(2) { animation-delay: .12s; }
.hero__content > *:nth-child(3) { animation-delay: .24s; }
.hero__content > *:nth-child(4) { animation-delay: .36s; }
@keyframes rise { from { opacity: 0; transform: translateY(30px);} to { opacity: 1; transform: none; } }

.hero__bottom { position: absolute; z-index: 3; left: 50%; transform: translateX(-50%); bottom: 2.2rem; display: flex; align-items: center; justify-content: space-between; gap: 1rem; }
.hero__social { display: flex; gap: .6rem; }
.hero__social a { width: 42px; height: 42px; display: grid; place-items: center; border-radius: 50%; border: 1px solid rgba(255,255,255,.3); font-size: 1.1rem; transition: .25s; }
.hero__social a:hover { background: var(--red); border-color: var(--red); }
.hero__controls { display: flex; align-items: center; gap: 1rem; }
.hero__arrow { width: 46px; height: 46px; display: grid; place-items: center; border-radius: 50%; background: rgba(255,255,255,.12); border: 1px solid rgba(255,255,255,.3); font-size: 1.5rem; backdrop-filter: blur(6px); transition: .25s; }
.hero__arrow:hover { background: #fff; color: var(--navy); }
.hero__counter { font-family: var(--font-display); font-weight: 600; letter-spacing: .1em; font-size: .95rem; color: rgba(255,255,255,.7); min-width: 72px; text-align: center; }
.hero__counter #hero-current { color: #fff; font-size: 1.15rem; }
.hero__caption { font-size: .85rem; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: rgba(255,255,255,.8); display: flex; gap: .5rem; align-items: center; }
.hero__progress { position: absolute; z-index: 3; left: 0; right: 0; bottom: 0; height: 4px; background: rgba(255,255,255,.12); }
.hero__progress span { display: block; height: 100%; width: 0; background: linear-gradient(90deg, var(--red), #ff8a3d); }

/* =========================================================
   ABOUT
   ========================================================= */
.about__container { display: grid; grid-template-columns: 1.15fr .85fr; gap: 5rem; align-items: center; }
.about__data p { color: var(--muted); margin-bottom: 1rem; }
.about__points { display: flex; flex-wrap: wrap; gap: .75rem; margin-top: 1.6rem; }
.about__points li { display: inline-flex; align-items: center; gap: .5rem; padding: .6rem 1rem; border-radius: 12px; background: var(--bg-soft); border: 1px solid var(--line); font-weight: 600; font-size: .9rem; color: var(--navy); }
.about__points i { color: var(--red); font-size: 1.1rem; }
.about__visual { position: relative; }
.about__frame { position: relative; border-radius: 28px; padding: 2.5rem; background: linear-gradient(145deg, #f5f7fb, #e9eef6); box-shadow: var(--shadow-lg); overflow: hidden; }
.about__frame::before { content: ""; position: absolute; width: 260px; height: 260px; border-radius: 50%; background: radial-gradient(circle, rgba(232,20,27,.18), transparent 70%); top: -80px; right: -80px; }
.about__frame img { position: relative; margin: 0 auto; max-height: 440px; width: auto; }
.about__floating { position: absolute; left: -2rem; bottom: 2rem; background: #fff; border-radius: 16px; padding: 1rem 1.3rem; box-shadow: var(--shadow-lg); max-width: 250px; border-left: 4px solid var(--red); }
.about__floating strong { display: block; font-family: var(--font-display); color: var(--navy); font-size: 1.15rem; }
.about__floating span { font-size: .85rem; color: var(--muted); }

/* =========================================================
   STATS
   ========================================================= */
.stats { background: linear-gradient(120deg, var(--navy) 0%, var(--navy-2) 60%, #16345a 100%); color: #fff; padding: 70px 0; position: relative; overflow: hidden; }
.stats::after { content: ""; position: absolute; right: -60px; top: -40px; width: 320px; height: 200%; background: repeating-linear-gradient(115deg, transparent 0 34px, rgba(30,155,230,.18) 34px 52px, transparent 52px 70px, rgba(232,20,27,.25) 70px 84px); transform: skewX(-10deg); pointer-events: none; }
.stats__container { display: grid; grid-template-columns: repeat(4, 1fr); gap: 2rem; position: relative; z-index: 1; }
.stat { text-align: center; padding: .5rem; }
.stat + .stat { border-left: 1px solid rgba(255,255,255,.12); }
.stat h3 { font-family: var(--font-display); font-weight: 800; font-size: clamp(2rem, 1.4rem + 2vw, 3rem); line-height: 1; margin-bottom: .6rem; background: linear-gradient(180deg, #fff, #a9d8ff); -webkit-background-clip: text; background-clip: text; color: transparent; }
.stat p { color: rgba(255,255,255,.72); font-weight: 500; letter-spacing: .04em; }

/* =========================================================
   SERVICES
   ========================================================= */
.services { background: var(--bg-soft); }
.services__gallery { display: grid; grid-template-columns: 1fr 1fr; gap: 1.5rem; margin-bottom: 3rem; }
.services__img { border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); background: #fff; aspect-ratio: 16/10; }
.services__img img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s ease; }
.services__img:hover img { transform: scale(1.05); }
.services__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; }
.card { position: relative; background: #fff; border-radius: var(--radius); padding: 2rem 1.8rem; border: 1px solid var(--line); transition: transform .35s ease, box-shadow .35s ease, border-color .35s; overflow: hidden; }
.card::before { content: ""; position: absolute; inset: 0 0 auto 0; height: 3px; background: linear-gradient(90deg, var(--red), var(--blue)); transform: scaleX(0); transform-origin: left; transition: transform .4s ease; }
.card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); border-color: transparent; }
.card:hover::before { transform: scaleX(1); }
.card__icon { width: 54px; height: 54px; border-radius: 14px; display: grid; place-items: center; font-size: 1.3rem; color: var(--red); background: rgba(232,20,27,.08); margin-bottom: 1.2rem; transition: .35s; }
.card:hover .card__icon { background: var(--red); color: #fff; transform: rotate(-6deg); }
.card h3 { font-family: var(--font-display); font-size: 1.2rem; color: var(--navy); margin-bottom: .6rem; }
.card p { color: var(--muted); font-size: .95rem; }

/* =========================================================
   PROJECTS
   ========================================================= */
.projects__container { display: grid; grid-template-columns: 1fr 1fr; gap: 4.5rem; align-items: center; }
.projects__visual { display: grid; place-items: center; padding: 2rem 0; }
.pv { position: relative; width: min(360px, 78vw); aspect-ratio: 1; display: grid; place-items: center; }
.pv__glow { position: absolute; inset: 8%; border-radius: 50%; background: radial-gradient(circle, rgba(232,20,27,.22) 0%, rgba(232,20,27,0) 70%); filter: blur(20px); animation: breathe 5s ease-in-out infinite; }
.pv__ring { position: absolute; border-radius: 50%; pointer-events: none; }
.pv__ring--1 { inset: -6%; border: 1.5px dashed rgba(232,20,27,.35); animation: spin 40s linear infinite; }
.pv__ring--2 { inset: -14%; border: 1px solid rgba(13,27,46,.08); }
.pv__ring--1::before { content: ""; position: absolute; top: 6%; left: 14%; width: 12px; height: 12px; border-radius: 50%; background: var(--red); box-shadow: 0 0 0 5px rgba(232,20,27,.18); }
.pv__disc { position: relative; width: 100%; height: 100%; border-radius: 50%; background: radial-gradient(circle at 30% 25%, #fff 0%, #f6f8fc 60%, #eef2f8 100%); box-shadow: 0 30px 60px rgba(13,27,46,.14), inset 0 0 0 1px rgba(13,27,46,.05), inset 0 -10px 30px rgba(13,27,46,.04); display: grid; place-items: center; overflow: hidden; transition: transform .6s cubic-bezier(.2,.8,.2,1); }
.pv__disc img { width: 84%; height: 84%; object-fit: contain; mix-blend-mode: multiply; }
.pv:hover .pv__disc { transform: scale(1.03) rotate(-2deg); }
.pv__pill { position: absolute; z-index: 2; display: inline-flex; align-items: center; gap: .4rem; padding: .5rem .9rem; border-radius: 999px; background: rgba(255,255,255,.92); backdrop-filter: blur(8px); box-shadow: 0 10px 24px rgba(13,27,46,.12); font-size: .8rem; font-weight: 700; color: var(--navy); white-space: nowrap; animation: float 6s ease-in-out infinite; }
.pv__pill i { color: var(--red); font-size: 1rem; }
.pv__pill--a { top: 4%; right: -12%; }
.pv__pill--b { bottom: 10%; right: -16%; animation-delay: -2s; }
.pv__pill--c { bottom: 18%; left: -16%; animation-delay: -4s; }
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes breathe { 0%,100% { opacity: .7; transform: scale(1); } 50% { opacity: 1; transform: scale(1.06); } }
@media (max-width: 560px) { .pv { width: 66vw; } .pv__pill--a { right: -8%; } .pv__pill--b { right: -4%; } .pv__pill--c { left: -4%; } }
.projects__data p { color: var(--muted); margin-bottom: 1.8rem; }
.chips { display: flex; flex-wrap: wrap; gap: .7rem; }
.chip { display: inline-flex; align-items: center; gap: .55rem; padding: .6rem 1rem .6rem .6rem; border-radius: 999px; background: #fff; border: 1px solid var(--line); font-weight: 600; font-size: .9rem; color: var(--navy); transition: .25s; box-shadow: 0 2px 8px rgba(13,27,46,.04); }
.chip b { display: grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; background: var(--navy); color: #fff; font-size: .72rem; }
.chip:hover { border-color: var(--red); transform: translateY(-2px); }
.chip:hover b { background: var(--red); }

/* =========================================================
   TEAM
   ========================================================= */
.team { background: var(--bg-soft); }
.team__grid { display: grid; grid-template-columns: repeat(3, minmax(0, 300px)); justify-content: center; gap: 2rem; }
.profile { background: #fff; border-radius: 24px; padding: 2.2rem 1.5rem 1.8rem; text-align: center; border: 1px solid var(--line); transition: .35s; }
.profile:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); }
.profile__img { width: 150px; height: 150px; margin: 0 auto 1.3rem; border-radius: 50%; padding: 5px; background: conic-gradient(from 180deg, var(--red), var(--blue), var(--red)); }
.profile__img img { width: 100%; height: 100%; border-radius: 50%; object-fit: cover; background: #eef2f7; border: 4px solid #fff; }
.profile h3 { font-family: var(--font-display); color: var(--navy); font-size: 1.2rem; }
.profile p { color: var(--red); font-weight: 600; font-size: .9rem; margin-bottom: 1rem; }
.profile__social { display: flex; justify-content: center; gap: .6rem; }
.profile__social a { width: 38px; height: 38px; display: grid; place-items: center; border-radius: 50%; background: var(--bg-soft); color: var(--navy); transition: .25s; }
.profile__social a:hover { background: var(--navy); color: #fff; }

/* =========================================================
   CAREERS
   ========================================================= */
.careers { position: relative; color: #fff; overflow: hidden; background: var(--navy); }
.careers__bg { position: absolute; inset: 0; background:
    radial-gradient(900px 500px at 85% 20%, rgba(30,155,230,.35), transparent 60%),
    radial-gradient(700px 500px at 0% 100%, rgba(232,20,27,.22), transparent 60%),
    linear-gradient(160deg, #0b1a2e 0%, #0f2a4a 100%); }
.careers__bg::after { 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(180deg, #000, transparent); }
.careers__container { position: relative; display: grid; grid-template-columns: 1.1fr .9fr; gap: 4rem; align-items: center; }
.careers__title { color: #fff; }
.careers__title span { color: var(--sky); }
.careers__lead { color: rgba(255,255,255,.8); font-size: 1.05rem; margin-bottom: 2rem; }
.careers__lead strong { color: #fff; }
.careers__cols { display: grid; grid-template-columns: 1fr 1fr; gap: 2rem; margin-bottom: 2rem; }
.careers__cols h4 { font-family: var(--font-display); font-size: 1.05rem; margin-bottom: .9rem; display: flex; align-items: center; gap: .5rem; }
.careers__cols h4 i { color: var(--red); }
.careers__cols li { position: relative; padding-left: 1.4rem; margin-bottom: .45rem; color: rgba(255,255,255,.82); font-size: .95rem; }
.careers__cols li::before { content: "\203A"; position: absolute; left: 0; top: -.15rem; color: var(--sky); font-weight: 800; font-size: 1.3rem; }
.careers__cols li b { color: #fff; }
.careers__facts { display: grid; grid-template-columns: repeat(4, 1fr); border-radius: 16px; overflow: hidden; border: 1px solid rgba(255,255,255,.12); background: rgba(255,255,255,.05); backdrop-filter: blur(6px); margin-bottom: 2rem; }
.careers__facts div { padding: 1rem 1.1rem; }
.careers__facts div + div { border-left: 1px solid rgba(255,255,255,.1); }
.careers__facts span { display: block; font-size: .68rem; text-transform: uppercase; letter-spacing: .16em; color: rgba(255,255,255,.55); }
.careers__facts strong { font-family: var(--font-display); font-size: 1.02rem; color: var(--sky); }
.careers__facts div:last-child strong { color: #a3e635; }
.careers__actions { display: flex; flex-wrap: wrap; gap: 1rem; margin-bottom: 1rem; }
.careers__note { font-size: .85rem; color: rgba(255,255,255,.55); }

.careers__flyer { position: relative; justify-self: center; perspective: 1200px; }
.flyer { position: relative; display: block; width: min(420px, 100%); border-radius: 20px; overflow: hidden; box-shadow: 0 40px 80px rgba(0,0,0,.45), 0 0 0 1px rgba(255,255,255,.08); transform: rotateY(-8deg) rotateX(3deg); transition: transform .6s cubic-bezier(.2,.8,.2,1), box-shadow .6s; }
.flyer:hover { transform: rotateY(0) rotateX(0) translateY(-6px); box-shadow: 0 50px 100px rgba(0,0,0,.55); }
.flyer img { width: 100%; }
.flyer__zoom { position: absolute; left: 50%; bottom: 1.2rem; transform: translate(-50%, 10px); opacity: 0; background: rgba(13,27,46,.85); color: #fff; padding: .6rem 1.1rem; border-radius: 999px; font-size: .85rem; font-weight: 600; display: inline-flex; gap: .4rem; align-items: center; transition: .35s; backdrop-filter: blur(6px); white-space: nowrap; }
.flyer:hover .flyer__zoom, .flyer:focus-visible .flyer__zoom { opacity: 1; transform: translate(-50%, 0); }
.flyer__ribbon { position: absolute; top: 22px; right: -14px; background: var(--red); color: #fff; font-weight: 800; font-size: .8rem; letter-spacing: .12em; text-transform: uppercase; padding: .5rem 1rem; border-radius: 8px; box-shadow: 0 10px 24px rgba(232,20,27,.4); transform: rotate(6deg); animation: bob 3s ease-in-out infinite; }
@keyframes bob { 0%,100% { transform: rotate(6deg) translateY(0);} 50% { transform: rotate(6deg) translateY(-6px);} }

/* Lightbox */
.lightbox { position: fixed; inset: 0; z-index: 200; background: rgba(6,12,22,.92); display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 1rem; padding: 1.5rem; opacity: 0; visibility: hidden; transition: .35s; }
.lightbox.open { opacity: 1; visibility: visible; }
.lightbox img { max-height: calc(100vh - 120px); width: auto; border-radius: 14px; box-shadow: 0 30px 80px rgba(0,0,0,.6); transform: scale(.95); transition: transform .35s; }
.lightbox.open img { transform: scale(1); }
.lightbox__close { position: absolute; top: 1rem; right: 1rem; width: 46px; height: 46px; border-radius: 50%; background: rgba(255,255,255,.12); color: #fff; font-size: 1.5rem; display: grid; place-items: center; }
.lightbox__close:hover { background: var(--red); }

/* =========================================================
   CLIENTS MARQUEE
   ========================================================= */
.clients { padding-bottom: 90px; }
.clients .section__head { margin-bottom: 2.5rem; }
.marquee { overflow: hidden; mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent); }
.marquee__track { display: flex; gap: 1.5rem; width: max-content; animation: marquee 38s linear infinite; }
.marquee:hover .marquee__track { animation-play-state: paused; }
@keyframes marquee { to { transform: translateX(calc(-50% - .75rem)); } }
.logo-tile { width: 210px; height: 110px; display: grid; place-items: center; padding: 1.2rem 1.6rem; background: #fff; border: 1px solid var(--line); border-radius: 18px; transition: .3s; }
.logo-tile img { max-height: 64px; max-width: 100%; object-fit: contain; filter: grayscale(1); opacity: .75; transition: .3s; }
.logo-tile:hover { box-shadow: var(--shadow); border-color: transparent; }
.logo-tile:hover img { filter: none; opacity: 1; }

/* =========================================================
   CTA
   ========================================================= */
.cta { padding: 0 0 110px; }
.cta__box { display: flex; align-items: center; justify-content: space-between; gap: 2rem; flex-wrap: wrap; padding: 3rem 3.5rem; border-radius: 28px; background: linear-gradient(120deg, var(--red) 0%, #ff4a3d 100%); color: #fff; box-shadow: 0 30px 60px rgba(232,20,27,.25); position: relative; overflow: hidden; }
.cta__box::after { content: ""; position: absolute; right: -60px; top: -60px; width: 240px; height: 240px; border-radius: 50%; border: 40px solid rgba(255,255,255,.12); }
.cta__box h2 { font-family: var(--font-display); font-size: clamp(1.6rem, 1.2rem + 1.5vw, 2.3rem); line-height: 1.2; }
.cta__box p { color: rgba(255,255,255,.88); max-width: 460px; }
.cta__form { display: flex; gap: .5rem; background: #fff; padding: .45rem; border-radius: 999px; position: relative; z-index: 1; min-width: min(420px, 100%); }
.cta__form input { flex: 1; border: 0; outline: 0; padding: 0 1.1rem; font: inherit; color: var(--ink); background: transparent; min-width: 0; }
.cta__form .btn--red { background: var(--navy); box-shadow: none; }
.cta__form .btn--red:hover { background: #000; }

/* =========================================================
   FOOTER
   ========================================================= */
.footer { background: var(--bg-soft); border-top: 1px solid var(--line); }
.footer__container { display: grid; grid-template-columns: 1.3fr 1fr 1fr 1.2fr; gap: 2.5rem; padding: 80px 0 60px; }
.footer__logo img { height: 56px; width: auto; margin-bottom: 1.3rem; }
.footer__brand p { color: var(--muted); font-size: .93rem; margin-bottom: 1.3rem; }
.footer__social { display: flex; gap: .6rem; }
.footer__social a { width: 40px; height: 40px; display: grid; place-items: center; border-radius: 50%; background: #fff; border: 1px solid var(--line); color: var(--navy); font-size: 1.1rem; transition: .25s; }
.footer__social a:hover { background: var(--red); border-color: var(--red); color: #fff; }
.footer__col h4 { font-family: var(--font-display); color: var(--navy); font-size: 1rem; margin-bottom: 1.1rem; }
.footer__col h4.mt { margin-top: 1.6rem; }
.footer__col p { display: flex; gap: .55rem; color: var(--muted); font-size: .9rem; margin-bottom: .7rem; }
.footer__col p i { color: var(--red); margin-top: .15rem; }
.footer__col a:hover { color: var(--red); }
.footer__links { display: flex; flex-wrap: wrap; gap: .4rem 1rem; font-size: .9rem; color: var(--muted); }
.footer__map iframe { width: 100%; height: 220px; border: 0; border-radius: 16px; box-shadow: var(--shadow); }
.footer__bar { background: var(--navy); color: rgba(255,255,255,.7); font-size: .85rem; }
.footer__bar .container { display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap; padding: 1.2rem 0; }

/* Scroll up */
.scrollup { position: fixed; right: 1.5rem; bottom: -4rem; z-index: 90; width: 48px; height: 48px; border-radius: 14px; display: grid; place-items: center; background: var(--red); color: #fff; font-size: 1.3rem; box-shadow: 0 10px 24px rgba(232,20,27,.35); transition: bottom .4s, transform .25s; }
.scrollup:hover { transform: translateY(-4px); }
.show-scroll { bottom: 1.5rem; }

/* =========================================================
   REVEAL ANIMATIONS
   ========================================================= */
.reveal { opacity: 0; transform: translateY(40px); transition: opacity .9s ease, transform .9s cubic-bezier(.2,.8,.2,1); }
.reveal--right { transform: translateX(50px); }
.reveal.is-visible { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
    .reveal { opacity: 1; transform: none; }
}

/* =========================================================
   RESPONSIVE
   ========================================================= */
@media (max-width: 1100px) {
    .nav__list { gap: 1.3rem; }
    .footer__container { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 992px) {
    :root { --header-h: 70px; }
    .section { padding: 80px 0; }
    .nav__logo img { height: 40px; }
    .nav__toggle, .nav__close { display: block; }
    .nav__cta { display: none; }
    .nav__menu { position: fixed; top: 0; right: -100%; width: min(320px, 85%); height: 100vh; background: #fff; box-shadow: -20px 0 60px rgba(13,27,46,.2); padding: 5.5rem 2rem 2rem; transition: right .4s cubic-bezier(.2,.8,.2,1); }
    .nav__menu.show-menu { right: 0; }
    .nav__list { flex-direction: column; align-items: flex-start; gap: 1.4rem; }
    .nav__link { font-size: 1.05rem; }
    .nav__close { position: absolute; top: 1.4rem; right: 1.4rem; cursor: pointer; }
    .about__container, .projects__container, .careers__container { grid-template-columns: 1fr; gap: 3rem; }
    .about__floating { left: 1rem; }
    .services__grid { grid-template-columns: 1fr 1fr; }
    .stats__container { grid-template-columns: repeat(2, 1fr); row-gap: 2.5rem; }
    .stat:nth-child(3) { border-left: 0; }
    .team__grid { grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
    .flyer { transform: none; }
    .hero__caption { display: none; }
}
@media (max-width: 640px) {
    .container { width: calc(100% - 2rem); }
    .hero { min-height: 600px; }
    .hero__shade { background: linear-gradient(0deg, rgba(8,18,33,.9) 0%, rgba(8,18,33,.55) 60%, rgba(8,18,33,.35) 100%); }
    .hero__social { display: none; }
    .hero__bottom { justify-content: center; }
    .services__gallery, .services__grid, .careers__cols { grid-template-columns: 1fr; }
    .careers__facts { grid-template-columns: 1fr 1fr; }
    .careers__facts div:nth-child(3) { border-left: 0; }
    .careers__facts div:nth-child(n+3) { border-top: 1px solid rgba(255,255,255,.1); }
    .flyer__ribbon { right: 6px; }
    .cta__box { padding: 2.2rem 1.5rem; }
    .cta__form { flex-direction: column; border-radius: 18px; }
    .cta__form input { padding: .8rem 1rem; }
    .cta__form .btn { justify-content: center; }
    .footer__container { grid-template-columns: 1fr; }
    .logo-tile { width: 160px; height: 90px; }
    .about__frame { padding: 1.5rem; }
    .about__frame img { max-height: 280px; }
}


/* =========================================================
   HERO — floating "Now Hiring" card
   ========================================================= */
.hero__hire {
    position: absolute; z-index: 4; right: max(1.5rem, calc((100vw - 1200px) / 2)); top: 50%; transform: translateY(-38%);
    display: flex; align-items: center; gap: 1rem; width: 330px; padding: .9rem 1.1rem .9rem .9rem;
    background: rgba(255,255,255,.1); border: 1px solid rgba(255,255,255,.22); border-radius: 20px;
    backdrop-filter: blur(16px) saturate(160%); -webkit-backdrop-filter: blur(16px) saturate(160%);
    box-shadow: 0 24px 60px rgba(0,0,0,.35); color: #fff;
    animation: rise .9s .5s ease both, float 6s 1.4s ease-in-out infinite;
    transition: background .3s, border-color .3s;
}
.hero__hire:hover { background: rgba(255,255,255,.18); border-color: rgba(255,255,255,.45); }
.hero__hire-thumb { flex: 0 0 86px; height: 150px; border-radius: 12px; overflow: hidden; box-shadow: 0 10px 24px rgba(0,0,0,.35); }
.hero__hire-thumb img { width: 100%; height: 100%; object-fit: cover; object-position: top; transition: transform .6s ease; }
.hero__hire:hover .hero__hire-thumb img { transform: scale(1.06); }
.hero__hire-text { display: flex; flex-direction: column; gap: .3rem; min-width: 0; }
.hero__hire-tag { display: inline-flex; align-items: center; gap: .45rem; font-size: .7rem; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; color: #ffb4b6; }
.hero__hire-tag .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--red); animation: pulse 2s infinite; }
.hero__hire strong { font-family: var(--font-display); font-size: 1.1rem; line-height: 1.25; }
.hero__hire small { font-size: .8rem; color: rgba(255,255,255,.72); }
.hero__hire em { font-style: normal; font-size: .82rem; font-weight: 700; color: var(--sky); display: inline-flex; gap: .35rem; align-items: center; margin-top: .25rem; }
@keyframes float { 0%,100% { translate: 0 0; } 50% { translate: 0 -8px; } }
@media (max-width: 1100px) { .hero__hire { display: none; } }

/* =========================================================
   LIFE AT RIGTCOM — photo mosaic
   ========================================================= */
.life { background: var(--bg-soft); }
.grad { background: linear-gradient(90deg, var(--red), #ff8a3d); -webkit-background-clip: text; background-clip: text; color: transparent; }
.moments { display: grid; grid-template-columns: repeat(4, 1fr); grid-auto-rows: 200px; grid-auto-flow: dense; gap: 14px; }
.moment { position: relative; overflow: hidden; border-radius: 16px; background: var(--navy); box-shadow: var(--shadow); padding: 0; }
.moment.wide { grid-column: span 2; }
.moment.tall { grid-row: span 2; }
.moment img { width: 100%; height: 100%; object-fit: cover; transition: transform .9s cubic-bezier(.2,.8,.2,1), filter .5s; }
.moment::after { content: ""; position: absolute; inset: 0; background: linear-gradient(0deg, rgba(8,18,33,.78) 0%, rgba(8,18,33,0) 55%); opacity: .75; transition: opacity .4s; }
.moment__cap { position: absolute; z-index: 1; left: 1rem; bottom: .9rem; color: #fff; font-weight: 700; font-size: .9rem; letter-spacing: .02em; transition: transform .4s; }
.moment__cap::before { content: ""; display: inline-block; width: 18px; height: 2px; background: var(--red); vertical-align: middle; margin-right: .5rem; border-radius: 2px; }
.moment:hover img { transform: scale(1.07); }
.moment:hover::after { opacity: 1; }
.moment:hover .moment__cap { transform: translateY(-4px); }
.life__cta { text-align: center; margin-top: 2.5rem; }
.lightbox.is-photo img { max-width: min(1400px, 100%); }
@media (max-width: 992px) { .moments { grid-template-columns: repeat(2, 1fr); grid-auto-rows: 180px; } }
@media (max-width: 560px) { .moments { grid-template-columns: 1fr 1fr; grid-auto-rows: 130px; gap: 10px; } .moment.tall { grid-row: span 1; } .moment__cap { font-size: .78rem; left: .7rem; bottom: .6rem; } }
@media (max-width: 560px) { .moment:last-child { display: none; } .moment__cap { right: .6rem; line-height: 1.3; } .moment__cap::before { display: none; } }

/* Leadership illustrated avatars */
.profile__img img[src$=".svg"] { object-fit: cover; object-position: center bottom;  background: radial-gradient(circle at 50% 35%, #ffffff 0%, #e8eef7 70%, #dbe4f1 100%); }
.profile:hover .profile__img img[src$=".svg"] { background: radial-gradient(circle at 50% 35%, #ffffff 0%, #fde8e9 70%, #f9d4d6 100%); }
