/* ===========================================================================
   InnovQuant — site stylesheet
   ---------------------------------------------------------------------------
   The whole public front end runs on this one file. No framework, no theme.

   Direction: corporate and trustworthy. The palette is taken from the logo —
   InnovQuant blue (#0088D0) on white, with deep navy for the bands that carry
   proof (stats, page banners, footer). Photography carries the warmth; the
   chrome around it stays orderly.

   Rules the system keeps:
   - One typeface, Plus Jakarta Sans. Weight carries hierarchy.
   - Blue is for actions and highlights. Navy is for weight. Nothing else is
     coloured except technology marks, which keep their own brand colours.
   - Three radii: 12px for small parts, 20px for cards and photos, 999px for
     pills and buttons.
   - Motion has one job each: the hero arrives once, numbers count once,
     sections settle in as they are reached. All of it stops for people who
     ask for reduced motion.
   =========================================================================== */

:root {
    --blue:     #0088D0;
    --blue-d:   #006CB5;
    --blue-l:   #00A0E3;
    --navy:     #0A2240;
    --navy-2:   #12315A;
    --ink:      #0F1B2D;
    --ink-2:    #364357;
    --muted:    #5A687C;
    --faint:    #8794A6;
    --line:     #E2E9F1;
    --line-2:   #CDD8E4;
    --mist:     #F3F7FB;
    --tint:     #E5F3FB;
    --surface:  #FFFFFF;
    --live:     #12B76A;

    --font: "Plus Jakarta Sans", system-ui, -apple-system, "Segoe UI", sans-serif;

    --rs: 12px;
    --r:  20px;
    --rp: 999px;

    --shadow:    0 1px 2px rgba(10,34,64,.05), 0 12px 32px -16px rgba(10,34,64,.22);
    --shadow-lg: 0 2px 4px rgba(10,34,64,.04), 0 32px 64px -28px rgba(10,34,64,.38);

    --w:  1220px;
    --gx: clamp(16px, 4vw, 40px);
    --ease: cubic-bezier(.2,.7,.2,1);
}

/* --- Reset ----------------------------------------------------------------- */

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
    margin: 0; background: var(--surface); color: var(--ink);
    font-family: var(--font); font-size: 17px; line-height: 1.65;
    -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale;
    overflow-x: hidden;
}
img, svg { max-width: 100%; }
img { height: auto; display: block; }
a { color: var(--blue); text-decoration: none; }
a:hover { color: var(--blue-d); }
h1, h2, h3, h4 { margin: 0; font-weight: 800; letter-spacing: -0.022em; line-height: 1.15; color: var(--ink); text-wrap: balance; }
p { margin: 0; text-wrap: pretty; }
button { font: inherit; cursor: pointer; }
:focus-visible { outline: 3px solid var(--blue-l); outline-offset: 3px; border-radius: 6px; }

