/* Spate Initiative — "Dark AI" design. Light variant: body.theme-light */
:root, .theme-dark {
    --bg: #0A0A0F;
    --bg-2: #101017;
    --surface: rgba(255, 255, 255, .04);
    --surface-2: rgba(255, 255, 255, .07);
    --border: rgba(255, 255, 255, .1);
    --border-2: rgba(255, 255, 255, .18);
    --text: #A9ABBE;
    --head: #FFFFFF;
    --muted: #8D90A6;
    --grid: rgba(255, 255, 255, .045);
    --btn-bg: #FFFFFF;
    --btn-fg: #0A0A0F;
    --header-bg: rgba(10, 10, 15, .72);
    --chip-bg: rgba(255, 255, 255, .06);
    --input-bg: rgba(255, 255, 255, .04);
    --bracket: rgba(255, 255, 255, .35);
    --glow-a: rgba(228, 32, 41, .5);
    --glow-b: rgba(255, 120, 90, .18);
}
.theme-light {
    --bg: #FAFAFB;
    --bg-2: #F1F1F4;
    --surface: #FFFFFF;
    --surface-2: #F6F6F8;
    --border: #E4E4EA;
    --border-2: #D3D3DC;
    --text: #4C4B55;
    --head: #1E1C1D;
    --muted: #6B6B78;
    --grid: rgba(0, 0, 0, .05);
    --btn-bg: #1E1C1D;
    --btn-fg: #FFFFFF;
    --header-bg: rgba(250, 250, 251, .82);
    --chip-bg: #F1F1F4;
    --input-bg: #FFFFFF;
    --bracket: #C9C9CF;
    --glow-a: rgba(228, 32, 41, .22);
    --glow-b: rgba(255, 140, 110, .14);
}
:root {
    --red: #E42029;
    --red-2: #FF4D57;
    --red-dark: #B8141C;
    --font: "Inter Tight", "Hind Siliguri", system-ui, sans-serif;
    --wrap: 1240px;
    --pad: clamp(1.1rem, 3vw, 2rem);
    --r: 22px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 6rem; }
