/* ---------- Header: current page + service thumbnails in the Services menu ---------- */
.nav-menu > a[aria-current="page"]:not(.btn), .nav-link[aria-current="page"] { color: #fff; }
@media (min-width: 1081px) {
  .nav-menu > a[aria-current="page"]:not(.btn), .nav-link[aria-current="page"] { position: relative; }
  .nav-menu > a[aria-current="page"]:not(.btn)::after, .nav-link[aria-current="page"]::after { content: ""; position: absolute; left: 0; right: 0; bottom: -8px; height: 2px; border-radius: 2px; background: linear-gradient(90deg, var(--accent), var(--accent-2)); }
  .nav-menu { gap: 22px; }
}
.dropdown { width: 480px; }
.dropdown-group a { grid-template-columns: 56px 1fr; align-items: center; column-gap: 14px; }
.dd-thumb { width: 56px; height: 42px; border-radius: 9px; overflow: hidden; display: grid; place-items: center; background: linear-gradient(135deg, rgba(240, 20, 30, .55), rgba(83, 208, 255, .4)), #1b1b24; }
.dd-thumb img { width: 100%; height: 100%; object-fit: cover; }
.dd-thumb b { font-family: var(--font-head); font-size: .95rem; color: #fff; }
.dd-text { display: grid; gap: 2px; }
.dropdown-group a:hover .dd-thumb { box-shadow: 0 0 0 2px var(--accent-2); }

/* ---------- Admin-managed page banners ---------- */
.hero.has-banner { background: #07070b; }
.hero-media { position: absolute; inset: 0; z-index: 0; }
.hero-media img { width: 100%; height: 100%; object-fit: cover; animation: banner-zoom 18s ease-out both; }
.hero-media::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(7, 7, 11, .92) 0%, rgba(7, 7, 11, .72) 45%, rgba(7, 7, 11, .35) 100%), linear-gradient(0deg, rgba(7, 7, 11, .85), transparent 45%); }
@keyframes banner-zoom { from { transform: scale(1.08); } to { transform: scale(1); } }
.has-banner .hero-inner { position: relative; z-index: 1; }
.has-banner .hero-glow { z-index: 1; opacity: .7; }
.has-banner .hero-bg { z-index: 1; opacity: .55; }
.has-banner.hero-home .hero-inner { z-index: 2; }
.hero-sm.has-banner { padding: clamp(96px, 12vw, 150px) 0 clamp(70px, 9vw, 110px); }

/* ---------- Call-to-action box (all pages) ---------- */
.cta-section { padding: clamp(40px, 6vw, 80px) 0 clamp(64px, 8vw, 110px); }
.cta-box {
  position: relative; isolation: isolate; overflow: hidden;
  border-radius: 32px;
  padding: clamp(40px, 6vw, 76px) clamp(24px, 6vw, 80px);
  text-align: center;
  background:
    radial-gradient(120% 140% at 0% 0%, rgba(240, 20, 30, .35), transparent 50%),
    radial-gradient(120% 140% at 100% 100%, rgba(83, 208, 255, .25), transparent 50%),
    linear-gradient(135deg, #161621, #0d0d14);
  border: 1px solid rgba(255, 255, 255, .1);
  box-shadow: 0 40px 100px -50px rgba(240, 20, 30, .6), inset 0 1px 0 rgba(255, 255, 255, .08);
}
.cta-box::before {
  content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background-image: linear-gradient(rgba(255, 255, 255, .05) 1px, transparent 1px), linear-gradient(90deg, rgba(255, 255, 255, .05) 1px, transparent 1px);
  background-size: 48px 48px;
  -webkit-mask-image: radial-gradient(ellipse 60% 70% at 50% 50%, #000, transparent 75%);
  mask-image: radial-gradient(ellipse 60% 70% at 50% 50%, #000, transparent 75%);
}
.cta-box.has-img { background: #0b0b10; }
.cta-bg { position: absolute; inset: 0; z-index: -2; width: 100%; height: 100%; object-fit: cover; }
.cta-box.has-img::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(8, 8, 12, .78), rgba(8, 8, 12, .9)); }
.cta-decor span { position: absolute; z-index: -1; border-radius: 50%; filter: blur(50px); pointer-events: none; animation: orb-float 16s ease-in-out infinite alternate; }
.cta-decor span:first-child { width: 280px; height: 280px; top: -120px; left: -80px; background: rgba(240, 20, 30, .35); }
.cta-decor span:last-child { width: 260px; height: 260px; bottom: -130px; right: -60px; background: rgba(83, 208, 255, .25); animation-duration: 20s; }
.cta-content { position: relative; max-width: 980px; margin: 0 auto; display: grid; justify-items: center; }
.cta-eyebrow { display: inline-flex; align-items: center; gap: 8px; margin: 0 0 18px; padding: 7px 16px; border-radius: 999px; font-size: .78rem; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: #fff; background: rgba(255, 255, 255, .07); border: 1px solid rgba(255, 255, 255, .14); backdrop-filter: blur(6px); }
.cta-eyebrow::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 4px rgba(240, 20, 30, .25); }
.cta-title { width: 100%; margin: 0 0 .5em; font-size: clamp(1.6rem, 3.2vw, 2.6rem); line-height: 1.15; white-space: nowrap; }
.cta-text { max-width: 700px; margin: 0 auto; color: #cfcdd6; font-size: clamp(1rem, 1.4vw, 1.12rem); line-height: 1.75; }
.cta-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin-top: 32px; }
.cta-actions .btn { gap: 10px; padding: 15px 28px; }
.cta-actions .btn svg { width: 18px; height: 18px; }
.cta-actions .btn-primary:hover, .cta-actions .btn-primary:focus-visible { color: var(--accent); }
@media (max-width: 899px) {
  .cta-title { white-space: normal; text-wrap: balance; }
  .cta-box { border-radius: 24px; }
}
@media (max-width: 560px) {
  .cta-actions .btn { flex: 1 1 100%; }
}

/* ---------- Uploaded images on cards ---------- */
.service-card.has-media { padding-top: 0; overflow: hidden; }
.card-media { margin: 0 -34px 24px; aspect-ratio: 16 / 9; overflow: hidden; border-bottom: 1px solid var(--border); }
.card-media img, .core-media img, .work-thumb img, .industry-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .6s var(--ease-out, ease); }
.service-card:hover .card-media img, .work-card:hover .work-thumb img, .industry:hover .industry-thumb img { transform: scale(1.05); }
.core-media { aspect-ratio: 16 / 9; border-radius: 14px; overflow: hidden; margin-bottom: 20px; border: 1px solid var(--border); }
.work-card.has-media { padding: 0; overflow: hidden; min-height: 0; justify-content: flex-start; }
.work-card.has-media > :not(.work-thumb) { padding: 0 22px; }
.work-card.has-media > :last-child { padding-bottom: 22px; }
.work-thumb { display: block; aspect-ratio: 16 / 10; overflow: hidden; margin-bottom: 14px; }
.industry-thumb { aspect-ratio: 3 / 2; margin: -28px -28px 18px; border-radius: var(--radius) var(--radius) 0 0; overflow: hidden; }
.industry:has(.industry-thumb) { overflow: hidden; }

/* ---------- Case studies ---------- */
.case-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(320px, 100%), 1fr)); gap: 22px; }
.case-card { display: flex; flex-direction: column; background: var(--surface); border: 1px solid var(--border); border-radius: 20px; overflow: hidden; transition: border-color .25s, transform .25s, box-shadow .25s; }
.case-card:hover { border-color: rgba(240, 20, 30, .5); transform: translateY(-4px); box-shadow: 0 30px 60px -35px rgba(240, 20, 30, .6); }
.case-media { aspect-ratio: 16 / 9; background: linear-gradient(135deg, rgba(240, 20, 30, .55), rgba(83, 208, 255, .4)), #1b1b24; }
.case-card-body { padding: 24px 26px 26px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.case-card-body h3 { font-size: 1.25rem; margin: 4px 0 0; }
.case-card-body h3 a { text-decoration: none; }
.case-card-body h3 a:hover { color: var(--accent-2); }
.case-card-body > p { color: var(--muted); margin: 0; }
.case-card-body .text-link { margin-top: auto; padding-top: 8px; }
.case-tag { align-self: flex-start; padding: 4px 12px; border-radius: 999px; font-size: .75rem; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--accent-2); background: rgba(83, 208, 255, .1); border: 1px solid rgba(83, 208, 255, .25); }
.case-client { color: #e8e6ee !important; font-weight: 600; }
.empty-block { max-width: 720px; margin: 0 auto; text-align: center; padding: 40px 0; }
.case-facts { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 1px; margin: -46px 0 0; position: relative; z-index: 2; background: var(--border); border: 1px solid var(--border); border-radius: 18px; overflow: hidden; }
.case-facts div { background: var(--surface); padding: 20px 24px; }
.case-facts dt { color: var(--muted); font-size: .8rem; text-transform: uppercase; letter-spacing: .1em; }
.case-facts dd { margin: 6px 0 0; font-family: var(--font-head); font-weight: 600; font-size: 1.1rem; }
.case-story { display: grid; gap: 28px; max-width: 900px; }
.case-block { position: relative; padding: 32px 34px 32px 96px; background: var(--surface); border: 1px solid var(--border); border-radius: 20px; }
.case-step { position: absolute; left: 30px; top: 30px; width: 44px; height: 44px; display: grid; place-items: center; border-radius: 12px; font-family: var(--font-head); font-weight: 800; color: #fff; background: linear-gradient(135deg, var(--accent), #ff4a4f); }
.case-block h2 { font-size: 1.5rem; }
.case-block p { color: #d6d4dd; }
.result-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 12px; }
.result-list li { position: relative; padding: 14px 16px 14px 48px; border-radius: 12px; background: rgba(83, 208, 255, .06); border: 1px solid rgba(83, 208, 255, .2); font-weight: 600; }
.result-list li::before { content: ""; position: absolute; left: 18px; top: 50%; width: 14px; height: 8px; border-left: 2px solid var(--accent-2); border-bottom: 2px solid var(--accent-2); transform: translateY(-70%) rotate(-45deg); }
@media (max-width: 560px) {
  .case-block { padding: 80px 22px 24px; }
  .case-step { left: 22px; top: 22px; }
  .case-facts { margin-top: -30px; }
}
@media (prefers-reduced-motion: reduce) {
  .hero-media img, .cta-decor span { animation: none !important; }
}

/* ---------- About page ---------- */
.ab-quote { margin: .4em 0 0; padding: 0 0 0 26px; border-left: 3px solid; border-image: linear-gradient(180deg, var(--accent), var(--accent-2)) 1; font-family: var(--font-head); font-weight: 700; font-size: clamp(1.6rem, 3.2vw, 2.4rem); line-height: 1.2; text-wrap: balance; }
.ab-text .lead { margin-bottom: 1em; }

.ab-founder { display: grid; grid-template-columns: minmax(280px, 400px) 1fr; gap: clamp(32px, 6vw, 80px); align-items: start; }
.ab-founder-card { position: sticky; top: 96px; padding: 14px; border-radius: 28px; background: linear-gradient(160deg, rgba(240, 20, 30, .16), rgba(83, 208, 255, .08)), var(--surface); border: 1px solid rgba(255, 255, 255, .1); box-shadow: 0 40px 90px -50px rgba(240, 20, 30, .6); }
.ab-photo { aspect-ratio: 4 / 5; border-radius: 20px; overflow: hidden; display: grid; place-items: center; background: radial-gradient(circle at 30% 20%, rgba(240, 20, 30, .6), transparent 55%), radial-gradient(circle at 80% 90%, rgba(83, 208, 255, .45), transparent 55%), #15151e; }
.ab-photo img { width: 100%; height: 100%; object-fit: cover; }
.ab-monogram { font-family: var(--font-head); font-weight: 800; font-size: clamp(4rem, 9vw, 6.5rem); letter-spacing: -.04em; color: rgba(255, 255, 255, .92); }
.ab-founder-id { display: grid; padding: 18px 8px 10px; }
.ab-founder-id strong { font-family: var(--font-head); font-size: 1.45rem; }
.ab-founder-id span { color: var(--muted); }
.ab-tagline { list-style: none; padding: 0 8px 8px; margin: 0; display: flex; flex-wrap: wrap; gap: 6px; }
.ab-tagline li { font-size: .78rem; font-weight: 600; letter-spacing: .04em; padding: 5px 11px; border-radius: 999px; background: rgba(255, 255, 255, .06); border: 1px solid rgba(255, 255, 255, .1); }
.ab-insight { margin-top: 32px; padding: 28px 30px; border-radius: 22px; background: var(--surface); border: 1px solid var(--border); }
.ab-insight-quote { font-family: var(--font-head); font-weight: 700; font-size: clamp(1.3rem, 2.4vw, 1.7rem); line-height: 1.25; margin: .3em 0 .8em; background: linear-gradient(90deg, #fff 40%, var(--accent-2)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.ab-not { list-style: none; padding: 0; margin: 0 0 1em; display: grid; gap: 6px; }
.ab-not li { color: var(--muted); text-decoration: line-through; text-decoration-color: rgba(240, 20, 30, .7); text-decoration-thickness: 2px; }
.ab-insight-close { font-weight: 600; margin: 0; }

.ab-areas { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.ab-area { display: grid; gap: 6px; padding: 20px; border-radius: 16px; background: var(--surface); border: 1px solid var(--border); font-family: var(--font-head); font-weight: 700; font-size: 1.15rem; transition: border-color .25s, transform .25s; }
.ab-area span { font-size: .78rem; color: var(--accent); letter-spacing: .1em; }
.ab-area:hover { border-color: rgba(240, 20, 30, .5); transform: translateY(-3px); }
.ab-after { margin-top: 1.4em; }
.ab-narrow { max-width: 720px; margin-left: auto; margin-right: auto; }

.ab-communicate { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; margin-bottom: 28px; }
.ab-communicate p { margin: 0; padding: 22px; border-radius: 18px; font-family: var(--font-head); font-weight: 700; font-size: 1.1rem; background: linear-gradient(160deg, rgba(240, 20, 30, .14), rgba(83, 208, 255, .06)), var(--surface); border: 1px solid rgba(255, 255, 255, .08); }
.ab-examples { display: grid; grid-template-columns: repeat(5, 1fr); gap: 12px; }
.ab-example { padding: 18px; border-radius: 14px; border: 1px dashed rgba(255, 255, 255, .16); color: var(--muted); font-size: .95rem; }
.ab-example strong { display: block; color: var(--text); font-family: var(--font-head); font-size: 1.05rem; margin-bottom: 4px; }

.ab-uses { margin-top: 8px; }
.ab-uses li { font-size: .9rem; padding: 8px 14px; }
.ab-now { font-size: 1.15rem; margin-top: 1.2em; }
.ab-now strong { color: var(--accent-2); }
.ab-sides { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; }
.ab-side { flex: 1 1 180px; padding: 32px 24px; border-radius: 20px; text-align: center; font-family: var(--font-head); font-weight: 700; font-size: 1.3rem; background: linear-gradient(160deg, rgba(240, 20, 30, .18), rgba(83, 208, 255, .08)), var(--surface); border: 1px solid rgba(255, 255, 255, .1); }
.ab-and { font-family: var(--font-head); color: var(--muted); font-style: italic; }

.ab-compare { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-bottom: 24px; }
.ab-compare > div { padding: 26px 28px; border-radius: 20px; border: 1px solid var(--border); }
.ab-compare span { display: inline-block; font-size: .75rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; margin-bottom: 10px; }
.ab-compare p { margin: 0; font-family: var(--font-head); font-weight: 700; font-size: clamp(1.2rem, 2.2vw, 1.6rem); }
.ab-compare-no { background: var(--surface); }
.ab-compare-no span { color: var(--muted); }
.ab-compare-no p { color: var(--muted); text-decoration: line-through; text-decoration-color: rgba(240, 20, 30, .6); }
.ab-compare-yes { background: linear-gradient(135deg, rgba(240, 20, 30, .2), rgba(83, 208, 255, .1)), var(--surface); border-color: rgba(240, 20, 30, .4) !important; }
.ab-compare-yes span { color: var(--accent); }
.ab-relationship { display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: 8px; }
.ab-relationship p { margin: 0; padding: 12px 20px; border-radius: 999px; font-weight: 700; background: rgba(83, 208, 255, .08); border: 1px solid rgba(83, 208, 255, .25); }

.ab-bring { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.ab-bring .service-num { display: block; margin-bottom: .6em; }

.ab-gear { list-style: none; padding: 0; margin: 0 0 8px; display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 10px; }
.ab-gear li { padding: 16px 18px; border-radius: 14px; background: var(--surface); border: 1px solid var(--border); font-family: var(--font-head); font-weight: 700; }
.ab-gear-alt li { border-color: rgba(83, 208, 255, .3); color: var(--accent-2); }

.ab-services { list-style: none; padding: 0; margin: 0 0 36px; display: flex; flex-wrap: wrap; gap: 10px; }
.ab-services li { padding: 12px 20px; border-radius: 999px; font-family: var(--font-head); font-weight: 700; background: var(--surface); border: 1px solid var(--border); }
.ab-shift { display: grid; grid-template-columns: 1fr auto 1.4fr; align-items: center; gap: 20px; }
.ab-shift > div:not(.ab-shift-arrow) { padding: 28px; border-radius: 20px; border: 1px solid var(--border); background: var(--surface); }
.ab-shift span { display: block; font-size: .75rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); margin-bottom: 8px; }
.ab-shift p { margin: 0; font-family: var(--font-head); font-weight: 700; font-size: clamp(1.15rem, 2vw, 1.5rem); }
.ab-shift-from p { color: var(--muted); }
.ab-shift-to { background: linear-gradient(135deg, rgba(240, 20, 30, .2), rgba(83, 208, 255, .12)), var(--surface) !important; border-color: rgba(240, 20, 30, .4) !important; }
.ab-shift-arrow { font-size: 2rem; color: var(--accent); }

.ab-future { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.ab-goal { position: relative; padding: 28px 24px; border-radius: 20px; background: var(--surface); border: 1px solid var(--border); overflow: hidden; }
.ab-goal::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 3px; background: linear-gradient(90deg, var(--accent), var(--accent-2)); }
.ab-goal h3 { font-size: 1.25rem; }
.ab-goal p { color: var(--muted); margin: 0; }

.ab-vision { text-align: center; }
.ab-vision .section-head { margin-left: auto; margin-right: auto; }
.ab-trust { list-style: none; padding: 0; margin: 0 auto 1.4em; max-width: 760px; display: grid; gap: 12px; }
.ab-trust li { padding: 16px 20px; border-radius: 14px; background: var(--surface); border: 1px solid var(--border); font-size: 1.05rem; }

.ab-approach { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 14px; }
.ab-approach li { padding: 22px 18px; border-radius: 18px; background: var(--surface); border: 1px solid var(--border); }
.ab-approach span { display: inline-grid; place-items: center; width: 36px; height: 36px; border-radius: 10px; margin-bottom: 14px; font-family: var(--font-head); font-weight: 800; font-size: .85rem; color: #fff; background: linear-gradient(135deg, var(--accent), #ff4a4f); }
.ab-approach h3 { font-size: 1.1rem; margin-bottom: .3em; }
.ab-approach p { color: var(--muted); font-size: .92rem; margin: 0; }
.ab-approach .ab-repeat { background: linear-gradient(135deg, rgba(240, 20, 30, .2), rgba(83, 208, 255, .12)), var(--surface); border-color: rgba(240, 20, 30, .4); }
.ab-approach .ab-repeat span { background: linear-gradient(135deg, var(--accent-2), #2b8fd6); font-size: 1.1rem; }

@media (max-width: 1000px) {
  .ab-communicate, .ab-bring, .ab-future { grid-template-columns: repeat(2, 1fr); }
  .ab-examples { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 820px) {
  .ab-founder { grid-template-columns: 1fr; }
  .ab-founder-card { position: static; max-width: 420px; }
  .ab-compare, .ab-shift { grid-template-columns: 1fr; }
  .ab-shift-arrow { transform: rotate(90deg); justify-self: center; }
}
@media (max-width: 560px) {
  .ab-areas { grid-template-columns: repeat(2, 1fr); }
  .ab-communicate, .ab-bring, .ab-future, .ab-examples { grid-template-columns: 1fr; }
}

/* ---------- Photos: equipment + capability icons ---------- */
.gear.has-media { padding: 0; overflow: hidden; }
.gear.has-media > :not(.gear-media) { padding: 0 20px; }
.gear.has-media > p { padding-bottom: 20px; }
.gear-media { aspect-ratio: 1; overflow: hidden; margin-bottom: 16px; border-bottom: 1px solid var(--border); }
.gear-media img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .6s var(--ease-out, ease); }
.gear:hover .gear-media img { transform: scale(1.06); }
.pillar-icon { width: 72px; height: 72px; border-radius: 50%; object-fit: cover; margin-bottom: 16px; box-shadow: 0 0 0 4px rgba(255, 255, 255, .06), 0 12px 28px -12px rgba(240, 20, 30, .6); background: #fff; }
.ab-gear li.has-img { display: flex; align-items: center; gap: 14px; padding: 10px 14px 10px 10px; }
.ab-gear li img { width: 56px; height: 56px; border-radius: 10px; object-fit: cover; flex: none; }

/* ---------- Image cards: light "flash" sweeping across the photo on hover ---------- */
.card-media, .work-thumb, .industry-thumb, .industry-media, .showcase-media, .gear-media, .core-media, .post-cover, .case-media, .dd-thumb { position: relative; overflow: hidden; isolation: isolate; }
.card-media::before, .work-thumb::before, .industry-thumb::before, .industry-media::before, .showcase-media::before, .gear-media::before, .core-media::before, .post-cover::before, .case-media::before, .dd-thumb::before {
  content: ""; position: absolute; top: -10%; left: -80%; z-index: 2; width: 55%; height: 120%; pointer-events: none;
  background: linear-gradient(105deg, transparent 0%, rgba(255, 255, 255, .08) 35%, rgba(255, 255, 255, .55) 50%, rgba(255, 255, 255, .08) 65%, transparent 100%);
  transform: skewX(-20deg); opacity: 0;
}
.showcase-media::after { z-index: 3; }
.service-card:hover .card-media::before, .work-card:hover .work-thumb::before, .industry:hover .industry-thumb::before, .industry-card:hover .industry-media::before,
.showcase-card:hover .showcase-media::before, .gear:hover .gear-media::before, .core-service:hover .core-media::before, .post-card:hover .post-cover::before,
.case-card:hover .case-media::before, .dropdown-group a:hover .dd-thumb::before { animation: card-flash .85s cubic-bezier(.3, .6, .3, 1); }
@keyframes card-flash { 0% { left: -80%; opacity: 1; } 100% { left: 130%; opacity: 1; } }

/* gentle zoom + brightness lift on the photo itself */
.card-media img, .work-thumb img, .industry-thumb img, .industry-media img, .showcase-media img, .gear-media img, .core-media img, .post-cover img, .case-media img, .dd-thumb img {
  transition: transform .7s cubic-bezier(.16, 1, .3, 1), filter .5s ease;
}
.service-card:hover .card-media img, .work-card:hover .work-thumb img, .industry:hover .industry-thumb img, .industry-card:hover .industry-media img,
.showcase-card:hover .showcase-media img, .gear:hover .gear-media img, .core-service:hover .core-media img, .post-card:hover .post-cover img,
.case-card:hover .case-media img, .dropdown-group a:hover .dd-thumb img { transform: scale(1.07); filter: brightness(1.08) saturate(1.1); }

/* soft red glow around the whole card */
.service-card.has-media:hover, .industry-card:hover, .showcase-card:hover, .gear.has-media:hover, .post-card:hover, .case-card:hover, .work-card.has-media:hover, .industry:has(.industry-thumb):hover {
  box-shadow: 0 24px 50px -28px rgba(240, 20, 30, .65), 0 0 0 1px rgba(240, 20, 30, .35);
}
.industry-card, .gear, .industry { transition: border-color .25s, transform .25s, box-shadow .3s; }
.industry-card:hover, .gear.has-media:hover, .industry:has(.industry-thumb):hover { transform: translateY(-4px); }

@media (prefers-reduced-motion: reduce) {
  .card-media::before, .work-thumb::before, .industry-thumb::before, .industry-media::before, .showcase-media::before, .gear-media::before, .core-media::before, .post-cover::before, .case-media::before, .dd-thumb::before { animation: none !important; }
}

/* ---------- Home: framed photos beside text sections ---------- */
.split-media { align-items: center; grid-template-columns: .9fr 1.1fr; }
.side-photo { position: relative; margin: 0; border-radius: 28px; overflow: hidden; aspect-ratio: 4 / 5; border: 1px solid rgba(255, 255, 255, .1); box-shadow: 0 40px 90px -45px rgba(240, 20, 30, .55); isolation: isolate; }
.side-photo img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .8s cubic-bezier(.16, 1, .3, 1); }
.side-photo:hover img { transform: scale(1.05); }
.side-photo::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 55%, rgba(7, 7, 11, .75)); pointer-events: none; }
.side-photo::before { content: ""; position: absolute; top: -10%; left: -80%; z-index: 2; width: 55%; height: 120%; pointer-events: none; background: linear-gradient(105deg, transparent, rgba(255, 255, 255, .45) 50%, transparent); transform: skewX(-20deg); opacity: 0; }
.side-photo:hover::before { animation: card-flash .9s cubic-bezier(.3, .6, .3, 1); }
.side-photo-badge { position: absolute; left: 18px; bottom: 18px; z-index: 3; padding: 8px 14px; border-radius: 999px; font-size: .78rem; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; background: rgba(7, 7, 11, .6); border: 1px solid rgba(255, 255, 255, .18); backdrop-filter: blur(8px); }
.side-photo-why { aspect-ratio: 4 / 3; margin-top: 28px; }
@media (max-width: 820px) {
  .split-media { grid-template-columns: 1fr; }
  .side-photo { aspect-ratio: 4 / 3; }
}

/* ---------- Portfolio project page ---------- */
.project-layout { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: clamp(28px, 4vw, 56px); align-items: start; }
.project-main { display: grid; gap: 32px; min-width: 0; }
.video-frame { position: relative; aspect-ratio: 16 / 9; border-radius: 22px; overflow: hidden; border: 1px solid rgba(255, 255, 255, .1); background: #000; box-shadow: 0 40px 90px -45px rgba(240, 20, 30, .55); }
.video-frame iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.project-cover { border-radius: 22px; overflow: hidden; border: 1px solid var(--border); }
.project-cover img { width: 100%; display: block; }
.project-prose h2 { margin-top: 0; }
.project-gallery { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 14px; }
.gallery-item { display: block; border-radius: 16px; overflow: hidden; border: 1px solid var(--border); }
.gallery-media { aspect-ratio: 16 / 10; }
.gallery-media img { transition: transform .6s cubic-bezier(.16, 1, .3, 1); }
.gallery-item:hover .gallery-media img { transform: scale(1.06); }
.project-side { position: sticky; top: 96px; display: grid; gap: 18px; }
.side-card { padding: 24px; border-radius: 20px; background: var(--surface); border: 1px solid var(--border); }
.side-card h3 { margin-bottom: .8em; }
.side-card .cta-row { margin: 16px 0; }
.side-card .cta-row .btn { flex: 1; padding: 12px 16px; }
.showcase-body h3 a { text-decoration: none; }
.showcase-body h3 a:hover { color: var(--accent-2); }
.showcase-body .case-tag { margin-bottom: 8px; display: inline-block; }
@media (max-width: 1000px) {
  .project-layout { grid-template-columns: 1fr; }
  .project-side { position: static; }
}

/* ---------- Enquiry form on detail pages ---------- */
.detail-enquiry { align-items: start; }
.detail-enquiry .cta-row { margin-top: 8px; }

/* ---------- Insights cards ---------- */
.read-more { margin-top: 14px; align-self: flex-start; }

/* ---------- Clients & Testimonials page ---------- */
.cl-industries { margin: 18px 0 6px; }
.cl-tagline { font-family: var(--font-head); font-weight: 700; font-size: 1.05rem; margin: 14px 0 0; background: linear-gradient(90deg, var(--accent), var(--accent-2)); -webkit-background-clip: text; background-clip: text; color: transparent; display: inline-block; }
.cl-brands-head { align-items: end; margin-bottom: 28px; }
.cl-brands-head p { color: var(--muted); }
.logo-wall { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 14px; }
.logo-wall li { aspect-ratio: 16 / 10; display: grid; place-items: center; padding: 12px 16px; border-radius: 16px; background: rgba(255, 255, 255, .96); border: 1px solid var(--border); transition: transform .25s, box-shadow .25s; }
.logo-wall li:hover { transform: translateY(-4px); box-shadow: 0 20px 40px -24px rgba(240, 20, 30, .7); }
.logo-wall a { display: grid; place-items: center; width: 100%; height: 100%; }
.logo-wall img { max-width: 100%; max-height: 84px; object-fit: contain; transition: transform .3s; }
.logo-wall li:hover img { transform: scale(1.05); }
.cl-empty { padding: 28px; border-radius: 18px; border: 1px dashed rgba(255, 255, 255, .16); color: var(--muted); text-align: center; max-width: 760px; margin: 0 auto; }
.cl-highlight { display: inline-block; margin: -8px 0 32px; padding: 12px 22px; border-radius: 999px; font-weight: 700; background: rgba(240, 20, 30, .12); border: 1px solid rgba(240, 20, 30, .35); }

.tm-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 22px; }
.tm-card { display: flex; flex-direction: column; border-radius: 20px; overflow: hidden; background: var(--surface); border: 1px solid var(--border); transition: transform .25s, box-shadow .3s, border-color .25s; }
.tm-card:hover { transform: translateY(-4px); border-color: rgba(240, 20, 30, .45); box-shadow: 0 30px 60px -35px rgba(240, 20, 30, .7); }
.tm-trigger { display: block; width: 100%; padding: 0; border: 0; background: none; cursor: pointer; color: inherit; text-align: left; }
.tm-media { position: relative; display: block; aspect-ratio: 16 / 9; overflow: hidden; isolation: isolate; background: linear-gradient(135deg, rgba(240, 20, 30, .5), rgba(83, 208, 255, .35)), #15151e; }
.tm-media img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .7s cubic-bezier(.16, 1, .3, 1), filter .5s; }
.tm-card:hover .tm-media img { transform: scale(1.06); filter: brightness(.85); }
.tm-play { position: absolute; left: 50%; top: 50%; z-index: 2; width: 66px; height: 66px; transform: translate(-50%, -50%); border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 10px rgba(240, 20, 30, .25), 0 14px 30px rgba(0, 0, 0, .45); transition: transform .3s, box-shadow .3s; }
.tm-play::after { content: ""; position: absolute; left: 26px; top: 21px; border-style: solid; border-width: 12px 0 12px 19px; border-color: transparent transparent transparent #fff; }
.tm-card:hover .tm-play { transform: translate(-50%, -50%) scale(1.1); box-shadow: 0 0 0 14px rgba(240, 20, 30, .2), 0 14px 30px rgba(0, 0, 0, .45); }
.tm-body { padding: 20px 22px 22px; display: grid; gap: 4px; }
.tm-body blockquote { margin: 0 0 10px; color: #dcdae2; font-style: italic; line-height: 1.6; }
.tm-name { margin: 0; font-family: var(--font-head); font-weight: 700; font-size: 1.05rem; }
.tm-role { margin: 0; color: var(--muted); font-size: .9rem; }

.cl-trust { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.cl-trust-card { padding: 28px 24px; border-radius: 20px; background: var(--surface); border: 1px solid var(--border); transition: transform .25s, border-color .25s; }
.cl-trust-card:hover { transform: translateY(-4px); border-color: rgba(240, 20, 30, .45); }
.cl-trust-icon { display: grid; place-items: center; width: 56px; height: 56px; margin-bottom: 18px; border-radius: 16px; font-size: 1.7rem; background: linear-gradient(135deg, rgba(240, 20, 30, .25), rgba(83, 208, 255, .15)); border: 1px solid rgba(255, 255, 255, .1); }
.cl-trust-card p { color: var(--muted); margin: 0; }
.cl-lines { list-style: none; padding: 0; margin: 0; display: grid; gap: 14px; counter-reset: cl; }
.cl-lines li { counter-increment: cl; position: relative; padding: 22px 24px 22px 76px; border-radius: 18px; background: var(--surface); border: 1px solid var(--border); font-family: var(--font-head); font-weight: 700; font-size: 1.15rem; }
.cl-lines li::before { content: "0" counter(cl); position: absolute; left: 22px; top: 50%; transform: translateY(-50%); width: 38px; height: 38px; display: grid; place-items: center; border-radius: 11px; font-size: .85rem; color: #fff; background: linear-gradient(135deg, var(--accent), #ff4a4f); }
.cl-next h2 { font-size: clamp(1.7rem, 3.4vw, 2.6rem); text-wrap: balance; }
.cl-closing-line { margin: 28px 0 6px; letter-spacing: .14em; text-transform: uppercase; font-size: .8rem; font-weight: 600; color: var(--muted); }
.cl-closing-tag { margin: 0; font-family: var(--font-head); font-weight: 700; font-size: 1.25rem; background: linear-gradient(90deg, #fff 30%, var(--accent-2)); -webkit-background-clip: text; background-clip: text; color: transparent; }

.video-modal { width: min(1000px, 94vw); padding: 0; border: 0; border-radius: 20px; background: #000; color: #fff; overflow: visible; }
.video-modal::backdrop { background: rgba(5, 5, 8, .85); backdrop-filter: blur(6px); }
.video-modal-inner { position: relative; }
.video-modal .video-frame { border-radius: 20px; box-shadow: none; }
.video-modal-close { position: absolute; right: -14px; top: -14px; z-index: 2; width: 40px; height: 40px; border-radius: 50%; border: 0; background: #fff; color: #111; font-size: 1.5rem; line-height: 1; cursor: pointer; box-shadow: 0 8px 20px rgba(0, 0, 0, .4); }

@media (max-width: 1000px) { .cl-trust { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .cl-trust { grid-template-columns: 1fr; } .video-modal-close { right: 6px; top: -50px; } }

/* Nine menu links: keep them on one line on laptops */
@media (min-width: 1081px) and (max-width: 1320px) {
  .nav-menu { gap: 16px; }
  .nav-menu a:not(.btn), .nav-link { font-size: .9rem; }
  .logo span { letter-spacing: .14em; }
}

/* ---------- Testimonials: captions + vertical (YouTube Shorts) cards ---------- */
.tm-grid { grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); }
.tm-vertical .tm-media { aspect-ratio: 9 / 14; }
.tm-caption { margin: 8px 0 0; color: var(--muted); font-size: .92rem; line-height: 1.6; }
.tm-body blockquote { margin: 10px 0 0; }
.video-modal.vertical { width: min(420px, 92vw); }
.video-modal.vertical .video-frame { aspect-ratio: 9 / 16; max-height: 86vh; }

/* ---------- Home: scrolling client logo strip ---------- */
.brand-strip { padding-bottom: clamp(48px, 7vw, 80px); }
.brand-strip-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 20px; flex-wrap: wrap; margin-bottom: 28px; }
.brand-strip-head .section-head { margin-bottom: 0; }
.logo-marquee { overflow: hidden; -webkit-mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent); mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent); }
.logo-marquee-track { display: flex; width: max-content; animation: marquee 55s linear infinite; }
.logo-marquee:hover .logo-marquee-track { animation-play-state: paused; }
.logo-marquee ul { display: flex; gap: 16px; list-style: none; margin: 0; padding: 0 16px 0 0; }
.logo-marquee li { width: 190px; height: 104px; flex: none; display: grid; place-items: center; padding: 14px 18px; border-radius: 16px; background: #fff; border: 1px solid rgba(255, 255, 255, .1); }
.logo-marquee img { max-width: 100%; max-height: 72px; object-fit: contain; }
@media (prefers-reduced-motion: reduce) { .logo-marquee-track { animation: none; flex-wrap: wrap; } }

/* ---------- Mobile polish: banners, images, content and cards ---------- */
.industry p span { white-space: nowrap; }
@media (max-width: 1000px) {
  /* minmax(0, 1fr): a long word can never push a card past the screen edge */
  .pillar-grid, .offer-grid, .item-grid, .gear-grid, .industry-grid, .stat-grid, .ab-communicate, .ab-bring, .ab-future, .cl-trust { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 820px) {
  .service-grid, .industry-cards { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 560px) {
  .section { padding: 56px 0; }
  .hero { padding: 56px 0 48px; }
  .hero h1 { font-size: clamp(2.1rem, 10vw, 2.6rem); }
  .hero-sm h1, .post-hero h1 { font-size: clamp(1.8rem, 8.4vw, 2.3rem); }
  h2 { font-size: clamp(1.6rem, 7.4vw, 2rem); }
  .eyebrow { letter-spacing: .1em; font-size: .7rem; line-height: 1.6; }
  .lead { font-size: 1.05rem; }

  /* Buttons: two side by side, text on one line */
  .cta-row { gap: 10px; }
  .cta-row .btn { flex: 1 1 0; min-width: 0; padding: 13px 14px; font-size: .95rem; white-space: nowrap; }

  /* Floating WhatsApp button: smaller so it covers less text */
  .whatsapp-float { width: 48px; height: 48px; right: 14px; bottom: 14px; }
  .whatsapp-float svg { width: 26px; height: 26px; }

  /* Cards: tighter padding, one per row */
  .service-card, .pillar, .gear, .industry, .offer, .work-card, .contact-card, .stat { padding: 20px; }
  .card-media { margin: -20px -20px 16px; }
  .pillar-grid, .offer-grid, .item-grid, .check-list, .ab-communicate, .ab-bring, .ab-future, .ab-examples, .cl-trust { grid-template-columns: minmax(0, 1fr); }

  /* Small 2-up cards (equipment, industries, numbers) */
  .gear-grid, .industry-grid, .stat-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
  .gear.has-media { padding: 0; }
  .gear.has-media > :not(.gear-media) { padding: 0 14px; }
  .gear.has-media > p { padding-bottom: 14px; }
  .gear h3, .industry h3 { font-size: 1rem; }
  .gear p, .industry p { font-size: .85rem; line-height: 1.5; }
  .gear-grid > :last-child:nth-child(odd), .stat-grid > :last-child:nth-child(odd) { grid-column: 1 / -1; }
  .gear-grid > .has-media:last-child:nth-child(odd) .gear-media { aspect-ratio: 16 / 9; }
  .industry { padding: 16px; }
  .industry-thumb { margin: -16px -16px 12px; }
  .stat { padding: 18px 10px; }
  .stat-value { font-size: 1.7rem; line-height: 1.15; }
  .stat-label { font-size: .82rem; }

  /* Client logos: two per row, shorter tiles */
  .logo-wall { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .logo-wall li { padding: 10px; border-radius: 12px; }
  .logo-wall img { max-height: 60px; }

  /* Video testimonials: portrait thumbnails no taller than the screen */
  .tm-grid { grid-template-columns: minmax(0, 1fr); }
  .tm-vertical .tm-media { aspect-ratio: 4 / 5; }
  .tm-play { width: 58px; height: 58px; }
  .tm-play::after { left: 23px; top: 18px; border-width: 11px 0 11px 17px; }
  .cl-highlight { border-radius: 18px; padding: 12px 18px; }

  /* Contact details: label above value */
  .contact-list { grid-template-columns: minmax(0, 1fr); gap: 2px; }
  .contact-list dd { margin-bottom: 12px; }

  .project-gallery { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
}

/* ---------- Portfolio project page: video grid ---------- */
.pf-sub { margin: 48px 0 20px; font-size: 1.25rem; }
.pf-shorts { grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); }
@media (max-width: 560px) { .pf-shorts { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; } }