.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip { position: absolute; left: -9999px; top: 12px; z-index: 100; padding: 10px 16px; background: var(--navy); color: #fff; border-radius: 8px; }
.skip:focus { left: 12px; color: #fff; }

/* --- Layout ---------------------------------------------------------------- */

.wrap { width: min(var(--w), 100% - 2 * var(--gx)); margin-inline: auto; }

.section { padding: clamp(64px, 8vw, 112px) 0; }
.section--tight { padding: clamp(40px, 5vw, 64px) 0; }
.section--alt { background: var(--mist); }
.section:not(.section--alt):not(.band) + .section:not(.section--alt):not(.band) { padding-top: 0; }

/* --- Type ------------------------------------------------------------------ */

.display { font-size: clamp(2.35rem, 5.2vw, 4rem); font-weight: 800; line-height: 1.06; letter-spacing: -0.035em; }
.h1      { font-size: clamp(2rem, 4.2vw, 3.1rem); font-weight: 800; letter-spacing: -0.03em; max-width: 22ch; }
.h2      { font-size: clamp(1.75rem, 3.2vw, 2.6rem); font-weight: 800; letter-spacing: -0.03em; max-width: 24ch; }
.h3      { font-size: 1.2rem; font-weight: 700; }
.lede    { font-size: clamp(1.06rem, 1.5vw, 1.22rem); line-height: 1.6; color: var(--ink-2); max-width: 58ch; }
.muted   { color: var(--muted); }
.small   { font-size: .93rem; }

/* Section label: a short blue line and a word, used once per section to say
   what the block is — not a decorative eyebrow on every heading. */
.tag { display: inline-flex; align-items: center; gap: 10px; font-size: .92rem; font-weight: 700; color: var(--blue); }
.tag::before { content: ""; width: 26px; height: 2px; border-radius: 2px; background: currentColor; }

.head { display: grid; gap: 14px; margin-bottom: clamp(32px, 4vw, 52px); }
.head .lede { max-width: 62ch; }
.head--center { justify-items: center; text-align: center; }
.head--center .h2, .head--center .lede { margin-inline: auto; }
.head--split { grid-template-columns: minmax(0, 1fr) auto; align-items: end; gap: 14px 40px; }
.head--split > div { display: grid; gap: 14px; }
@media (max-width: 760px) { .head--split { grid-template-columns: 1fr; } }

/* --- Buttons --------------------------------------------------------------- */

.btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 10px;
    height: 50px; padding: 0 24px; border-radius: var(--rp);
    font-weight: 700; font-size: .98rem; line-height: 1; white-space: nowrap;
    border: 1.5px solid transparent; text-decoration: none;
    transition: background-color .2s ease, border-color .2s ease, color .2s ease, transform .2s var(--ease), box-shadow .2s ease;
}
.btn svg { width: 18px; height: 18px; flex: none; transition: transform .2s var(--ease); }
.btn:hover { transform: translateY(-2px); }
.btn:hover svg { transform: translateX(3px); }
.btn:active { transform: translateY(0); }

.btn--primary { background: var(--blue); color: #fff; box-shadow: 0 10px 24px -12px rgba(0,136,208,.8); }
.btn--primary:hover { background: var(--blue-d); color: #fff; }
.btn--ghost { background: var(--surface); color: var(--ink); border-color: var(--line-2); }
.btn--ghost:hover { border-color: var(--blue); color: var(--blue); }
.btn--ink { background: var(--navy); color: #fff; }
.btn--ink:hover { background: var(--navy-2); color: #fff; }
.btn--light { background: #fff; color: var(--navy); }
.btn--light:hover { background: var(--tint); color: var(--navy); }
.btn--outline-light { background: transparent; color: #fff; border-color: rgba(255,255,255,.4); }
.btn--outline-light:hover { border-color: #fff; color: #fff; }

.btn--sm { height: 42px; padding: 0 18px; font-size: .92rem; }
.btn--lg { height: 56px; padding: 0 30px; font-size: 1.02rem; }
.btn:disabled { opacity: .55; cursor: not-allowed; transform: none; }

.actions { display: flex; flex-wrap: wrap; gap: 12px; }
@media (max-width: 480px) { .hero .actions .btn, .cta .actions .btn { flex: 1 1 100%; } }

.link { display: inline-flex; align-items: center; gap: 8px; font-weight: 700; color: var(--blue); }
.link svg { width: 16px; height: 16px; transition: transform .2s var(--ease); }
.link:hover svg { transform: translateX(4px); }

/* --- Top bar + header ------------------------------------------------------ */

.topbar { background: var(--navy); color: rgba(255,255,255,.78); font-size: .86rem; }
.topbar__in { display: flex; align-items: center; justify-content: space-between; gap: 20px; height: 40px; }
.topbar__group { display: flex; align-items: center; gap: 24px; }
.topbar a, .topbar span { display: inline-flex; align-items: center; gap: 8px; color: rgba(255,255,255,.78); }
.topbar a:hover { color: #fff; }
.topbar svg { width: 15px; height: 15px; color: var(--blue-l); }
@media (max-width: 760px) { .topbar { display: none; } }

.hdr {
    position: sticky; top: 0; z-index: 50; background: rgba(255,255,255,.94);
    -webkit-backdrop-filter: saturate(160%) blur(12px); backdrop-filter: saturate(160%) blur(12px);
    border-bottom: 1px solid transparent; transition: box-shadow .25s ease, border-color .25s ease;
}
.hdr.is-stuck { border-color: var(--line); box-shadow: 0 8px 24px -18px rgba(10,34,64,.35); }
.hdr__in { display: flex; align-items: center; justify-content: space-between; gap: 24px; height: 78px; transition: height .25s ease; }
.hdr.is-stuck .hdr__in { height: 68px; }
.hdr__logo img { height: 36px; width: auto; }

.hdr__nav { display: flex; align-items: center; gap: 2px; }
.hdr__nav a:not(.btn) {
    position: relative; padding: 10px 14px; color: var(--ink-2); font-weight: 600; font-size: .96rem;
}
.hdr__nav a:not(.btn)::after {
    content: ""; position: absolute; left: 14px; right: 14px; bottom: 4px; height: 2px; border-radius: 2px;
    background: var(--blue); transform: scaleX(0); transform-origin: left; transition: transform .25s var(--ease);
}
.hdr__nav a:not(.btn):hover { color: var(--ink); }
.hdr__nav a:not(.btn):hover::after, .hdr__nav a[aria-current="page"]::after { transform: scaleX(1); }
.hdr__nav a[aria-current="page"] { color: var(--ink); }
.hdr__nav .btn { margin-left: 14px; }
.hdr__nav a.btn--primary, .hdr__nav a.btn--primary:hover { color: #fff; }

.hdr__burger {
    display: none; width: 46px; height: 46px; border-radius: var(--rs);
    border: 1px solid var(--line-2); background: var(--surface); color: var(--ink);
    align-items: center; justify-content: center;
}
@media (max-width: 960px) { .hdr__nav { display: none; } .hdr__burger { display: inline-flex; } }

.drawer { position: fixed; inset: 0; z-index: 60; display: none; background: var(--surface); padding: 20px var(--gx); overflow-y: auto; }
.drawer[data-open="true"] { display: block; animation: drawer .25s var(--ease); }
@keyframes drawer { from { opacity: 0; transform: translateY(-8px); } }
.drawer__top { display: flex; align-items: center; justify-content: space-between; height: 48px; margin-bottom: 20px; }
.drawer__nav { display: grid; gap: 2px; }
.drawer__nav a { display: block; padding: 15px 12px; border-radius: var(--rs); font-size: 1.25rem; font-weight: 700; color: var(--ink); border-bottom: 1px solid var(--line); }
.drawer__nav a:hover { background: var(--mist); }
.drawer__cta { margin-top: 24px; }
.drawer__contact { margin-top: 24px; display: grid; gap: 6px; color: var(--muted); font-size: .95rem; }

/* --- Hero ------------------------------------------------------------------ */

.hero {
    position: relative; overflow: hidden;
    padding: clamp(48px, 7vw, 96px) 0 clamp(24px, 3vw, 40px);
    background:
        radial-gradient(60% 70% at 85% 30%, rgba(0,160,227,.14), transparent 70%),
        linear-gradient(180deg, var(--mist), #fff 85%);
}
/* Faint blueprint grid behind the photo side. */
.hero::before {
    content: ""; position: absolute; inset: 0; pointer-events: none;
    background-image:
        linear-gradient(rgba(0,136,208,.07) 1px, transparent 1px),
        linear-gradient(90deg, rgba(0,136,208,.07) 1px, transparent 1px);
    background-size: 48px 48px;
    -webkit-mask-image: radial-gradient(70% 80% at 80% 40%, #000 20%, transparent 75%);
            mask-image: radial-gradient(70% 80% at 80% 40%, #000 20%, transparent 75%);
}
.hero > .wrap { position: relative; }
.hero__grid { display: grid; grid-template-columns: minmax(0, 1.02fr) minmax(0, 1fr); gap: clamp(40px, 5vw, 80px); align-items: center; }

.kicker {
    display: inline-flex; align-items: center; gap: 10px; padding: 7px 16px 7px 8px; border-radius: var(--rp);
    background: #fff; border: 1px solid var(--line); box-shadow: var(--shadow);
    font-size: .9rem; font-weight: 600; color: var(--ink-2);
}
.kicker__icon { width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center; background: var(--tint); color: var(--blue); }
.kicker__icon svg { width: 14px; height: 14px; }

.hero h1 { margin-top: 24px; }
.hero h1 .hl { color: var(--blue); }
.hero .lede { margin-top: 22px; }
.hero .actions { margin-top: 34px; }

.ticks { list-style: none; margin: 34px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 12px 26px; }
.ticks li { display: inline-flex; align-items: center; gap: 9px; font-weight: 600; font-size: .95rem; color: var(--ink-2); }
.ticks svg { width: 20px; height: 20px; flex: none; color: var(--live); }

/* Hero art: one photo, three cards that land around it. */
.hero__art { position: relative; width: 100%; max-width: 600px; margin-left: auto; padding: 28px 0 40px 28px; }
.hero__photo {
    position: relative; border-radius: 28px; overflow: hidden; aspect-ratio: 4 / 4.3;
    box-shadow: var(--shadow-lg);
}
.hero__photo img { width: 100%; height: 100%; object-fit: cover; object-position: 38% center; }
.hero__photo::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 55%, rgba(10,34,64,.35)); }
/* Brand arc and dot pattern behind the photo. */
.hero__ring { position: absolute; right: -40px; top: -6px; width: 180px; height: 180px; border-radius: 50%; border: 22px solid var(--blue); opacity: .14; }
.hero__dots { position: absolute; left: 0; bottom: 6px; width: 132px; height: 112px; background-image: radial-gradient(var(--blue) 2px, transparent 2.5px); background-size: 16px 16px; opacity: .35; }

.float {
    position: absolute; z-index: 2; display: flex; align-items: center; gap: 14px;
    padding: 14px 18px; border-radius: 16px; background: #fff; box-shadow: var(--shadow-lg);
    font-size: .88rem; line-height: 1.35; color: var(--muted);
}
.float strong { display: block; color: var(--ink); font-size: 1.05rem; font-weight: 800; }
.float__icon { width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; flex: none; background: var(--blue); color: #fff; }
.float__icon svg { width: 22px; height: 22px; }
.float--stat { left: -8px; top: 22%; }
.float--stat strong { font-size: 1.6rem; letter-spacing: -0.03em; line-height: 1.05; }
.float--live { right: -18px; bottom: 6%; max-width: 270px; align-items: flex-start; }
.float--live .dot { margin-top: 6px; }
.float--tech { right: 6%; top: 0; padding: 12px 14px; gap: 10px; }
.float--tech span { width: 38px; height: 38px; border-radius: 10px; display: grid; place-items: center; background: var(--mist); }
.float--tech svg { width: 22px; height: 22px; }
.dot { width: 9px; height: 9px; border-radius: 50%; background: var(--live); box-shadow: 0 0 0 4px rgba(18,183,106,.2); flex: none; animation: pulse 2.4s ease-in-out infinite; }
@keyframes pulse { 50% { box-shadow: 0 0 0 7px rgba(18,183,106,.08); } }

@media (max-width: 960px) {
    .hero__grid { grid-template-columns: 1fr; }
    .hero__art { margin: 8px auto 0; }
}
@media (max-width: 560px) {
    .hero__art { padding: 20px 0 30px; }
    .hero__photo { aspect-ratio: 4 / 3.6; }
    .float--stat { left: 8px; top: auto; bottom: 8px; }
    .float--live { display: none; }
    .float--tech { right: 8px; top: 4px; }
    .hero__ring { right: -60px; }
}

/* Hero entrance: the one orchestrated moment on the page. */
@keyframes rise { from { opacity: 0; transform: translateY(18px); } }
@keyframes pop  { from { opacity: 0; transform: translateY(14px) scale(.94); } }
@keyframes unveil { from { clip-path: inset(10% 10% 10% 10% round 28px); opacity: .2; } to { clip-path: inset(0 0 0 0 round 28px); opacity: 1; } }
@keyframes bob { 50% { transform: translateY(-8px); } }

.hero__copy > * { animation: rise .8s var(--ease) both; }
.hero__copy > :nth-child(2) { animation-delay: .08s; }
.hero__copy > :nth-child(3) { animation-delay: .16s; }
.hero__copy > :nth-child(4) { animation-delay: .24s; }
.hero__copy > :nth-child(5) { animation-delay: .32s; }
.hero__photo { animation: unveil 1.1s var(--ease) .1s both; }
.float { animation: pop .7s var(--ease) both, bob 6s ease-in-out infinite; }
.float--stat { animation-delay: .7s, 1.6s; }
.float--live { animation-delay: .9s, 2.4s; }
.float--tech { animation-delay: 1.1s, 3.2s; }

/* --- Client logo marquee --------------------------------------------------- */

.trust { padding: 34px 0 10px; }
.trust__in { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 36px; align-items: center; }
.trust__label { font-weight: 700; color: var(--ink-2); font-size: .98rem; line-height: 1.35; max-width: 15ch; padding-right: 36px; border-right: 1px solid var(--line-2); }
.marquee { overflow: hidden; -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); }
.marquee__track { display: flex; align-items: center; gap: 64px; width: max-content; animation: marquee 38s linear infinite; }
.marquee:hover .marquee__track { animation-play-state: paused; }
.marquee img { height: 34px; width: auto; max-width: 150px; object-fit: contain; filter: grayscale(1); opacity: .6; transition: filter .2s ease, opacity .2s ease; }
.marquee a:hover img, .marquee img:hover { filter: none; opacity: 1; }
@keyframes marquee { to { transform: translateX(-50%); } }
@media (max-width: 760px) {
    .trust__in { grid-template-columns: 1fr; gap: 18px; }
    .trust__label { border: 0; padding: 0; max-width: none; text-align: center; }
}

/* --- About split ----------------------------------------------------------- */

.about { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(40px, 6vw, 96px); align-items: center; }
.about__art { position: relative; padding: 0 0 56px 0; }
.about__main { border-radius: var(--r); overflow: hidden; aspect-ratio: 5 / 4; box-shadow: var(--shadow-lg); }
.about__main img, .about__sub img { width: 100%; height: 100%; object-fit: cover; }
.about__sub { position: absolute; right: -6%; bottom: 0; width: 46%; aspect-ratio: 4 / 3; border-radius: var(--r); overflow: hidden; border: 6px solid #fff; box-shadow: var(--shadow-lg); }
.about__badge {
    position: absolute; left: -18px; bottom: 26px; display: grid; gap: 2px; padding: 20px 24px;
    border-radius: 18px; background: var(--blue); color: rgba(255,255,255,.9); box-shadow: 0 24px 40px -20px rgba(0,108,181,.8); font-size: .9rem; font-weight: 600;
}
.about__badge strong { color: #fff; font-size: 2.2rem; font-weight: 800; letter-spacing: -0.03em; line-height: 1; }
.about__copy { display: grid; gap: 18px; }
.checks { list-style: none; margin: 8px 0 0; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 16px 24px; }
.checks li { display: grid; grid-template-columns: 26px 1fr; gap: 12px; font-weight: 600; color: var(--ink-2); line-height: 1.45; }
.checks svg { width: 26px; height: 26px; color: var(--blue); }
.about__copy .actions { margin-top: 14px; }
@media (max-width: 960px) { .about { grid-template-columns: 1fr; } .about__sub { right: 0; } .about__badge { left: 12px; } }
@media (max-width: 560px) { .checks { grid-template-columns: 1fr; } }

/* --- Service cards --------------------------------------------------------- */

.cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 22px; }
.card {
    position: relative; display: flex; flex-direction: column; gap: 14px;
    padding: 32px 28px 28px; border-radius: var(--r); background: #fff; border: 1px solid var(--line);
    color: inherit; overflow: hidden; isolation: isolate;
    transition: transform .3s var(--ease), box-shadow .3s ease, border-color .3s ease;
}
.card::before { content: ""; position: absolute; left: 0; top: 0; right: 0; height: 4px; background: linear-gradient(90deg, var(--blue), var(--blue-l)); transform: scaleX(0); transform-origin: left; transition: transform .35s var(--ease); }
.card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); border-color: transparent; color: inherit; }
.card:hover::before { transform: scaleX(1); }
.card__icon { width: 60px; height: 60px; border-radius: 16px; display: grid; place-items: center; background: var(--tint); color: var(--blue); transition: background-color .3s ease, color .3s ease; }
.card__icon svg { width: 28px; height: 28px; }
.card:hover .card__icon { background: var(--blue); color: #fff; }
.card__title { font-size: 1.25rem; font-weight: 800; letter-spacing: -0.02em; color: var(--ink); margin-top: 6px; }
.card__desc { color: var(--muted); font-size: .98rem; flex: 1; }
.card__tech { display: flex; flex-wrap: wrap; gap: 6px; }
.card__tech span { font-size: .78rem; font-weight: 700; color: var(--ink-2); background: var(--mist); border: 1px solid var(--line); border-radius: var(--rp); padding: 4px 10px; }
.card .link { margin-top: 6px; }
.card--cta { background: var(--navy); border-color: var(--navy); color: rgba(255,255,255,.78); }
.card--cta .card__title { color: #fff; }
.card--cta .card__desc { color: rgba(255,255,255,.75); }
.card--cta .card__icon { background: var(--blue); color: #fff; }
.card--cta .link { color: var(--blue-l); }
.card--cta:hover { color: rgba(255,255,255,.78); }
@media (max-width: 1000px) { .cards { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 620px)  { .cards { grid-template-columns: 1fr; } }

/* --- Navy stats band ------------------------------------------------------- */

.band { position: relative; overflow: hidden; background: var(--navy); color: #fff; padding: clamp(64px, 8vw, 104px) 0; isolation: isolate; }
.band__bg { position: absolute; inset: 0; z-index: -1; }
.band__bg img { width: 100%; height: 100%; object-fit: cover; opacity: .45; }
.band__bg::after { content: ""; position: absolute; inset: 0; background: linear-gradient(100deg, var(--navy) 25%, rgba(10,34,64,.7) 70%, rgba(0,108,181,.55)); }
.band h2, .band h3 { color: #fff; }
.band .lede { color: rgba(255,255,255,.75); }
.band .tag { color: var(--blue-l); }
.stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0; margin-top: clamp(36px, 5vw, 56px); border-top: 1px solid rgba(255,255,255,.14); }
.stat { padding: 30px 28px 4px 0; display: grid; gap: 8px; }
.stat + .stat { padding-left: 28px; border-left: 1px solid rgba(255,255,255,.14); }
.stat__n { font-size: clamp(2.6rem, 5vw, 3.8rem); font-weight: 800; letter-spacing: -0.04em; line-height: 1; color: #fff; font-variant-numeric: tabular-nums; }
.stat__n em { font-style: normal; color: var(--blue-l); }
.stat__n em.word { font-size: .5em; letter-spacing: -0.01em; margin-left: 4px; }
.stat__l { color: rgba(255,255,255,.72); font-weight: 600; }
@media (max-width: 760px) {
    .stats { grid-template-columns: 1fr 1fr; }
    .stat:nth-child(3) { padding-left: 0; border-left: 0; }
    .stat:nth-child(n+3) { border-top: 1px solid rgba(255,255,255,.14); margin-top: 22px; }
}

/* --- Industries ------------------------------------------------------------ */

.industries { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: clamp(36px, 5vw, 80px); align-items: start; }
.industries__intro { position: sticky; top: 110px; display: grid; gap: 16px; }
.industries__intro .actions { margin-top: 10px; }
.ind-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.ind {
    display: grid; grid-template-columns: 52px 1fr; gap: 16px; padding: 24px; border-radius: var(--r);
    background: #fff; border: 1px solid var(--line); transition: border-color .25s ease, box-shadow .25s ease, transform .25s var(--ease);
}
.ind:hover { border-color: transparent; box-shadow: var(--shadow-lg); transform: translateY(-4px); }
.ind__icon { width: 52px; height: 52px; border-radius: 14px; display: grid; place-items: center; background: var(--navy); color: var(--blue-l); }
.ind__icon svg { width: 24px; height: 24px; }
.ind h3 { font-size: 1.08rem; margin: 2px 0 6px; }
.ind p { color: var(--muted); font-size: .94rem; line-height: 1.5; }
@media (max-width: 960px) { .industries { grid-template-columns: 1fr; } .industries__intro { position: static; } }
@media (max-width: 600px) { .ind-grid { grid-template-columns: 1fr; } }

/* --- Case studies ---------------------------------------------------------- */

.cases { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr) minmax(0, 1fr); grid-template-rows: auto auto; gap: 22px; }
.cs {
    position: relative; display: block; border-radius: var(--r); overflow: hidden; background: var(--navy);
    color: #fff; aspect-ratio: 4 / 3.1; isolation: isolate;
}
.cs img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center 20%; z-index: -2; transition: transform .7s var(--ease); }
.cs::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(10,34,64,.05) 15%, rgba(10,34,64,.78) 52%, rgba(10,34,64,.96) 85%); transition: opacity .3s ease; }
.cs:hover img { transform: scale(1.05); }
.cs:hover { color: #fff; }
.cs__body { position: absolute; left: 0; right: 0; bottom: 0; padding: 24px; display: grid; gap: 8px; }
.cs__cat { justify-self: start; font-size: .78rem; font-weight: 700; color: #fff; background: var(--blue); border-radius: var(--rp); padding: 5px 12px; }
.cs__title { color: #fff; font-size: 1.2rem; letter-spacing: -0.02em; }
.cs__desc { color: rgba(255,255,255,.8); font-size: .95rem; display: none; }
.cs__more { display: inline-flex; align-items: center; gap: 8px; font-weight: 700; font-size: .92rem; color: var(--blue-l); }
.cs__more svg { width: 16px; height: 16px; transition: transform .2s var(--ease); }
.cs:hover .cs__more svg { transform: translateX(4px); }
.cs--lead { grid-row: span 2; aspect-ratio: auto; min-height: 520px; }
.cs--lead .cs__title { font-size: clamp(1.5rem, 2.4vw, 2rem); }
.cs--lead .cs__desc { display: block; max-width: 46ch; }
.cs--lead .cs__body { padding: 32px; gap: 12px; }
@media (max-width: 1000px) { .cases { grid-template-columns: 1fr 1fr; } .cs--lead { grid-column: span 2; grid-row: auto; min-height: 420px; } }
@media (max-width: 620px)  { .cases { grid-template-columns: 1fr; } .cs--lead { grid-column: auto; min-height: 380px; } }

/* --- Technology tabs ------------------------------------------------------- */

.tabs { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px; margin-bottom: 36px; }
.tabs button {
    height: 42px; padding: 0 17px; border-radius: var(--rp); border: 1.5px solid var(--line-2); background: #fff;
    color: var(--ink-2); font-weight: 700; font-size: .9rem; transition: all .2s ease;
}
.tabs button:hover { border-color: var(--blue); color: var(--blue); }
.tabs button[aria-selected="true"] { background: var(--navy); border-color: var(--navy); color: #fff; }
.techgrid { display: flex; flex-wrap: wrap; justify-content: center; gap: 14px; max-width: 1080px; margin-inline: auto; }
.techgrid[hidden] { display: none; }
.techgrid:not([hidden]) .tech { animation: pop .45s var(--ease) both; }
.techgrid .tech:nth-child(2) { animation-delay: .05s; } .techgrid .tech:nth-child(3) { animation-delay: .1s; }
.techgrid .tech:nth-child(4) { animation-delay: .15s; } .techgrid .tech:nth-child(5) { animation-delay: .2s; }
.tech {
    display: grid; justify-items: center; align-content: center; gap: 14px; text-align: center;
    flex: 0 0 122px; padding: 20px 10px 16px; min-height: 122px; border-radius: 16px; background: #fff; border: 1px solid var(--line);
    font-weight: 700; font-size: .88rem; color: var(--ink); line-height: 1.25; transition: box-shadow .25s ease, transform .25s var(--ease);
}
.tech:hover { box-shadow: var(--shadow-lg); transform: translateY(-4px); }
.tech svg { width: 40px; height: 40px; }
.tech__mono { width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; background: var(--navy); color: #fff; font-size: .95rem; font-weight: 800; letter-spacing: .02em; }
@media (max-width: 560px) { .tech { flex-basis: calc((100% - 28px) / 3); } .tabs { justify-content: flex-start; } }

/* Plain chip list (service pages) */
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { display: inline-flex; align-items: center; gap: 8px; height: 38px; padding: 0 14px; border-radius: var(--rp); background: #fff; border: 1px solid var(--line-2); font-size: .9rem; font-weight: 600; color: var(--ink-2); }
.chip svg { width: 18px; height: 18px; }

/* --- Process --------------------------------------------------------------- */

.process { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 28px; position: relative; counter-reset: s; }
.process::before { content: ""; position: absolute; top: 31px; left: 32px; right: calc((100% - 84px) / 4 - 32px); height: 2px; background: var(--line-2); }
.process::after { content: ""; position: absolute; top: 31px; left: 32px; right: calc((100% - 84px) / 4 - 32px); height: 2px; background: var(--blue); transform: scaleX(0); transform-origin: left; transition: transform 1.6s var(--ease) .2s; }
.process.in::after { transform: scaleX(1); }
.process li { position: relative; display: grid; align-content: start; gap: 10px; }
.process li::before {
    counter-increment: s; content: counter(s, decimal-leading-zero);
    position: relative; z-index: 1; width: 64px; height: 64px; border-radius: 50%; display: grid; place-items: center;
    background: #fff; border: 2px solid var(--blue); color: var(--blue); font-weight: 800; font-size: 1.05rem; margin-bottom: 10px;
    transition: background-color .3s ease, color .3s ease;
}
.process li:hover::before { background: var(--blue); color: #fff; }
.process h3 { font-size: 1.15rem; }
.process p { color: var(--muted); font-size: .96rem; }
@media (max-width: 900px) {
    .process { grid-template-columns: 1fr 1fr; gap: 36px 28px; }
    .process::before, .process::after { display: none; }
}
@media (max-width: 560px) { .process { grid-template-columns: 1fr; } }

/* --- Engagement ------------------------------------------------------------ */

.engage { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(36px, 5vw, 80px); align-items: center; }
.engage__art { position: relative; border-radius: var(--r); overflow: hidden; aspect-ratio: 4 / 4.2; box-shadow: var(--shadow-lg); }
.engage__art img { width: 100%; height: 100%; object-fit: cover; }
.engage__note { position: absolute; left: 20px; right: 20px; bottom: 20px; padding: 20px 22px; border-radius: 16px; background: rgba(255,255,255,.96); box-shadow: var(--shadow); display: grid; grid-template-columns: 44px 1fr; gap: 14px; align-items: center; color: var(--ink-2); font-weight: 600; line-height: 1.4; }
.models { display: grid; gap: 16px; margin-top: 8px; }
.model { display: grid; grid-template-columns: 52px 1fr; gap: 18px; padding: 22px 24px; border-radius: var(--r); background: #fff; border: 1px solid var(--line); transition: border-color .25s ease, box-shadow .25s ease; }
.model:hover { border-color: var(--blue); box-shadow: var(--shadow); }
.model__icon { width: 52px; height: 52px; border-radius: 14px; display: grid; place-items: center; background: var(--tint); color: var(--blue); }
.model__icon svg { width: 24px; height: 24px; }
.model h3 { font-size: 1.1rem; margin-bottom: 4px; }
.model p { color: var(--muted); font-size: .96rem; }
@media (max-width: 960px) { .engage { grid-template-columns: 1fr; } .engage__art { aspect-ratio: 16 / 10; } }

/* --- Posts ----------------------------------------------------------------- */

.posts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 22px; }
.post { display: flex; flex-direction: column; border-radius: var(--r); overflow: hidden; background: #fff; border: 1px solid var(--line); color: inherit; transition: transform .3s var(--ease), box-shadow .3s ease; }
.post:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); color: inherit; }
.post__img { aspect-ratio: 16 / 9.5; overflow: hidden; background: var(--tint); }
.post__img img { width: 100%; height: 100%; object-fit: cover; object-position: center 20%; transition: transform .6s var(--ease); }
.post:hover .post__img img { transform: scale(1.05); }
.post__body { display: flex; flex-direction: column; gap: 10px; padding: 24px; flex: 1; }
.post__meta { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; font-size: .86rem; color: var(--faint); }
.post__cat { font-size: .8rem; font-weight: 700; color: var(--blue); background: var(--tint); border-radius: var(--rp); padding: 4px 10px; }
.post h3, .post h2 { font-size: 1.15rem; line-height: 1.35; }
.post p { color: var(--muted); font-size: .96rem; flex: 1; }
.post .link { margin-top: 4px; font-size: .94rem; }
@media (max-width: 960px) { .posts { grid-template-columns: 1fr 1fr; } }
@media (max-width: 620px) { .posts { grid-template-columns: 1fr; } }

/* --- CTA ------------------------------------------------------------------- */

.cta {
    position: relative; overflow: hidden; isolation: isolate; border-radius: 28px;
    padding: clamp(40px, 6vw, 80px); background: var(--navy); color: #fff;
    display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 32px; align-items: center;
}
.cta__bg { position: absolute; inset: 0; z-index: -1; }
.cta__bg img { width: 100%; height: 100%; object-fit: cover; }
.cta__bg::after { content: ""; position: absolute; inset: 0; background: linear-gradient(95deg, rgba(10,34,64,.97) 35%, rgba(0,108,181,.78)); }
.cta h2 { color: #fff; max-width: 20ch; }
.cta p { color: rgba(255,255,255,.8); margin-top: 14px; max-width: 50ch; font-size: 1.08rem; }
@media (max-width: 860px) { .cta { grid-template-columns: 1fr; } }

/* --- Page banner (interior pages) ----------------------------------------- */

.intro {
    position: relative; overflow: hidden; isolation: isolate; color: #fff;
    padding: clamp(56px, 8vw, 104px) 0 clamp(56px, 7vw, 92px);
    background: var(--navy) var(--banner, url("../images/photos/office-floor.jpg")) center 40% / cover no-repeat;
}
.intro::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(100deg, rgba(10,34,64,.97) 35%, rgba(10,34,64,.82) 65%, rgba(0,108,181,.7)); }
.intro::after { content: ""; position: absolute; right: -80px; bottom: -120px; z-index: -1; width: 340px; height: 340px; border-radius: 50%; border: 44px solid var(--blue-l); opacity: .16; }
.intro__title { display: flex; align-items: center; gap: 18px; }
.intro__icon { flex: none; width: 60px; height: 60px; border-radius: 16px; display: grid; place-items: center; background: var(--blue); color: #fff; box-shadow: 0 16px 30px -14px rgba(0,160,227,.9); }
.intro__icon svg { width: 30px; height: 30px; }
@media (max-width: 560px) { .intro__icon { width: 46px; height: 46px; border-radius: 12px; } .intro__icon svg { width: 22px; height: 22px; } }
/* Three equal case cards in one row (service pages). */
.cases--row { grid-template-columns: repeat(3, minmax(0, 1fr)); grid-template-rows: auto; }
@media (max-width: 1000px) { .cases--row { grid-template-columns: 1fr 1fr; } }
@media (max-width: 620px)  { .cases--row { grid-template-columns: 1fr; } }
.intro .banner-tag { display: flex; color: var(--blue-l); margin-bottom: 14px; animation: rise .6s var(--ease) both; }
.intro h1 { color: #fff; animation: rise .7s var(--ease) both .05s; }
.intro .lede { margin-top: 18px; color: rgba(255,255,255,.8); animation: rise .7s var(--ease) both .14s; }
.crumbs { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin: 0 0 22px; padding: 0; list-style: none; font-size: .9rem; font-weight: 600; color: rgba(255,255,255,.65); animation: rise .6s var(--ease) both; }
.crumbs li + li::before { content: ""; display: inline-block; width: 6px; height: 6px; margin-right: 10px; border-top: 2px solid currentColor; border-right: 2px solid currentColor; transform: rotate(45deg) translateY(-2px); opacity: .7; }
.crumbs a { color: #fff; }
.crumbs a:hover { color: var(--blue-l); }
.crumbs li:last-child { color: var(--blue-l); }

/* --- Rows, cols (interior pages) ------------------------------------------ */

.rows { display: grid; gap: 14px; }
.row { display: grid; grid-template-columns: minmax(0, 280px) minmax(0, 1fr); gap: 20px; padding: 24px 26px; background: #fff; border: 1px solid var(--line); border-radius: var(--r); transition: border-color .2s ease, box-shadow .2s ease; }
a.row { color: inherit; }
a.row:hover { border-color: var(--blue); box-shadow: var(--shadow); color: inherit; }
.row h3, .row h2.h3 { font-size: 1.08rem; }
.row p { color: var(--muted); }
@media (max-width: 700px) { .row { grid-template-columns: 1fr; gap: 6px; } }

.cols { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.col { padding: 28px; background: #fff; border: 1px solid var(--line); border-radius: var(--r); }
.col h3 { font-size: 1.15rem; margin-bottom: 8px; }
.col p { color: var(--muted); }
@media (max-width: 860px) { .cols { grid-template-columns: 1fr; } }

/* Job rows on Careers */
.job { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 20px; align-items: center; padding: 26px 28px; border-radius: var(--r); background: #fff; border: 1px solid var(--line); transition: border-color .2s ease, box-shadow .2s ease; }
.job:hover { border-color: var(--blue); box-shadow: var(--shadow); }
.job h3 a { color: var(--ink); }
.job h3 a:hover { color: var(--blue); }
.job__meta { display: flex; flex-wrap: wrap; gap: 8px; margin: 10px 0; }
.job__meta span { font-size: .8rem; font-weight: 700; color: var(--ink-2); background: var(--mist); border-radius: var(--rp); padding: 4px 10px; }
.job p { color: var(--muted); }
@media (max-width: 620px) { .job { grid-template-columns: 1fr; } }

/* Perk tiles on Careers */
.perks { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 18px; }
.perk { padding: 26px; border-radius: var(--r); background: #fff; border: 1px solid var(--line); display: grid; align-content: start; gap: 8px; }
.perk::before { content: ""; width: 40px; height: 4px; border-radius: 4px; background: var(--blue); margin-bottom: 8px; }
.perk h3 { font-size: 1.08rem; }
.perk p { color: var(--muted); font-size: .96rem; }

/* Photo split used on interior pages */
.split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(32px, 5vw, 72px); align-items: center; }
.split__art { margin: 0; border-radius: var(--r); overflow: hidden; box-shadow: var(--shadow-lg); }
.split__art img { width: 100%; height: auto; }
.split__copy { display: grid; gap: 16px; }
@media (max-width: 900px) { .split { grid-template-columns: 1fr; } }

/* Stats inside light sections (about) */
.proof { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 18px; }
.proof > div { padding: 26px; border-radius: var(--r); background: #fff; border: 1px solid var(--line); }
.proof__n { display: block; font-size: 2.4rem; font-weight: 800; letter-spacing: -0.04em; line-height: 1; color: var(--blue); }
.proof__l { display: block; margin-top: 8px; color: var(--muted); font-weight: 600; }
@media (max-width: 760px) { .proof { grid-template-columns: 1fr 1fr; } }

/* Static logo grid (about) */
.logos { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 28px 56px; }
.logos img { height: 34px; width: auto; max-width: 150px; object-fit: contain; filter: grayscale(1); opacity: .6; transition: opacity .2s ease, filter .2s ease; }
.logos img:hover { filter: none; opacity: 1; }

/* Skill bars (about) */
.bars { display: grid; gap: 18px; }
.bar__top { display: flex; justify-content: space-between; font-weight: 700; font-size: .95rem; margin-bottom: 8px; }
.bar__top span:last-child { color: var(--blue); }
.bar__track { height: 8px; border-radius: var(--rp); background: var(--line); overflow: hidden; }
.bar__fill { height: 100%; border-radius: var(--rp); background: linear-gradient(90deg, var(--blue-d), var(--blue-l)); transform-origin: left; transform: scaleX(0); transition: transform 1.4s var(--ease); }
.in .bar__fill { transform: scaleX(1); }

/* --- Work grid (portfolio page) -------------------------------------------- */

.work { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; }
.case { display: block; color: inherit; border-radius: var(--r); overflow: hidden; background: #fff; border: 1px solid var(--line); transition: transform .3s var(--ease), box-shadow .3s ease; }
.case:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); color: inherit; }
.case[hidden] { display: none; }
.case__img { aspect-ratio: 16 / 10; overflow: hidden; background: var(--tint); }
.case__img img { width: 100%; height: 100%; object-fit: cover; object-position: center 20%; transition: transform .6s var(--ease); }
.case:hover .case__img img { transform: scale(1.04); }
.case__body { padding: 24px 26px 26px; }
.case__cat { font-size: .8rem; font-weight: 700; color: var(--blue); background: var(--tint); border-radius: var(--rp); padding: 4px 10px; }
.case__title { font-size: 1.25rem; font-weight: 800; letter-spacing: -0.02em; margin: 14px 0 8px; }
.case__desc { color: var(--muted); font-size: .97rem; }
.case__role { margin-top: 12px; font-size: .88rem; color: var(--faint); }
.case--wide { grid-column: span 2; display: grid; grid-template-columns: 1.3fr 1fr; }
.case--wide .case__img { position: relative; aspect-ratio: auto; min-height: 400px; }
.case--wide .case__img img { position: absolute; inset: 0; }
.case--wide .case__body { padding: 40px; align-self: center; }
.case--wide .case__title { font-size: 1.7rem; }
@media (max-width: 760px) {
    .work { grid-template-columns: 1fr; }
    .case--wide { grid-column: auto; display: block; }
    .case--wide .case__img { min-height: 0; aspect-ratio: 16 / 10; }
    .case--wide .case__img img { position: static; }
    .case--wide .case__body { padding: 24px 26px 26px; }
}

/* --- Prose (admin-authored HTML) ------------------------------------------- */

.prose { max-width: 72ch; font-size: 1.07rem; line-height: 1.78; color: var(--ink-2); }
.prose h2 { font-size: 1.6rem; margin: 2.4rem 0 .9rem; color: var(--ink); }
.prose h3 { font-size: 1.22rem; margin: 1.9rem 0 .6rem; color: var(--ink); }
.prose > :first-child { margin-top: 0; }
.prose p { margin-bottom: 1.15rem; }
.prose ul, .prose ol { margin: 0 0 1.25rem 1.3rem; padding: 0; }
.prose li { margin-bottom: .5rem; padding-left: .2rem; }
.prose li::marker { color: var(--blue); }
.prose img { border-radius: var(--r); margin: 1.5rem 0; }
.prose blockquote { margin: 1.6rem 0; padding: 1rem 1.4rem; border-left: 4px solid var(--blue); background: var(--mist); border-radius: 0 var(--rs) var(--rs) 0; }
.prose strong { color: var(--ink); }
.prose a { text-decoration: underline; text-underline-offset: 3px; }

.article { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: clamp(32px, 5vw, 72px); align-items: start; }
.aside { position: sticky; top: 100px; display: grid; gap: 16px; }
.aside .row { grid-template-columns: 1fr; gap: 14px; background: var(--mist); border-color: transparent; }
.aside .row--cta { background: var(--navy); }
.section--alt .aside .row:not(.row--cta) { background: #fff; border-color: var(--line); }
.aside .row--cta h2, .aside .row--cta h3 { color: #fff; }
.aside .row--cta p { color: rgba(255,255,255,.75); }
.meta { display: grid; gap: 14px; }
.meta dt { font-size: .84rem; font-weight: 700; color: var(--faint); }
.meta dd { margin: 2px 0 0; font-weight: 700; }
.article--contact { grid-template-columns: minmax(0, 1fr) 380px; }
@media (max-width: 900px) { .article, .article--contact { grid-template-columns: 1fr; } .aside { position: static; } }

.feature { aspect-ratio: 16 / 9; border-radius: var(--r); overflow: hidden; margin-bottom: clamp(32px, 4vw, 52px); background: var(--tint); box-shadow: var(--shadow-lg); }
.feature img { width: 100%; height: 100%; object-fit: cover; object-position: center 20%; }

/* --- Filters --------------------------------------------------------------- */

.pills { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 32px; }
.pill { height: 44px; padding: 0 20px; border-radius: var(--rp); border: 1.5px solid var(--line-2); background: #fff; color: var(--ink-2); font-weight: 700; font-size: .93rem; transition: all .2s ease; }
.pill:hover { border-color: var(--blue); color: var(--blue); }
.pill[aria-pressed="true"] { background: var(--navy); border-color: var(--navy); color: #fff; }

/* --- Forms ----------------------------------------------------------------- */

.form { display: grid; gap: 18px; }
.form-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
@media (max-width: 600px) { .form-2 { grid-template-columns: 1fr; } }
.field label, .field .form-label { display: block; font-size: .92rem; font-weight: 700; margin-bottom: 8px; color: var(--ink); }
.field .form-note, .form-note { font-size: .86rem; color: var(--muted); }
.field input, .field textarea, .field select,
.form input, .form textarea, .form select {
    width: 100%; font: inherit; font-size: 1rem; color: var(--ink); padding: 14px 16px; background: #fff;
    border: 1.5px solid var(--line-2); border-radius: var(--rs); transition: border-color .16s ease, box-shadow .16s ease;
}
.form input:focus, .form textarea:focus, .form select:focus,
.field input:focus, .field textarea:focus, .field select:focus { outline: none; border-color: var(--blue); box-shadow: 0 0 0 4px rgba(0,136,208,.15); }
.form textarea { min-height: 150px; resize: vertical; }
.form input[type="file"] { padding: 11px; }
.is-invalid { border-color: #D92D20 !important; }
.field-error { color: #D92D20; font-size: .88rem; margin-top: 6px; }
.form-msg { padding: 14px 16px; border-radius: var(--rs); border: 1px solid; font-size: .97rem; }
.form-msg--success { background: #ECFDF3; border-color: #ABEFC6; color: #067647; }
.form-msg--error   { background: #FEF3F2; border-color: #FECDCA; color: #B42318; }
.site-flash { padding: 14px 16px; border-radius: var(--rs); border: 1px solid; margin: 16px 0; }
.site-flash--success { background: #ECFDF3; border-color: #ABEFC6; color: #067647; }
.site-flash--error   { background: #FEF3F2; border-color: #FECDCA; color: #B42318; }

/* Field furniture */
.req { color: #D92D20; font-weight: 700; }
.opt { margin-left: 6px; font-size: .8rem; font-weight: 600; color: var(--faint); }
.form-3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
@media (max-width: 760px) { .form-3 { grid-template-columns: 1fr; } }
.form select, .field select {
    appearance: none; padding-right: 42px; cursor: pointer;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' fill='none' stroke='%235A687C' stroke-width='1.8'/%3E%3C/svg%3E");
    background-repeat: no-repeat; background-position: right 16px center;
}
.form ::placeholder { color: #9AA6B6; }
.field-error { display: flex; align-items: center; gap: 6px; font-weight: 600; }
.field-error::before { content: "!"; flex: none; width: 16px; height: 16px; border-radius: 50%; background: #D92D20; color: #fff; font-size: 11px; font-weight: 800; display: grid; place-items: center; }
.counter { display: block; margin-top: 6px; font-size: .84rem; color: var(--faint); text-align: right; min-height: 1em; }
.counter.is-near { color: #B54708; font-weight: 700; }

/* Fieldsets on the application form */
.fset { border: 0; margin: 0 0 8px; padding: 0 0 22px; border-bottom: 1px solid var(--line); display: grid; gap: 18px; }
.fset:last-of-type { border-bottom: 0; padding-bottom: 0; }
.fset legend { padding: 0; margin-bottom: 4px; font-weight: 800; font-size: 1.08rem; color: var(--ink); }

/* Résumé drop box */
.drop { display: flex !important; align-items: center; gap: 16px; padding: 18px 20px; margin: 0 !important; border: 2px dashed var(--line-2); border-radius: var(--rs); background: var(--mist); cursor: pointer; transition: border-color .15s, background-color .15s; }
.drop:hover, .drop.is-over { border-color: var(--blue); background: var(--tint); }
.drop.has-file { border-style: solid; border-color: var(--live); background: #ECFDF3; }
.drop.is-invalid { border-color: #D92D20; background: #FEF3F2; }
.drop__icon { width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; background: #fff; color: var(--blue); flex: none; box-shadow: var(--shadow); }
.drop__icon svg { width: 22px; height: 22px; }
.drop__text { display: grid; gap: 2px; min-width: 0; flex: 1; }
.drop__text strong { color: var(--ink); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.drop__text span { font-size: .88rem; color: var(--muted); font-weight: 500; }
.drop__btn { pointer-events: none; }
input[type=file]:focus-visible + .field-error, .sr-only:focus-visible { outline: none; }
.field:has(input[type=file]:focus-visible) .drop { outline: 3px solid var(--blue-l); outline-offset: 3px; }
@media (max-width: 520px) { .drop__btn { display: none; } }

/* The real file input stays hidden behind the drop box. */
.form input.sr-only, .field input.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; border: 0; overflow: hidden; clip: rect(0 0 0 0); }

/* Submit row */
.form-foot { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 20px; margin-top: 6px; }
.form-foot .form-note { flex: 1; min-width: 220px; margin: 0; }
.btn.is-busy { opacity: .75; cursor: progress; }

/* Success panel that replaces a sent form */
form[hidden], .form[hidden] { display: none !important; }
.form-done { text-align: center; padding: clamp(24px, 4vw, 44px) 12px; outline: none; }
.form-done__icon { width: 64px; height: 64px; margin: 0 auto 18px; border-radius: 50%; display: grid; place-items: center; background: #ECFDF3; color: var(--live); box-shadow: 0 0 0 8px rgba(18,183,106,.08); }
.form-done__icon svg { width: 30px; height: 30px; }
.form-done__title { font-size: 1.5rem; margin-bottom: 10px; }
.form-done__msg { color: var(--ink-2); font-weight: 600; max-width: 46ch; margin: 0 auto; }
.form-done__next { color: var(--muted); max-width: 52ch; margin: 12px auto 0; font-size: .96rem; }
.form-done .btn { margin-top: 22px; }

/* Form card on contact / apply */
.panel { padding: clamp(24px, 4vw, 40px); border-radius: var(--r); background: #fff; border: 1px solid var(--line); box-shadow: var(--shadow); }

/* Contact detail card */
.contact-card { padding: 32px 28px; border-radius: var(--r); background: var(--navy); color: rgba(255,255,255,.75); display: grid; gap: 22px; }
.contact-card h2 { color: #fff; font-size: 1.3rem; }
.contact-list { display: grid; gap: 18px; list-style: none; margin: 0; padding: 0; }
.contact-list li { display: grid; grid-template-columns: 46px 1fr; gap: 14px; align-items: center; }
.contact-list .ic { width: 46px; height: 46px; border-radius: 12px; display: grid; place-items: center; background: var(--blue); color: #fff; }
.contact-list .ic svg { width: 20px; height: 20px; }
.contact-list small { display: block; color: rgba(255,255,255,.6); font-size: .82rem; font-weight: 600; }
.contact-list a, .contact-list span { color: #fff; font-weight: 700; word-break: break-word; }

/* --- FAQ ------------------------------------------------------------------- */

.faq { display: grid; gap: 12px; }
.faq details { background: #fff; border: 1px solid var(--line); border-radius: 16px; padding: 0 24px; transition: border-color .2s ease, box-shadow .2s ease; }
.faq details[open] { border-color: var(--blue); box-shadow: var(--shadow); }
.faq summary { cursor: pointer; list-style: none; padding: 20px 0; font-weight: 700; font-size: 1.06rem; display: flex; justify-content: space-between; align-items: center; gap: 16px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; flex: none; width: 32px; height: 32px; border-radius: 50%; display: grid; place-items: center; background: var(--tint); color: var(--blue); font-size: 1.3rem; font-weight: 600; line-height: 1; transition: transform .25s var(--ease); }
.faq details[open] summary::after { transform: rotate(45deg); background: var(--blue); color: #fff; }
.faq .ans { padding: 0 0 22px; color: var(--ink-2); max-width: 70ch; }

/* --- Gallery --------------------------------------------------------------- */

.grid-3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 22px; }
.shot { margin: 0; border-radius: var(--r); overflow: hidden; background: #fff; border: 1px solid var(--line); transition: transform .3s var(--ease), box-shadow .3s ease; }
.shot:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); }
.shot img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; }
.shot figcaption { padding: 14px 18px; font-weight: 700; font-size: .95rem; color: var(--ink-2); }
@media (max-width: 900px) { .grid-3 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 540px) { .grid-3 { grid-template-columns: 1fr; } }

/* --- Quote cards ----------------------------------------------------------- */

.quotes { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 20px; }
.quote { padding: 30px; background: #fff; border: 1px solid var(--line); border-radius: var(--r); }
.quote p { font-size: 1.08rem; color: var(--ink-2); margin-bottom: 18px; }
.quote cite { font-style: normal; font-weight: 700; display: block; }
.quote cite span { display: block; font-weight: 500; color: var(--muted); font-size: .9rem; }

/* --- Empty states ---------------------------------------------------------- */

.empty { padding: 52px 24px; text-align: center; border: 1.5px dashed var(--line-2); border-radius: var(--r); color: var(--muted); background: var(--mist); }
.empty .btn { margin-top: 18px; }

/* --- Footer ---------------------------------------------------------------- */

.ftr { position: relative; overflow: hidden; background: var(--navy); color: rgba(255,255,255,.7); padding: clamp(56px, 7vw, 88px) 0 28px; }
.ftr::before { content: ""; position: absolute; left: -120px; top: -160px; width: 420px; height: 420px; border-radius: 50%; border: 60px solid var(--blue); opacity: .08; pointer-events: none; }
.ftr .wrap { position: relative; }
.ftr__grid { display: grid; grid-template-columns: 1.25fr 2fr .85fr 1.25fr; gap: 40px; }
/* Eleven services read better as two short columns than one long one. */
.ftr .ftr__services ul { display: block; columns: 2; column-gap: 28px; }
.ftr .ftr__services li { break-inside: avoid; margin-bottom: 11px; line-height: 1.4; }
.ftr__contact, .ftr__contact span { font-size: .96rem; }
.ftr__logo img { height: 38px; width: auto; margin-bottom: 18px; }
.ftr__blurb { max-width: 38ch; font-size: .97rem; }
.ftr h2 { position: relative; font-size: 1.05rem; font-weight: 700; margin-bottom: 22px; padding-bottom: 12px; color: #fff; }
.ftr h2::after { content: ""; position: absolute; left: 0; bottom: 0; width: 32px; height: 3px; border-radius: 3px; background: var(--blue); }
.ftr ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 11px; }
.ftr a { color: rgba(255,255,255,.72); font-size: .96rem; transition: color .2s ease, padding .2s ease; }
.ftr ul a:hover { color: #fff; padding-left: 4px; }
.ftr__contact li { display: grid; grid-template-columns: 20px 1fr; gap: 12px; align-items: start; }
.ftr__contact svg { width: 18px; height: 18px; color: var(--blue-l); margin-top: 3px; }
.ftr__bottom { margin-top: clamp(40px, 5vw, 64px); padding-top: 24px; border-top: 1px solid rgba(255,255,255,.12); display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; font-size: .9rem; }
.ftr__bottom nav { display: flex; gap: 22px; }
.ftr__bottom a:hover { color: #fff; }
.social { display: flex; gap: 10px; margin-top: 22px; }
.social a { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; background: rgba(255,255,255,.08); color: #fff; transition: background-color .2s ease; }
.social a:hover { background: var(--blue); color: #fff; }
.social svg { width: 17px; height: 17px; }
@media (max-width: 960px) { .ftr__grid { grid-template-columns: 1fr 1fr; } .ftr__grid > :first-child, .ftr__services { grid-column: 1 / -1; } }
@media (max-width: 560px) { .ftr__grid { grid-template-columns: 1fr; } .ftr .ftr__services ul { column-gap: 18px; } }

/* Back to top */
.totop { position: fixed; right: 20px; bottom: 20px; z-index: 40; width: 48px; height: 48px; border-radius: 50%; border: 0; background: var(--blue); color: #fff; display: grid; place-items: center; box-shadow: 0 12px 24px -10px rgba(0,108,181,.8); opacity: 0; transform: translateY(12px); pointer-events: none; transition: opacity .25s ease, transform .25s var(--ease), background-color .2s ease; }
.totop.show { opacity: 1; transform: none; pointer-events: auto; }
.totop:hover { background: var(--blue-d); }
.totop svg { width: 20px; height: 20px; }

/* --- Scroll reveal --------------------------------------------------------- */

.reveal { opacity: 0; transform: translateY(24px); transition: opacity .8s var(--ease), transform .8s var(--ease); }
.reveal.in { opacity: 1; transform: none; }
/* Grids settle in one item after another; the delay is set inline by JS and
   removed once the entrance finishes, so hover lifts respond immediately. */
.stagger > * { opacity: 0; translate: 0 24px; transition: opacity .7s var(--ease), translate .7s var(--ease), transform .3s var(--ease), box-shadow .3s ease, border-color .3s ease; }
.stagger.in > * { opacity: 1; translate: 0 0; }

/* --- Reduced motion -------------------------------------------------------- */

@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    *, *::before, *::after { animation: none !important; transition: none !important; }
    .reveal, .stagger > * { opacity: 1; transform: none; translate: none; }
    .process::after { transform: scaleX(1); }
    .bar__fill { transform: scaleX(1); }
    .marquee { overflow-x: auto; }
}