body { margin: 0; font-family: var(--font); font-size: 16.5px; line-height: 1.65; color: var(--text); background: var(--bg); }
body.lang-bn { font-family: "Hind Siliguri", "Inter Tight", system-ui, sans-serif; font-size: 17.5px; line-height: 1.75; }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--head); }
a:hover { color: var(--red-2); }
.theme-light a:hover { color: var(--red); }
:focus-visible { outline: 2px solid var(--red-2); outline-offset: 3px; border-radius: 6px; }
::selection { background: var(--red); color: #fff; }
h1, h2, h3, h4 { color: var(--head); line-height: 1.05; margin: 0 0 .5em; font-weight: 800; letter-spacing: -.035em; }
.lang-bn h1, .lang-bn h2, .lang-bn h3, .lang-bn h4 { letter-spacing: 0; line-height: 1.3; font-weight: 700; }
h1 { font-size: clamp(2.5rem, 6.5vw, 5.2rem); }
h2 { font-size: clamp(2rem, 4vw, 3.2rem); }
h3, .h3 { font-size: 1.4rem; letter-spacing: -.02em; line-height: 1.2; }
p { margin: 0 0 1em; }
.wrap { width: min(var(--wrap), 100% - 2 * var(--pad)); margin-inline: auto; position: relative; }
.wrap.narrow { width: min(820px, 100% - 2 * var(--pad)); }
.section { padding: clamp(4.5rem, 9vw, 7.5rem) 0; position: relative; }
.section.pt-0 { padding-top: 0; }
.tint { background: var(--bg-2); }
.center { text-align: center; }
.mb { margin-bottom: 2rem; }
.mb-xl { margin-bottom: 4rem; }
.lead { font-size: 1.2rem; color: var(--text); max-width: 58ch; }
.lead-sm { color: var(--muted); }
.prose { max-width: 68ch; }
.prose.big { font-size: 1.12rem; }
.prose p:last-child { margin-bottom: 0; }
.grad { background: linear-gradient(90deg, #FF4D57, #FF8A5B); -webkit-background-clip: text; background-clip: text; color: transparent; }
.skip { position: absolute; left: -999px; top: 0; background: var(--red); color: #fff; padding: .6rem 1rem; z-index: 300; }
.skip:focus { left: 1rem; top: 1rem; }

/* Bracket kicker, taken from the [ SPATEi ] logo */
.kicker { display: inline-flex; align-items: center; gap: .55rem; font-weight: 600; font-size: .95rem; color: var(--head); margin: 0 0 1rem; }
.kicker::before, .kicker::after { color: var(--bracket); font-weight: 400; font-size: 1.25em; line-height: 1; }
.kicker::before { content: "["; }
.kicker::after { content: "]"; }
.kicker.sm { font-size: .82rem; margin-bottom: .5rem; color: var(--red-2); }
.theme-light .kicker.sm { color: var(--red); }
.kicker.sm::before, .kicker.sm::after { content: none; }

/* Grid background + glow */
.gridbg { position: absolute; inset: 0; background-image: linear-gradient(var(--grid) 1px, transparent 1px), linear-gradient(90deg, var(--grid) 1px, transparent 1px); background-size: 64px 64px; mask-image: radial-gradient(ellipse at 50% 30%, #000 30%, transparent 75%); -webkit-mask-image: radial-gradient(ellipse at 50% 30%, #000 30%, transparent 75%); pointer-events: none; }
.glow { position: absolute; left: 50%; top: -280px; width: min(1100px, 120vw); height: 640px; transform: translateX(-50%); border-radius: 50%; background: radial-gradient(closest-side, var(--glow-a), var(--glow-b) 55%, transparent); pointer-events: none; animation: glow 8s ease-in-out infinite; }
@keyframes glow { 0%, 100% { opacity: .65; transform: translateX(-50%) scale(1); } 50% { opacity: 1; transform: translateX(-50%) scale(1.08); } }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: .5rem; font: 600 1rem/1.2 var(--font); padding: .95rem 1.55rem; border-radius: 12px; border: 1px solid transparent; text-decoration: none; cursor: pointer; transition: background-color .15s, color .15s, border-color .15s, transform .15s; }
.btn:active { transform: translateY(1px); }
.btn-sm { padding: .65rem 1.05rem; font-size: .92rem; border-radius: 10px; }
.btn.full { width: 100%; }
.btn-primary, .btn-white { background: var(--btn-bg); color: var(--btn-fg); }
.btn-primary:hover, .btn-white:hover { background: var(--red); color: #fff; }
.btn-red { background: var(--red); color: #fff; }
.btn-red:hover { background: var(--red-2); color: #fff; }
.btn-ghost, .btn-outline { border-color: var(--border-2); color: var(--head); background: var(--surface); }
.btn-ghost:hover, .btn-outline:hover { border-color: var(--head); color: var(--head); }
.btn-ink { background: var(--btn-bg); color: var(--btn-fg); }
.btn-ink:hover { background: var(--red); color: #fff; }
.btn-row { display: flex; flex-wrap: wrap; gap: .75rem; align-items: center; }
.text-link { font-weight: 600; color: var(--head); text-decoration: underline; text-decoration-color: var(--red); text-decoration-thickness: 2px; text-underline-offset: .22em; }
.text-link.small { font-size: .9rem; }
.lift { transition: transform .25s ease, border-color .25s ease, background-color .25s ease; }
.lift:hover { transform: translateY(-4px); border-color: var(--border-2); }

/* Top bar */
.topbar { background: var(--bg); border-bottom: 1px solid var(--border); color: var(--muted); font-size: .82rem; }
.topbar-inner { display: flex; flex-wrap: wrap; justify-content: space-between; gap: .3rem 1.5rem; padding: .45rem 0; }
.topbar-left, .topbar-right { display: flex; flex-wrap: wrap; gap: .3rem 1.4rem; align-items: center; }
.topbar a { color: var(--head); text-decoration: none; opacity: .85; }
.topbar a:hover { opacity: 1; color: var(--head); }
.topbar-lang { font-weight: 700; }
@media (max-width: 760px) { .hide-sm { display: none; } }

/* Header */
.site-header { position: sticky; top: 0; z-index: 100; background: var(--header-bg); backdrop-filter: saturate(1.6) blur(14px); -webkit-backdrop-filter: saturate(1.6) blur(14px); border-bottom: 1px solid var(--border); }
.header-inner { display: flex; align-items: center; gap: 1rem 2.2rem; min-height: 76px; }
.brand { display: inline-flex; align-items: center; gap: .65rem; text-decoration: none; flex-shrink: 0; }
.brand img { height: 36px; width: auto; }
.brand-words b { font-weight: 800; font-size: 1.15rem; color: var(--head); }
.site-nav { display: flex; align-items: center; gap: 1.5rem; flex: 1; }
.nav-list { list-style: none; margin: 0; padding: 0; display: flex; gap: .2rem 1.7rem; flex: 1; }
.nav-top { display: inline-flex; align-items: center; gap: .25rem; background: none; border: 0; padding: .7rem 0; font: 500 .96rem var(--font); color: var(--text); cursor: pointer; text-decoration: none; }
.nav-top:hover, .nav-top[aria-expanded="true"], .nav-top.is-current { color: var(--head); }
.nav-top.is-current { box-shadow: inset 0 -2px 0 var(--red); }
.nav-top svg { transition: transform .2s; opacity: .7; }
.nav-top[aria-expanded="true"] svg { transform: rotate(180deg); }
.nav-cta { display: flex; gap: .6rem; }
.mega { position: absolute; left: 0; right: 0; top: 100%; background: var(--bg); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); box-shadow: 0 40px 80px -30px rgba(0, 0, 0, .6); }
.theme-light .mega { box-shadow: 0 40px 80px -40px rgba(0, 0, 0, .25); }
.mega-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(220px, 100%), 1fr)); gap: .4rem 1.5rem; padding: 2rem 0; }
.mega-grid.cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.mega-grid.cols-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.mega-h { margin: 0 0 .4rem .75rem; font-size: .8rem; font-weight: 700; color: var(--red-2); }
.theme-light .mega-h { color: var(--red); }
.mega-link { display: block; border-radius: 12px; padding: .65rem .75rem; text-decoration: none; color: var(--muted); font-size: .85rem; line-height: 1.4; border: 1px solid transparent; }
.mega-link strong { display: block; color: var(--head); font-size: .95rem; font-weight: 600; margin-bottom: .1rem; }
.mega-link:hover { background: var(--surface-2); border-color: var(--border); color: var(--muted); }
.mega-link.with-icon { display: flex; gap: .75rem; align-items: flex-start; }
.mega-ico { width: 38px; height: 38px; flex-shrink: 0; border-radius: 10px; background: var(--surface-2); border: 1px solid var(--border); color: var(--red-2); display: grid; place-items: center; }
.mega-promo { position: relative; overflow: hidden; background: linear-gradient(140deg, rgba(228,32,41,.35), rgba(228,32,41,.05)); border: 1px solid var(--border-2); border-radius: var(--r); padding: 1.5rem; font-size: .9rem; }
.mega-promo-h { color: var(--head); font-weight: 700; font-size: 1.1rem; margin-bottom: .5rem; }

.menu-btn { display: none; margin-left: auto; align-items: center; gap: .45rem; font: 600 .95rem var(--font); color: var(--head); background: var(--surface); border: 1px solid var(--border-2); border-radius: 10px; padding: .55rem .85rem; cursor: pointer; }
@media (max-width: 1180px) {
    .menu-btn { display: inline-flex; }
    .site-nav { display: none; position: absolute; left: 0; right: 0; top: 100%; background: var(--bg); flex-direction: column; align-items: stretch; gap: 1rem; padding: .5rem var(--pad) 1.5rem; border-bottom: 1px solid var(--border); max-height: calc(100vh - 76px); overflow-y: auto; }
    .site-nav.open { display: flex; }
    .nav-list { flex-direction: column; gap: 0; }
    .nav-list > li { border-bottom: 1px solid var(--border); }
    .nav-top { width: 100%; justify-content: space-between; padding: .95rem 0; font-size: 1.05rem; color: var(--head); }
    .nav-top.is-current { box-shadow: none; color: var(--red-2); }
    .mega { position: static; box-shadow: none; border: 0; background: transparent; }
    .mega .wrap { width: 100%; }
    .mega-grid, .mega-grid.cols-3, .mega-grid.cols-4 { grid-template-columns: 1fr; padding: 0 0 1rem; }
    .mega-promo { display: none; }
    .nav-cta .btn { flex: 1; }
}

/* Hero */
.hero { position: relative; overflow: hidden; padding: clamp(4.5rem, 10vw, 7.5rem) 0 2rem; text-align: center; }
.hero-slides { position: relative; }
.slide[hidden] { display: none; }
.slide.fade-in { animation: fadeIn .6s ease; }
@keyframes fadeIn { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
.pill { display: inline-flex; align-items: center; gap: .6rem; margin: 0 0 1.8rem; border: 1px solid var(--border-2); border-radius: 999px; padding: .3rem 1rem .3rem .3rem; font-size: .88rem; color: var(--head); background: var(--surface); }
.pill b { background: var(--btn-bg); color: var(--btn-fg); border-radius: 999px; padding: .1rem .65rem; font-size: .75rem; }
.hero-title { max-width: 15ch; margin: 0 auto 1.5rem; line-height: .98; }
.lang-bn .hero-title { line-height: 1.2; max-width: 20ch; }
.hero-text { margin: 0 auto 2.4rem; max-width: 54ch; font-size: 1.22rem; }
.hero .btn-row { justify-content: center; }
.slider-nav { display: flex; align-items: center; justify-content: center; gap: .6rem; margin-top: 2.2rem; }
.dot { width: 8px; height: 8px; border-radius: 999px; border: 0; padding: 0; background: var(--border-2); cursor: pointer; transition: width .25s, background-color .25s; }
.dot.on { width: 28px; background: var(--red); }

/* Bento */
.bento { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); grid-auto-rows: minmax(170px, auto); gap: 1rem; margin-top: 4.5rem; text-align: left; }
.tile { border-radius: var(--r); padding: 1.6rem; background: var(--surface); border: 1px solid var(--border); position: relative; overflow: hidden; }
.tile.big { grid-column: span 2; grid-row: span 2; background: linear-gradient(180deg, var(--surface-2), var(--surface)); }
.tile.wide { grid-column: span 2; }
.tile.hot { background: linear-gradient(120deg, rgba(228,32,41,.38), rgba(228,32,41,.06)); border-color: var(--border-2); }
.theme-light .tile.hot { background: linear-gradient(120deg, rgba(228,32,41,.14), rgba(228,32,41,.02)); }
.tile-num { font-size: clamp(2.3rem, 4vw, 3rem); font-weight: 800; color: var(--head); letter-spacing: -.04em; line-height: 1.05; }
.tile-num.red { color: var(--red-2); }
.theme-light .tile-num.red { color: var(--red); }
.tile-label { color: var(--muted); font-size: .95rem; }
.tile-title { color: var(--head); font-size: 1.5rem; font-weight: 700; line-height: 1.2; letter-spacing: -.02em; margin: 0 0 .5rem; }
.tile .kicker.sm { margin-bottom: .4rem; }
.tile-chips { display: flex; flex-wrap: wrap; gap: .45rem; margin-top: 1rem; }
.tile-chips span { background: var(--chip-bg); border: 1px solid var(--border); color: var(--head); border-radius: 10px; padding: .3rem .7rem; font-size: .82rem; }
.sheet { position: relative; margin-top: 1.4rem; border-radius: 14px; background: var(--bg); border: 1px solid var(--border); padding: 1rem 1.1rem; overflow: hidden; }
.sheet-row { display: grid; grid-template-columns: 1fr 56px 46px; gap: .5rem; font-size: .9rem; padding: .4rem 0; border-bottom: 1px dashed var(--border); color: var(--head); }
.sheet-row:last-child { border-bottom: 0; }
.sheet-row span:first-child { color: var(--text); }
.scan { position: absolute; left: 0; right: 0; top: 0; height: 44px; background: linear-gradient(180deg, transparent, rgba(255, 77, 87, .35), transparent); animation: scan 3.6s linear infinite; }
@keyframes scan { from { transform: translateY(-100%); } to { transform: translateY(420%); } }
@media (max-width: 900px) {
    .bento { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .tile.big { grid-row: auto; }
}
@media (max-width: 520px) {
    .bento { gap: .7rem; margin-top: 3rem; grid-auto-rows: auto; }
    .tile.big, .tile.wide { grid-column: 1 / -1; }
    .tile-num { font-size: 2rem; }
    .tile-label { font-size: .85rem; line-height: 1.4; }
}

/* Logo marquee */
.marquee-wrap { padding: 3.5rem 0 1rem; }
.marquee-title { text-align: center; color: var(--muted); font-size: .92rem; margin-bottom: 1.3rem; }
.marquee { overflow: hidden; mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent); -webkit-mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent); }
.marquee-track { display: flex; gap: 1rem; width: max-content; animation: marquee 40s linear infinite; }
.marquee:hover .marquee-track { animation-play-state: paused; }
.marquee-track li { list-style: none; width: 150px; height: 74px; flex-shrink: 0; border-radius: 14px; background: #FFFFFF; display: grid; place-items: center; padding: .7rem; border: 1px solid var(--border); }
.marquee-track img { max-height: 50px; max-width: 100%; width: auto; object-fit: contain; }
.marquee-track ul { display: contents; }
@keyframes marquee { to { transform: translateX(-50%); } }

/* Section heads */
.head-center { text-align: center; max-width: 760px; margin: 0 auto 3.5rem; }
.head-center .lead { margin-inline: auto; margin-bottom: 0; }
.head-row { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: 1.5rem; margin-bottom: 2.8rem; }
.head-row h2 { margin: 0; max-width: 18ch; }

/* Cards */
.card-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(265px, 100%), 1fr)); gap: 1rem; }
.card { display: flex; flex-direction: column; gap: .55rem; background: var(--surface); border: 1px solid var(--border); border-radius: var(--r); padding: 1.7rem; text-decoration: none; color: var(--text); position: relative; overflow: hidden; }
.card::after { content: ""; position: absolute; inset: -1px; border-radius: inherit; background: radial-gradient(400px circle at var(--mx, 50%) var(--my, 0%), rgba(228,32,41,.16), transparent 45%); opacity: 0; transition: opacity .3s; pointer-events: none; }
.card:hover::after { opacity: 1; }
.card:hover { color: var(--text); }
.card-top { display: flex; justify-content: space-between; align-items: flex-start; gap: .5rem; }
.card-title { font-size: 1.2rem; color: var(--head); margin-top: .5rem; font-weight: 700; letter-spacing: -.01em; }
.card-text { font-size: .96rem; }
.card-more { margin-top: auto; padding-top: .5rem; font-weight: 600; font-size: .9rem; color: var(--head); }
.card-more::after { content: " →"; color: var(--red-2); }
.badge-ico { width: 48px; height: 48px; border-radius: 12px; display: grid; place-items: center; font-weight: 700; font-size: .82rem; background: var(--surface-2); border: 1px solid var(--border-2); color: var(--head); font-family: ui-monospace, Menlo, Consolas, monospace; }
.badge-ico.big { width: 62px; height: 62px; border-radius: 16px; font-size: .95rem; }
.badge-ico.red { color: var(--red-2); }
.theme-light .badge-ico.red { color: var(--red); }
.tag { font-size: .75rem; font-weight: 600; color: var(--head); background: var(--chip-bg); border: 1px solid var(--border); padding: .2rem .6rem; border-radius: 999px; white-space: nowrap; }
.mark { width: 48px; height: 48px; flex-shrink: 0; border-radius: 12px; display: grid; place-items: center; overflow: hidden; background: var(--red); color: #fff; font-weight: 800; font-size: .95rem; }
.mark img { width: 100%; height: 100%; object-fit: contain; background: #fff; padding: 5px; }
.mark-platform, .mark-business { background: #2A2A36; }
.mark-service { background: #3A3A46; }

/* Product tabs */
.tabs { display: flex; flex-wrap: wrap; gap: .45rem; margin-bottom: 1.4rem; }
.tab { font: 500 .95rem var(--font); padding: .7rem 1.2rem; border-radius: 999px; cursor: pointer; border: 1px solid var(--border-2); background: var(--surface); color: var(--text); }
.tab:hover { color: var(--head); border-color: var(--head); }
.tab[aria-selected="true"] { background: var(--btn-bg); color: var(--btn-fg); border-color: var(--btn-bg); }
.tab-panel { background: var(--surface); border: 1px solid var(--border); border-radius: 26px; padding: clamp(1.5rem, 4vw, 2.75rem); display: grid; grid-template-columns: 1.2fr 1fr; gap: 2.5rem 3.5rem; align-items: center; }
.tab-panel[hidden] { display: none; }
.tab-copy h3 { font-size: clamp(1.8rem, 3.2vw, 2.4rem); }
.checks { list-style: none; margin: 0 0 1.8rem; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(220px, 100%), 1fr)); gap: .65rem 1.2rem; }
.checks.one { grid-template-columns: 1fr; }
.checks li { display: flex; gap: .6rem; align-items: flex-start; color: var(--head); font-size: .97rem; }
.checks svg { flex-shrink: 0; margin-top: .15rem; }
.tab-screen { position: relative; overflow: hidden; background: var(--bg); border: 1px solid var(--border-2); border-radius: 22px; padding: 1.6rem; min-height: 320px; display: flex; flex-direction: column; gap: .7rem; }
.tab-screen::before { content: ""; position: absolute; right: -80px; top: -80px; width: 260px; height: 260px; border-radius: 50%; background: radial-gradient(closest-side, rgba(228,32,41,.45), transparent); pointer-events: none; }
.screen-head { display: flex; align-items: center; gap: .75rem; margin-bottom: .5rem; color: var(--head); font-size: 1.1rem; position: relative; }
.screen-head .mark { width: 40px; height: 40px; }
.screen-row { position: relative; display: flex; justify-content: space-between; align-items: center; gap: 1rem; background: var(--surface); border: 1px solid var(--border); border-radius: 12px; padding: .85rem 1rem; color: var(--head); font-size: .9rem; }
@media (max-width: 900px) { .tab-panel { grid-template-columns: 1fr; } }

/* Industries */
.ind-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(180px, 100%), 1fr)); gap: 1rem; }
.ind { border: 1px solid var(--border); border-radius: var(--r); padding: 1.6rem 1.25rem; background: var(--surface); display: flex; flex-direction: column; gap: .35rem; }
.ind strong { color: var(--head); font-weight: 700; }
.ind > span:last-child:not(.ind-ico) { font-size: .88rem; line-height: 1.45; color: var(--muted); }
.ind-ico { width: 48px; height: 48px; border-radius: 12px; display: grid; place-items: center; margin-bottom: .7rem; flex-shrink: 0; background: var(--surface-2); border: 1px solid var(--border-2); color: var(--red-2); }
.theme-light .ind-ico { color: var(--red); }

/* Why + process */
.why { position: relative; overflow: hidden; background: var(--bg-2); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); padding: clamp(4.5rem, 9vw, 7.5rem) 0; }
.why-top { display: grid; grid-template-columns: 1fr 1.35fr; gap: 3rem 4.5rem; margin-bottom: 4.5rem; }
.why-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(230px, 100%), 1fr)); gap: 1rem; }
.why-item { background: var(--surface); border: 1px solid var(--border); border-radius: 18px; padding: 1.4rem; }
.why-item strong { display: block; color: var(--head); font-size: 1.05rem; margin-bottom: .3rem; }
.process-h { font-size: 1.6rem; margin-bottom: 1.6rem; }
.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(190px, 100%), 1fr)); gap: 0; border: 1px solid var(--border); border-radius: var(--r); overflow: hidden; }
.steps li { padding: 1.6rem; display: flex; flex-direction: column; gap: .25rem; font-size: .95rem; background: var(--surface); }
.steps li + li { border-left: 1px solid var(--border); }
.steps strong { color: var(--head); font-size: 1.12rem; margin-top: .8rem; }
.step-n { font: 600 .85rem ui-monospace, Menlo, Consolas, monospace; color: var(--muted); }
.step-n.red { color: var(--red-2); }
.stack { margin-top: 3rem; display: flex; flex-wrap: wrap; align-items: center; gap: .55rem; }
.stack strong { color: var(--head); margin-right: .6rem; }
.stack span { border: 1px solid var(--border-2); border-radius: 999px; padding: .35rem .9rem; font-size: .88rem; color: var(--head); background: var(--surface); }
@media (max-width: 900px) { .why-top { grid-template-columns: 1fr; } .steps li + li { border-left: 0; border-top: 1px solid var(--border); } }

