/* =========================================================================
   Quantsconsult — front-end design system
   Aesthetic: refined / architectural. Cream + charcoal with electric-blue
   accent (from the Q logo). Bold display type, generous space, watermark.
   FONT: swap --font-display / --font-body below for the client's font.
   ========================================================================= */

:root {
    --blue: #1a18e8;
    --blue-600: #1512c4;
    --ink: #0e0e12;
    --charcoal: #16161d;
    --cream: #f6f3ee;
    --paper: #ffffff;
    --muted: #6b6b76;
    --line: #e7e2d9;

    --font-display: "Bricolage Grotesque", "Archivo", system-ui, sans-serif;
    --font-body: "Hanken Grotesk", system-ui, sans-serif;

    --wrap: 1200px;
    --radius: 18px;
    --section-y: clamp(4rem, 8vw, 8rem);
}

/* Dark mode: re-map the design tokens (toggled via data-bs-theme on <html>). */
[data-bs-theme="dark"] {
    --ink: #f1eee8;
    --charcoal: #0b0b10;
    --cream: #0f0f15;
    --paper: #181820;
    --muted: #9a9aa6;
    --line: #2a2a34;
    --blue: #6b69ff;
    --blue-600: #5a58e0;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
    font-family: var(--font-body);
    color: var(--ink);
    background: var(--cream);
    margin: 0;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, .display {
    font-family: var(--font-display);
    line-height: 1.04;
    letter-spacing: -0.02em;
    font-weight: 700;
    margin: 0 0 .5em;
}

h1, .h-hero { font-size: clamp(2.6rem, 6vw, 5rem); }
h2, .h-section { font-size: clamp(2rem, 4vw, 3.25rem); }

a { color: var(--blue); text-decoration: none; }
.accent { color: var(--blue); }
img { max-width: 100%; display: block; }

.wrap { width: min(100% - 2.5rem, var(--wrap)); margin-inline: auto; }
.section { padding-block: var(--section-y); position: relative; overflow: hidden; }
/* Always-dark surface: fixed dark bg + light text so it stays legible in both themes. */
.section--dark { background: #16161d; color: #f3f1ec; }
.section--dark .muted { color: #b9b9c4; }
.eyebrow {
    font-family: var(--font-body); font-weight: 700; text-transform: uppercase;
    letter-spacing: .18em; font-size: .78rem; color: var(--blue); margin-bottom: 1rem;
}
.muted { color: var(--muted); }
.lead { font-size: clamp(1.05rem, 1.6vw, 1.35rem); }

/* giant faded watermark wordmark bleeding off the edge */
.watermark {
    position: absolute; right: -2%; bottom: -4%; font-family: var(--font-display);
    font-weight: 700; font-size: clamp(7rem, 22vw, 20rem); letter-spacing: -.04em;
    color: currentColor; opacity: .05; pointer-events: none; user-select: none; z-index: 0;
}
.section > .wrap { position: relative; z-index: 1; }

/* faint blueprint background layer (lines blend over the section colour) */
.section-bg {
    position: absolute; inset: 0; z-index: 0; pointer-events: none;
    background-repeat: no-repeat; background-position: center bottom; background-size: cover;
    mix-blend-mode: multiply; opacity: .65;
}
[data-bs-theme="dark"] .section-bg { mix-blend-mode: screen; opacity: .12; }

/* ---- buttons ---- */
.btn-q {
    display: inline-flex; align-items: center; gap: .55rem; white-space: nowrap;
    background: var(--blue); color: #fff; font-weight: 600;
    padding: .85rem 1.6rem; border-radius: 999px; border: 0;
    transition: transform .2s ease, background .2s ease;
}
.btn-q:hover { background: var(--blue-600); color: #fff; transform: translateY(-2px); }
.btn-ghost { background: transparent; color: inherit; border: 1.5px solid currentColor; }
.btn-ghost:hover { background: currentColor; }
.section--dark .btn-ghost:hover { color: var(--charcoal); }

/* ---- header / nav (transparent over hero, solid on scroll) ---- */
.site-header { position: fixed; top: 0; left: 0; right: 0; z-index: 50; transition: background .3s ease, box-shadow .3s ease; }
.site-header.scrolled { background: rgba(246,243,238,.95); backdrop-filter: blur(12px); box-shadow: 0 10px 30px -20px rgba(0,0,0,.4); }
.site-header__bar { display: flex; align-items: center; gap: 1.25rem; justify-content: space-between; padding-block: .9rem; }
.site-header__logo { display: flex; align-items: center; gap: .6rem; font-family: var(--font-display); font-weight: 700; font-size: 1.25rem; color: #fff; }
.site-header__logo img { height: 44px; width: auto; background: #fff; padding: 5px; border-radius: 8px; }
.site-header.scrolled .site-header__logo { color: var(--ink); }
.site-nav { display: flex; align-items: center; gap: 1.15rem; }
.site-nav a { color: #fff; font-weight: 600; font-size: .95rem; white-space: nowrap; position: relative; }
.site-header.scrolled .site-nav a { color: var(--ink); }
.site-nav a.is-active, .site-nav a:hover { color: var(--blue); }
.site-nav a.is-active::after { content: ""; position: absolute; left: 0; right: 0; bottom: -6px; height: 2px; background: var(--blue); }

.site-header__actions { display: flex; align-items: center; gap: 1.25rem; }
.call-us { display: flex; align-items: center; gap: .6rem; color: #fff; white-space: nowrap; }
.site-header.scrolled .call-us { color: var(--ink); }
.call-us__icon { font-size: 1.5rem; color: var(--blue); }
.call-us__text { display: flex; flex-direction: column; line-height: 1.15; }
.call-us__text small { font-size: .72rem; opacity: .8; }
.call-us__text strong { font-family: var(--font-display); font-size: 1rem; }
.nav-toggle { display: none; background: none; border: 0; font-size: 1.6rem; color: #fff; }
.site-header.scrolled .nav-toggle { color: var(--ink); }
.theme-toggle { background: none; border: 0; color: #fff; font-size: 1.2rem; line-height: 1; cursor: pointer; padding: .25rem; }
.site-header.scrolled .theme-toggle { color: var(--ink); }
[data-bs-theme="dark"] .site-header.scrolled { background: rgba(15,15,21,.95); }

@media (max-width: 1200px) { .call-us { display: none; } }
@media (max-width: 860px) {
    .nav-toggle { display: block; }
    .site-header__actions .btn-q { display: none; } /* hide Get In Touch on mobile */
    .site-nav { position: absolute; inset: 100% 0 auto; flex-direction: column; gap: 0; background: var(--paper);
        border-bottom: 1px solid var(--line); padding: .5rem 1.25rem; display: none; }
    .site-nav.open { display: flex; }
    .site-nav a { color: var(--ink); padding: .8rem 0; width: 100%; border-bottom: 1px solid var(--line); }
}

/* ---- hero slider (full-bleed) ---- */
.hero { position: relative; min-height: 100vh; display: grid; background: #0e0e12; color: #fff; }
.hero .carousel, .hero .carousel-inner, .hero .carousel-item { height: 100%; min-height: 100vh; }
.hero-slide { position: relative; min-height: 100vh; display: grid; align-items: center; }
.hero-slide__media { position: absolute; inset: 0; }
.hero-slide__media img, .hero-slide__media video { width: 100%; height: 100%; object-fit: cover; }
.hero-slide__media::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(8,8,14,.85), rgba(8,8,14,.45)); }
.hero-slide__content { position: relative; z-index: 2; padding-block: 8rem 6rem; max-width: 780px; }
.hero-slide__content .eyebrow { color: #cfcfff; }
.hero-slide h1 { color: #fff; }
.hero-scroll { position: absolute; left: 50%; bottom: 2rem; transform: translateX(-50%); width: 48px; height: 48px; border-radius: 50%; background: #fff; color: var(--blue); display: grid; place-items: center; font-size: 1.3rem; z-index: 4; animation: bob 1.8s ease-in-out infinite; }
@keyframes bob { 0%,100% { transform: translateX(-50%) translateY(0); } 50% { transform: translateX(-50%) translateY(8px); } }
.hero-dots { z-index: 4; margin-bottom: 1.5rem; }
.hero-dots [data-bs-target] { width: 34px; height: 4px; border-radius: 4px; }
.fade-up { opacity: 0; transform: translateY(24px); animation: fadeUp .9s cubic-bezier(.2,.7,.2,1) forwards; }
.fade-up.d1 { animation-delay: .15s; } .fade-up.d2 { animation-delay: .3s; } .fade-up.d3 { animation-delay: .45s; }
@keyframes fadeUp { to { opacity: 1; transform: none; } }

/* ---- page header (inner banner) ---- */
.page-header { background: var(--charcoal); color: #fff; padding-block: clamp(5rem, 10vw, 9rem) clamp(3rem,6vw,5rem); position: relative; overflow: hidden; }
.page-header__media { position: absolute; inset: 0; opacity: .35; }
.page-header__media img { width: 100%; height: 100%; object-fit: cover; }
.page-header .wrap { position: relative; z-index: 1; }
.breadcrumb-q { color: #b9b9c4; font-size: .9rem; margin-top: .5rem; }
.breadcrumb-q a { color: #cfcfff; }

/* ---- grids & cards ---- */
.grid { display: grid; gap: 1.5rem; }
.grid-2 { grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }
.grid-3 { grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); }
.grid-4 { grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }
.card-q { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); padding: 2rem; transition: transform .25s ease, box-shadow .25s ease; }
.card-q:hover { transform: translateY(-6px); box-shadow: 0 24px 50px -28px rgba(26,24,232,.35); }
.card-q .num { font-family: var(--font-display); color: var(--blue); font-size: 1.1rem; }
.icon-chip { width: 52px; height: 52px; border-radius: 14px; background: rgba(26,24,232,.1); color: var(--blue); display: grid; place-items: center; font-size: 1.4rem; margin-bottom: 1.1rem; }

/* media card (projects/portfolio) */
.media-card { position: relative; border-radius: var(--radius); overflow: hidden; aspect-ratio: 4/3; }
.media-card img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
.media-card:hover img { transform: scale(1.06); }
.media-card__cap { position: absolute; inset: auto 0 0; padding: 1.4rem; background: linear-gradient(transparent, rgba(8,8,14,.85)); color: #fff; }
.media-card__cap .tag { font-size: .75rem; text-transform: uppercase; letter-spacing: .12em; color: #cfcfff; }

/* ---- stats ---- */
.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px,1fr)); gap: 2rem; }
.stat { padding-right: 1rem; border-left: 2px solid var(--blue); padding-left: 1.25rem; }
.stat__num { font-family: var(--font-display); font-size: clamp(2.6rem, 5vw, 4rem); color: var(--blue); line-height: 1; }
.stat__label { font-family: var(--font-display); font-weight: 700; margin: .35rem 0 .5rem; }
.stat__desc { font-size: .9rem; line-height: 1.45; }
.section--dark .stat__num { color: #8d8bff; }

/* ---- process ---- */
.process { counter-reset: step; }
.process .card-q::before { counter-increment: step; content: "0" counter(step); font-family: var(--font-display); color: var(--blue); font-size: 1.6rem; display: block; margin-bottom: .6rem; }

/* ---- testimonials ---- */
.quote { font-family: var(--font-display); font-size: clamp(1.3rem, 2.4vw, 2rem); line-height: 1.3; }
.who { display: flex; align-items: center; gap: .85rem; margin-top: 1.5rem; }
.who img { width: 54px; height: 54px; border-radius: 50%; object-fit: cover; }

/* ---- team ---- */
.team-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; }
.team-card { position: relative; border-radius: var(--radius); overflow: hidden; aspect-ratio: 3/4; }
.team-card:nth-child(3n+2) { margin-top: 3rem; } /* uneven middle column */
.team-card > img, .team-card .img-ph { width: 100%; height: 100%; object-fit: cover; display: block; }
.team-card > img { transition: transform .5s ease; }
.team-card:hover > img { transform: scale(1.05); }
.team-card__overlay { position: absolute; inset: 0; z-index: 1; }
.team-card__cap { position: absolute; inset: auto 0 0; z-index: 2; pointer-events: none; display: flex; flex-direction: column; padding: 1.3rem; color: #fff; background: linear-gradient(transparent, rgba(8,8,14,.9)); }
.team-card__name { font-family: var(--font-display); font-size: 1.2rem; }
.team-card__role { color: #cfcfff; font-size: .85rem; }
.team-card__socials { display: flex; gap: .5rem; margin-top: .85rem; max-height: 0; opacity: 0; overflow: hidden; transition: max-height .35s ease, opacity .3s ease; }
.team-card:hover .team-card__socials { max-height: 48px; opacity: 1; }
.team-card__socials a { pointer-events: auto; width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center; background: rgba(255,255,255,.16); color: #fff; transition: background .2s ease; }
.team-card__socials a:hover { background: var(--blue); }
@media (max-width: 880px){ .team-grid { grid-template-columns: 1fr 1fr; } .team-card:nth-child(3n+2) { margin-top: 0; } }
@media (max-width: 560px){ .team-grid { grid-template-columns: 1fr; } }

/* ---- cta ---- */
.cta { border-radius: var(--radius); background: var(--blue); color: #fff; padding: clamp(2.5rem,5vw,4.5rem); position: relative; overflow: hidden; }
.cta__media { position: absolute; inset: 0; opacity: .18; }
.cta__media img { width: 100%; height: 100%; object-fit: cover; }
.cta .wrap, .cta > * { position: relative; z-index: 1; }

/* ---- newsletter / forms ---- */
.field { width: 100%; padding: .9rem 1.1rem; border: 1px solid var(--line); border-radius: 12px; background: var(--paper); font: inherit; }
.field:focus { outline: 2px solid var(--blue); border-color: var(--blue); }
.newsletter form { display: flex; gap: .75rem; flex-wrap: wrap; }
.newsletter .field { flex: 1 1 260px; }
.contact-head { display: grid; grid-template-columns: .55fr 1.45fr; gap: 2rem; align-items: center; }
.contact-meta { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px,1fr)); gap: 2rem; margin-top: clamp(2rem,5vw,3rem); }
.contact-meta__label { font-size: .8rem; text-transform: uppercase; letter-spacing: .12em; color: var(--muted); }
.contact-meta p { margin: .5rem 0 0; }
.contact-grid { display: grid; grid-template-columns: 1fr 1.2fr; gap: clamp(2rem,5vw,3.5rem); align-items: start; }
.contact-image { margin: 0; border-radius: var(--radius); overflow: hidden; aspect-ratio: 4/5; }
.contact-image img { width: 100%; height: 100%; object-fit: cover; }
.contact-form label { display: block; font-weight: 600; font-size: .85rem; margin-bottom: 1rem; }
.contact-form label input, .contact-form label textarea { margin-top: .4rem; }
.contact-form .form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
@media (max-width: 820px){ .contact-head { grid-template-columns: 1fr; } .contact-grid { grid-template-columns: 1fr; } }
@media (max-width: 520px){ .contact-form .form-row { grid-template-columns: 1fr; } }

/* full-bleed map */
.map-section { line-height: 0; }
.map-section iframe { width: 100%; height: clamp(380px, 46vw, 580px); border: 0; display: block; filter: grayscale(.2); }

/* ---- faq ---- */
.faq__grid { display: grid; grid-template-columns: .85fr 1.15fr; gap: clamp(2rem,5vw,4rem); align-items: start; }
.faq__aside { position: sticky; top: 100px; }
.faq__help { margin-top: 2rem; }
.faq__help strong { font-family: var(--font-display); font-size: 1.15rem; display: block; margin-bottom: .5rem; }
.faq__help p { margin-bottom: 1.25rem; }
.faq__list .accordion-item { border: 1px solid var(--line); border-radius: var(--radius) !important; margin-bottom: .85rem; overflow: hidden; background: var(--paper); }
.faq__list .accordion-button { font-family: var(--font-display); font-weight: 600; font-size: 1.05rem; padding: 1.25rem 1.4rem; border-radius: var(--radius) !important; }
.faq__list .accordion-body { padding: 0 1.4rem 1.4rem; }
.accordion-button:not(.collapsed) { color: var(--blue); background: rgba(26,24,232,.06); }
.accordion-button:focus { box-shadow: none; border-color: var(--blue); }
@media (max-width: 820px){ .faq__grid { grid-template-columns: 1fr; } .faq__aside { position: static; } }

/* ---- footer ---- */
.site-footer { background: #0e0e12; color: #cfcfce; padding-block: 4rem 2rem; position: relative; overflow: hidden; }
.site-footer h4 { color: #fff; font-size: 1rem; letter-spacing: .04em; }
.site-footer a { color: #cfcfce; }
.site-footer a:hover { color: #fff; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 2.5rem; }
@media (max-width: 760px){ .footer-grid { grid-template-columns: 1fr; } }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.1); margin-top: 3rem; padding-top: 1.5rem; font-size: .85rem; display: flex; justify-content: space-between; flex-wrap: wrap; gap: .5rem; }
.social a { display: inline-grid; place-items: center; width: 40px; height: 40px; border: 1px solid rgba(255,255,255,.2); border-radius: 50%; margin-right: .5rem; }
.social a:hover { background: var(--blue); border-color: var(--blue); }

.section--cream { background: var(--paper); }

/* ---- about: stat feature (big number + offset images + copy) ---- */
.stat-feature__grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2rem,5vw,4.5rem); align-items: center; }
.stat-feature__big { display: flex; align-items: baseline; gap: 1rem; margin-top: 1.5rem; border-top: 2px solid var(--blue); padding-top: 1.25rem; }
.stat-feature__num { font-family: var(--font-display); font-size: clamp(5rem, 16vw, 12rem); line-height: .78; color: var(--blue); letter-spacing: -.05em; }
.stat-feature__label { font-family: var(--font-display); font-size: 1.05rem; max-width: 8ch; color: var(--ink); }
.stat-feature__images { display: flex; gap: 1rem; }
.stat-feature__images figure { margin: 0; flex: 1; border-radius: var(--radius); overflow: hidden; aspect-ratio: 4/5; box-shadow: 0 30px 60px -40px rgba(0,0,0,.5); }
.stat-feature__img2 { margin-top: 2.5rem !important; }
.stat-feature__images img { width: 100%; height: 100%; object-fit: cover; }
.stat-feature__side p { margin: 1.5rem 0; }
@media (max-width: 820px){ .stat-feature__grid { grid-template-columns: 1fr; } }

/* ---- rich text (two-column heading + body) ---- */
.rich-text { display: grid; grid-template-columns: .8fr 1.2fr; gap: clamp(2rem,5vw,4rem); }
.rich-text__body p { margin-bottom: 1rem; }
@media (max-width: 820px){ .rich-text { grid-template-columns: 1fr; } }

/* ---- sector accordion ---- */
.sector-accordion__grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2rem,5vw,3.5rem); align-items: start; }
.sector-accordion__media { margin: 0; border-radius: var(--radius); overflow: hidden; aspect-ratio: 4/3; position: sticky; top: 90px; }
.sector-accordion__media img { width: 100%; height: 100%; object-fit: cover; }
@media (max-width: 820px){ .sector-accordion__grid { grid-template-columns: 1fr; } .sector-accordion__media { position: static; } }

/* ---- service pillars band ---- */
.service-band { position: relative; color: #fff; overflow: hidden; }
.service-band__media { position: absolute; inset: 0; }
.service-band__media img { width: 100%; height: 100%; object-fit: cover; transition: opacity .4s ease; }
.service-band__media::after { content: ""; position: absolute; inset: 0; background: linear-gradient(rgba(8,8,14,.35), rgba(8,8,14,.7)); }
.service-band__row { position: relative; display: grid; grid-template-columns: repeat(4,1fr); min-height: 460px; }
.service-band__col { appearance: none; font: inherit; text-align: left; color: #fff; padding: 3rem 1.5rem; border: 0; border-left: 1px solid rgba(255,255,255,.15); background: transparent; cursor: pointer; display: flex; flex-direction: column; justify-content: flex-end; transition: background .3s ease; }
.service-band__col:first-child { border-left: 0; }
.service-band__col.is-active { background: rgba(26, 24, 232, .72); } /* translucent so the image shows through */
.service-band__no { font-family: var(--font-display); font-size: 1.1rem; color: #8d8bff; margin-bottom: auto; }
.service-band__col.is-active .service-band__no { color: #fff; }
.service-band__col h3 { font-size: 1.25rem; margin: 1rem 0 .3rem; }
.service-band__col p { font-size: .9rem; color: #b9b9c4; margin: 0; }
.service-band__col.is-active p { color: rgba(255,255,255,.9); }
@media (max-width: 860px){ .service-band__row { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px){ .service-band__row { grid-template-columns: 1fr; } .service-band__col { border-left: 0; border-top: 1px solid rgba(255,255,255,.15); } }

/* ---- process (staggered cards with big numbers) ---- */
.process__head { display: grid; grid-template-columns: 1fr 1fr; gap: 2rem; align-items: end; }
.process__intro { margin: 0; }
.process__grid { display: grid; grid-template-columns: repeat(4,1fr); gap: 1.25rem; }
.process-card { position: relative; background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; padding-bottom: 1.5rem; }
.process-card:nth-child(even) { transform: translateY(1.75rem); }
.process-card__img { margin: 0; aspect-ratio: 16/11; overflow: hidden; }
.process-card__img img { width: 100%; height: 100%; object-fit: cover; }
.process-card__body { padding: 1.25rem 1.25rem 0; }
.process-card__body h3 { font-size: 1.05rem; }
.process-card__no { position: absolute; right: 1rem; bottom: .4rem; font-family: var(--font-display); font-size: 2.6rem; color: var(--line); line-height: 1; }
@media (max-width: 980px){ .process__head { grid-template-columns: 1fr; } .process__grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px){ .process__grid { grid-template-columns: 1fr; } .process-card:nth-child(even) { transform: none; } }

/* ---- accreditations (image swaps with selection) ---- */
.accreditations__grid { display: grid; grid-template-columns: .8fr 1.2fr; gap: clamp(2rem,5vw,4rem); align-items: center; }
.accreditations__media { margin: 0; border-radius: var(--radius); overflow: hidden; aspect-ratio: 4/5; background: linear-gradient(135deg, #eceaf6, #f6f3ee); box-shadow: 0 30px 60px -40px rgba(0,0,0,.5); position: sticky; top: 90px; }
.accreditations__media img { width: 100%; height: 100%; object-fit: cover; transition: opacity .4s ease; }
.accreditations__list { list-style: none; padding: 0; margin: 0; }
.accreditations__list li { border-bottom: 1px solid var(--line); }
.accreditations__item { appearance: none; background: none; border: 0; width: 100%; text-align: left; cursor: pointer; display: flex; gap: .85rem; align-items: center; padding: 1.1rem 0; font-family: var(--font-display); font-size: 1.1rem; color: var(--muted); transition: color .2s ease; }
.accreditations__item.is-active { color: var(--ink); }
.accreditations__item .tick { flex: none; width: 28px; height: 28px; border-radius: 50%; background: rgba(26,24,232,.1); color: var(--blue); display: grid; place-items: center; font-size: .9rem; opacity: .5; transition: opacity .2s ease; }
.accreditations__item.is-active .tick { opacity: 1; }
@media (max-width: 820px){ .accreditations__grid { grid-template-columns: 1fr; } .accreditations__media { position: static; aspect-ratio: 16/10; } }
.sector-accordion__media img { transition: opacity .4s ease; }

/* ---- full-bleed image band ---- */
.image-band { position: relative; height: clamp(280px, 42vw, 560px); overflow: hidden; }
.image-band img { width: 100%; height: 100%; object-fit: cover; }
.image-band__cap { position: absolute; inset: auto 0 2.5rem; }

/* ---- feature_dark (vision band over a full background image) ---- */
.feature-dark__bg { position: absolute; inset: 0; z-index: 0; }
.feature-dark__bg img { width: 100%; height: 100%; object-fit: cover; }
.feature-dark__bg::after { content: ""; position: absolute; inset: 0; background: linear-gradient(rgba(8,8,14,.88), rgba(8,8,14,.78)); }
.feature-dark__grid { position: relative; z-index: 1; display: grid; grid-template-columns: 1.1fr .9fr; gap: clamp(2rem,5vw,4rem); align-items: center; }
.feature-dark__grid .lead { color: #cfcfd6; margin-bottom: 1rem; }
.feature-dark__points { list-style: none; padding: 0; margin: 0; display: grid; gap: .9rem; }
.feature-dark__points li { display: flex; gap: .85rem; align-items: center; font-family: var(--font-display); font-size: 1.1rem; color: #f3f1ec; }
.feature-dark__points .tick { flex: none; width: 30px; height: 30px; border-radius: 50%; background: rgba(107,105,255,.2); color: #8d8bff; display: grid; place-items: center; font-size: .85rem; }
@media (max-width: 820px){ .feature-dark__grid { grid-template-columns: 1fr; } }

/* ---- project slider (auto-scrolling staggered cards, name below) ---- */
.project-slider__viewport { overflow: hidden; }
.project-slider__track { display: flex; gap: 1.75rem; width: max-content; align-items: flex-start; animation: marquee 50s linear infinite; }
.project-slider__viewport:hover .project-slider__track { animation-play-state: paused; }
.project-card { flex: none; width: clamp(260px, 26vw, 360px); }
.project-slider__track .project-card:nth-child(even) { margin-top: 3rem; } /* staggered / uneven (slider only) */
.project-card__media { position: relative; border-radius: var(--radius); overflow: hidden; aspect-ratio: 4/5; }
.project-card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s ease; }
.project-card:hover .project-card__media img { transform: scale(1.06); }
.project-card__tag { position: absolute; top: 1rem; left: 1rem; background: rgba(255,255,255,.85); backdrop-filter: blur(6px); color: var(--ink); font-size: .68rem; font-weight: 700; text-transform: uppercase; letter-spacing: .1em; padding: .45rem .85rem; border-radius: 999px; }
.project-card__name { font-family: var(--font-display); font-size: 1.4rem; color: var(--ink); margin-top: 1rem; }
@media (prefers-reduced-motion: reduce) { .project-slider__track { animation: none; flex-wrap: wrap; } }

/* ---- clients slider (auto-scrolling logos / name chips) ---- */
.clients-slider__viewport { overflow: hidden; }
.clients-slider__track { display: flex; align-items: center; gap: 1.25rem; width: max-content; animation: marquee 40s linear infinite; }
.clients-slider__viewport:hover .clients-slider__track { animation-play-state: paused; }
.client-chip { flex: none; display: grid; place-items: center; min-width: 220px; height: 96px; padding: 0 1.75rem; border: 1px solid var(--line); border-radius: var(--radius); background: var(--paper); color: var(--ink); }
.client-chip img { max-height: 56px; max-width: 160px; object-fit: contain; filter: grayscale(1); opacity: .75; transition: filter .3s ease, opacity .3s ease; }
.client-chip:hover img { filter: grayscale(0); opacity: 1; }
.client-chip__name { font-family: var(--font-display); font-weight: 700; font-size: 1.1rem; text-align: center; color: var(--muted); transition: color .3s ease; }
.client-chip:hover .client-chip__name { color: var(--blue); }
@media (prefers-reduced-motion: reduce) { .clients-slider__track { animation: none; flex-wrap: wrap; } }

/* ---- gallery (two auto-scrolling marquee rows) ---- */
.gallery__rows { display: grid; gap: 1rem; }
.gallery__row { overflow: hidden; }
.gallery__track { display: flex; gap: 1rem; width: max-content; animation: marquee 45s linear infinite; }
.gallery__row--right .gallery__track { animation-direction: reverse; }
.gallery__rows:hover .gallery__track { animation-play-state: paused; }
.gallery__item { flex: none; width: clamp(240px, 26vw, 380px); aspect-ratio: 4/3; border-radius: 12px; overflow: hidden; margin: 0; }
.gallery__item img { width: 100%; height: 100%; object-fit: cover; }
@keyframes marquee { from { transform: translateX(0); } to { transform: translateX(-50%); } }
@media (prefers-reduced-motion: reduce) { .gallery__track { animation: none; } }

/* logo holding image when a record has no photo */
.img-ph { width: 100%; height: 100%; display: grid; place-items: center; background: linear-gradient(135deg, #eceaf6, #f6f3ee); }
.img-ph img { width: 52%; height: auto; object-fit: contain; opacity: .9; }

/* ---- project detail ---- */
.project-hero { border-radius: var(--radius); overflow: hidden; aspect-ratio: 16/7; margin-bottom: clamp(2rem,5vw,3.5rem); }
.project-hero img { width: 100%; height: 100%; object-fit: cover; }
.project-specs { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px,1fr)); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; margin-top: clamp(2rem,4vw,2.5rem); background: var(--paper); }
.project-spec { padding: 1.5rem 1.75rem; border-left: 1px solid var(--line); }
.project-spec:first-child { border-left: 0; }
.project-spec__label { font-size: .72rem; text-transform: uppercase; letter-spacing: .12em; color: var(--muted); display: block; }
.project-spec__value { font-family: var(--font-display); font-size: 1.15rem; margin-top: .4rem; display: block; }
@media (max-width: 640px){ .project-spec { border-left: 0; border-top: 1px solid var(--line); } .project-spec:first-child { border-top: 0; } }

/* ---- portfolio filter bar + pagination ---- */
.pf-filter { display: flex; flex-wrap: wrap; gap: .6rem; }
.pf-filter a { padding: .55rem 1.2rem; border: 1px solid var(--line); border-radius: 999px; font-weight: 600; font-size: .95rem; color: var(--ink); transition: all .2s ease; }
.pf-filter a:hover { border-color: var(--blue); color: var(--blue); }
.pf-filter a.is-active { background: var(--blue); border-color: var(--blue); color: #fff; }
.pf-pager { display: flex; justify-content: center; }
.pf-pager .pagination { display: flex; gap: .4rem; list-style: none; padding: 0; margin: 0; }
.pf-pager .page-link { display: grid; place-items: center; min-width: 44px; height: 44px; padding: 0 .5rem; border: 1px solid var(--line); border-radius: 12px; color: var(--ink); background: var(--paper); font-weight: 600; }
.pf-pager .page-link:hover { border-color: var(--blue); color: var(--blue); }
.pf-pager .active .page-link { background: var(--blue); border-color: var(--blue); color: #fff; }
.pf-pager .disabled .page-link { opacity: .4; pointer-events: none; }

.mt-3 { margin-top: 2rem; }
.stack-sm > * + * { margin-top: .75rem; }
.mt-section { margin-top: clamp(2rem,4vw,3.5rem); }
.center { text-align: center; }
.maxr { max-width: 720px; }
.center.maxr { margin-inline: auto; }
