/* ==========================================================================
   Renew Gen Resources Nepal — frontend theme
   Palette sampled from the logo: royal blue lettering, sun gold, wave teal.
   ========================================================================== */

:root {
    /* Brand (logo) */
    --brand: #0048a8;          /* logo lettering */
    --brand-700: #003b8c;
    --brand-800: #0b2a5a;
    --brand-900: #071d40;
    --brand-950: #061a3a;      /* night sky */
    --brand-100: #d6e2f3;
    --brand-50: #eef3fa;
    --sun: #f8b818;            /* logo sun */
    --sun-600: #e0a100;
    --sun-50: #fdf6e3;
    --teal: #0a7a9e;           /* logo wave */
    --stone: #707070;          /* logo stars */
    --teal-50: #e7f3f7;

    /* Neutrals */
    --ink: #0f1b2d;
    --body: #46556a;
    --muted: #6b7789;
    --line: #e3e8ef;
    --line-strong: #cfd7e2;
    --bg: #ffffff;
    --bg-soft: #f5f7fa;

    --radius-sm: 4px;
    --radius: 6px;
    --radius-lg: 8px;
    --shadow-sm: 0 1px 2px rgba(15, 27, 45, .06);
    --shadow: 0 10px 30px -14px rgba(15, 27, 45, .22);
    --ease: cubic-bezier(.2, .7, .2, 1);

    --container: 1200px;
    --header-h: 80px;
    --font-display: "Montserrat", "Segoe UI", system-ui, sans-serif;
    --font-body: "Open Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
    margin: 0;
    font-family: var(--font-body);
    font-size: 16px;
    line-height: 1.7;
    color: var(--body);
    background: var(--bg);
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}
img, video, iframe { max-width: 100%; display: block; }
a { color: var(--brand); text-decoration: none; transition: color .15s; }
a:hover { color: var(--brand-700); }
h1, h2, h3, h4, h5, h6 { color: var(--ink); line-height: 1.25; margin: 0 0 .6em; }
h1, h2, h3 { font-family: var(--font-display); font-weight: 700; letter-spacing: -.01em; }
h4, h5, h6 { font-family: var(--font-display); font-weight: 700; letter-spacing: 0; }
p { margin: 0 0 1em; }
ul, ol { margin: 0; padding: 0; }
strong { color: var(--ink); font-weight: 600; }
::selection { background: var(--brand); color: #fff; }
:focus-visible { outline: 2px solid var(--sun); outline-offset: 2px; }

.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 24px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.muted { color: var(--muted); }

/* ---------- Type helpers ---------- */
.eyebrow {
    display: inline-flex; align-items: center; gap: 12px;
    margin-bottom: 14px;
    color: var(--teal);
    font: 600 12.5px/1.4 var(--font-body);
    letter-spacing: .12em;
    text-transform: uppercase;
}
.eyebrow::before { content: ""; width: 28px; height: 2px; background: var(--sun); }
.eyebrow--light { color: var(--sun); }
.eyebrow--light::before { background: rgba(255, 255, 255, .6); }

.hl, .hl-sun { color: inherit; }

.section-title { font-size: clamp(28px, 3.2vw, 40px); margin-bottom: 14px; }
.section-head { max-width: 760px; margin: 0 auto 52px; text-align: center; }
.section-head .section-title { text-transform: uppercase; letter-spacing: .04em; }
.section-head .section-title::after { content: ""; display: block; width: 46px; height: 3px; margin: 16px auto 0; background: var(--sun); }
.section-head p { font-size: 16px; margin: 0; color: var(--muted); }
.section--dark .section-head p { color: rgba(255, 255, 255, .7); }
.lead { font-size: 18px; line-height: 1.65; color: var(--body); }

/* ---------- Sections ---------- */
.section { padding: 96px 0; position: relative; }
.section--tight { padding: 72px 0; }
.section--soft { background: var(--bg-soft); }
.section--dark { background: var(--brand-900); color: rgba(255, 255, 255, .75); }
.section--dark h2, .section--dark h3, .section--dark h4 { color: #fff; }
.section--dark .section-head p { color: rgba(255, 255, 255, .72); }
.section--dark .eyebrow { color: var(--sun); }
.section--dark .eyebrow::before { background: rgba(255, 255, 255, .5); }
.section--dark .card { color: var(--body); }
.section--dark .card h3 { color: var(--ink); }

/* ---------- Buttons ---------- */
.btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 10px;
    padding: 13px 24px;
    border: 1px solid var(--brand);
    border-radius: 3px;
    background: var(--brand);
    color: #fff;
    font: 700 13px/1.2 var(--font-display);
    letter-spacing: .08em;
    text-transform: uppercase;
    cursor: pointer;
    white-space: nowrap;
    transition: background .15s, border-color .15s, color .15s;
}
.btn:hover { background: var(--brand-700); border-color: var(--brand-700); color: #fff; }
.btn i { font-size: .85em; }
.btn--sun { background: var(--sun); border-color: var(--sun); color: var(--brand-950); }
.btn--sun:hover { background: var(--sun-600); border-color: var(--sun-600); color: var(--brand-950); }
.btn--ghost { background: transparent; border-color: rgba(255, 255, 255, .6); color: #fff; }
.btn--ghost:hover { background: #fff; border-color: #fff; color: var(--brand-900); }
.btn--lg { padding: 16px 30px; font-size: 13.5px; }
.btn--sm { padding: 11px 20px; font-size: 12px; }

.link-arrow { display: inline-flex; align-items: center; gap: 8px; font: 600 15px var(--font-body); color: var(--brand); }
.link-arrow i { font-size: .8em; transition: transform .2s var(--ease); }
.link-arrow:hover i { transform: translateX(3px); }

/* ---------- Top bar ---------- */
.topbar { background: var(--brand-950); color: rgba(255, 255, 255, .7); font-size: 13px; }
.topbar__inner { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 40px; }
.topbar__contact { display: flex; flex-wrap: wrap; gap: 4px 28px; list-style: none; }
.topbar__contact a { color: rgba(255, 255, 255, .8); display: inline-flex; align-items: center; gap: 8px; }
.topbar__contact a:hover { color: #fff; }
.topbar__contact i { color: var(--sun); font-size: 12px; }

.socials { display: flex; gap: 8px; list-style: none; }
.socials a {
    width: 34px; height: 34px;
    display: grid; place-items: center;
    border-radius: var(--radius);
    border: 1px solid rgba(255, 255, 255, .18);
    color: rgba(255, 255, 255, .85);
    font-size: 14px;
    transition: background .15s, color .15s, border-color .15s;
}
.socials a:hover { background: var(--sun); border-color: var(--sun); color: var(--brand-950); }
.socials--sm a { width: 28px; height: 28px; border: 0; font-size: 13px; }
.socials--sm a:hover { background: transparent; color: var(--sun); }

/* ---------- Header ---------- */
.site-header {
    position: sticky; top: 0; z-index: 100;
    background: #fff;
    border-bottom: 1px solid var(--line);
    transition: box-shadow .2s;
}
.site-header.is-scrolled { box-shadow: 0 6px 20px -12px rgba(15, 27, 45, .25); }
.site-header__inner { display: flex; align-items: center; justify-content: space-between; height: var(--header-h); gap: 24px; }
.brand { display: flex; align-items: center; flex-shrink: 0; }
.brand img { height: 58px; width: auto; }

.nav { height: 100%; }
.nav__list { display: flex; align-items: center; gap: 2px; list-style: none; height: 100%; }
.nav__item { position: relative; display: flex; align-items: center; height: 100%; }
.nav__link {
    position: relative;
    display: flex; align-items: center;
    height: 100%;
    padding: 0 14px;
    font: 500 15px var(--font-body);
    color: var(--ink);
    transition: color .15s;
}
.nav__link::after {
    content: ""; position: absolute; left: 14px; right: 14px; bottom: -1px; height: 2px;
    background: var(--brand); transform: scaleX(0); transition: transform .2s var(--ease);
}
.nav__link:hover, .nav__link.is-active { color: var(--brand); }
.nav__link.is-active::after, .nav__link:hover::after { transform: scaleX(1); }
.has-dropdown > .nav__link { padding-right: 4px; }
.has-dropdown > .nav__link::after { right: 4px; }
.nav__caret { border: 0; background: none; cursor: pointer; color: var(--muted); font-size: 10px; padding: 8px 12px 8px 4px; }
.dropdown {
    position: absolute; top: 100%; left: 0;
    min-width: 220px;
    list-style: none;
    padding: 8px 0;
    background: #fff;
    border: 1px solid var(--line);
    border-top: 2px solid var(--brand);
    border-radius: 0 0 var(--radius) var(--radius);
    box-shadow: var(--shadow);
    opacity: 0; visibility: hidden; transform: translateY(6px);
    transition: opacity .15s, transform .15s, visibility .15s;
}
.has-dropdown:hover .dropdown, .has-dropdown:focus-within .dropdown { opacity: 1; visibility: visible; transform: none; }
.dropdown a { display: block; padding: 9px 18px; color: var(--ink); font-size: 14.5px; }
.dropdown a:hover, .dropdown a.is-active { background: var(--brand-50); color: var(--brand); }
.nav__cta { margin-left: 14px; align-self: center; padding: 10px 18px; font-size: 14.5px; }

.nav-toggle {
    display: none; position: relative;
    width: 44px; height: 44px;
    border: 1px solid var(--line); border-radius: var(--radius);
    background: #fff; cursor: pointer;
}
.nav-toggle span { position: absolute; left: 12px; right: 12px; height: 2px; background: var(--ink); transition: transform .25s, opacity .2s, top .25s; }
.nav-toggle span:nth-child(1) { top: 15px; }
.nav-toggle span:nth-child(2) { top: 21px; }
.nav-toggle span:nth-child(3) { top: 27px; }
.nav-open .nav-toggle span:nth-child(1) { top: 21px; transform: rotate(45deg); }
.nav-open .nav-toggle span:nth-child(2) { opacity: 0; }
.nav-open .nav-toggle span:nth-child(3) { top: 21px; transform: rotate(-45deg); }
.nav-backdrop { display: none; }

/* ---------- Home hero ---------- */
.hero {
    position: relative;
    min-height: clamp(560px, 82vh, 760px);
    display: flex; align-items: center;
    overflow: hidden;
    background: var(--brand-950);
    color: #fff;
}
.hero__slide { position: absolute; inset: 0; opacity: 0; transition: opacity 1s ease; }
.hero__slide.is-active { opacity: 1; }
.hero__slide img { width: 100%; height: 100%; object-fit: cover; }
.hero__slide.is-active img { animation: drift 14s ease-out forwards; }
@keyframes drift { from { transform: scale(1.05); } to { transform: scale(1); } }
.hero__overlay {
    position: absolute; inset: 0;
    background: linear-gradient(90deg, rgba(5, 22, 47, .9) 0%, rgba(5, 22, 47, .7) 45%, rgba(5, 22, 47, .25) 100%);
}
.hero__sun { display: none; }
.hero__content { position: relative; z-index: 2; padding-top: 40px; padding-bottom: 130px; }
.hero__caption { display: none; max-width: 700px; }
.hero__caption.is-active { display: block; animation: fadeUp .7s var(--ease) both; }
@keyframes fadeUp { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: none; } }
.hero__title { color: #fff; font-size: clamp(36px, 5vw, 60px); line-height: 1.12; margin-bottom: 22px; text-wrap: balance; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 12px; }
.hero__controls { position: absolute; z-index: 3; left: 0; right: 0; bottom: 120px; }
.hero__controls .container { display: flex; align-items: center; justify-content: flex-end; gap: 20px; }
.hero__count { font: 500 14px var(--font-body); letter-spacing: .08em; color: rgba(255, 255, 255, .6); }
.hero__count b { color: #fff; font-weight: 600; }
.hero__dots { display: flex; gap: 6px; }
.hero__dot { position: relative; width: 28px; height: 3px; padding: 0; border: 0; background: rgba(255, 255, 255, .3); cursor: pointer; overflow: hidden; }
.hero__dot::after { content: ""; position: absolute; inset: 0; background: var(--sun); transform: scaleX(0); transform-origin: left; }
.hero__dot.is-active::after { animation: progress var(--hero-delay, 7s) linear forwards; }
.hero.is-paused .hero__dot.is-active::after { animation-play-state: paused; }
@keyframes progress { to { transform: scaleX(1); } }
.hero__arrows { display: flex; gap: 8px; }
.hero__arrow {
    width: 44px; height: 44px; border-radius: var(--radius);
    border: 1px solid rgba(255, 255, 255, .35); background: transparent;
    color: #fff; cursor: pointer; transition: background .15s, color .15s;
}
.hero__arrow:hover { background: #fff; color: var(--brand-900); }

.focus-pills { display: flex; flex-wrap: wrap; gap: 8px 22px; list-style: none; margin: 0 0 34px; }
.focus-pills li { display: inline-flex; align-items: center; gap: 8px; color: rgba(255, 255, 255, .88); font-size: 15px; }
.focus-pills i { color: var(--sun); font-size: 13px; }

/* Feature strip overlapping hero */
.features { position: relative; z-index: 5; margin-top: -72px; }
.features__grid {
    display: grid; grid-template-columns: repeat(3, 1fr);
    background: #fff;
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow);
}
.feature-card { padding: 36px 34px; }
.feature-card + .feature-card { border-left: 1px solid var(--line); }
.feature-card h3 { font-size: 21px; margin-bottom: 10px; }
.feature-card p { margin: 0; font-size: 15px; }

/* ---------- Icon tile ---------- */
.icon-tile {
    width: 48px; height: 48px;
    display: grid; place-items: center;
    border-radius: var(--radius);
    background: var(--brand-50);
    color: var(--brand);
    font-size: 19px;
    margin-bottom: 20px;
    flex-shrink: 0;
}
.icon-tile--sun, .icon-tile--leaf { background: var(--brand-50); color: var(--brand); }
.section--dark .icon-tile, .callout .icon-tile, .contact-aside .icon-tile { background: rgba(255, 255, 255, .08); color: var(--sun); }

/* ---------- Split layouts ---------- */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: center; }
.split--wide-text { grid-template-columns: 1.15fr .85fr; }
.split--wide-media { grid-template-columns: .85fr 1.15fr; }
.split--top { align-items: start; }

.media-frame { position: relative; }
.media-frame img { width: 100%; border-radius: var(--radius-lg); object-fit: cover; }
.media-frame__dots, .media-frame__badge { display: none; }

/* ---------- Lists ---------- */
.feature-list { display: grid; border-top: 1px solid var(--line); }
.feature-item { display: flex; gap: 20px; align-items: flex-start; padding: 22px 0; border-bottom: 1px solid var(--line); }
.feature-item .icon-tile { width: 44px; height: 44px; font-size: 17px; margin: 0; }
.feature-item h4 { font-size: 17px; margin-bottom: 4px; }
.feature-item p { margin: 0; font-size: 15px; }

.checklist { list-style: none; display: grid; gap: 14px; }
.checklist li { position: relative; padding-left: 32px; font-size: 15.5px; line-height: 1.65; }
.checklist li::before {
    content: "\f00c"; position: absolute; left: 0; top: 2px;
    width: 20px; height: 20px; border-radius: 50%;
    display: grid; place-items: center;
    background: var(--brand-50); color: var(--brand);
    font: 900 10px "Font Awesome 6 Free";
}
.checklist--warn li::before { content: "\f12a"; background: var(--sun-50); color: var(--sun-600); }

/* ---------- Cards ---------- */
.card-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.card-grid--2 { grid-template-columns: repeat(2, 1fr); }
.card-grid--row { grid-auto-flow: column; grid-template-columns: none; grid-auto-columns: minmax(250px, 1fr); overflow-x: auto; padding-bottom: 6px; scroll-snap-type: x mandatory; }
.card-grid--row > * { scroll-snap-align: start; }
.card {
    display: flex; flex-direction: column;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    overflow: hidden;
    transition: border-color .2s, box-shadow .2s;
}
.card:hover { border-color: var(--line-strong); box-shadow: var(--shadow); }
.card__media { position: relative; display: block; aspect-ratio: 16 / 10; overflow: hidden; background: var(--brand-50); }
.card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease); }
.card:hover .card__media img { transform: scale(1.03); }
.card__tag {
    position: absolute; z-index: 2; left: 14px; top: 14px;
    padding: 4px 10px; border-radius: var(--radius-sm);
    background: #fff; color: var(--brand);
    font: 600 11.5px var(--font-body); letter-spacing: .06em; text-transform: uppercase;
}
.card__body { display: flex; flex-direction: column; flex: 1; padding: 24px 26px 26px; }
.card__title { font-size: 20px; margin-bottom: 10px; }
.card__title a { color: var(--ink); }
.card__title a:hover { color: var(--brand); }
.card__text { flex: 1; font-size: 15px; }
.card__footer { margin-top: 18px; padding-top: 16px; border-top: 1px solid var(--line); }
.card-grid--row .card__title { font-size: 18px; }

.rich > *:last-child { margin-bottom: 0; }
.rich p { margin: 0 0 .9em; }
.rich ul, .rich ol { padding-left: 1.2em; margin: 0 0 .9em; }
.rich li { margin-bottom: .3em; }
.rich img { border-radius: var(--radius); height: auto; }
.rich a { text-decoration: underline; text-underline-offset: 3px; }

/* ---------- CTA band ---------- */
.cta-band {
    position: relative;
    padding: 88px 0;
    background-size: cover; background-position: center;
    color: #fff;
}
.cta-band::before { content: ""; position: absolute; inset: 0; background: rgba(7, 31, 69, .9); }
.cta-band .container { position: relative; display: flex; align-items: center; justify-content: space-between; gap: 30px; flex-wrap: wrap; }
.cta-band__title { color: #fff; font-size: clamp(28px, 3.4vw, 40px); margin: 0; }

.heading-bar { font-size: clamp(24px, 2.6vw, 30px); margin-bottom: 22px; }

.prose p { font-size: 16.5px; }
.prose h2 { font-size: clamp(28px, 3.2vw, 38px); }
.prose h3 { font-size: clamp(21px, 2.2vw, 26px); }

/* ---------- Gallery ---------- */
.gallery-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; }
.gallery-grid--lg { grid-template-columns: repeat(3, 1fr); gap: 16px; }
.gallery-tile { position: relative; display: block; aspect-ratio: 1; overflow: hidden; border-radius: var(--radius); background: var(--brand-50); }
.gallery-grid--lg .gallery-tile { aspect-ratio: 4 / 3; }
.gallery-tile img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease); }
.gallery-tile::after { content: ""; position: absolute; inset: 0; background: rgba(7, 31, 69, .55); opacity: 0; transition: opacity .2s; }
.gallery-tile__icon {
    position: absolute; z-index: 2; left: 50%; top: 50%; width: 40px; height: 40px; margin: -20px 0 0 -20px;
    display: grid; place-items: center; border-radius: var(--radius); background: #fff; color: var(--brand);
    opacity: 0; transition: opacity .2s;
}
.gallery-tile:hover img { transform: scale(1.04); }
.gallery-tile:hover::after, .gallery-tile:hover .gallery-tile__icon { opacity: 1; }

/* ---------- Events ---------- */
.events { display: grid; border-top: 1px solid var(--line); }
.event { display: flex; gap: 20px; align-items: flex-start; padding: 20px 0; border-bottom: 1px solid var(--line); }
.event__date {
    flex-shrink: 0; width: 72px; padding: 10px 6px;
    display: flex; flex-direction: column; align-items: center;
    border-radius: var(--radius); background: var(--brand); color: #fff; text-align: center;
}
.event__day { font: 600 26px/1 var(--font-display); }
.event__month { font: 600 11px/1.3 var(--font-body); letter-spacing: .08em; text-transform: uppercase; opacity: .85; margin-top: 4px; }
.event__body { min-width: 0; }
.event__title { font-size: 16.5px; margin-bottom: 4px; }
.event__meta { display: flex; flex-wrap: wrap; gap: 2px 16px; list-style: none; font-size: 13px; color: var(--muted); margin-bottom: 6px; }
.event__meta i { color: var(--teal); margin-right: 5px; }
.event__text { font-size: 14px; }
.event__text > *:last-child { margin-bottom: 0; }

/* ---------- Video ---------- */
.video-band { position: relative; padding: 130px 0; text-align: center; background-size: cover; background-position: center; }
.video-band::before { content: ""; position: absolute; inset: 0; background: rgba(5, 22, 47, .78); }
.video-band .container { position: relative; }
.video-band h3 { color: #fff; font-size: clamp(26px, 3.2vw, 38px); margin-bottom: 30px; }
.play-btn {
    width: 80px; height: 80px;
    display: inline-grid; place-items: center;
    border-radius: 50%;
    background: var(--sun); color: var(--brand-950); font-size: 24px;
    transition: background .15s;
}
.play-btn i { margin-left: 4px; }
.play-btn:hover { background: #fff; color: var(--brand); }

/* ---------- Logos / partners ---------- */

.partner-grid { display: grid; grid-template-columns: repeat(5, 1fr); border: 1px solid var(--line); border-radius: var(--radius-lg); background: #fff; }
.partner-card { padding: 30px 22px; text-align: center; }
.partner-card + .partner-card { border-left: 1px solid var(--line); }
.partner-card .icon-tile { width: 40px; height: 40px; font-size: 16px; margin: 0 auto 16px; }
.partner-card h4 { font-size: 15.5px; line-height: 1.35; margin-bottom: 4px; }
.partner-card p { margin: 0; font-size: 13px; color: var(--muted); line-height: 1.5; }

/* ---------- Inner page hero ---------- */
.page-hero { position: relative; min-height: 300px; display: flex; align-items: flex-end; overflow: hidden; color: #fff; background: var(--brand-950); }
.page-hero__bg { position: absolute; inset: 0; }
.page-hero__bg img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transition: opacity 1.2s ease; }
.page-hero__bg img.is-active { opacity: 1; }
.page-hero::before { content: ""; position: absolute; inset: 0; z-index: 1; background: linear-gradient(90deg, rgba(5, 22, 47, .92) 0%, rgba(5, 22, 47, .72) 60%, rgba(5, 22, 47, .5) 100%); }
.page-hero .container { position: relative; z-index: 2; padding-top: 70px; padding-bottom: 56px; }
.page-hero__title { color: #fff; font-size: clamp(34px, 4.4vw, 52px); margin-bottom: 12px; }
.page-hero__wave { display: none; }
.breadcrumb { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; list-style: none; font-size: 14px; }
.breadcrumb li { display: flex; align-items: center; gap: 10px; color: var(--sun); }
.breadcrumb li + li::before { content: "/"; color: rgba(255, 255, 255, .4); }
.breadcrumb a { color: rgba(255, 255, 255, .8); }
.breadcrumb a:hover { color: #fff; }
.breadcrumb .fa-house { display: none; }

/* ---------- Feature rows (What we do / Mission) ---------- */
.feature-row + .feature-row { margin-top: 96px; }
.feature-row__num { display: block; margin-bottom: 8px; color: var(--teal); font: 600 13px var(--font-body); letter-spacing: .12em; }
.feature-row h3 { font-size: clamp(26px, 2.8vw, 34px); margin-bottom: 18px; }
.feature-row .media-frame img { aspect-ratio: 4 / 3.3; }

.chart-frame { padding: 16px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg); }
.chart-frame img { width: 100%; }

/* ---------- Callout ---------- */
.callout { position: relative; padding: 36px 40px; border-radius: var(--radius-lg); background: var(--brand-900); color: rgba(255, 255, 255, .8); }
.callout h3 { color: #fff; font-size: clamp(21px, 2.3vw, 26px); margin: 0; }
.callout i { color: var(--sun); }

/* ---------- Detailed rows (services) ---------- */
.chip-nav { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; margin: -16px 0 56px; }
.chip-nav a {
    display: inline-flex; align-items: center; gap: 10px;
    padding: 9px 14px; border: 1px solid var(--line); border-radius: var(--radius);
    color: var(--ink); font-size: 14px; font-weight: 500; background: #fff;
    transition: border-color .15s, color .15s;
}
.chip-nav a span { color: var(--muted); font-weight: 600; font-size: 12.5px; }
.chip-nav a:hover { border-color: var(--brand); color: var(--brand); }

.detail-row { display: grid; grid-template-columns: 1fr 1.1fr; gap: 64px; align-items: center; scroll-margin-top: 100px; }
.detail-row + .detail-row { margin-top: 72px; padding-top: 72px; border-top: 1px solid var(--line); }
.detail-row:nth-child(even) .detail-row__media { order: 2; }
.detail-row__media img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: var(--radius-lg); }
.detail-row__num { display: none; }
.detail-row__kicker { display: block; margin-bottom: 10px; color: var(--teal); font: 600 12.5px var(--font-body); letter-spacing: .12em; text-transform: uppercase; }
.detail-row h3 { font-size: clamp(26px, 2.8vw, 34px); margin-bottom: 16px; }
.detail-row .rich p { font-size: 16px; }
.detail-row .rich ul { list-style: none; padding: 0; margin: 20px 0 0; display: grid; gap: 12px; border-top: 1px solid var(--line); padding-top: 20px; }
.detail-row .rich li { position: relative; margin: 0; padding-left: 30px; font-size: 15px; line-height: 1.6; }
.detail-row .rich li::before {
    content: "\f00c"; position: absolute; left: 0; top: 2px;
    width: 20px; height: 20px; border-radius: 50%;
    display: grid; place-items: center;
    background: var(--brand-50); color: var(--brand);
    font: 900 10px "Font Awesome 6 Free";
}
.detail-row { align-items: start; }
.detail-row__media { position: sticky; top: 110px; }

/* ---------- Stats ---------- */
.stat-grid { display: grid; grid-template-columns: repeat(3, 1fr); border: 1px solid var(--line); border-radius: var(--radius-lg); background: #fff; }
.stat-card { padding: 28px 30px; }
.stat-card + .stat-card { border-left: 1px solid var(--line); }
.stat-card__value { display: block; color: var(--brand); font: 600 clamp(34px, 3.6vw, 44px)/1 var(--font-display); margin-bottom: 10px; }
.stat-card__value small { font-size: .5em; margin-left: 4px; color: var(--muted); font-family: var(--font-body); font-weight: 600; }
.stat-card__label { margin: 0; font-size: 14.5px; }

.stats-band { padding: 56px 0; background: var(--brand-900); }
.stats-band .container { display: grid; grid-template-columns: repeat(4, 1fr); }
.stat { padding: 6px 28px; }
.stat + .stat { border-left: 1px solid rgba(255, 255, 255, .12); }
.stat__value { display: block; color: #fff; font: 600 clamp(36px, 4vw, 48px)/1 var(--font-display); margin-bottom: 10px; }
.stat__value span { color: var(--sun); font-size: .5em; margin-left: 3px; font-family: var(--font-body); font-weight: 600; }
.stat__label { margin: 0; color: rgba(255, 255, 255, .7); font-size: 14px; line-height: 1.55; }

/* ---------- Advantage / dark cards ---------- */
.adv-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.adv-grid--2 { grid-template-columns: repeat(2, 1fr); }
.adv-card { position: relative; padding: 30px 28px; border-radius: var(--radius-lg); background: rgba(255, 255, 255, .04); border: 1px solid rgba(255, 255, 255, .1); transition: border-color .2s, background .2s; }
.adv-card:hover { border-color: rgba(255, 255, 255, .22); background: rgba(255, 255, 255, .06); }
.adv-card h4 { color: #fff; font-size: 18px; margin-bottom: 8px; }
.adv-card p { margin: 0; color: rgba(255, 255, 255, .72); font-size: 15px; }
.adv-card__no { display: none; }
.challenge-head { display: flex; align-items: center; gap: 16px; max-width: 820px; margin: 64px 0 24px; }
.challenge-head .icon-tile { margin: 0; }
.challenge-head p { margin: 0; color: rgba(255, 255, 255, .85); font-size: 17px; }

/* ---------- News ---------- */
.news-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.news-card {
    display: flex; flex-direction: column;
    padding: 26px 26px 22px;
    background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg);
    color: var(--ink);
    transition: border-color .2s, box-shadow .2s;
}
.news-card:hover { border-color: var(--line-strong); box-shadow: var(--shadow); color: var(--ink); }
.news-card__top { display: flex; align-items: center; justify-content: space-between; margin-bottom: 18px; }
.news-card__source { display: inline-flex; align-items: center; gap: 8px; color: var(--teal); font: 600 12px var(--font-body); letter-spacing: .1em; text-transform: uppercase; }
.news-card__source--alt { color: var(--sun-600); }
.news-card__icon { display: none; }
.news-card__title { flex: 1; font: 600 18px/1.6 var(--font-body); margin: 0 0 20px; }
.news-card__more { display: inline-flex; align-items: center; gap: 8px; color: var(--brand); font-size: 14px; font-weight: 600; }
.news-grid > :first-child { grid-column: span 2; background: var(--brand-900); border-color: var(--brand-900); color: #fff; }
.news-grid > :first-child:hover { color: #fff; }
.news-grid > :first-child .news-card__title { color: #fff; font-size: 22px; }
.news-grid > :first-child .news-card__source { color: var(--sun); }
.news-grid > :first-child .news-card__more { color: var(--sun); }

/* ---------- Photo cards ---------- */
.photo-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.photo-card { position: relative; display: block; aspect-ratio: 4 / 3.1; border-radius: var(--radius-lg); overflow: hidden; background: var(--brand-900); }
.photo-card img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease); }
.photo-card:hover img { transform: scale(1.03); }
.photo-card::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 45%, rgba(5, 22, 47, .9)); }
.photo-card__caption { position: absolute; z-index: 2; left: 0; right: 0; bottom: 0; padding: 20px 22px; }
.photo-card__caption h3 { color: #fff; font: 600 15.5px/1.45 var(--font-body); margin: 0; }
.photo-card__zoom { display: none; }
.photo-grid > :first-child { grid-column: span 2; grid-row: span 2; aspect-ratio: auto; }
.photo-grid > :first-child .photo-card__caption h3 { font-size: 19px; }

/* ---------- Contact ---------- */
.contact-wrap { display: grid; grid-template-columns: .85fr 1.15fr; background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg); box-shadow: var(--shadow); overflow: hidden; position: relative; z-index: 3; margin-top: -40px; }
.contact-aside { padding: 46px 42px; background: var(--brand-900); color: rgba(255, 255, 255, .75); }
.contact-aside h3 { color: #fff; font-size: clamp(26px, 2.8vw, 32px); margin-bottom: 26px; }
.contact-lines { list-style: none; display: grid; margin-bottom: 32px; border-top: 1px solid rgba(255, 255, 255, .1); }
.contact-line { display: flex; gap: 16px; align-items: flex-start; padding: 18px 0; border-bottom: 1px solid rgba(255, 255, 255, .1); }
.contact-line .icon-tile { width: 40px; height: 40px; font-size: 16px; margin: 0; }
.contact-line h4 { color: #fff; font-size: 15px; margin: 0 0 2px; }
.contact-line p, .contact-line a { margin: 0; color: rgba(255, 255, 255, .75); font-size: 14.5px; word-break: break-word; }
.contact-line a:hover { color: var(--sun); }
.contact-aside__follow { font-size: 12.5px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: rgba(255, 255, 255, .5); margin-bottom: 12px; }
.contact-form { padding: 46px; }

.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px 20px; }
.form-field--full { grid-column: 1 / -1; }
.form-field label { display: block; margin-bottom: 6px; font-size: 14px; font-weight: 500; color: var(--ink); }
.form-field label small { color: #c0392b; font-size: 14px; }
.form-control {
    width: 100%; padding: 12px 14px;
    font: 400 15px var(--font-body); color: var(--ink);
    background: #fff; border: 1px solid var(--line-strong); border-radius: var(--radius);
    transition: border-color .15s, box-shadow .15s;
    -webkit-appearance: none;
}
.form-control::placeholder { color: #98a3b3; }
.form-control:focus { outline: none; border-color: var(--brand); box-shadow: 0 0 0 3px rgba(10, 74, 162, .14); }
textarea.form-control { resize: vertical; min-height: 140px; }
.form-error { margin: 6px 0 0; font-size: 13px; color: #c0392b; }
.alert-success { padding: 12px 16px; margin-bottom: 18px; border-radius: var(--radius); background: #e6f4ec; color: #1b6b40; }

.map-block { position: relative; height: 460px; background: var(--bg-soft); }
.map-block iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.map-card {
    position: absolute; z-index: 2; top: 50%; transform: translateY(-50%);
    left: max(24px, calc((100vw - var(--container)) / 2 + 24px));
    width: min(360px, calc(100% - 48px));
    padding: 28px; background: #fff; border-radius: var(--radius-lg); box-shadow: var(--shadow);
}
.map-card .icon-tile { width: 42px; height: 42px; font-size: 17px; margin-bottom: 16px; }
.map-card h4 { font-size: 18px; margin-bottom: 6px; }
.map-card p { margin-bottom: 18px; font-size: 15px; }

/* ---------- Footer ---------- */
.site-footer { background: var(--brand-950); color: rgba(255, 255, 255, .7); }
.footer__main { display: grid; grid-template-columns: 1.3fr .75fr .8fr 1.3fr; gap: 52px; padding: 72px 0 60px; }
.footer__logo { display: inline-block; margin-bottom: 18px; }
.footer__logo img { width: 190px; height: auto; }
.footer__tagline { color: var(--sun); font-size: 12.5px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; margin-bottom: 10px; }
.footer__about { font-size: 14.5px; line-height: 1.7; margin-bottom: 14px; max-width: 360px; }
.footer__more { display: inline-flex; align-items: center; gap: 8px; color: var(--sun); font-size: 14px; font-weight: 600; }
.footer__more:hover { color: #fff; }
.footer__title { color: #fff; font: 600 13px var(--font-body); letter-spacing: .12em; text-transform: uppercase; margin-bottom: 20px; }
.footer__title--sub { margin-top: 32px; margin-bottom: 14px; }
.footer__meta { margin: 0; display: grid; gap: 8px; }
.footer__meta div { display: flex; gap: 10px; font-size: 14.5px; }
.footer__meta dt { color: rgba(255, 255, 255, .5); min-width: 64px; }
.footer__meta dd { margin: 0; color: rgba(255, 255, 255, .8); }
.footer__contact { list-style: none; display: grid; gap: 14px; }
.footer__contact li { display: flex; gap: 12px; align-items: flex-start; font-size: 14.5px; }
.footer__contact i { width: 16px; margin-top: 5px; color: var(--sun); font-size: 13px; text-align: center; flex-shrink: 0; }
.footer__contact a, .footer__text { color: rgba(255, 255, 255, .75); word-break: break-word; }
.footer__contact a:hover { color: #fff; }
.footer__links { list-style: none; display: grid; gap: 10px; }
.footer__links a { color: rgba(255, 255, 255, .72); font-size: 14.5px; }
.footer__links a:hover { color: #fff; }
.footer__bottom { border-top: 1px solid rgba(255, 255, 255, .1); padding: 22px 0; font-size: 13.5px; }
.footer__bottom .container { text-align: center; }
.footer__bottom p { margin: 0; }

/* ---------- Back to top ---------- */
.to-top {
    position: fixed; right: 24px; bottom: 24px; z-index: 90;
    width: 44px; height: 44px; border: 0; border-radius: var(--radius);
    background: var(--brand); color: #fff; font-size: 15px; cursor: pointer;
    box-shadow: var(--shadow);
    opacity: 0; visibility: hidden; transition: opacity .2s, visibility .2s, background .15s;
}
.to-top.is-visible { opacity: 1; visibility: visible; }
.to-top:hover { background: var(--brand-700); }

/* ---------- Lightbox ---------- */
.lightbox { position: fixed; inset: 0; z-index: 1000; display: flex; align-items: center; justify-content: center; padding: 70px 80px; background: rgba(5, 14, 28, .94); opacity: 0; visibility: hidden; transition: opacity .2s, visibility .2s; }
.lightbox.is-open { opacity: 1; visibility: visible; }
.lightbox__stage { max-width: 100%; max-height: 100%; display: flex; }
.lightbox__stage img, .lightbox__stage video { max-width: min(1200px, 100%); max-height: calc(100vh - 140px); border-radius: var(--radius); }
.lightbox__btn { position: absolute; width: 44px; height: 44px; border-radius: var(--radius); border: 1px solid rgba(255, 255, 255, .25); background: transparent; color: #fff; font-size: 16px; cursor: pointer; transition: background .15s, color .15s; }
.lightbox__btn:hover { background: #fff; color: var(--brand-900); }
.lightbox__close { top: 18px; right: 18px; }
.lightbox__prev { left: 18px; top: 50%; margin-top: -22px; }
.lightbox__next { right: 18px; top: 50%; margin-top: -22px; }
.lightbox__count { position: absolute; bottom: 22px; left: 50%; transform: translateX(-50%); color: rgba(255, 255, 255, .65); font-size: 13px; letter-spacing: .1em; }

/* ---------- Company profile blocks ---------- */
.icon-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.icon-grid--3 { grid-template-columns: repeat(3, 1fr); }
.icon-card { padding: 28px 26px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg); transition: border-color .2s; }
.icon-card:hover { border-color: var(--brand-100); }
.icon-card .icon-tile { margin-bottom: 18px; }
.icon-card h4 { font-size: 17px; line-height: 1.35; margin-bottom: 8px; }
.icon-card p { margin: 0; font-size: 14.5px; line-height: 1.65; }
.icon-card__no { display: none; }

.project-feature { display: grid; grid-template-columns: 1fr 1fr; background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg); overflow: hidden; }
.project-feature + .project-feature { margin-top: 32px; }
.project-feature:nth-child(even) .project-feature__media { order: 2; }
.project-feature__media { position: relative; min-height: 360px; background: var(--brand-900); }
.project-feature__media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.project-feature__media::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 50%, rgba(5, 22, 47, .8)); }
.project-feature__badge { position: absolute; z-index: 2; left: 24px; right: 24px; bottom: 22px; color: #fff; }
.project-feature__badge b { display: block; color: var(--sun); font: 600 clamp(30px, 3.4vw, 40px)/1.05 var(--font-display); }
.project-feature__badge span { font-size: 14px; opacity: .9; }
.project-feature__body { padding: 40px 42px; }
.project-feature__tags { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 14px; }
.project-feature h3 { font-size: clamp(22px, 2.2vw, 26px); line-height: 1.3; margin-bottom: 14px; }
.tag { display: inline-flex; align-items: center; gap: 6px; padding: 4px 10px; border-radius: var(--radius-sm); background: var(--brand-50); color: var(--brand); font: 600 12px var(--font-body); }
.tag--sun { background: var(--sun-50); color: #8a6200; }
.tag--dark { background: var(--brand-900); color: #fff; }
.facts { display: grid; grid-template-columns: 1fr 1fr; gap: 14px 22px; margin: 22px 0 0; padding: 20px 0 0; border-top: 1px solid var(--line); }
.facts div { min-width: 0; }
.facts dt { font-size: 11.5px; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); margin-bottom: 2px; }
.facts dd { margin: 0; color: var(--ink); font-size: 14.5px; line-height: 1.5; }
.facts .facts__wide { grid-column: 1 / -1; }

.data-table-wrap { background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg); overflow: hidden; }
.data-table { width: 100%; border-collapse: collapse; font-size: 14.5px; }
.data-table th { text-align: left; padding: 14px 20px; background: var(--bg-soft); color: var(--muted); border-bottom: 1px solid var(--line); font-size: 12px; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; }
.data-table td { padding: 16px 20px; border-top: 1px solid var(--line); vertical-align: top; }
.data-table tbody tr:first-child td { border-top: 0; }
.data-table tbody tr:hover { background: #fafbfd; }
.data-table td:first-child { color: var(--ink); font-weight: 500; }
.data-table td.nowrap { white-space: nowrap; }
.capacity { display: inline-block; padding: 3px 9px; border-radius: var(--radius-sm); background: var(--brand-50); color: var(--brand); font-size: 13px; font-weight: 600; white-space: nowrap; }
.capacity--na { background: transparent; color: var(--muted); }

.chips { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; }
.chips li { padding: 5px 12px; border-radius: var(--radius-sm); background: #fff; border: 1px solid var(--line); font-size: 13.5px; color: var(--ink); }
.chips i { color: var(--teal); margin-right: 6px; font-size: 12px; }
.chips--dark li { background: transparent; border-color: rgba(255, 255, 255, .2); color: #fff; }

.glance { display: grid; grid-template-columns: repeat(3, 1fr); border: 1px solid var(--line); border-radius: var(--radius-lg); background: #fff; margin: 0; overflow: hidden; }
.glance__item { display: flex; gap: 14px; align-items: flex-start; padding: 22px 24px; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.glance__item:nth-child(3n) { border-right: 0; }
.glance__item:nth-last-child(-n + 3) { border-bottom: 0; }
.glance__item .icon-tile { width: 40px; height: 40px; font-size: 16px; margin: 0; }
.glance__item dt { font-size: 11.5px; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); margin-bottom: 2px; }
.glance__item dd { margin: 0; color: var(--ink); font-weight: 500; line-height: 1.5; }

.quote-card { padding: 40px 48px; border-left: 4px solid var(--sun); border-radius: 0 var(--radius-lg) var(--radius-lg) 0; background: var(--brand-50); }
.quote-card small { display: block; color: var(--teal); font-size: 12.5px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; margin-bottom: 10px; }
.quote-card p { margin: 0; color: var(--brand-900); font: 500 clamp(20px, 2.2vw, 26px)/1.45 var(--font-display); font-style: italic; }

.team-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.team-card { padding: 28px 24px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg); }
.avatar { width: 64px; height: 64px; margin: 0 0 16px; display: grid; place-items: center; border-radius: 50%; background: var(--brand-50); color: var(--brand); font: 600 20px var(--font-display); }
.team-card h4 { font-size: 17px; margin-bottom: 2px; }
.team-card__role { display: block; color: var(--teal); font-size: 14px; font-weight: 500; margin-bottom: 10px; }
.team-card p { margin: 0; font-size: 13.5px; color: var(--muted); line-height: 1.6; }

.people { display: grid; grid-template-columns: repeat(2, 1fr); list-style: none; border-top: 1px solid var(--line); }
.person { display: flex; align-items: center; gap: 14px; padding: 14px 0; border-bottom: 1px solid var(--line); }
.person .avatar { width: 40px; height: 40px; margin: 0; font-size: 14px; flex-shrink: 0; }
.person__name { display: block; color: var(--ink); font-size: 15px; font-weight: 600; }
.person__role { display: block; font-size: 13.5px; color: var(--body); line-height: 1.4; }
.person__since { margin-left: auto; flex-shrink: 0; color: var(--muted); font-size: 12.5px; font-weight: 500; }

.workforce { display: grid; gap: 14px; }
.workforce__row { display: grid; grid-template-columns: 1fr auto; gap: 6px 14px; align-items: center; }
.workforce__row span { color: rgba(255, 255, 255, .82); font-size: 14px; }
.workforce__row b { color: #fff; font-size: 15px; }
.workforce__bar { grid-column: 1 / -1; height: 6px; border-radius: 3px; background: rgba(255, 255, 255, .1); overflow: hidden; }
.workforce__bar i { display: block; height: 100%; background: var(--sun); width: 0; transition: width 1.2s var(--ease); }
.is-visible .workforce__bar i, html:not(.js) .workforce__bar i { width: var(--w); }

.mini-list { list-style: none; display: grid; border-top: 1px solid var(--line); }
.mini-list > li { display: flex; gap: 14px; padding: 16px 0; border-bottom: 1px solid var(--line); }
.mini-list > li > i { width: 30px; height: 30px; flex-shrink: 0; display: grid; place-items: center; border-radius: var(--radius); background: var(--brand-50); color: var(--brand); font-size: 13px; }
.mini-list h5 { font-size: 15.5px; margin: 0 0 3px; }
.mini-list p { margin: 0; font-size: 14px; line-height: 1.6; }

.steps { display: grid; grid-template-columns: repeat(5, 1fr); gap: 24px; list-style: none; counter-reset: step; position: relative; }
.steps::before { content: ""; position: absolute; left: 28px; right: 10%; top: 27px; height: 1px; background: rgba(255, 255, 255, .18); }
.step { position: relative; counter-increment: step; }
.step__dot { position: relative; z-index: 1; width: 56px; height: 56px; margin-bottom: 18px; display: grid; place-items: center; border-radius: 50%; background: var(--brand-800); border: 1px solid rgba(255, 255, 255, .2); color: var(--sun); font-size: 20px; }
.step__dot::after { content: counter(step); position: absolute; right: -6px; top: -6px; width: 22px; height: 22px; border-radius: 50%; display: grid; place-items: center; background: var(--sun); color: var(--brand-950); font: 700 11px var(--font-body); }
.step h4 { color: #fff; font-size: 16px; margin-bottom: 6px; }
.step p { margin: 0; font-size: 14px; color: rgba(255, 255, 255, .68); line-height: 1.6; }

/* ---------- Scroll reveal: one motion for every block ----------
   Blocks fade up 16px over .7s; items inside a grid get a small stagger
   (set by renewgen.js). Keep this list in sync with REVEAL in renewgen.js. */
.js .section-head,
.js .page-hero .container,
.js .split > *,
.js .detail-row > *,
.js .project-feature,
.js .container > .callout,
.js .container > .quote-card,
.js .container > .chart-frame,
.js .container > .prose,
.js .container > .data-table-wrap,
.js .container > .contact-wrap,
.js .container > .chip-nav,
.js .container > .challenge-head,
.js .cta-band .container,
.js .video-band .container,
.js .container > .card-grid > *,
.js .container > .icon-grid > *,
.js .container > .adv-grid > *,
.js .container > .news-grid > *,
.js .container > .photo-grid > *,
.js .container > .gallery-grid > *,
.js .container > .team-grid > *,
.js .container > .partner-grid > *,
.js .container > .features__grid > *,
.js .container > .stat-grid > *,
.js .container > .steps > *,
.js .container > .glance > *,
.js .stats-band .container > * {
    opacity: 0; transform: translateY(16px);
    transition: opacity .7s var(--ease), transform .7s var(--ease);
    transition-delay: var(--d, 0s);
}
.js .is-visible { opacity: 1 !important; transform: none !important; }

/* ---------- Responsive ---------- */
@media (max-width: 1150px) {
    .nav__link { padding: 0 10px; font-size: 14.5px; }
    .nav__link::after { left: 10px; right: 10px; }
    .icon-grid { grid-template-columns: repeat(2, 1fr); }
    .partner-grid { grid-template-columns: repeat(3, 1fr); }
    .partner-card:nth-child(4) { border-left: 0; }
    .partner-card:nth-child(n + 4) { border-top: 1px solid var(--line); }
    .team-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 991px) {
    :root { --header-h: 72px; }
    .brand img { height: 52px; }
    .nav-toggle { display: block; z-index: 102; }
    .nav {
        position: fixed; top: 0; right: 0; bottom: 0; z-index: 101;
        height: auto;
        width: min(340px, 86vw);
        padding: 90px 20px 30px;
        background: #fff;
        box-shadow: -20px 0 40px -20px rgba(5, 22, 47, .4);
        transform: translateX(100%);
        transition: transform .3s var(--ease);
        overflow-y: auto;
    }
    .nav-open .nav { transform: none; }
    .nav-backdrop { display: block; position: fixed; inset: 0; z-index: 99; background: rgba(5, 22, 47, .5); opacity: 0; visibility: hidden; transition: opacity .2s, visibility .2s; }
    .nav-open .nav-backdrop { opacity: 1; visibility: visible; }
    .nav-open { overflow: hidden; }
    .nav__list { flex-direction: column; align-items: stretch; height: auto; gap: 0; }
    .nav__item { flex-wrap: wrap; height: auto; border-bottom: 1px solid var(--line); }
    .nav__item:last-child { border-bottom: 0; }
    .nav__link { flex: 1; height: auto; padding: 14px 6px; font-size: 16px; }
    .nav__link::after { display: none; }
    .has-dropdown > .nav__link { padding-right: 6px; }
    .nav__caret { padding: 14px 8px; font-size: 12px; }
    .has-dropdown.is-open .nav__caret { transform: rotate(180deg); }
    .dropdown { position: static; flex-basis: 100%; opacity: 1; visibility: visible; transform: none; box-shadow: none; border: 0; border-radius: 0; padding: 0; max-height: 0; overflow: hidden; transition: max-height .3s var(--ease); }
    .has-dropdown.is-open .dropdown { max-height: 240px; padding-bottom: 8px; }
    .dropdown a { padding: 9px 16px; }
    .nav__cta { margin: 20px 0 0; width: 100%; padding: 14px; }

    .section { padding: 76px 0; }
    .features__grid { grid-template-columns: 1fr; }
    .feature-card + .feature-card { border-left: 0; border-top: 1px solid var(--line); }
    .card-grid, .news-grid, .photo-grid, .adv-grid { grid-template-columns: 1fr 1fr; }
    .split, .split--wide-text, .split--wide-media { grid-template-columns: 1fr; gap: 44px; }
    .split > .split__media--first-mobile { order: -1; }
    .detail-row { grid-template-columns: 1fr; gap: 32px; }
    .detail-row:nth-child(even) .detail-row__media { order: 0; }
    .detail-row__media { position: static; }
    .stats-band .container { grid-template-columns: 1fr 1fr; row-gap: 34px; }
    .stat:nth-child(3) { border-left: 0; }
    .stat-grid { grid-template-columns: 1fr; }
    .stat-card + .stat-card { border-left: 0; border-top: 1px solid var(--line); }
    .project-feature { grid-template-columns: 1fr; }
    .project-feature:nth-child(even) .project-feature__media { order: 0; }
    .project-feature__media { min-height: 260px; }
    .glance { grid-template-columns: 1fr 1fr; }
    .glance__item { border-right: 0; border-bottom: 1px solid var(--line) !important; }
    .glance__item:nth-child(odd) { border-right: 1px solid var(--line); }
    .people { grid-template-columns: 1fr; }
    .steps { grid-template-columns: 1fr 1fr; row-gap: 36px; }
    .steps::before { display: none; }
    .contact-wrap { grid-template-columns: 1fr; }
    .map-card { top: auto; bottom: 20px; transform: none; }
    .footer__main { grid-template-columns: 1fr 1fr; gap: 40px; }
    .footer__brand { grid-column: 1 / -1; }
    .data-table thead { display: none; }
    .data-table, .data-table tbody, .data-table tr, .data-table td { display: block; width: 100%; }
    .data-table tr { padding: 16px 18px; border-top: 1px solid var(--line); }
    .data-table tr:first-child { border-top: 0; }
    .data-table td { border: 0; padding: 3px 0; }
    .data-table td[data-label]::before { content: attr(data-label) ": "; font-weight: 600; color: var(--muted); font-size: 12px; letter-spacing: .06em; text-transform: uppercase; }
    .feature-row + .feature-row { margin-top: 72px; }
}

@media (max-width: 767px) {
    body { font-size: 15.5px; }
    .container { padding: 0 18px; }
    .topbar__inner { justify-content: center; padding: 6px 0; }
    .topbar .socials { display: none; }
    .topbar__contact { justify-content: center; gap: 2px 18px; }
    .section { padding: 64px 0; }
    .section-head { margin-bottom: 36px; }
    .hero { min-height: 580px; }
    .hero__content { padding-bottom: 140px; }
    .hero__controls { bottom: 100px; }
    .hero__controls .container { justify-content: space-between; }
    .hero__arrows { display: none; }
    .features { margin-top: -56px; }
    .card-grid, .card-grid--2, .news-grid, .photo-grid, .adv-grid, .adv-grid--2, .icon-grid, .icon-grid--3, .team-grid, .glance, .partner-grid { grid-template-columns: 1fr; }
    .news-grid > :first-child, .photo-grid > :first-child { grid-column: auto; grid-row: auto; }
    .photo-grid > :first-child { aspect-ratio: 4 / 3.1; }
    .partner-card + .partner-card { border-left: 0; border-top: 1px solid var(--line); }
    .glance__item:nth-child(odd) { border-right: 0; }
    .gallery-grid { grid-template-columns: repeat(3, 1fr); }
    .gallery-grid--lg { grid-template-columns: 1fr 1fr; gap: 10px; }
    .stats-band .container { grid-template-columns: 1fr; }
    .stat + .stat { border-left: 0; border-top: 1px solid rgba(255, 255, 255, .12); padding-top: 24px; }
    .steps { grid-template-columns: 1fr; }
    .page-hero { min-height: 240px; }
    .page-hero .container { padding-top: 50px; padding-bottom: 44px; }
    .contact-aside, .contact-form { padding: 32px 22px; }
    .contact-wrap { margin-top: -24px; }
    .form-grid { grid-template-columns: 1fr; }
    .project-feature__body { padding: 28px 22px; }
    .facts { grid-template-columns: 1fr; }
    .quote-card { padding: 28px 24px; }
    .cta-band .container { flex-direction: column; align-items: flex-start; }
    .map-block { height: 520px; }
    .map-card { left: 16px; right: 16px; width: auto; bottom: 16px; padding: 22px; }
    .footer__main { grid-template-columns: 1fr; padding: 60px 0 40px; }
        .callout { padding: 28px 22px; }
    .person__since { display: none; }
    .lightbox { padding: 70px 12px; }
    .lightbox__prev, .lightbox__next { top: auto; bottom: 14px; margin: 0; }
    .to-top { right: 14px; bottom: 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; }
}