/* Case studies */
.case-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(320px, 100%), 1fr)); gap: 1.2rem; }
.case { border: 1px solid var(--border); border-radius: var(--r); overflow: hidden; background: var(--surface); }
.case a { display: flex; flex-direction: column; height: 100%; text-decoration: none; color: var(--text); }
.case-cover { height: 210px; display: grid; place-items: center; color: #fff; font-weight: 800; font-size: 1.5rem; letter-spacing: -.02em; text-align: center; padding: 1rem; position: relative; }
.case-cover img { width: 100%; height: 100%; object-fit: cover; }
.case-cover:has(img) { padding: 0; }
.cover-navy { background: radial-gradient(circle at 80% 15%, rgba(228,32,41,.65), transparent 55%), #15151D; }
.cover-blue { background: radial-gradient(circle at 20% 85%, rgba(255,138,91,.55), transparent 55%), #1B1B24; }
.cover-red { background: radial-gradient(circle at 80% 80%, rgba(10,10,15,.6), transparent 55%), var(--red); }
.case-body { padding: 1.6rem; display: flex; flex-direction: column; flex: 1; }
.case-body h3 { font-size: 1.28rem; }
.case-body p { font-size: .95rem; }

/* Testimonials */
.quotes { max-width: 900px; text-align: center; }
.quote { margin: 0; }
.quote[hidden] { display: none; }
.quote blockquote { margin: 0 0 1.5rem; font-weight: 600; font-size: clamp(1.3rem, 2.8vw, 1.8rem); line-height: 1.4; color: var(--head); letter-spacing: -.015em; }
.quote figcaption strong { display: block; color: var(--head); }
.quote figcaption span { font-size: .9rem; color: var(--muted); }

/* Awards + logos */
.award-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(240px, 100%), 1fr)); gap: 1rem; }
.award { border: 1px solid var(--border); border-radius: var(--r); padding: 1.6rem; background: var(--surface); }
.award span { display: block; font: 600 .9rem ui-monospace, Menlo, Consolas, monospace; color: var(--red-2); margin-bottom: .5rem; }
.theme-light .award span { color: var(--red); }
.award strong { color: var(--head); font-size: 1.12rem; line-height: 1.35; display: block; font-weight: 600; }
.award.dark { background: linear-gradient(140deg, rgba(228,32,41,.32), rgba(228,32,41,.04)); border-color: var(--border-2); }
.logo-grid { list-style: none; margin: 0 0 1.5rem; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(min(150px, 100%), 1fr)); gap: .9rem; }
.logo-grid li { height: 96px; border-radius: 16px; display: grid; place-items: center; padding: .8rem; background: #fff; border: 1px solid var(--border); }
.logo-grid a { display: grid; place-items: center; width: 100%; height: 100%; }
.logo-grid img { max-height: 64px; width: auto; max-width: 100%; object-fit: contain; }
.logo-grid.large li { height: 120px; }
.logo-grid.large img { max-height: 84px; }

/* News */
.news-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(300px, 100%), 1fr)); gap: 1.2rem; }
.news-card { border: 1px solid var(--border); border-radius: var(--r); overflow: hidden; background: var(--surface); }
.news-card a { display: flex; flex-direction: column; height: 100%; text-decoration: none; color: var(--text); }
.news-img { aspect-ratio: 16 / 9; background: var(--surface-2); overflow: hidden; }
.news-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s; }
.news-card:hover .news-img img { transform: scale(1.04); }
.news-body { padding: 1.4rem; display: flex; flex-direction: column; flex: 1; }
.news-body time { font-size: .85rem; color: var(--muted); }
.news-body h3 { font-size: 1.15rem; margin: .35rem 0 .9rem; line-height: 1.35; }
.gallery { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(min(200px, 100%), 1fr)); gap: .75rem; }
.gallery a { display: block; aspect-ratio: 4 / 3; overflow: hidden; border-radius: 14px; }
.gallery img { width: 100%; height: 100%; object-fit: cover; transition: transform .35s; }
.gallery a:hover img { transform: scale(1.05); }

