/* =====================================================================
   Apps Portal · Diresaun Aplikasaun, TIC TIMOR I.P.
   Public website design: "Tech Night" (dark, cyan #22d3ee → indigo #6366f1). Fonts: Space Grotesk + Inter.
   ===================================================================== */

:root {
    --navy: #151635;
    --navy-2: #22244f;
    --navy-soft: #eef0f7;
    --red: #d61523;
    --red-dark: #b0101b;
    --red-soft: #fdecee;
    --gold: #f2b705;
    --ink: #1c1d33;
    --text: #4a4c63;
    --muted: #7a7d93;
    --line: #e6e8ef;
    --bg-soft: #f6f7fb;
    --white: #fff;

    --radius: 14px;
    --radius-sm: 8px;
    --shadow-sm: 0 1px 3px rgba(21, 22, 53, .06), 0 1px 2px rgba(21, 22, 53, .04);
    --shadow: 0 10px 30px rgba(21, 22, 53, .08);
    --shadow-lg: 0 24px 60px rgba(21, 22, 53, .16);
    --ease: cubic-bezier(.2, .7, .2, 1);

    --container: 1200px;
    --gutter: 24px;
    --header-h: 76px;
    --font: "Plus Jakarta Sans", system-ui, -apple-system, "Segoe UI", Roboto, Arial, 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);
    font-size: 16px;
    line-height: 1.65;
    color: var(--text);
    background: var(--white);
    -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }

a { color: var(--red); text-decoration: none; transition: color .2s ease; }
a:hover { color: var(--red-dark); }

h1, h2, h3, h4, h5 { color: var(--ink); line-height: 1.2; margin: 0 0 .5em; font-weight: 700; letter-spacing: -.01em; }

p { margin: 0 0 1em; }

button, input, select, textarea { font: inherit; }

:focus-visible { outline: 3px solid rgba(214, 21, 35, .45); outline-offset: 2px; border-radius: 4px; }

.container { width: 100%; max-width: calc(var(--container) + var(--gutter) * 2); margin: 0 auto; padding: 0 var(--gutter); }