/* CTA */
.cta-wrap { padding: 0 0 clamp(4.5rem, 9vw, 7.5rem); }
.section + .cta-wrap, .why + .cta-wrap { padding-top: clamp(4.5rem, 9vw, 7.5rem); }
.cta { position: relative; overflow: hidden; border-radius: 30px; padding: clamp(2.2rem, 6vw, 4.5rem); display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 2rem; background: radial-gradient(circle at 85% 0%, rgba(255,138,91,.5), transparent 45%), radial-gradient(circle at 0% 100%, rgba(10,10,15,.55), transparent 60%), var(--red); color: #FFE2E3; }
.cta h2 { color: #fff; max-width: 18ch; margin-bottom: .4rem; }
.cta p { margin: 0; font-size: 1.12rem; }
.cta .btn-white { background: #fff; color: #0A0A0F; }
.cta .btn-white:hover { background: #0A0A0F; color: #fff; }
.cta .btn-ghost { border-color: rgba(255,255,255,.5); color: #fff; background: transparent; }
.cta .btn-ghost:hover { background: #fff; color: #0A0A0F; }

/* Page head */
.page-head { position: relative; overflow: hidden; padding: clamp(4rem, 9vw, 6.5rem) 0 clamp(3.5rem, 7vw, 5rem); border-bottom: 1px solid var(--border); }
.page-head::before { content: ""; position: absolute; inset: 0; background-image: linear-gradient(var(--grid) 1px, transparent 1px), linear-gradient(90deg, var(--grid) 1px, transparent 1px); background-size: 64px 64px; mask-image: radial-gradient(ellipse at 30% 0%, #000 20%, transparent 70%); -webkit-mask-image: radial-gradient(ellipse at 30% 0%, #000 20%, transparent 70%); }
.page-head::after { content: ""; position: absolute; right: -10%; top: -60%; width: 70%; height: 140%; background: radial-gradient(closest-side, var(--glow-a), transparent); opacity: .7; pointer-events: none; }
.page-head > .wrap { z-index: 1; }
.page-head h1 { max-width: 20ch; font-size: clamp(2.3rem, 5.5vw, 4.2rem); }
.page-head .lead { margin-bottom: 0; }
.crumb { font-size: .92rem; margin-bottom: 1.2rem; color: var(--muted); }
.crumb a { color: var(--head); }
.client-line { margin: 1.2rem 0 0; color: var(--head); font-weight: 600; }
.client-line a { color: var(--red-2); margin-left: .5rem; }
.product-head { display: grid; grid-template-columns: 1.2fr 1fr; gap: 2.5rem 3.5rem; align-items: center; }
.product-head .btn-row { margin-top: 1.6rem; }
.status { display: inline-block; font-weight: 600; font-size: .85rem; padding: .25rem .8rem; border-radius: 999px; margin: 1.2rem 0 0; border: 1px solid var(--border-2); }
.status-live { color: #46D39A; background: rgba(70,211,154,.1); border-color: rgba(70,211,154,.35); }
.theme-light .status-live { color: #0B7A52; }
.status-coming { color: var(--head); background: var(--surface-2); }
@media (max-width: 900px) { .product-head { grid-template-columns: 1fr; } }

/* Stats strip on inner pages */
.stats-wrap { padding: 3rem 0 0; }
.stats { margin: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(170px, 100%), 1fr)); border: 1px solid var(--border); border-radius: var(--r); overflow: hidden; }
.stats > div { padding: 1.4rem 1.5rem; background: var(--surface); }
.stats > div + div { border-left: 1px solid var(--border); }
.stats dt { font-weight: 800; font-size: 2.3rem; color: var(--head); letter-spacing: -.04em; line-height: 1.1; }
.stats dt.red { color: var(--red-2); }
.stats dd { margin: .3rem 0 0; font-size: .9rem; line-height: 1.4; color: var(--muted); }
@media (max-width: 760px) { .stats > div + div { border-left: 0; border-top: 1px solid var(--border); } }

/* Shared panels */
.split { display: grid; grid-template-columns: 1.3fr 1fr; gap: 2.5rem 4.5rem; align-items: start; }
.panel { background: var(--surface); border: 1px solid var(--border); border-radius: var(--r); padding: 1.8rem; }
.panel.dark { background: linear-gradient(140deg, rgba(228,32,41,.28), rgba(228,32,41,.04)); border-color: var(--border-2); }
.panel p:last-child { margin-bottom: 0; }
.mv { display: grid; gap: 1rem; }
.article-img { margin-top: 2.5rem; }
.article-img img { border-radius: var(--r); max-height: 560px; width: 100%; object-fit: cover; }
@media (max-width: 900px) { .split { grid-template-columns: 1fr; } }

/* Services page */
.service-list { display: grid; gap: 1rem; }
.service-row { display: grid; grid-template-columns: auto 1fr auto; gap: 1.5rem 2rem; align-items: start; border: 1px solid var(--border); background: var(--surface); border-radius: var(--r); padding: 1.8rem; scroll-margin-top: 7rem; }
.service-row:target { border-color: var(--red); box-shadow: 0 0 0 3px rgba(228,32,41,.2); }
@media (max-width: 760px) { .service-row { grid-template-columns: 1fr; } }

/* Products page */
.chips { display: flex; flex-wrap: wrap; gap: .5rem; margin-bottom: 2.5rem; }
.chips a { padding: .55rem 1.1rem; border: 1px solid var(--border-2); border-radius: 999px; text-decoration: none; font-weight: 500; font-size: .92rem; background: var(--surface); }
.chips a:hover { border-color: var(--head); color: var(--head); }
.prod-group { margin-bottom: 3.5rem; scroll-margin-top: 7rem; }
.prod-group h2 { font-size: 1.7rem; margin-bottom: 1.3rem; }

/* Team */
.role { color: var(--red-2); font-weight: 600; margin-top: -.3rem; }
.theme-light .role { color: var(--red); }
.team-grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(min(230px, 100%), 1fr)); gap: 1.2rem; }
.team-block + .team-block { margin-top: 4rem; }
.team-block .head-row { margin-bottom: 1.5rem; }
.team-block .kicker { font-size: 1.15rem; margin-bottom: .3rem; }
.family { display: flex; flex-wrap: wrap; align-items: center; gap: .45rem; margin: -0.6rem 0 1.6rem; font-size: .9rem; color: var(--muted); }
.family a { border: 1px solid var(--border-2); background: var(--surface); border-radius: 999px; padding: .25rem .75rem; text-decoration: none; color: var(--head); }
.family a:hover { border-color: var(--head); }
.member { border: 1px solid var(--border); border-radius: var(--r); overflow: hidden; background: var(--surface); }
.member-photo { aspect-ratio: 1; }
.member-body { padding: 1.1rem 1.25rem 1.35rem; }
.member h3 { font-size: 1.08rem; margin: 0 0 .2rem; }
.member p { margin: 0; color: var(--muted); font-size: .92rem; line-height: 1.45; }

/* Career */
.jobs { display: grid; gap: 1rem; }
.job { border: 1px solid var(--border); background: var(--surface); border-radius: var(--r); padding: 0 1.5rem; }
.job[open] { padding-bottom: 1.5rem; }
.job summary { cursor: pointer; padding: 1.3rem 0; list-style: none; }
.job summary::-webkit-details-marker { display: none; }
.job-title { display: block; font-weight: 700; font-size: 1.2rem; color: var(--head); }
.job-meta { display: flex; flex-wrap: wrap; gap: .3rem 1.2rem; color: var(--muted); font-size: .92rem; margin-top: .3rem; }
.job .prose { margin-bottom: 1.2rem; }
.partner { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 1.5rem; padding: clamp(1.8rem, 4vw, 3rem); }
.partner p { max-width: 60ch; }

/* Contact */
.contact-grid { display: grid; grid-template-columns: 1fr 1.4fr; gap: 2.5rem 4rem; align-items: start; }
.contact-info { display: grid; gap: .9rem; }
.info { display: flex; gap: 1rem; align-items: flex-start; border: 1px solid var(--border); background: var(--surface); border-radius: var(--r); padding: 1.2rem; text-decoration: none; color: var(--head); font-weight: 600; }
.info .ind-ico { margin: 0; }
.info small { display: block; font-weight: 500; color: var(--muted); font-size: .82rem; }
a.info:hover { border-color: var(--border-2); color: var(--head); }
.form-card { background: var(--surface); border: 1px solid var(--border-2); border-radius: 24px; padding: clamp(1.5rem, 4vw, 2.5rem); }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 0 1rem; }
.field { margin-bottom: 1.1rem; }
.field label { display: block; font-weight: 600; color: var(--head); margin-bottom: .4rem; font-size: .92rem; }
.field input, .field textarea, .field select { width: 100%; font: inherit; font-size: 1rem; color: var(--head); padding: .8rem .95rem; border: 1px solid var(--border-2); border-radius: 12px; background: var(--input-bg); }
.field select option { color: #111; }
.field textarea { resize: vertical; }
.field input:focus, .field textarea:focus, .field select:focus { outline: none; border-color: var(--red-2); box-shadow: 0 0 0 3px rgba(228,32,41,.22); }
.field [aria-invalid="true"] { border-color: var(--red-2); }
.field-err { color: var(--red-2); font-size: .88rem; margin: .35rem 0 0; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.notice { padding: .9rem 1.1rem; border-radius: 12px; margin-bottom: 1.3rem; font-weight: 500; border: 1px solid; }
.notice.ok { background: rgba(70,211,154,.1); color: #46D39A; border-color: rgba(70,211,154,.35); }
.theme-light .notice.ok { color: #0B7A52; }
.notice.err { background: rgba(228,32,41,.1); color: var(--red-2); border-color: rgba(228,32,41,.35); }
@media (max-width: 900px) { .contact-grid { grid-template-columns: 1fr; } }
@media (max-width: 560px) { .field-row { grid-template-columns: 1fr; } }

/* Footer */
.site-footer { position: relative; overflow: hidden; background: var(--bg); border-top: 1px solid var(--border); color: var(--muted); font-size: .95rem; padding: clamp(3.5rem, 7vw, 5rem) 0 2rem; }
.footer-grid { display: grid; grid-template-columns: 1.8fr repeat(4, 1fr); gap: 2.5rem; }
.footer-brand img { height: 92px; width: auto; margin-bottom: 1rem; }
.footer-brand p { max-width: 40ch; }
.footer-addr { color: var(--head); }
.footer-h { color: var(--head); font-size: .98rem; margin: 0 0 1rem; letter-spacing: 0; font-weight: 600; }
.footer-links { list-style: none; margin: 0; padding: 0; display: grid; gap: .55rem; }
.site-footer a { color: var(--muted); text-decoration: none; }
.site-footer a:hover { color: var(--head); }
.footer-bottom { margin-top: 3rem; padding-top: 1.5rem; border-top: 1px solid var(--border); display: flex; flex-wrap: wrap; justify-content: space-between; gap: .8rem; font-size: .86rem; }
.footer-word { margin-top: 2.5rem; font-weight: 800; font-size: clamp(4rem, 17vw, 15rem); line-height: .8; letter-spacing: -.06em; color: transparent; -webkit-text-stroke: 1px var(--border-2); text-align: center; user-select: none; }
@media (max-width: 1000px) { .footer-grid { grid-template-columns: 1fr 1fr; } .footer-brand { grid-column: 1 / -1; } }
@media (max-width: 520px) { .footer-grid { grid-template-columns: 1fr; } }

@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    *, *::before, *::after { animation: none !important; transition: none !important; }
}

/* 404 */
.nf { padding-bottom: clamp(5rem, 10vw, 8rem); }
.nf-code { font: 800 clamp(4rem, 14vw, 9rem)/1 var(--font); letter-spacing: -.05em; color: transparent; -webkit-text-stroke: 1.5px var(--border-2); margin: 0 0 1rem; }

/* Theme switch: show the logo/icon that fits the active theme */
.theme-dark .on-light, .theme-light .on-dark { display: none !important; }
.theme-btn { width: 42px; height: 42px; flex-shrink: 0; border-radius: 10px; border: 1px solid var(--border-2); background: var(--surface); color: var(--head); display: grid; place-items: center; cursor: pointer; order: 3; }
.theme-btn:hover { border-color: var(--head); }
.theme-btn span { display: grid; place-items: center; }
.site-nav { order: 2; }
.menu-btn { order: 4; }
html { transition: background-color .3s; }
@media (max-width: 1180px) { .theme-btn { margin-left: auto; } .menu-btn { margin-left: 0; } }

/* Page loader: only when JavaScript runs (html.js), so the page is never hidden without it */
.loader { display: none; }
.js .loader { position: fixed; inset: 0; z-index: 1000; display: grid; place-items: center; background: var(--bg); transition: opacity .45s ease, visibility .45s ease; }
.js .loader.done { opacity: 0; visibility: hidden; }
.loader-box { position: relative; width: 170px; height: 170px; display: grid; place-items: center; }
.loader-ring { position: absolute; inset: 0; width: 100%; height: 100%; }
.loader-ring circle { fill: none; }
.loader-ring .track { stroke: var(--border); stroke-width: 2; }
.loader-ring .arc { stroke: url(#loaderGrad); stroke-width: 3; stroke-linecap: round; stroke-dasharray: 150 315; transform-origin: 80px 80px; animation: loaderSpin 1.2s linear infinite; }
.loader-ring .dot { fill: var(--red); transform-origin: 80px 80px; animation: loaderSpin 2.4s linear infinite reverse; opacity: .8; }
.loader-logo { position: relative; display: grid; place-items: center; animation: loaderPulse 1.6s ease-in-out infinite; }
.loader-logo img { height: 30px; width: auto; }
.loader::before { content: ""; position: absolute; width: 260px; height: 260px; border-radius: 50%; background: radial-gradient(closest-side, var(--glow-a), transparent); opacity: .5; pointer-events: none; }
@keyframes loaderSpin { to { transform: rotate(360deg); } }
@keyframes loaderPulse { 0%, 100% { opacity: 1; transform: scale(1); } 50% { opacity: .7; transform: scale(.97); } }

/* Back to top with scroll progress ring */
.to-top { position: fixed; right: clamp(1rem, 3vw, 1.75rem); bottom: clamp(1rem, 3vw, 1.75rem); z-index: 90; width: 56px; height: 56px; border-radius: 50%; border: 0; padding: 0; cursor: pointer; display: grid; place-items: center; background: var(--surface); color: var(--red); box-shadow: 0 12px 30px -10px rgba(0, 0, 0, .45); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); opacity: 0; visibility: hidden; transform: translateY(12px); transition: opacity .25s, visibility .25s, transform .25s; }
.theme-dark .to-top { background: rgba(20, 20, 28, .85); color: var(--red-2); }
.theme-light .to-top { background: #FFFFFF; box-shadow: 0 12px 30px -12px rgba(0, 0, 0, .25); }
.to-top.show { opacity: 1; visibility: visible; transform: none; }
.to-top:hover { transform: translateY(-3px); }
.to-top > svg:last-child { transform: rotate(180deg); position: relative; }
.to-top-ring { position: absolute; inset: 0; width: 100%; height: 100%; transform: rotate(-90deg); }
.to-top-ring circle { fill: none; stroke-width: 3; }
.to-top-ring .track { stroke: rgba(228, 32, 41, .18); }
.to-top-ring .bar { stroke: var(--red); stroke-linecap: round; stroke-dasharray: 157.08; stroke-dashoffset: 157.08; transition: stroke-dashoffset .1s linear; }

/* Mobile touch comfort */
.crumb a, .client-line a { display: inline-block; padding: .35rem 0; }
@media (max-width: 560px) {
    .pill { font-size: .8rem; text-align: left; }
    .hero-text { font-size: 1.05rem; }
    .btn-row .btn { flex: 1 1 auto; }
    .cta .btn-row { width: 100%; }
    .tabs { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; margin-inline: calc(var(--pad) * -1); padding-inline: var(--pad); -webkit-overflow-scrolling: touch; }
    .tabs::-webkit-scrollbar { display: none; }
    .tab { flex-shrink: 0; }
    .tab-panel { padding: 1.3rem; border-radius: 20px; }
    .tab-screen { min-height: 0; }
    .tile { padding: 1.3rem; }
    .why-item, .steps li, .card, .award, .panel, .service-row { padding: 1.3rem; }
    .form-card { border-radius: 18px; }
    .to-top { width: 50px; height: 50px; }
    .footer-word { font-size: 22vw; }
    .head-row .btn { width: 100%; }
}

/* Denser layout on phones so the homepage is not endlessly long */
@media (max-width: 560px) {
    .topbar-inner { justify-content: space-between; }
    .services-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .7rem; }
    .services-grid .card { padding: 1.05rem; gap: .35rem; }
    .services-grid .card-title { font-size: 1rem; margin-top: .3rem; }
    .services-grid .card-text { font-size: .84rem; line-height: 1.45; }
    .services-grid .card-more { display: none; }
    .services-grid .badge-ico { width: 40px; height: 40px; font-size: .72rem; }
    .ind-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .7rem; }
    .ind { padding: 1.1rem; }
    .ind > span:last-child:not(.ind-ico) { font-size: .82rem; }
    .ind-ico { width: 42px; height: 42px; margin-bottom: .4rem; }
    .why-grid { gap: .7rem; }
    .section { padding: 3.75rem 0; }
    .why { padding: 3.75rem 0; }
    .head-center { margin-bottom: 2.2rem; }
    .award-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .7rem; }
    .award strong { font-size: .95rem; }
}
@media (max-width: 340px) {
    .services-grid, .ind-grid, .award-grid { grid-template-columns: 1fr; }
}
@media (max-width: 560px) { .tile:not(.big):not(.wide) .tile-title { font-size: 1rem !important; } }
@media (max-width: 560px) {
    .team-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .7rem; }
    .member-body { padding: .8rem .85rem 1rem; }
    .member h3 { font-size: .95rem; }
    .member p { font-size: .82rem; }
    .member-photo span { font-size: 2rem; }
}
body.nav-open { overflow: hidden; }
@media (min-width: 1181px) { body.nav-open { overflow: auto; } }

/* Footer details */
.footer-contact { display: grid; gap: .6rem; margin-top: 1.2rem; }
.footer-contact a, .footer-contact > span { display: flex; gap: .7rem; align-items: flex-start; color: var(--head); text-decoration: none; font-size: .93rem; line-height: 1.5; }
.footer-contact a:hover { color: var(--red-2); text-decoration: none; }
.fc-ico { width: 34px; height: 34px; flex-shrink: 0; border-radius: 10px; display: grid; place-items: center; background: var(--surface-2); border: 1px solid var(--border); color: var(--red-2); margin-top: -.3rem; }
.theme-light .fc-ico { color: var(--red); }
.footer-social { display: flex; flex-wrap: wrap; gap: .5rem; margin-top: 1.2rem; }
.footer-social a { border: 1px solid var(--border-2); border-radius: 999px; padding: .35rem .9rem; font-size: .85rem; color: var(--head); }
.footer-social a:hover { border-color: var(--head); text-decoration: none; }
.footer-cta .footer-h { font-size: 1.05rem; line-height: 1.35; }
.footer-cta p { font-size: .9rem; }

@media (max-width: 1000px) { .footer-cta { grid-column: 1 / -1; } }
@media (max-width: 560px) {
    .site-footer { padding-top: 3rem; }
    .footer-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 2rem 1.2rem; }
    .footer-brand { grid-column: 1 / -1; padding-bottom: 1.8rem; border-bottom: 1px solid var(--border); }
    .footer-brand img { height: 64px; margin-bottom: .8rem; }
    .footer-brand p { font-size: .92rem; }
    .footer-h { font-size: .9rem; margin-bottom: .7rem; }
    .footer-links { gap: .15rem; }
    .footer-links a { display: block; padding: .3rem 0; font-size: .9rem; }
    .footer-col:nth-child(4) { grid-column: 1 / -1; }
    .footer-col:nth-child(4) .footer-links { display: flex; flex-wrap: wrap; gap: .3rem .5rem; }
    .footer-col:nth-child(4) .footer-links a { border: 1px solid var(--border); border-radius: 999px; padding: .35rem .85rem; font-size: .85rem; }
    .footer-cta { grid-column: 1 / -1; background: linear-gradient(140deg, rgba(228,32,41,.28), rgba(228,32,41,.04)); border: 1px solid var(--border-2); border-radius: 18px; padding: 1.3rem; }
    .footer-cta .btn { width: 100%; }
    .footer-bottom { flex-direction: column; text-align: center; align-items: center; margin-top: 2rem; font-size: .8rem; }
    .footer-word { margin-top: 1.5rem; }
}
.site-footer .btn-primary, .site-footer .btn-primary:hover { color: var(--btn-fg); text-decoration: none; }
.site-footer .btn-primary:hover { color: #fff; }

/* Member photos */
.member-photo { background: var(--surface-2); overflow: hidden; display: grid; place-items: center; }
.member-photo img { width: 100%; height: 100%; object-fit: cover; object-position: top; }
.member-photo span { font-weight: 800; font-size: 3rem; color: var(--head); }

/* Leader profile */
.leader { display: grid; grid-template-columns: minmax(260px, 380px) 1fr; gap: 2.5rem 4rem; align-items: center; }
.leader-photo { position: relative; margin: 0; border-radius: 28px; overflow: hidden; aspect-ratio: 4 / 5; background: var(--surface-2); border: 1px solid var(--border-2); display: grid; place-items: center; }
.leader-photo::after { content: ""; position: absolute; inset: 0; border-radius: inherit; box-shadow: inset 0 0 0 1px rgba(255,255,255,.06); pointer-events: none; }
.leader-photo img { width: 100%; height: 100%; object-fit: cover; object-position: top; }
.leader-initials { font-weight: 800; font-size: 4rem; color: var(--head); }
.leader-cap { display: none; }
.leader-name { font-size: clamp(2rem, 4vw, 3rem); letter-spacing: -.025em; margin-bottom: .3rem; }
.lang-bn .leader-name { letter-spacing: 0; }
.leader-body .role { font-size: 1.05rem; margin: 0 0 1.4rem; }
.leader-bio { border-left: 2px solid var(--red); padding-left: 1.2rem; margin-bottom: 1.6rem; font-size: 1.05rem; }

@media (max-width: 760px) {
    .leader { grid-template-columns: 1fr; gap: 1.6rem; }
    .leader-photo { width: 100%; max-width: 440px; margin-inline: auto; aspect-ratio: 4 / 4.6; }
    /* Name and role sit on the photo, like a profile card */
    .leader-cap { display: flex; flex-direction: column; gap: .2rem; position: absolute; left: 0; right: 0; bottom: 0; padding: 4.5rem 1.3rem 1.2rem; background: linear-gradient(180deg, transparent, rgba(5, 5, 9, .92)); color: #fff; text-align: left; }
    .leader-cap strong { font-size: 1.45rem; font-weight: 800; letter-spacing: -.02em; line-height: 1.15; }
    .leader-cap span { color: #FF6B73; font-weight: 600; font-size: .92rem; }
    .leader-body .kicker { display: none; }
    /* Still read by screen readers (the caption on the photo is hidden from them) */
    .leader-name, .leader-body .role { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; margin: 0; }
    .leader-bio { font-size: 1rem; margin-bottom: 1.2rem; }
    .leader-body .btn-row .btn { flex: 1; }
}

/* Inner pages on phones */
@media (max-width: 560px) {
    .page-head { padding: 2.8rem 0 2.4rem; }
    .page-head h1 { font-size: clamp(2.1rem, 9vw, 2.6rem); }
    .page-head .lead { font-size: 1.02rem; }
    .stats { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1px; background: var(--border); }
    .stats > div + div { border: 0; }
    .stats > div { padding: 1.1rem; }
    .stats > div:last-child:nth-child(odd) { grid-column: 1 / -1; }
    .stats dt { font-size: 1.8rem; }
    .chips { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; margin-inline: calc(var(--pad) * -1); padding-inline: var(--pad); }
    .chips::-webkit-scrollbar { display: none; }
    .chips a { flex-shrink: 0; }
    .prod-group h2 { font-size: 1.35rem; }
    .service-row .btn { width: 100%; }
    .service-row .badge-ico.big { width: 52px; height: 52px; }
    .split { gap: 1.5rem; }
    .info { padding: 1rem; }
    .job { padding: 0 1.1rem; }
    .partner .btn { width: 100%; }
    .team-block + .team-block { margin-top: 2.8rem; }
}

/* Partners: two rows moving in opposite directions */
.partners { overflow: hidden; }
.p-rows { display: grid; gap: 1rem; }
.p-track { display: flex; gap: 1rem; width: max-content; margin: 0; padding: 0; list-style: none; animation: pmove 45s linear infinite; }
.p-track.reverse { animation-direction: reverse; animation-duration: 52s; }
.p-marquee:hover .p-track { animation-play-state: paused; }
.p-track li, .p-static li { list-style: none; }
@keyframes pmove { from { transform: translateX(0); } to { transform: translateX(-33.333%); } }
.p-card { width: 190px; height: 92px; border-radius: 18px; display: grid; place-items: center; padding: .9rem 1.2rem; background: #FFFFFF; border: 1px solid var(--border); text-decoration: none; transition: transform .25s, box-shadow .25s; }
.p-card img { max-height: 54px; max-width: 100%; width: auto; object-fit: contain; }
a.p-card:hover { transform: translateY(-3px); box-shadow: 0 14px 30px -16px rgba(0,0,0,.45); }
.p-text { display: flex; align-items: center; justify-content: center; gap: .55rem; background: var(--surface); border-color: var(--border-2); color: var(--head); font-weight: 700; font-size: 1.02rem; letter-spacing: -.01em; white-space: nowrap; }
.p-dot { width: 9px; height: 9px; border-radius: 50%; background: var(--red); flex-shrink: 0; box-shadow: 0 0 0 4px rgba(228,32,41,.18); }
.p-static { display: flex; flex-wrap: wrap; justify-content: center; gap: 1rem; margin: 0; padding: 0; }
@media (max-width: 560px) {
    .p-card { width: 150px; height: 74px; border-radius: 14px; padding: .7rem .9rem; }
    .p-card img { max-height: 42px; }
    .p-text { font-size: .9rem; }
    .p-rows, .p-track { gap: .7rem; }
}
@media (prefers-reduced-motion: reduce) {
    .p-track { width: auto; flex-wrap: wrap; justify-content: center; }
    .p-track li[aria-hidden="true"] { display: none; }
}