.skip-link {
    position: absolute; left: 12px; top: -60px; z-index: 1000;
    background: var(--navy); color: #fff; padding: 10px 16px; border-radius: var(--radius-sm);
}
.skip-link:focus { top: 12px; color: #fff; }

.muted { color: var(--muted); }

[hidden] { display: none !important; }

/* ---------- Buttons ---------- */
.btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 8px;
    padding: 11px 20px; border-radius: 999px; border: 2px solid transparent;
    font-weight: 700; font-size: 15px; line-height: 1.2; cursor: pointer; white-space: nowrap;
    transition: background .2s ease, color .2s ease, border-color .2s ease, transform .2s var(--ease), box-shadow .2s ease;
}
.btn i { transition: transform .2s var(--ease); }
.btn:hover i.fa-long-arrow-right { transform: translateX(3px); }
.btn-lg { padding: 15px 28px; font-size: 16px; }
.btn-primary { background: var(--red); color: #fff; box-shadow: 0 8px 20px rgba(214, 21, 35, .25); }
.btn-primary:hover { background: var(--red-dark); color: #fff; transform: translateY(-1px); }
.btn-ghost { background: var(--navy-soft); color: var(--navy); }
.btn-ghost:hover { background: var(--navy); color: #fff; }
.btn-outline { border-color: var(--line); color: var(--navy); background: #fff; }
.btn-outline:hover { border-color: var(--navy); color: var(--navy); }
.btn-white { background: #fff; color: var(--red); }
.btn-white:hover { background: var(--navy); color: #fff; }
.btn-outline-white { border-color: rgba(255, 255, 255, .5); color: #fff; }
.btn-outline-white:hover { border-color: #fff; background: rgba(255, 255, 255, .1); color: #fff; }
.btn-light { background: #fff; color: var(--navy); }
.btn-light:hover { background: var(--red); color: #fff; }

.icon-btn, .round-btn {
    display: inline-flex; align-items: center; justify-content: center;
    width: 44px; height: 44px; border-radius: 50%; border: 1px solid var(--line);
    background: #fff; color: var(--navy); cursor: pointer; font-size: 17px;
    transition: background .2s ease, color .2s ease, border-color .2s ease;
}
.icon-btn:hover, .round-btn:hover { background: var(--navy); border-color: var(--navy); color: #fff; }

.link-arrow { font-weight: 700; }

/* ---------- Labels ---------- */
.eyebrow {
    display: inline-flex; align-items: center; gap: 10px;
    font-size: 13px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--red);
    margin-bottom: 10px;
}
.eyebrow-line::before { content: ""; width: 28px; height: 3px; border-radius: 2px; background: var(--red); }

.tag {
    display: inline-block; padding: 4px 10px; border-radius: 999px;
    background: var(--red-soft); color: var(--red); font-size: 12px; font-weight: 700;
}

.hl { position: relative; color: var(--red); white-space: nowrap; }

/* ---------- Top bar ---------- */
.topbar { background: var(--navy); color: rgba(255, 255, 255, .78); font-size: 13.5px; }
.topbar-inner { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 42px; }
.topbar-contact { display: flex; flex-wrap: wrap; gap: 6px 22px; list-style: none; margin: 0; padding: 0; }
.topbar-contact li { display: inline-flex; align-items: center; gap: 8px; }
.topbar-contact i { color: var(--gold); }
.topbar a { color: rgba(255, 255, 255, .9); }
.topbar a:hover { color: #fff; }

.lang-switch { display: inline-flex; gap: 2px; background: rgba(255, 255, 255, .08); border-radius: 999px; padding: 3px; }
.lang-switch a { padding: 3px 12px; border-radius: 999px; font-size: 13px; font-weight: 600; color: rgba(255, 255, 255, .8); }
.lang-switch a.active { background: var(--red); color: #fff; }
.lang-switch a:hover:not(.active) { color: #fff; background: rgba(255, 255, 255, .1); }

/* ---------- Header ---------- */
.site-header {
    position: sticky; top: 0; z-index: 100; background: rgba(255, 255, 255, .96);
    backdrop-filter: saturate(180%) blur(10px); border-bottom: 1px solid transparent;
    transition: box-shadow .25s ease, border-color .25s ease;
}
.site-header.is-scrolled { box-shadow: 0 6px 24px rgba(21, 22, 53, .08); border-color: var(--line); }
.header-inner { display: flex; align-items: center; gap: 24px; min-height: var(--header-h); }
.brand img { height: 46px; width: auto; }

.main-nav { margin-left: auto; }
.nav-list { display: flex; align-items: center; gap: 2px; list-style: none; margin: 0; padding: 0; }
.nav-item { position: relative; }
.nav-link {
    display: inline-flex; align-items: center; gap: 6px; padding: 10px 14px; border-radius: 999px;
    color: var(--ink); font-weight: 600; font-size: 15px; background: none; border: 0; cursor: pointer;
}
.nav-link .fa { font-size: 13px; transition: transform .2s ease; }
.nav-link:hover, .nav-item.active > .nav-link { color: var(--red); background: var(--red-soft); }
.nav-toggle[aria-expanded="true"] .fa { transform: rotate(180deg); }

.dropdown {
    position: absolute; top: calc(100% + 8px); left: 0; min-width: 230px; z-index: 20;
    list-style: none; margin: 0; padding: 8px; background: #fff; border-radius: var(--radius);
    border: 1px solid var(--line); box-shadow: var(--shadow-lg);
    opacity: 0; visibility: hidden; transform: translateY(6px); transition: all .2s var(--ease);
}
.has-dropdown.open > .dropdown { opacity: 1; visibility: visible; transform: none; }
@media (hover: hover) and (min-width: 1101px) {
    .has-dropdown:hover > .dropdown { opacity: 1; visibility: visible; transform: none; }
}
.dropdown a { display: block; padding: 9px 12px; border-radius: var(--radius-sm); color: var(--ink); font-weight: 500; font-size: 15px; }
.dropdown a:hover, .dropdown a.active { background: var(--bg-soft); color: var(--red); }

.header-actions { display: flex; align-items: center; gap: 10px; }
.menu-btn { display: none; flex-direction: column; gap: 4px; }
.menu-btn span { display: block; width: 18px; height: 2px; border-radius: 2px; background: currentColor; transition: transform .25s ease, opacity .2s ease; }
.menu-btn[aria-expanded="true"] span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.menu-btn[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.menu-btn[aria-expanded="true"] span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }
.nav-mobile-extra { display: none; }

/* ---------- Search overlay ---------- */
.search-overlay {
    position: fixed; inset: 0; z-index: 300; background: rgba(21, 22, 53, .7); backdrop-filter: blur(6px);
    display: flex; align-items: flex-start; justify-content: center; padding: 14vh 20px 20px;
}
.search-box { position: relative; width: 100%; max-width: 680px; }
.search-box form {
    display: flex; align-items: center; gap: 12px; background: #fff; border-radius: 999px;
    padding: 8px 8px 8px 22px; box-shadow: var(--shadow-lg);
}
.search-box form > i { color: var(--muted); }
.search-box input { flex: 1; border: 0; outline: 0; font-size: 18px; padding: 10px 0; min-width: 0; }
.search-close { position: absolute; top: -56px; right: 0; width: 44px; height: 44px; border-radius: 50%; border: 0; background: rgba(255, 255, 255, .15); color: #fff; cursor: pointer; font-size: 18px; }

/* ---------- Sections ---------- */
.section { padding: 96px 0; }
.section-tight { padding: 64px 0 88px; }
.section-soft { background: var(--bg-soft); }

.section-head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 20px; margin-bottom: 44px; }
.section-head h2 { font-size: clamp(28px, 3.2vw, 40px); margin: 0; }
.section-head p { margin: 14px 0 0; max-width: 640px; color: var(--muted); font-size: 17px; }
.section-head.center { justify-content: center; text-align: center; }
.section-head.center p { margin-left: auto; margin-right: auto; }
.section-head.light h2 { color: #fff; }
.section-head-actions { display: flex; align-items: center; gap: 10px; }

/* ---------- Hero ---------- */
.hero { position: relative; overflow: hidden; padding: 64px 0 56px; background: var(--white); }
.hero-bg {
    position: absolute; inset: 0; pointer-events: none;
    background:
        radial-gradient(900px 500px at 90% -10%, rgba(214, 21, 35, .10), transparent 60%),
        radial-gradient(700px 500px at -10% 110%, rgba(21, 22, 53, .08), transparent 60%),
        linear-gradient(rgba(21, 22, 53, .035) 1px, transparent 1px),
        linear-gradient(90deg, rgba(21, 22, 53, .035) 1px, transparent 1px);
    background-size: auto, auto, 36px 36px, 36px 36px;
    mask-image: linear-gradient(to bottom, #000 70%, transparent);
}
.hero-inner { position: relative; display: grid; }
.hero-slide {
    grid-area: 1 / 1; display: grid; grid-template-columns: 1.05fr 1fr; align-items: center; gap: 56px;
    opacity: 0; visibility: hidden; transition: opacity .7s ease, visibility .7s;
}
.hero-slide.is-active { opacity: 1; visibility: visible; }
.hero-slide.is-flipped .hero-text { order: 2; }

.hero-text > * { transform: translateY(14px); opacity: 0; transition: transform .7s var(--ease), opacity .7s ease; }
.hero-slide.is-active .hero-text > * { transform: none; opacity: 1; }
.hero-slide.is-active .hero-text > :nth-child(2) { transition-delay: .08s; }
.hero-slide.is-active .hero-text > :nth-child(3) { transition-delay: .16s; }
.hero-slide.is-active .hero-text > :nth-child(4) { transition-delay: .24s; }

.hero-title { font-size: clamp(36px, 5vw, 62px); line-height: 1.05; font-weight: 800; letter-spacing: -.025em; margin-bottom: 18px; }
.hero-lead { font-size: 18px; color: var(--muted); max-width: 540px; margin-bottom: 30px; }
.hero-buttons { display: flex; flex-wrap: wrap; gap: 12px; }

.hero-media { position: relative; isolation: isolate; }  /* keeps the decorations behind the photo, not behind the section */
.hero-photo {
    aspect-ratio: 5 / 4; border-radius: 28px; background-size: cover; background-position: center;
    box-shadow: var(--shadow-lg); position: relative;
    transform: scale(.97); transition: transform 1.2s var(--ease);
}
.hero-slide.is-active .hero-photo { transform: none; }
.hero-photo::after { content: ""; position: absolute; inset: 0; border-radius: inherit; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .25); }
.hero-media::before {
    content: ""; position: absolute; right: -18px; top: -18px; width: 140px; height: 140px; border-radius: 28px;
    background: var(--red); z-index: -1; opacity: .9;
}
.hero-media::after {
    content: ""; position: absolute; left: -22px; bottom: 34px; width: 90px; height: 90px; border-radius: 50%;
    background: radial-gradient(var(--gold) 2px, transparent 2.5px) 0 0 / 14px 14px; z-index: -1;
}
.hero-badge {
    position: absolute; left: -26px; bottom: -22px; display: flex; align-items: center; gap: 12px;
    background: #fff; padding: 14px 18px; border-radius: 16px; box-shadow: var(--shadow-lg); color: var(--ink);
}
.hero-badge strong { font-size: 22px; font-weight: 800; margin-right: 4px; }
.hero-badge small { display: block; color: var(--muted); font-size: 13px; }
.hero-badge-icon { width: 44px; height: 44px; border-radius: 12px; background: var(--navy); color: #fff; display: inline-flex; align-items: center; justify-content: center; font-size: 20px; }

.hero-controls { display: flex; align-items: center; gap: 14px; margin-top: 48px; }
.hero-dots { display: flex; gap: 8px; }
.hero-dot { width: 46px; height: 24px; padding: 0; border: 0; background: none; cursor: pointer; display: inline-flex; align-items: center; }
.hero-dot span { display: block; width: 100%; height: 4px; border-radius: 2px; background: var(--line); overflow: hidden; position: relative; }
.hero-dot span::after { content: ""; position: absolute; inset: 0; width: 0; background: var(--red); }
.hero-dot.is-active span::after { width: 100%; transition: width var(--hero-interval, 7000ms) linear; }
.hero.is-paused .hero-dot.is-active span::after, .hero.no-autoplay .hero-dot.is-active span::after { transition: none; width: 100%; }

/* ---------- Quick links ---------- */
.quick-links { padding: 0 0 8px; }
.quick-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.quick-card {
    display: flex; align-items: center; gap: 16px; padding: 20px 22px; border-radius: var(--radius);
    background: var(--navy); color: #fff; box-shadow: var(--shadow); transition: transform .25s var(--ease), background .25s ease;
}
.quick-card:nth-child(2) { background: var(--red); }
a.quick-card:hover { transform: translateY(-3px); color: #fff; }
.quick-icon { width: 50px; height: 50px; flex-shrink: 0; border-radius: 12px; background: rgba(255, 255, 255, .12); display: inline-flex; align-items: center; justify-content: center; font-size: 22px; }
.quick-text strong { display: block; font-size: 16px; }
.quick-text small { display: block; color: rgba(255, 255, 255, .78); font-size: 13.5px; line-height: 1.45; }
.quick-arrow { margin-left: auto; font-size: 20px; opacity: .7; }

/* ---------- Cards ---------- */
.card-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
.card {
    position: relative; display: flex; flex-direction: column; padding: 30px; border-radius: var(--radius);
    background: #fff; border: 1px solid var(--line); color: inherit; box-shadow: var(--shadow-sm);
    transition: transform .25s var(--ease), box-shadow .25s ease, border-color .25s ease;
}
a.card:hover { transform: translateY(-6px); box-shadow: var(--shadow); border-color: transparent; color: inherit; }
.card h3 { font-size: 20px; margin-bottom: 10px; }
.card p { color: var(--muted); flex: 1; }
.card-icon {
    width: 60px; height: 60px; border-radius: 16px; background: var(--red-soft); color: var(--red);
    display: inline-flex; align-items: center; justify-content: center; font-size: 26px; margin-bottom: 22px;
    transition: background .25s ease, color .25s ease;
}
a.card:hover .card-icon { background: var(--red); color: #fff; }
.card-more { color: var(--red); font-weight: 700; font-size: 15px; display: inline-flex; align-items: center; gap: 8px; }
a.card:hover .card-more .fa-long-arrow-right { transform: translateX(4px); }
.card-more i { transition: transform .2s var(--ease); }

/* ---------- Numbers ---------- */
.numbers { position: relative; padding: 88px 0; background: var(--navy); color: #fff; overflow: hidden; }
.numbers::before {
    content: ""; position: absolute; inset: 0; pointer-events: none;
    background:
        radial-gradient(600px 300px at 10% 0%, rgba(214, 21, 35, .35), transparent 70%),
        radial-gradient(600px 300px at 95% 100%, rgba(242, 183, 5, .14), transparent 70%);
}
.numbers .container { position: relative; }
.number-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px; }
.number {
    text-align: center; padding: 30px 16px; border-radius: var(--radius);
    background: rgba(255, 255, 255, .05); border: 1px solid rgba(255, 255, 255, .1);
}
.number i { display: block; font-size: 26px; color: var(--gold); margin-bottom: 12px; }
.stat-count { display: block; font-size: clamp(36px, 4vw, 52px); font-weight: 800; line-height: 1; color: #fff; font-variant-numeric: tabular-nums; }
.number-label { display: block; margin-top: 10px; font-size: 13px; letter-spacing: .12em; text-transform: uppercase; color: rgba(255, 255, 255, .72); }

/* ---------- Projects ---------- */
.project-card { padding: 26px; }
.project-top { display: flex; align-items: center; justify-content: space-between; margin-bottom: 18px; }
.project-icon { width: 48px; height: 48px; border-radius: 12px; background: var(--navy); color: #fff; display: inline-flex; align-items: center; justify-content: center; font-size: 20px; }
.project-name { font-size: 18px; word-break: break-word; }
.project-owner { font-size: 14.5px; }

/* ---------- Steps ---------- */
.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 24px; counter-reset: step; }
.step {
    position: relative; padding: 30px 26px; border-radius: var(--radius); background: #fff; box-shadow: var(--shadow-sm);
    counter-increment: step;
}
.step::before { content: counter(step, decimal-leading-zero); position: absolute; top: 20px; right: 22px; font-size: 38px; font-weight: 800; color: var(--navy-soft); }
.step:not(:last-child)::after { content: ""; position: absolute; top: 60px; right: -24px; width: 24px; border-top: 2px dashed rgba(214, 21, 35, .45); }
.step-icon { position: relative; width: 58px; height: 58px; border-radius: 50%; background: var(--red); color: #fff; display: inline-flex; align-items: center; justify-content: center; font-size: 22px; margin-bottom: 20px; box-shadow: 0 10px 22px rgba(214, 21, 35, .3); }
.step h3 { font-size: 18px; }
.step p { margin: 0; color: var(--muted); }

/* ---------- Features ---------- */
.features-layout { display: grid; grid-template-columns: .9fr 1.1fr; gap: 64px; align-items: start; }
.features-intro { position: sticky; top: calc(var(--header-h) + 32px); }
.features-intro h2 { font-size: clamp(28px, 3.2vw, 40px); }
.features-intro p { color: var(--muted); font-size: 17px; }
.feature-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 16px; }
.feature { display: flex; gap: 18px; padding: 22px 24px; border-radius: var(--radius); border: 1px solid var(--line); background: #fff; transition: border-color .2s ease, box-shadow .2s ease; }
.feature:hover { border-color: transparent; box-shadow: var(--shadow); }
.feature-icon { flex-shrink: 0; width: 52px; height: 52px; border-radius: 14px; background: var(--navy); color: var(--gold); display: inline-flex; align-items: center; justify-content: center; font-size: 22px; }
.feature h3 { font-size: 18px; margin-bottom: 6px; }
.feature p { margin: 0; color: var(--muted); }

/* ---------- CTA band ---------- */
.cta-band { position: relative; overflow: hidden; padding: 72px 0; background: linear-gradient(120deg, var(--red) 0%, #a90f1a 100%); color: #fff; }
.cta-band::before { content: ""; position: absolute; right: -80px; top: -80px; width: 320px; height: 320px; border-radius: 50%; border: 50px solid rgba(255, 255, 255, .08); }
.cta-inner { position: relative; display: flex; align-items: center; justify-content: space-between; gap: 32px; }
.cta-band h2 { color: #fff; font-size: clamp(24px, 2.8vw, 34px); margin-bottom: 8px; max-width: 680px; }
.cta-band h2 .primary-color, .cta-band h2 em { color: var(--gold); font-style: normal; }
.cta-band p { margin: 0; color: rgba(255, 255, 255, .85); font-size: 17px; }
.cta-buttons { display: flex; flex-wrap: wrap; gap: 12px; flex-shrink: 0; }

/* ---------- Team ---------- */
.scroller { display: grid; grid-auto-flow: column; grid-auto-columns: calc((100% - 4 * 20px) / 5); gap: 20px; overflow-x: auto; scroll-snap-type: x mandatory; scroll-behavior: smooth; padding: 6px 2px 18px; scrollbar-width: thin; }
.scroller > * { scroll-snap-align: start; }
.person { text-align: center; padding: 22px 16px 20px; border-radius: var(--radius); background: #fff; border: 1px solid var(--line); box-shadow: var(--shadow-sm); transition: transform .25s var(--ease), box-shadow .25s ease; }
.person:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.person-photo { width: 128px; height: 128px; margin: 0 auto 16px; border-radius: 50%; overflow: hidden; background: var(--bg-soft); box-shadow: 0 0 0 5px #fff, 0 0 0 6px var(--line); }
.person-photo img { width: 100%; height: 100%; object-fit: cover; object-position: top; }
.person-name { font-size: 15.5px; margin-bottom: 4px; }
.person-role { font-size: 13px; color: var(--muted); margin-bottom: 14px; min-height: 2.6em; }
.person-contact { list-style: none; margin: 0; padding: 0; display: flex; justify-content: center; gap: 8px; }
.person-contact a { width: 34px; height: 34px; border-radius: 50%; background: var(--navy-soft); color: var(--navy); display: inline-flex; align-items: center; justify-content: center; font-size: 14px; }
.person-contact a:hover { background: var(--red); color: #fff; }
.people-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: 22px; }

/* ---------- Footer ---------- */
.site-footer { background: var(--navy); color: rgba(255, 255, 255, .72); font-size: 15px; }
.footer-grid { display: grid; grid-template-columns: 1.4fr repeat(3, 1fr); gap: 40px; padding: 72px var(--gutter) 48px; }
.footer-logo { display: inline-block; background: #fff; padding: 10px 14px; border-radius: 12px; margin-bottom: 18px; }
.footer-logo img { height: 40px; width: auto; }
.footer-about p { max-width: 330px; }
.footer-contact, .footer-social, .footer-col ul, .footer-bottom ul { list-style: none; margin: 0; padding: 0; }
.footer-contact li { display: flex; gap: 10px; margin-bottom: 8px; }
.footer-contact i { color: var(--gold); width: 16px; margin-top: 5px; }
.site-footer a { color: rgba(255, 255, 255, .85); }
.site-footer a:hover { color: #fff; }
.footer-social { display: flex; gap: 8px; margin-top: 18px; }
.footer-social a { width: 38px; height: 38px; border-radius: 50%; background: rgba(255, 255, 255, .08); display: inline-flex; align-items: center; justify-content: center; }
.footer-social a:hover { background: var(--red); }
.footer-col h5 { color: #fff; font-size: 16px; margin-bottom: 16px; }
.footer-col li { margin-bottom: 10px; }
.footer-bottom { border-top: 1px solid rgba(255, 255, 255, .1); font-size: 14px; }
.footer-bottom-inner { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px 24px; padding-top: 20px; padding-bottom: 20px; }
.footer-bottom ul { display: flex; flex-wrap: wrap; gap: 6px 20px; }

.to-top {
    position: fixed; right: 20px; bottom: 20px; z-index: 90; width: 46px; height: 46px; border-radius: 50%;
    border: 0; background: var(--red); color: #fff; cursor: pointer; box-shadow: 0 10px 24px rgba(214, 21, 35, .35);
    opacity: 0; visibility: hidden; transform: translateY(10px); transition: all .25s ease;
}
.to-top.is-visible { opacity: 1; visibility: visible; transform: none; }

/* ---------- Inner page header ---------- */
.page-hero {
    position: relative; overflow: hidden; padding: 56px 0 52px; color: #fff;
    background:
        radial-gradient(700px 300px at 85% 0%, rgba(214, 21, 35, .45), transparent 70%),
        linear-gradient(rgba(255, 255, 255, .04) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, .04) 1px, transparent 1px),
        var(--navy);
    background-size: auto, 32px 32px, 32px 32px, auto;
}
.page-hero.has-photo { background: linear-gradient(90deg, rgba(21, 22, 53, .92), rgba(21, 22, 53, .65)), var(--hero-photo) center / cover; }
.page-hero h1 { color: #fff; font-size: clamp(30px, 4vw, 46px); margin: 10px 0 0; letter-spacing: -.02em; }
.page-hero-lead { margin: 12px 0 0; color: rgba(255, 255, 255, .8); max-width: 720px; font-size: 17px; }
.crumbs { display: flex; align-items: center; gap: 10px; font-size: 14px; color: rgba(255, 255, 255, .7); }
.crumbs a { color: rgba(255, 255, 255, .85); }
.crumbs a:hover { color: #fff; }
.crumbs span { color: #fff; font-weight: 600; }

/* ---------- Page body + sidebar ---------- */
.with-sidebar { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 48px; align-items: start; }
.page-body { min-width: 0; }

.prose { font-size: 16.5px; line-height: 1.8; color: var(--text); }
.prose > :first-child { margin-top: 0; }
.prose h2, .prose h3, .prose h4 { margin: 1.6em 0 .6em; }
.prose h2 { font-size: 28px; } .prose h3 { font-size: 23px; } .prose h4 { font-size: 19px; }
.prose a:not(.btn) { text-decoration: underline; text-underline-offset: 3px; }
.prose ul, .prose ol { padding-left: 1.3em; margin-bottom: 1.2em; }
.prose li { margin-bottom: .4em; }
.prose ul li::marker { color: var(--red); }
.prose blockquote { margin: 1.4em 0; padding: 16px 22px; border-left: 4px solid var(--red); background: var(--bg-soft); border-radius: 0 var(--radius-sm) var(--radius-sm) 0; }
.prose img { border-radius: var(--radius-sm); }
.prose strong { color: var(--ink); }
.prose + .portal-table-wrap, .prose + .stat-boxes { margin-top: 32px; }

.sidebar { display: grid; gap: 20px; position: sticky; top: calc(var(--header-h) + 20px); }
.side-card { padding: 24px; border-radius: var(--radius); background: #fff; border: 1px solid var(--line); }
.side-card h5 { font-size: 16px; margin-bottom: 14px; }
.side-search { display: flex; border: 1px solid var(--line); border-radius: 999px; overflow: hidden; }
.side-search input { flex: 1; border: 0; padding: 10px 16px; outline: 0; min-width: 0; }
.side-search button { border: 0; background: var(--red); color: #fff; width: 46px; cursor: pointer; }
.side-links { list-style: none; margin: 0; padding: 0; }
.side-links a { display: flex; justify-content: space-between; align-items: center; padding: 10px 12px; border-radius: var(--radius-sm); color: var(--ink); font-weight: 500; }
.side-links a:hover, .side-links a.active { background: var(--red-soft); color: var(--red); }
.side-cta { background: var(--navy); border-color: var(--navy); color: rgba(255, 255, 255, .8); }
.side-cta h5 { color: #fff; }
.side-cta p { font-size: 14.5px; }

/* ---------- Data tables ---------- */
.portal-table-wrap { margin: 0 0 32px; }
.portal-table-filter {
    display: block; width: 100%; max-width: 320px; margin: 0 0 16px auto; padding: 11px 16px 11px 42px;
    border: 1px solid var(--line); border-radius: 999px; outline: 0;
    background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='%237a7d93' viewBox='0 0 16 16'%3E%3Cpath d='M11.7 10.3a6.5 6.5 0 1 0-1.4 1.4l3.8 3.8 1.4-1.4-3.8-3.8zM6.5 11a4.5 4.5 0 1 1 0-9 4.5 4.5 0 0 1 0 9z'/%3E%3C/svg%3E") no-repeat 16px center;
}
.portal-table-filter:focus { border-color: var(--red); box-shadow: 0 0 0 4px rgba(214, 21, 35, .1); }
.portal-table-scroll { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius); background: #fff; }
.portal-table { width: 100%; border-collapse: collapse; font-size: 14.5px; }
.portal-table th { background: var(--navy); color: #fff; text-align: left; font-weight: 600; padding: 14px 16px; white-space: nowrap; font-size: 13.5px; letter-spacing: .02em; }
.portal-table td { padding: 13px 16px; border-top: 1px solid var(--line); vertical-align: middle; color: var(--ink); }
.portal-table tbody tr:nth-child(even) td { background: #fafbfd; }
.portal-table tbody tr:hover td { background: var(--red-soft); }
.portal-table td a { color: var(--red); font-weight: 600; }
.portal-table .num { text-align: center; }
.portal-table .nowrap { white-space: nowrap; }
.portal-table .wide { min-width: 300px; }
.portal-table .text-muted { color: var(--muted); }
.portal-table-grouped thead th { border: 1px solid rgba(255, 255, 255, .12); text-align: center; vertical-align: middle; }
.portal-table-grouped thead tr + tr th { background: var(--navy-2); }
.portal-table tfoot th { background: var(--bg-soft); color: var(--ink); border-top: 2px solid var(--line); }
.portal-table tr.empty-row td { text-align: center; color: var(--muted); padding: 30px; }
.table-note { margin: 12px 0 0; font-size: 13.5px; color: var(--muted); }

.portal-table-footer { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; margin-top: 16px; font-size: 14px; color: var(--muted); }
.portal-pager { list-style: none; display: flex; flex-wrap: wrap; gap: 6px; margin: 0; padding: 0; }
.portal-pager button, .portal-pager span { min-width: 38px; height: 38px; padding: 0 10px; display: inline-flex; align-items: center; justify-content: center; border-radius: 999px; border: 1px solid var(--line); background: #fff; color: var(--ink); font-weight: 600; cursor: pointer; }
.portal-pager span { border-color: transparent; cursor: default; }
.portal-pager button:hover:not(:disabled), .portal-pager button.active { background: var(--red); border-color: var(--red); color: #fff; }
.portal-pager button:disabled { opacity: .4; cursor: not-allowed; }

/* totals above the Instituisaun table */
.stat-boxes { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; margin-bottom: 32px; }
.stat-box { padding: 24px 18px; border-radius: var(--radius); background: var(--navy); color: #fff; text-align: center; }
.stat-box i { display: block; color: var(--gold); font-size: 22px; margin-bottom: 10px; }
.stat-number { display: block; font-size: 38px; font-weight: 800; line-height: 1; }
.stat-label { display: block; margin-top: 8px; font-size: 12.5px; letter-spacing: .1em; text-transform: uppercase; color: rgba(255, 255, 255, .75); }
.stat-box-total { background: var(--red); }
.stat-box-total i { color: #fff; }

/* ---------- Forms ---------- */
.request-layout { display: grid; grid-template-columns: minmax(0, 1fr) 360px; gap: 32px; align-items: start; }
.form-card { padding: 40px; border-radius: var(--radius); background: #fff; border: 1px solid var(--line); box-shadow: var(--shadow-sm); }
.form-card h2 { font-size: 28px; margin-bottom: 26px; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px 22px; margin-bottom: 26px; }
.field.full { grid-column: 1 / -1; }
.field label { display: block; font-weight: 600; color: var(--ink); margin-bottom: 6px; font-size: 14.5px; }
.req { color: var(--red); }
.field input, .field select, .field textarea {
    width: 100%; padding: 12px 14px; border-radius: 10px; border: 1px solid var(--line); background: var(--bg-soft);
    color: var(--ink); transition: border-color .2s ease, background .2s ease, box-shadow .2s ease;
}
.field textarea { min-height: 160px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { outline: 0; border-color: var(--red); background: #fff; box-shadow: 0 0 0 4px rgba(214, 21, 35, .1); }
.field.has-error input, .field.has-error select, .field.has-error textarea { border-color: var(--red); }
.field-error { display: block; margin-top: 6px; color: var(--red); font-size: 13.5px; }
.notice { padding: 14px 18px; border-radius: 10px; margin-bottom: 22px; font-weight: 500; }
.notice-success { background: #e8f6ee; color: #136c3e; }
.notice-error { background: var(--red-soft); color: var(--red-dark); }

.contact-card { padding: 32px; border-radius: var(--radius); background: var(--navy); color: rgba(255, 255, 255, .8); position: sticky; top: calc(var(--header-h) + 20px); }
.contact-card h3 { color: #fff; font-size: 20px; margin-bottom: 20px; }
.contact-card ul { list-style: none; margin: 0 0 24px; padding: 0; display: grid; gap: 16px; }
.contact-card li { display: flex; gap: 14px; align-items: center; }
.contact-card small { display: block; color: rgba(255, 255, 255, .6); font-size: 12.5px; }
.contact-card a, .contact-card li span:not(.contact-icon) { color: #fff; font-weight: 600; }
.contact-icon { width: 44px; height: 44px; flex-shrink: 0; border-radius: 12px; background: rgba(255, 255, 255, .1); color: var(--gold); display: inline-flex; align-items: center; justify-content: center; font-size: 18px; }
.mini-steps { margin: 0; padding: 20px 0 0 1.3em; border-top: 1px solid rgba(255, 255, 255, .12); display: grid; gap: 8px; font-size: 14.5px; }
.mini-steps li::marker { color: var(--gold); font-weight: 700; }

/* ---------- Search ---------- */
.big-search { display: flex; align-items: center; gap: 12px; padding: 6px 6px 6px 20px; border-radius: 999px; border: 1px solid var(--line); background: #fff; box-shadow: var(--shadow-sm); margin-bottom: 30px; }
.big-search > i { color: var(--muted); }
.big-search input { flex: 1; border: 0; outline: 0; padding: 10px 0; font-size: 16.5px; min-width: 0; }
.search-summary { font-size: 20px; margin-bottom: 18px; }
.results { display: grid; gap: 14px; }
.result { display: block; padding: 20px 22px; border-radius: var(--radius); border: 1px solid var(--line); background: #fff; color: inherit; transition: box-shadow .2s ease, border-color .2s ease; }
.result:hover { border-color: transparent; box-shadow: var(--shadow); color: inherit; }
.result h3 { font-size: 18px; margin: 6px 0 4px; color: var(--ink); }
.result p { margin: 0; color: var(--muted); font-size: 14.5px; }

/* ---------- 404 ---------- */
.error-card { max-width: 640px; margin: 0 auto; padding: 56px 44px; text-align: center; border-radius: 22px; background: #fff; border: 1px solid var(--line); box-shadow: var(--shadow); }
.error-code { display: block; font-size: 110px; font-weight: 800; line-height: 1; letter-spacing: -.04em; background: linear-gradient(120deg, var(--red), var(--navy)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.error-card h1 { font-size: 30px; margin: 12px 0 10px; }
.error-card p { color: var(--muted); margin-bottom: 26px; }
.error-card .big-search { margin-bottom: 22px; }

/* =====================================================================
   Responsive
   ===================================================================== */
@media (max-width: 1100px) {
    .main-nav {
        position: fixed; inset: 0 0 0 auto; z-index: 200; width: min(360px, 88vw); margin: 0;
        background: #fff; box-shadow: var(--shadow-lg); padding: 88px 20px 28px; overflow-y: auto;
        transform: translateX(100%); transition: transform .3s var(--ease); display: flex; flex-direction: column; gap: 24px;
    }
    .main-nav.is-open { transform: none; }
    .nav-list { flex-direction: column; align-items: stretch; gap: 2px; }
    .nav-link { width: 100%; justify-content: space-between; border-radius: var(--radius-sm); padding: 13px 14px; font-size: 16px; }
    .dropdown { position: static; opacity: 1; visibility: visible; transform: none; box-shadow: none; border: 0; padding: 0 0 6px 12px; min-width: 0; display: none; }
    .has-dropdown.open > .dropdown { display: block; }
    .nav-mobile-extra { display: grid; gap: 10px; margin-top: auto; }
    .menu-btn { display: inline-flex; position: relative; z-index: 210; }
    /* A backdrop-filter would make the fixed menu position itself inside the header; use a solid header here. */
    .site-header { backdrop-filter: none; background: #fff; }
    body.nav-open .site-header { z-index: 250; }  /* header (and its menu) above the dark overlay */
    .hide-md { display: none; }
    body.nav-open { overflow: hidden; }
    body.nav-open::after { content: ""; position: fixed; inset: 0; background: rgba(21, 22, 53, .45); z-index: 150; }

    .with-sidebar, .request-layout { grid-template-columns: 1fr; }
    .sidebar, .contact-card { position: static; }
    .features-layout { grid-template-columns: 1fr; gap: 32px; }
    .scroller { grid-auto-columns: calc((100% - 2 * 20px) / 3); }
}

@media (max-width: 991px) {
    .section { padding: 72px 0; }
    .hero { padding: 40px 0; }
    .hero-slide { grid-template-columns: 1fr; gap: 36px; }
    .hero-slide.is-flipped .hero-text { order: 0; }
    .hero-media { max-width: 560px; }
    .card-grid, .number-grid, .steps, .stat-boxes { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .quick-grid { grid-template-columns: 1fr; }
    .step::after { display: none; }
    .footer-grid { grid-template-columns: 1fr 1fr; }
    .cta-inner { flex-direction: column; align-items: flex-start; }
}

@media (max-width: 640px) {
    :root { --gutter: 18px; --header-h: 66px; }
    .hide-sm { display: none !important; }
    .topbar-contact { display: none; }
    .topbar-inner { justify-content: center; min-height: 38px; }
    .brand img { height: 38px; }
    .hero-title { font-size: 34px; }
    .hero-lead { font-size: 16px; }
    .hero-buttons .btn { flex: 1; }
    .hero-badge { left: 12px; bottom: -18px; padding: 10px 14px; }
    .hero-media::before { width: 90px; height: 90px; right: -8px; top: -10px; }
    .hero-controls { margin-top: 40px; }
    .card-grid, .steps, .project-grid { grid-template-columns: 1fr; }
    .project-grid .project-card:nth-child(n+4) { display: none; }
    .number-grid, .stat-boxes { grid-template-columns: 1fr 1fr; gap: 12px; }
    .stat-number { font-size: 30px; }
    .scroller { grid-auto-columns: calc((100% - 14px) / 2); gap: 14px; }
    .person-photo { width: 92px; height: 92px; }
    .people-grid { grid-template-columns: 1fr 1fr; gap: 14px; }
    .section-head-actions .round-btn { display: none; }
    .footer-grid { grid-template-columns: 1fr; gap: 28px; padding-top: 56px; }
    .form-card { padding: 26px 20px; }
    .form-grid { grid-template-columns: 1fr; }
    .cta-buttons, .cta-buttons .btn { width: 100%; }
    .error-card { padding: 40px 22px; }
    .error-code { font-size: 84px; }
    .big-search { flex-wrap: wrap; border-radius: var(--radius); padding: 10px; }
    .big-search .btn { width: 100%; }

    /* Data tables become cards with labelled values */
    .portal-table-filter { max-width: none; }
    .portal-table-scroll { border: 0; background: none; overflow: visible; }
    .portal-table, .portal-table tbody, .portal-table tr, .portal-table td { display: block; width: 100%; }
    .portal-table thead { display: none; }
    .portal-table tbody tr { margin-bottom: 12px; border: 1px solid var(--line); border-left: 4px solid var(--red); border-radius: var(--radius-sm); background: #fff; overflow: hidden; }
    .portal-table tbody tr td, .portal-table tbody tr:nth-child(even) td { background: #fff; }
    .portal-table td { display: flex; justify-content: space-between; gap: 14px; text-align: right; border-top: 1px solid var(--line); padding: 9px 14px; white-space: normal !important; min-width: 0 !important; }
    .portal-table td:first-child { border-top: 0; }
    .portal-table td::before { content: attr(data-label); font-weight: 700; color: var(--ink); text-align: left; flex-shrink: 0; max-width: 45%; }
    .portal-table td.num { text-align: right; }
    .portal-table tr.empty-row td { justify-content: center; }
    .portal-table tr.empty-row td::before { content: none; }
    .portal-table tfoot, .portal-table tfoot tr { display: flex; flex-wrap: wrap; background: var(--navy); border-radius: var(--radius-sm); }
    .portal-table tfoot th { display: block; background: transparent; color: #fff; border: 0; padding: 8px 12px; }
    .portal-table tfoot th:empty { display: none; }
}

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

@media print {
    .topbar, .site-header, .site-footer, .team-strip, .to-top, .hero-controls, .cta-band, .sidebar { display: none !important; }
    .page-hero { background: none; color: var(--ink); padding: 0 0 20px; }
    .page-hero h1 { color: var(--ink); }
}

/* =====================================================================
   Tech Night: the chosen look (dark interface, glass cards, cyan → indigo gradients).
   Layered over the base layout above; colours and surfaces are set here.
   ===================================================================== */

:root {
    --navy: #070b17;
    --navy-2: #121a33;
    --navy-soft: rgba(255, 255, 255, .06);
    --red: #22d3ee;
    --red-dark: #06b6d4;
    --red-soft: rgba(34, 211, 238, .12);
    --gold: #a78bfa;
    --ink: #f1f5f9;
    --text: #cbd5e1;
    --muted: #94a3b8;
    --line: rgba(255, 255, 255, .09);
    --bg-soft: #0d1328;
    --white: #0b1020;
    --grad: linear-gradient(135deg, #22d3ee 0%, #6366f1 100%);
    --glass: rgba(255, 255, 255, .035);
    --shadow-sm: 0 1px 0 rgba(255, 255, 255, .04) inset;
    --shadow: 0 20px 50px rgba(0, 0, 0, .45);
    --shadow-lg: 0 30px 80px rgba(0, 0, 0, .55);
    --font: "Inter", system-ui, sans-serif;
}

body { background: #0b1020; color: var(--text); }
h1, h2, h3, h4, h5, .hero-title, .stat-count, .stat-number, .error-code { font-family: "Space Grotesk", var(--font); letter-spacing: -.02em; }
::selection { background: #22d3ee; color: #0b1020; }

/* Glass surfaces */
.card, .person, .step, .feature, .side-card, .form-card, .result, .error-card, .portal-table-scroll,
.big-search, .number, .project-card, .quick-card, .stat-box {
    background: var(--glass); border: 1px solid var(--line); box-shadow: none; backdrop-filter: blur(6px);
}
a.card:hover, .person:hover, .feature:hover, .result:hover { border-color: rgba(34, 211, 238, .45); box-shadow: 0 0 0 1px rgba(34, 211, 238, .25), 0 20px 50px rgba(34, 211, 238, .08); }

/* Buttons */
.btn-primary { background: var(--grad); color: #07101f; box-shadow: 0 10px 30px rgba(34, 211, 238, .25); }
.btn-primary:hover { background: var(--grad); color: #07101f; filter: brightness(1.1); }
.btn-ghost { background: rgba(255, 255, 255, .06); color: #fff; }
.btn-ghost:hover { background: rgba(255, 255, 255, .14); color: #fff; }
.btn-outline { background: transparent; border-color: var(--line); color: #fff; }
.btn-outline:hover { border-color: #22d3ee; color: #22d3ee; }
.icon-btn, .round-btn { background: rgba(255, 255, 255, .04); border-color: var(--line); color: #fff; }
.icon-btn:hover, .round-btn:hover { background: var(--grad); border-color: transparent; color: #07101f; }

/* Header */
.topbar { background: #050812; border-bottom: 1px solid var(--line); }
.topbar-contact i { color: #22d3ee; }
.lang-switch a.active { background: var(--grad); color: #07101f; }
.site-header { background: rgba(11, 16, 32, .78); }
.site-header.is-scrolled { border-color: var(--line); box-shadow: 0 10px 30px rgba(0, 0, 0, .4); }
.brand { background: #fff; padding: 6px 12px; border-radius: 12px; }
.brand img { height: 38px; }
.nav-link { color: #e2e8f0; }
.nav-link:hover, .nav-item.active > .nav-link { color: #22d3ee; background: rgba(34, 211, 238, .1); }
.dropdown { background: #111933; border-color: var(--line); }
.dropdown a { color: #e2e8f0; }
.dropdown a:hover, .dropdown a.active { background: rgba(34, 211, 238, .1); color: #22d3ee; }
@media (max-width: 1100px) { .main-nav, .site-header { background: #0b1020; } }
.search-box form { background: #111933; }
.search-box input { background: transparent; color: #fff; }

/* Hero */
.hero { background: #0b1020; }
.hero-bg {
    background:
        radial-gradient(600px 400px at 85% 10%, rgba(99, 102, 241, .35), transparent 65%),
        radial-gradient(520px 380px at 10% 90%, rgba(34, 211, 238, .22), transparent 65%),
        linear-gradient(rgba(255, 255, 255, .045) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, .045) 1px, transparent 1px);
    background-size: auto, auto, 40px 40px, 40px 40px;
}
.hero-title { background: linear-gradient(180deg, #fff 30%, #a5f3fc 100%); -webkit-background-clip: text; background-clip: text; color: transparent; }
.eyebrow { color: #22d3ee; }
.eyebrow-line::before { background: var(--grad); }
.hero-media::before { background: var(--grad); filter: blur(40px); opacity: .55; width: 220px; height: 220px; right: -40px; top: -40px; }
.hero-media::after { background: radial-gradient(#a78bfa 2px, transparent 2.5px) 0 0 / 14px 14px; }
.hero-photo { border: 1px solid rgba(255, 255, 255, .12); }
.hero-badge { background: rgba(17, 25, 51, .9); color: #fff; border: 1px solid var(--line); backdrop-filter: blur(8px); }
.hero-badge-icon { background: var(--grad); color: #07101f; }
.hero-dot span { background: rgba(255, 255, 255, .15); }
.hero-dot span::after { background: var(--grad); }
.hl { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }

/* Quick links */
.quick-card { color: #fff; }
.quick-card:nth-child(2) { background: var(--grad); color: #07101f; border-color: transparent; }
.quick-card:nth-child(2) .quick-text small { color: rgba(7, 16, 31, .75); }
.quick-card:nth-child(2) .quick-icon { background: rgba(7, 16, 31, .12); }

/* Icons */
.card-icon { background: rgba(34, 211, 238, .1); color: #22d3ee; }
a.card:hover .card-icon { background: var(--grad); color: #07101f; }
.project-icon, .feature-icon, .hero-badge-icon { background: var(--grad); color: #07101f; }
.step-icon { background: var(--grad); color: #07101f; box-shadow: 0 10px 26px rgba(34, 211, 238, .3); }
.step::before { color: rgba(255, 255, 255, .06); }
.step:not(:last-child)::after { border-top-color: rgba(34, 211, 238, .5); }
.tag { background: rgba(34, 211, 238, .12); color: #67e8f9; }
.card-more, .link-arrow, a { color: #22d3ee; }
a:hover { color: #67e8f9; }

/* Sections */
.section-soft { background: #0d1328; }
.numbers { background: #070b17; }
.numbers::before { background: radial-gradient(600px 300px at 15% 0%, rgba(34, 211, 238, .25), transparent 70%), radial-gradient(600px 300px at 90% 100%, rgba(99, 102, 241, .3), transparent 70%); }
.number i, .stat-box i { color: #22d3ee; }
.cta-band { background: linear-gradient(120deg, #6366f1 0%, #22d3ee 100%); color: #07101f; }
.cta-band h2 { color: #07101f; }
.cta-band h2 .primary-color, .cta-band h2 em { color: #fff; }
.cta-band p { color: rgba(7, 16, 31, .8); }
.cta-band::before { border-color: rgba(255, 255, 255, .18); }
.btn-white { background: #07101f; color: #fff; }
.btn-white:hover { background: #fff; color: #07101f; }
.btn-outline-white { border-color: rgba(7, 16, 31, .4); color: #07101f; }
.btn-outline-white:hover { background: rgba(7, 16, 31, .08); color: #07101f; border-color: #07101f; }

/* Team */
.person-photo { box-shadow: 0 0 0 4px #0b1020, 0 0 0 5px rgba(34, 211, 238, .5); }
.person-contact a { background: rgba(255, 255, 255, .06); color: #e2e8f0; }
.person-contact a:hover { background: var(--grad); color: #07101f; }

/* Inner pages */
.page-hero { background: radial-gradient(700px 300px at 85% 0%, rgba(99, 102, 241, .45), transparent 70%), radial-gradient(500px 260px at 0% 100%, rgba(34, 211, 238, .2), transparent 70%), #070b17; border-bottom: 1px solid var(--line); }
.prose, .prose strong { color: var(--text); }
.prose blockquote { background: var(--glass); }
.side-links a { color: #e2e8f0; }
.side-links a:hover, .side-links a.active { background: rgba(34, 211, 238, .1); color: #22d3ee; }
.side-search, .big-search { border-color: var(--line); }
.side-search input, .big-search input { background: transparent; color: #fff; }
.side-search button { background: var(--grad); color: #07101f; }
.side-cta { background: linear-gradient(160deg, #1e1b4b, #0e7490); border: 0; }

/* Tables */
.portal-table th { background: #121a33; color: #a5f3fc; }
.portal-table td { color: #e2e8f0; border-top-color: var(--line); }
.portal-table tbody tr:nth-child(even) td { background: rgba(255, 255, 255, .02); }
.portal-table tbody tr:hover td { background: rgba(34, 211, 238, .07); }
.portal-table tfoot th { background: #121a33; color: #fff; border-top-color: var(--line); }
.portal-table-filter { background-color: var(--glass); color: #fff; border-color: var(--line); }
.portal-pager button { background: var(--glass); border-color: var(--line); color: #e2e8f0; }
.portal-pager button:hover:not(:disabled), .portal-pager button.active { background: var(--grad); color: #07101f; border-color: transparent; }
.stat-box-total { background: var(--grad); color: #07101f; }
.stat-box-total .stat-label { color: rgba(7, 16, 31, .75); }
.stat-box-total i { color: #07101f; }
@media (max-width: 640px) {
    .portal-table tbody tr, .portal-table tbody tr td, .portal-table tbody tr:nth-child(even) td { background: #0f1630; }
    .portal-table tbody tr { border-left-color: #22d3ee; }
}

/* Forms */
.field input, .field select, .field textarea { background: rgba(255, 255, 255, .04); border-color: var(--line); color: #fff; }
.field select option { color: #0b1020; }
.field input:focus, .field select:focus, .field textarea:focus { background: rgba(255, 255, 255, .06); border-color: #22d3ee; box-shadow: 0 0 0 4px rgba(34, 211, 238, .15); }
.contact-card { background: linear-gradient(160deg, #1e1b4b, #0e7490); }
.contact-icon { color: #a5f3fc; }

/* Footer */
.site-footer { background: #050812; border-top: 1px solid var(--line); }
.footer-contact i { color: #22d3ee; }
.footer-social a:hover { background: var(--grad); color: #07101f; }
.to-top { background: var(--grad); color: #07101f; box-shadow: 0 10px 30px rgba(34, 211, 238, .3); }
:focus-visible { outline-color: rgba(34, 211, 238, .6); }

/* =====================================================================
   Light content below the dark top: everything after the hero / page banner
   (white and #f4f7fb sections, white cards, same cyan → indigo accents).
   ===================================================================== */
main > section:not(.hero):not(.page-hero):not(.numbers):not(.cta-band):not(.quick-links),
.team-strip { background: #ffffff; color: #3b4660; --ink: #0b1020; --text: #3b4660; --muted: #67728a; --line: #e3e8f2; --bg-soft: #f4f7fb; --glass: #ffffff; --red-soft: #e6f8fb; }
main > section:not(.hero):not(.page-hero):not(.numbers):not(.cta-band):not(.quick-links).section-soft,
.team-strip.section-soft { background: #f4f7fb; }
main > section:not(.hero):not(.page-hero):not(.numbers):not(.cta-band):not(.quick-links) h1,
.team-strip h1,
main > section:not(.hero):not(.page-hero):not(.numbers):not(.cta-band):not(.quick-links) h2,
.team-strip h2,
main > section:not(.hero):not(.page-hero):not(.numbers):not(.cta-band):not(.quick-links) h3,
.team-strip h3,
main > section:not(.hero):not(.page-hero):not(.numbers):not(.cta-band):not(.quick-links) h4,
.team-strip h4,
main > section:not(.hero):not(.page-hero):not(.numbers):not(.cta-band):not(.quick-links) h5,
.team-strip h5 { color: #0b1020; }
main > section:not(.hero):not(.page-hero):not(.numbers):not(.cta-band):not(.quick-links) .eyebrow,
.team-strip .eyebrow { color: #0891b2; }
main > section:not(.hero):not(.page-hero):not(.numbers):not(.cta-band):not(.quick-links) a,
.team-strip a { color: #0891b2; }
main > section:not(.hero):not(.page-hero):not(.numbers):not(.cta-band):not(.quick-links) a:hover,
.team-strip a:hover { color: #4f46e5; }
main > section:not(.hero):not(.page-hero):not(.numbers):not(.cta-band):not(.quick-links) .hl,
.team-strip .hl { background: linear-gradient(135deg, #0891b2, #6366f1); -webkit-background-clip: text; background-clip: text; color: transparent; }
main > section:not(.hero):not(.page-hero):not(.numbers):not(.cta-band):not(.quick-links) .card,
.team-strip .card,
main > section:not(.hero):not(.page-hero):not(.numbers):not(.cta-band):not(.quick-links) .person,
.team-strip .person,
main > section:not(.hero):not(.page-hero):not(.numbers):not(.cta-band):not(.quick-links) .step,
.team-strip .step,
main > section:not(.hero):not(.page-hero):not(.numbers):not(.cta-band):not(.quick-links) .feature,
.team-strip .feature,
main > section:not(.hero):not(.page-hero):not(.numbers):not(.cta-band):not(.quick-links) .side-card,
.team-strip .side-card,
main > section:not(.hero):not(.page-hero):not(.numbers):not(.cta-band):not(.quick-links) .form-card,
.team-strip .form-card,
main > section:not(.hero):not(.page-hero):not(.numbers):not(.cta-band):not(.quick-links) .result,
.team-strip .result,
main > section:not(.hero):not(.page-hero):not(.numbers):not(.cta-band):not(.quick-links) .error-card,
.team-strip .error-card,
main > section:not(.hero):not(.page-hero):not(.numbers):not(.cta-band):not(.quick-links) .portal-table-scroll,
.team-strip .portal-table-scroll,
main > section:not(.hero):not(.page-hero):not(.numbers):not(.cta-band):not(.quick-links) .big-search,
.team-strip .big-search { background: #ffffff; border: 1px solid #e3e8f2; backdrop-filter: none; box-shadow: 0 1px 2px rgba(15, 23, 42, .04), 0 8px 24px rgba(79, 70, 229, .06); }
main > section:not(.hero):not(.page-hero):not(.numbers):not(.cta-band):not(.quick-links) a.card:hover,
.team-strip a.card:hover,
main > section:not(.hero):not(.page-hero):not(.numbers):not(.cta-band):not(.quick-links) .person:hover,
.team-strip .person:hover,
main > section:not(.hero):not(.page-hero):not(.numbers):not(.cta-band):not(.quick-links) .feature:hover,
.team-strip .feature:hover,
main > section:not(.hero):not(.page-hero):not(.numbers):not(.cta-band):not(.quick-links) .result:hover,
.team-strip .result:hover { border-color: rgba(8, 145, 178, .35); box-shadow: 0 18px 40px rgba(79, 70, 229, .12); }
main > section:not(.hero):not(.page-hero):not(.numbers):not(.cta-band):not(.quick-links) .card p,
.team-strip .card p,
main > section:not(.hero):not(.page-hero):not(.numbers):not(.cta-band):not(.quick-links) .feature p,
.team-strip .feature p,
main > section:not(.hero):not(.page-hero):not(.numbers):not(.cta-band):not(.quick-links) .step p,
.team-strip .step p,
main > section:not(.hero):not(.page-hero):not(.numbers):not(.cta-band):not(.quick-links) .result p,
.team-strip .result p,
main > section:not(.hero):not(.page-hero):not(.numbers):not(.cta-band):not(.quick-links) .project-owner,
.team-strip .project-owner,
main > section:not(.hero):not(.page-hero):not(.numbers):not(.cta-band):not(.quick-links) .person-role,
.team-strip .person-role { color: #67728a; }
main > section:not(.hero):not(.page-hero):not(.numbers):not(.cta-band):not(.quick-links) .card h3,
.team-strip .card h3,
main > section:not(.hero):not(.page-hero):not(.numbers):not(.cta-band):not(.quick-links) .person-name,
.team-strip .person-name,
main > section:not(.hero):not(.page-hero):not(.numbers):not(.cta-band):not(.quick-links) .project-name,
.team-strip .project-name { color: #0b1020; }
main > section:not(.hero):not(.page-hero):not(.numbers):not(.cta-band):not(.quick-links) .card-icon,
.team-strip .card-icon { background: linear-gradient(135deg, rgba(34, 211, 238, .14), rgba(99, 102, 241, .14)); color: #4f46e5; }
main > section:not(.hero):not(.page-hero):not(.numbers):not(.cta-band):not(.quick-links) .card-more,
.team-strip .card-more,
main > section:not(.hero):not(.page-hero):not(.numbers):not(.cta-band):not(.quick-links) .link-arrow,
.team-strip .link-arrow { color: #0891b2; }
main > section:not(.hero):not(.page-hero):not(.numbers):not(.cta-band):not(.quick-links) .tag,
.team-strip .tag { background: #e6f8fb; color: #0e7490; }
main > section:not(.hero):not(.page-hero):not(.numbers):not(.cta-band):not(.quick-links) .step::before,
.team-strip .step::before { color: #eef2ff; }
main > section:not(.hero):not(.page-hero):not(.numbers):not(.cta-band):not(.quick-links) .person-photo,
.team-strip .person-photo { box-shadow: 0 0 0 4px #fff, 0 0 0 5px rgba(8, 145, 178, .45); }
main > section:not(.hero):not(.page-hero):not(.numbers):not(.cta-band):not(.quick-links) .person-contact a,
.team-strip .person-contact a { background: #eef2ff; color: #4338ca; }
main > section:not(.hero):not(.page-hero):not(.numbers):not(.cta-band):not(.quick-links) .btn-outline,
.team-strip .btn-outline,
main > section:not(.hero):not(.page-hero):not(.numbers):not(.cta-band):not(.quick-links) .round-btn,
.team-strip .round-btn,
main > section:not(.hero):not(.page-hero):not(.numbers):not(.cta-band):not(.quick-links) .icon-btn,
.team-strip .icon-btn { background: #fff; border-color: #d8deea; color: #0b1020; }
main > section:not(.hero):not(.page-hero):not(.numbers):not(.cta-band):not(.quick-links) .btn-outline:hover,
.team-strip .btn-outline:hover,
main > section:not(.hero):not(.page-hero):not(.numbers):not(.cta-band):not(.quick-links) .round-btn:hover,
.team-strip .round-btn:hover { border-color: #0891b2; color: #0891b2; }
main > section:not(.hero):not(.page-hero):not(.numbers):not(.cta-band):not(.quick-links) .btn-primary,
.team-strip .btn-primary { color: #07101f; }
main > section:not(.hero):not(.page-hero):not(.numbers):not(.cta-band):not(.quick-links) .prose,
.team-strip .prose { color: #3b4660; }
main > section:not(.hero):not(.page-hero):not(.numbers):not(.cta-band):not(.quick-links) .prose strong,
.team-strip .prose strong { color: #0b1020; }
main > section:not(.hero):not(.page-hero):not(.numbers):not(.cta-band):not(.quick-links) .prose blockquote,
.team-strip .prose blockquote { background: #f4f7fb; }
main > section:not(.hero):not(.page-hero):not(.numbers):not(.cta-band):not(.quick-links) .side-links a,
.team-strip .side-links a { color: #0b1020; }
main > section:not(.hero):not(.page-hero):not(.numbers):not(.cta-band):not(.quick-links) .side-links a:hover,
.team-strip .side-links a:hover,
main > section:not(.hero):not(.page-hero):not(.numbers):not(.cta-band):not(.quick-links) .side-links a.active,
.team-strip .side-links a.active { background: #e6f8fb; color: #0e7490; }
main > section:not(.hero):not(.page-hero):not(.numbers):not(.cta-band):not(.quick-links) .side-search input,
.team-strip .side-search input,
main > section:not(.hero):not(.page-hero):not(.numbers):not(.cta-band):not(.quick-links) .big-search input,
.team-strip .big-search input { color: #0b1020; background: transparent; }
main > section:not(.hero):not(.page-hero):not(.numbers):not(.cta-band):not(.quick-links) .side-cta,
.team-strip .side-cta,
main > section:not(.hero):not(.page-hero):not(.numbers):not(.cta-band):not(.quick-links) .contact-card,
.team-strip .contact-card { border: 0; }
main > section:not(.hero):not(.page-hero):not(.numbers):not(.cta-band):not(.quick-links) .side-cta a,
.team-strip .side-cta a,
main > section:not(.hero):not(.page-hero):not(.numbers):not(.cta-band):not(.quick-links) .contact-card a,
.team-strip .contact-card a { color: #fff; }
main > section:not(.hero):not(.page-hero):not(.numbers):not(.cta-band):not(.quick-links) .portal-table th,
.team-strip .portal-table th { background: #0f172a; color: #a5f3fc; }
main > section:not(.hero):not(.page-hero):not(.numbers):not(.cta-band):not(.quick-links) .portal-table td,
.team-strip .portal-table td { color: #1e293b; border-top-color: #e9edf5; }
main > section:not(.hero):not(.page-hero):not(.numbers):not(.cta-band):not(.quick-links) .portal-table tbody tr:nth-child(odd) td,
.team-strip .portal-table tbody tr:nth-child(odd) td { background: #ffffff; }
main > section:not(.hero):not(.page-hero):not(.numbers):not(.cta-band):not(.quick-links) .portal-table tbody tr:nth-child(even) td,
.team-strip .portal-table tbody tr:nth-child(even) td { background: #f8fafc; }
main > section:not(.hero):not(.page-hero):not(.numbers):not(.cta-band):not(.quick-links) .portal-table tbody tr:hover td,
.team-strip .portal-table tbody tr:hover td { background: #ecfeff; }
main > section:not(.hero):not(.page-hero):not(.numbers):not(.cta-band):not(.quick-links) .portal-table .text-muted,
.team-strip .portal-table .text-muted,
main > section:not(.hero):not(.page-hero):not(.numbers):not(.cta-band):not(.quick-links) .table-note,
.team-strip .table-note,
main > section:not(.hero):not(.page-hero):not(.numbers):not(.cta-band):not(.quick-links) .portal-table-footer,
.team-strip .portal-table-footer,
main > section:not(.hero):not(.page-hero):not(.numbers):not(.cta-band):not(.quick-links) .muted,
.team-strip .muted { color: #67728a; }
main > section:not(.hero):not(.page-hero):not(.numbers):not(.cta-band):not(.quick-links) .portal-table tfoot th,
.team-strip .portal-table tfoot th { background: #eef2ff; color: #0b1020; border-top-color: #dfe5f1; }
main > section:not(.hero):not(.page-hero):not(.numbers):not(.cta-band):not(.quick-links) .portal-table-filter,
.team-strip .portal-table-filter { background-color: #fff; color: #0b1020; border-color: #d8deea; }
main > section:not(.hero):not(.page-hero):not(.numbers):not(.cta-band):not(.quick-links) .portal-pager button,
.team-strip .portal-pager button { background: #fff; border-color: #d8deea; color: #0b1020; }
main > section:not(.hero):not(.page-hero):not(.numbers):not(.cta-band):not(.quick-links) .portal-pager button:hover:not(:disabled),
.team-strip .portal-pager button:hover:not(:disabled),
main > section:not(.hero):not(.page-hero):not(.numbers):not(.cta-band):not(.quick-links) .portal-pager button.active,
.team-strip .portal-pager button.active { background: linear-gradient(135deg, #22d3ee, #6366f1); color: #07101f; border-color: transparent; }
main > section:not(.hero):not(.page-hero):not(.numbers):not(.cta-band):not(.quick-links) .field label,
.team-strip .field label,
main > section:not(.hero):not(.page-hero):not(.numbers):not(.cta-band):not(.quick-links) .search-summary,
.team-strip .search-summary { color: #0b1020; }
main > section:not(.hero):not(.page-hero):not(.numbers):not(.cta-band):not(.quick-links) .field input,
.team-strip .field input,
main > section:not(.hero):not(.page-hero):not(.numbers):not(.cta-band):not(.quick-links) .field select,
.team-strip .field select,
main > section:not(.hero):not(.page-hero):not(.numbers):not(.cta-band):not(.quick-links) .field textarea,
.team-strip .field textarea { background: #f4f7fb; border-color: #dfe5f1; color: #0b1020; }
main > section:not(.hero):not(.page-hero):not(.numbers):not(.cta-band):not(.quick-links) .field input:focus,
.team-strip .field input:focus,
main > section:not(.hero):not(.page-hero):not(.numbers):not(.cta-band):not(.quick-links) .field select:focus,
.team-strip .field select:focus,
main > section:not(.hero):not(.page-hero):not(.numbers):not(.cta-band):not(.quick-links) .field textarea:focus,
.team-strip .field textarea:focus { background: #fff; border-color: #0891b2; box-shadow: 0 0 0 4px rgba(8, 145, 178, .14); }
main > section:not(.hero):not(.page-hero):not(.numbers):not(.cta-band):not(.quick-links) .stat-box,
.team-strip .stat-box { background: #ffffff; border: 1px solid #e3e8f2; box-shadow: 0 8px 24px rgba(79, 70, 229, .06); backdrop-filter: none; }
main > section:not(.hero):not(.page-hero):not(.numbers):not(.cta-band):not(.quick-links) .stat-box .stat-number,
.team-strip .stat-box .stat-number { background: linear-gradient(135deg, #0891b2, #6366f1); -webkit-background-clip: text; background-clip: text; color: transparent; }
main > section:not(.hero):not(.page-hero):not(.numbers):not(.cta-band):not(.quick-links) .stat-box .stat-label,
.team-strip .stat-box .stat-label { color: #4b5573; }
main > section:not(.hero):not(.page-hero):not(.numbers):not(.cta-band):not(.quick-links) .stat-box i,
.team-strip .stat-box i { color: #6366f1; }
main > section:not(.hero):not(.page-hero):not(.numbers):not(.cta-band):not(.quick-links) .stat-box-total,
.team-strip .stat-box-total { background: linear-gradient(135deg, #22d3ee, #6366f1); border-color: transparent; }
main > section:not(.hero):not(.page-hero):not(.numbers):not(.cta-band):not(.quick-links) .stat-box-total .stat-number,
.team-strip .stat-box-total .stat-number { background: none; -webkit-text-fill-color: #07101f; color: #07101f; }
main > section:not(.hero):not(.page-hero):not(.numbers):not(.cta-band):not(.quick-links) .stat-box-total .stat-label,
.team-strip .stat-box-total .stat-label,
main > section:not(.hero):not(.page-hero):not(.numbers):not(.cta-band):not(.quick-links) .stat-box-total i,
.team-strip .stat-box-total i { color: rgba(7, 16, 31, .78); }

/* Quick links overlap the bottom of the dark hero, joining the dark top and the light page */
.hero { padding-bottom: 104px; }
.quick-links { position: relative; z-index: 2; margin-top: -64px; padding-bottom: 0; background: linear-gradient(to bottom, transparent 64px, #f4f7fb 64px); }
.quick-links + .section { background: #f4f7fb; padding-top: 88px; }
.quick-card { background: #ffffff; color: #0b1020; border: 1px solid #e3e8f2; box-shadow: 0 20px 50px rgba(15, 23, 42, .18); }
.quick-card .quick-text small { color: #67728a; }
.quick-card .quick-icon { background: linear-gradient(135deg, rgba(34, 211, 238, .16), rgba(99, 102, 241, .16)); color: #4f46e5; }
a.quick-card:hover { color: #0b1020; }
.quick-card:nth-child(2), a.quick-card:nth-child(2):hover { background: linear-gradient(135deg, #22d3ee 0%, #6366f1 100%); color: #07101f; border-color: transparent; }
.quick-card:nth-child(2) .quick-text small { color: rgba(7, 16, 31, .75); }
.quick-card:nth-child(2) .quick-icon { background: rgba(255, 255, 255, .25); color: #07101f; }

/* Work in numbers: a light indigo → cyan tint instead of a black band */
.numbers { background: linear-gradient(135deg, #eef2ff 0%, #ecfeff 100%); color: #0b1020; }
.numbers::before { background: radial-gradient(600px 300px at 10% 0%, rgba(99, 102, 241, .14), transparent 70%), radial-gradient(600px 300px at 95% 100%, rgba(34, 211, 238, .16), transparent 70%); }
.numbers .section-head.light h2 { color: #0b1020; }
.numbers .eyebrow { color: #4f46e5; }
.number { background: rgba(255, 255, 255, .85); border: 1px solid rgba(99, 102, 241, .15); box-shadow: 0 10px 30px rgba(79, 70, 229, .08); backdrop-filter: none; }
.number i { color: #6366f1; }
.number .stat-count { background: linear-gradient(135deg, #0891b2, #6366f1); -webkit-background-clip: text; background-clip: text; color: transparent; -webkit-text-fill-color: transparent; }
.number-label { color: #4b5573; }

@media (max-width: 640px) {
main > section:not(.hero):not(.page-hero):not(.numbers):not(.cta-band):not(.quick-links) .portal-table tbody tr,
.team-strip .portal-table tbody tr,
main > section:not(.hero):not(.page-hero):not(.numbers):not(.cta-band):not(.quick-links) .portal-table tbody tr td,
.team-strip .portal-table tbody tr td,
main > section:not(.hero):not(.page-hero):not(.numbers):not(.cta-band):not(.quick-links) .portal-table tbody tr:nth-child(even) td,
.team-strip .portal-table tbody tr:nth-child(even) td { background: #ffffff; }
main > section:not(.hero):not(.page-hero):not(.numbers):not(.cta-band):not(.quick-links) .portal-table tbody tr,
.team-strip .portal-table tbody tr { border-color: #e3e8f2; border-left-color: #22d3ee; }
main > section:not(.hero):not(.page-hero):not(.numbers):not(.cta-band):not(.quick-links) .portal-table td::before,
.team-strip .portal-table td::before { color: #0b1020; }
main > section:not(.hero):not(.page-hero):not(.numbers):not(.cta-band):not(.quick-links) .portal-table tfoot,
.team-strip .portal-table tfoot,
main > section:not(.hero):not(.page-hero):not(.numbers):not(.cta-band):not(.quick-links) .portal-table tfoot tr,
.team-strip .portal-table tfoot tr { background: #0f172a; }
main > section:not(.hero):not(.page-hero):not(.numbers):not(.cta-band):not(.quick-links) .portal-table tfoot th,
.team-strip .portal-table tfoot th { color: #fff; background: transparent; }
    .hero { padding-bottom: 88px; }
    .quick-links { margin-top: -56px; background: linear-gradient(to bottom, transparent 56px, #f4f7fb 56px); }
}

/* Dark cards inside the light area keep white text */
main > section:not(.hero):not(.page-hero):not(.numbers):not(.cta-band):not(.quick-links) .contact-card h3,
main > section:not(.hero):not(.page-hero):not(.numbers):not(.cta-band):not(.quick-links) .side-cta h5,
main > section:not(.hero):not(.page-hero):not(.numbers):not(.cta-band):not(.quick-links) .contact-card a,
main > section:not(.hero):not(.page-hero):not(.numbers):not(.cta-band):not(.quick-links) .contact-card li span:not(.contact-icon) { color: #fff; }
main > section:not(.hero):not(.page-hero):not(.numbers):not(.cta-band):not(.quick-links) .side-cta p,
main > section:not(.hero):not(.page-hero):not(.numbers):not(.cta-band):not(.quick-links) .contact-card small,
main > section:not(.hero):not(.page-hero):not(.numbers):not(.cta-band):not(.quick-links) .contact-card .mini-steps { color: rgba(255, 255, 255, .78); }

/* ---------- Partner institutions (scrolling band) ---------- */
.partners { overflow: hidden; }
.partners .section-head p { margin-top: 10px; }
.marquee { display: grid; gap: 16px; mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); }
.marquee-track { display: flex; width: max-content; animation: marquee 140s linear infinite; }  /* one row, to the right */
.marquee:hover .marquee-track { animation-play-state: paused; }
.marquee-group { display: flex; gap: 16px; padding: 0 8px; margin: 0; list-style: none; }
.partner { display: flex; align-items: center; gap: 12px; padding: 12px 20px 12px 12px; border-radius: 999px; background: #fff; border: 1px solid #e3e8f2; box-shadow: 0 6px 18px rgba(79, 70, 229, .06); white-space: nowrap; }
.partner-mark { min-width: 46px; height: 46px; padding: 0 8px; border-radius: 999px; display: inline-flex; align-items: center; justify-content: center; background: linear-gradient(135deg, #22d3ee, #6366f1); color: #07101f; font-weight: 800; font-size: 13px; font-family: "Space Grotesk", var(--font); }
.partner-name { font-weight: 600; color: #0b1020; font-size: 15px; max-width: 360px; overflow: hidden; text-overflow: ellipsis; }
/* Both rows move to the right: the track starts shifted left by one copy and slides back to 0 */
@keyframes marquee { from { transform: translateX(-50%); } to { transform: translateX(0); } }
@media (prefers-reduced-motion: reduce) {
    .marquee { mask-image: none; -webkit-mask-image: none; }
    .marquee-track { animation: none; width: auto; flex-wrap: wrap; justify-content: center; padding: 0 var(--gutter); }
    .marquee-group[aria-hidden="true"] { display: none; }
    .marquee-group { flex-wrap: wrap; justify-content: center; }
}
@media (max-width: 640px) { .partner-name { font-size: 14px; max-width: 220px; } .partner-mark { min-width: 40px; height: 40px; } }
