/* Home page only (round 2). Shared styles live in site.css; this file adds
   the tech grid with the Integration group, the capability marquee and motion helpers. */

/* ---------- AI section link ---------- */
.ai__more { margin-top: 28px; }

/* ---------- Monetiq work-card gallery ---------- */
.monetiq-gallery {
  display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px;
  padding: 8px; border-radius: 14px; overflow: hidden; background: #101820;
  box-shadow: 0 24px 60px rgba(7,40,42,.25); border: 1px solid rgba(0,0,0,.08);
}
.monetiq-gallery img { width: 100%; height: 112px; object-fit: cover; border-radius: 8px; }
.monetiq-gallery__main { grid-column: 1 / -1; height: clamp(180px, 20vw, 260px) !important; object-position: top; }
.monetiq-gallery__diagram { object-position: top; }
@media (max-width: 767px) {
  .monetiq-gallery img { height: 90px; }
  .monetiq-gallery__main { height: 180px !important; }
}

/* ---------- technology: 4 columns, AI spans two, plus Integration ---------- */
.tech__grid { grid-template-columns: repeat(4, 1fr); }
.tgroup--hl { grid-column: span 2; }
.tgroup h3 { font-size: var(--fs-h4); }
.tgroup span { font-size: var(--fs-xs); }

/* capability marquee (real capability names, decorative duplicate of the grid) */
.techmarq {
  margin-top: 40px; overflow: hidden;
  mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent);
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent);
}
.techmarq__track { display: flex; gap: 12px; width: max-content; animation: techmarq 60s linear infinite; }
.techmarq:hover .techmarq__track { animation-play-state: paused; }
.techmarq span {
  flex: none; font-size: var(--fs-sm); font-weight: 600; color: #c7d1d0; padding: 10px 18px; border-radius: 999px;
  border: 1px solid rgba(199,209,208,.16); background: rgba(199,209,208,.05); white-space: nowrap;
}
.techmarq span:nth-child(4n+1) { color: #68d4d1; border-color: rgba(104,212,209,.34); background: rgba(60,195,197,.09); }
.techmarq span:nth-child(4n+2) { color: #e9bb45; border-color: rgba(233,187,69,.30); background: rgba(217,163,22,.08); }
.techmarq span:nth-child(4n+3) { color: #a9d5bd; border-color: rgba(169,213,189,.28); background: rgba(79,143,109,.09); }
.techmarq span:nth-child(4n) { color: #d3cbbe; border-color: rgba(211,203,190,.22); background: rgba(211,203,190,.06); }
@keyframes techmarq { to { transform: translateX(calc(-50% - 6px)); } }

/* ---------- industries: step indicator shown while the section is pinned ---------- */
.ind__steps { display: none; }
.ind.is-pinned .ind__steps { display: flex; justify-content: center; gap: 8px; margin-top: 28px; }
.ind__steps i { width: 28px; height: 3px; border-radius: 2px; background: var(--line-2); transition: background .35s var(--ease), width .35s var(--ease); }
.ind__steps i.is-on { background: var(--teal); width: 44px; }

/* Homepage hero type follows the Elexoft reference: 800 weight, tight tracking and a compact 1.1 leading. */
.hero__title { font-size: 24px; line-height: 1.1; letter-spacing: -.025em; font-weight: 800; }
@media (min-width: 640px) { .hero__title { font-size: 36px; } }

/* Cinematic hero loop: dark teal-green grade matching the site's visual system. */
.hero__video { opacity: .72; filter: saturate(.72) contrast(1.05) brightness(.9); transform: scale(1.055); animation: home-video-drift 18s ease-in-out infinite alternate; will-change: transform; }
.hero__media--video + .hero__shade {
  background:
    radial-gradient(60% 78% at 10% 92%, rgba(7, 94, 99, .58), transparent 70%),
    radial-gradient(42% 58% at 94% 8%, rgba(20, 154, 157, .22), transparent 72%),
    linear-gradient(180deg, rgba(8, 15, 15, .48), rgba(5, 28, 27, .66) 58%, var(--bg) 100%);
}
.hero__media--video .hero__drift { mix-blend-mode: normal; opacity: .35; }
@keyframes home-video-drift {
  0% { transform: scale(1.055) translate3d(-1.2%, 0, 0); }
  50% { transform: scale(1.085) translate3d(.6%, -1%, 0); }
  100% { transform: scale(1.065) translate3d(1.2%, .5%, 0); }
}

/* ---------- CTA: balanced spacing with room for the parallax drift ---------- */
.home-soft-dark .cta {
  padding: 36px 0 44px;
  background: #1b3031;
}
.home-soft-dark .cta__panel {
  padding-block: clamp(48px, 5vw, 68px);
  border-color: rgba(104, 212, 209, .24);
  box-shadow: 0 20px 54px rgba(5, 16, 17, .22);
}
.home-soft-dark .cta__bg { inset: -8% 0; }
.home-soft-dark .cta__txt p { color: #c1cccc; }
.home-soft-dark .cta__txt small { color: #9eaeae; }
.home-soft-dark .cta .pill--fill {
  background: linear-gradient(135deg, #218e90, #2ba3a4);
  box-shadow: inset 0 -2px 0 rgba(5, 74, 77, .65), 0 10px 26px rgba(20, 154, 157, .16);
}
.home-soft-dark .cta .pill--fill:hover { background: #55c4c3; }

@media (max-width: 1100px) {
  .tech__grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 767px) {
  .tech__grid { grid-template-columns: 1fr; }
  .tgroup--hl { grid-column: auto; }
  .techmarq { margin-top: 28px; }
}
@media (prefers-reduced-motion: reduce) {
  .techmarq { display: none; }
  .home-soft-dark .cta__bg { inset: 0; }
  .hero__video { animation: none; transform: none; }
}

/* =========================================================================
   Image round: photos paired with the text-only sections (services, why, numbers,
   technology, process, insights). All Pinterest photos are temporary (see README).
   ========================================================================= */

/* shared photo motion: soft clip reveal as the image enters, plain on reduced motion */
.svc__img img, .why__img img, .proc__img img { display: block; width: 100%; height: 100%; object-fit: cover; }
@supports (animation-timeline: view()) {
  @media (prefers-reduced-motion: no-preference) {
    .why__img img, .proc__img img, .post__cover {
      animation: homeImgIn linear both; animation-timeline: view(); animation-range: entry 0% entry 70%;
    }
    .nums__bg, .tech__bg { animation: homeDrift linear both; animation-timeline: view(); }
  }
}
@keyframes homeImgIn { from { clip-path: inset(10% 6% 10% 6% round 14px); transform: scale(1.08); } to { clip-path: inset(0 0 0 0 round 0); transform: scale(1); } }
@keyframes homeDrift { from { transform: translateY(-6%); } to { transform: translateY(6%); } }

/* ---------- services: image-topped cards ---------- */
.svc__img {
  position: relative; margin: 0 0 26px; aspect-ratio: 16 / 10; border-radius: 16px; overflow: hidden; background: #151516;
}
.svc__img img { filter: saturate(.85); transition: transform .8s var(--ease), filter .5s; }
.svc__img::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(15,15,16,0) 50%, rgba(15,15,16,.35)); pointer-events: none; }
.svc__card:hover .svc__img img { transform: scale(1.05); filter: saturate(1); }
@media (min-width: 1101px) {
  .js-motion .svc__card { padding-top: 28px; padding-bottom: 32px; }
  .js-motion .svc__img { aspect-ratio: auto; height: clamp(110px, 21vh, 210px); margin-bottom: 20px; }
  .js-motion .svc__t { min-height: 2.2em; margin-top: 14px; }
  .js-motion .svc__card .pill { margin-top: 22px; }
}
@media (max-width: 767px) {
  .svc__img { aspect-ratio: 16 / 9; margin-bottom: 20px; }
}

/* ---------- why: photo on top of each expanding card ---------- */
.why__card { display: flex; flex-direction: column; overflow: hidden; }
.why__img {
  position: relative; margin: -30px -30px 24px; height: 190px; overflow: hidden; background: #151516;
}
.why__img img { filter: saturate(.8) brightness(.9); transition: filter .5s; }
.why__img::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(20,20,21,0) 40%, rgba(20,20,21,.7)); }
.why__card.is-open .why__img img { filter: saturate(1) brightness(1); }
.why__card .why__ico { margin-top: -50px; position: relative; z-index: 1; box-shadow: 0 0 0 6px var(--card); margin-bottom: 20px; }
@media (max-width: 960px) {
  .why__img { height: 200px; }
}

/* ---------- numbers: photo-backed band with a dark overlay ---------- */
/* TODO(replace-before-launch): temporary Pinterest image, unlicensed (source row in assets/img/photos/MAP.tsv). */
.nums { position: relative; overflow: hidden; isolation: isolate; padding: 64px 0; }
.nums__bg {
  position: absolute; inset: -8% 0; z-index: -1;
  background: linear-gradient(90deg, rgba(10,10,10,.93), rgba(10,10,10,.80) 50%, rgba(10,10,10,.93)),
    url("/assets/img/photos/empty-office-night-city-view-1600.webp") center 55% / cover no-repeat;
}
@media (max-width: 767px) { .nums__bg { background-image: linear-gradient(90deg, rgba(10,10,10,.93), rgba(10,10,10,.80) 50%, rgba(10,10,10,.93)), url("/assets/img/photos/empty-office-night-city-view-800.webp"); } }

/* ---------- technology: server-room photo fading into the section ---------- */
/* TODO(replace-before-launch): temporary Pinterest image, unlicensed (source row in assets/img/photos/MAP.tsv). */
.tech--photo { position: relative; overflow: hidden; isolation: isolate; }
.tech__bg {
  position: absolute; left: 0; right: 0; top: -6%; height: 78%; z-index: -1; opacity: .5;
  background: url("/assets/img/photos/blue-server-racks-corridor-1600.webp") center 45% / cover no-repeat;
  -webkit-mask-image: linear-gradient(180deg, transparent 0%, #000 22%, rgba(0,0,0,.55) 55%, transparent 100%);
  mask-image: linear-gradient(180deg, transparent 0%, #000 22%, rgba(0,0,0,.55) 55%, transparent 100%);
  filter: saturate(.6);
}
@media (max-width: 767px) { .tech__bg { background-image: url("/assets/img/photos/blue-server-racks-corridor-800.webp"); } }
.tech__bg::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(15,15,16,.55), rgba(15,15,16,.35) 40%, var(--bg)); }
.tech--photo .tgroup { background: rgba(28,28,29,.82); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); }
.tech--photo .tgroup--hl { background: linear-gradient(135deg, rgba(217,163,22,.16), rgba(28,28,29,.85) 70%); }

/* ---------- process: text beside a large photo ---------- */
.proc__top { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); gap: 56px; align-items: center; }
.proc__img { position: relative; margin: 0; aspect-ratio: 16 / 10; border-radius: var(--r); overflow: hidden; border: 1px solid var(--line-2); background: #151516; }
.proc__img img { filter: saturate(.85); }
.proc__img::after { content: ""; position: absolute; inset: 0; background: linear-gradient(200deg, rgba(20,154,157,.12), rgba(15,15,16,.25)); }
@media (max-width: 960px) {
  .proc__top { grid-template-columns: 1fr; gap: 32px; }
}

/* ---------- insights: real article covers ---------- */
.post__cover { display: block; width: 100%; height: auto; object-fit: cover; object-position: 50% 50%; }
@media (max-width: 1100px) and (min-width: 768px) {
  .post__cover { height: 100%; }
}

@media (prefers-reduced-motion: reduce) {
  .svc__img img, .why__img img { transition: none; }
  .svc__card:hover .svc__img img { transform: none; }
  .nums__bg { inset: 0; }
}

/* =====================================================================
   ENQUIRY POPUP (dialog#epop, /assets/js/pages/popup.js). Photo panel left on desktop, single column on phones.
   ===================================================================== */
html.epop-lock, html.epop-lock body { overflow: hidden; }
html.epop-lock body { padding-right: var(--epop-sbw, 0px); }
.epop { width: min(920px, calc(100vw - 32px)); max-width: none; max-height: calc(100dvh - 32px); padding: 0; margin: auto; border: 0; border-radius: var(--r); background: transparent; color: var(--ink); overflow: visible; }
.epop::backdrop { background: rgba(4,8,9,.72); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); }
.epop__panel { position: relative; display: grid; grid-template-columns: minmax(0, 0.85fr) minmax(0, 1fr); max-height: calc(100dvh - 32px); overflow: hidden; border-radius: var(--r);
  border: 1px solid rgba(60,195,197,.28); background: radial-gradient(120% 80% at 100% 0%, rgba(20,154,157,.16), transparent 55%), linear-gradient(180deg, #121718, #0c1011); box-shadow: 0 50px 120px -40px rgba(0,0,0,.9); }
.epop__media { position: relative; min-height: 100%; overflow: hidden; background: #0d1112; }
.epop__media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; filter: saturate(.8); }
.epop__media::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(6,12,13,.05) 40%, rgba(6,12,13,.85)), linear-gradient(90deg, transparent 70%, rgba(12,16,17,.6)); }
.epop__stamp { position: absolute; left: 20px; right: 20px; bottom: 20px; z-index: 1; display: inline-flex; align-items: center; gap: 8px; width: fit-content; padding: 8px 14px; border-radius: 999px; font-size: var(--fs-xs); font-weight: 600;
  background: rgba(8,14,15,.6); border: 1px solid rgba(255,255,255,.16); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); }
.epop__stamp i { color: var(--gold-l); font-size: 15px; }
.epop__body { position: relative; overflow-y: auto; overscroll-behavior: contain; padding: clamp(28px, 3.4vw, 44px); }
.epop__close { position: absolute; top: 14px; right: 14px; z-index: 2; width: 42px; height: 42px; display: grid; place-items: center; border-radius: 50%; border: 1px solid var(--line-2); background: rgba(255,255,255,.04); color: var(--ink); font-size: 18px; cursor: pointer; transition: border-color .2s, background .2s; }
.epop__close:hover { border-color: var(--teal-l); background: rgba(60,195,197,.12); }
.epop__close:focus-visible { outline: 2px solid var(--teal-l); outline-offset: 3px; }
.epop .eyebrow { margin-bottom: 14px; }
.epop__title { font-size: clamp(24px, 2.4vw, 32px); line-height: 1.15; font-weight: 700; letter-spacing: -.02em; padding-right: 44px; }
.epop__lede { margin-top: 10px; color: var(--ink-2); font-size: var(--fs-body); }
.epop__form { margin-top: 22px; gap: 16px; }
.epop__form textarea { min-height: 96px; resize: vertical; }
.epop__actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 18px; margin-top: 4px; }
@media (max-width: 767px) {
  .epop { width: calc(100vw - 24px); max-height: calc(100dvh - 24px); }
  .epop__panel { grid-template-columns: 1fr; max-height: calc(100dvh - 24px); }
  .epop__media { display: none; }
  .epop__body { padding: 26px 20px 24px; }
  .epop__actions .pill { width: 100%; justify-content: center; }
}
@media (prefers-reduced-motion: no-preference) {
  .epop[open] { animation: epop-in .5s var(--ease); }
  .epop[open]::backdrop { animation: epop-fade .4s ease-out; }
}
@keyframes epop-in { from { opacity: 0; transform: translateY(18px) scale(.98); } to { opacity: 1; transform: none; } }
@keyframes epop-fade { from { opacity: 0; } to { opacity: 1; } }

/* =========================================================================
   HOME SOFT-DARK PASS (reversible)
   Homepage-only tonal lift. Remove this block and the home-soft-dark body
   class to return to the previous dark treatment.
   ========================================================================= */
.home-soft-dark {
  --home-surface: #1a2b2b;
  --home-surface-2: #203536;
  --home-card: #263b3b;
  background: linear-gradient(180deg, #1a2b2b 0%, #152526 100%) fixed;
}

.home-soft-dark .logos,
.home-soft-dark .why,
.home-soft-dark .ai,
.home-soft-dark .tech,
.home-soft-dark .ind,
.home-soft-dark .ins {
  background: linear-gradient(180deg, var(--home-surface-2), var(--home-surface));
}

.home-soft-dark .about,
.home-soft-dark .trust,
.home-soft-dark .proc {
  background:
    radial-gradient(60% 80% at 0% 30%, rgba(60, 195, 197, .16), transparent 68%),
    #1c3030;
}

.home-soft-dark .svc__card,
.home-soft-dark .why__card,
.home-soft-dark .mini,
.home-soft-dark .tgroup,
.home-soft-dark .post,
.home-soft-dark .logo-tile {
  background: linear-gradient(180deg, #294041, #213536);
  border-color: rgba(104, 212, 209, .24);
}

.home-soft-dark .services {
  background:
    radial-gradient(60% 55% at 100% 0%, rgba(60, 195, 197, .22), transparent 62%),
    linear-gradient(180deg, #203637, #192a2b);
}

.home-soft-dark .work {
  background-color: #192c2d;
}

.home-soft-dark .nums__bg {
  background:
    linear-gradient(90deg, rgba(13, 24, 25, .88), rgba(17, 35, 36, .7) 50%, rgba(13, 24, 25, .88)),
    url("/assets/img/photos/empty-office-night-city-view-1600.webp") center 55% / cover no-repeat;
}

/* Two light pauses keep the dark identity without making the full page gloomy. */
.home-soft-dark .build {
  background: #1b3031;
  color: #f5f7f6;
}
.home-soft-dark .build .h2,
.home-soft-dark .build .h4 { color: #f5f7f6; }
.home-soft-dark .build .eyebrow,
.home-soft-dark .build .checks i { color: #3cc3c5; }
.home-soft-dark .build .body,
.home-soft-dark .build .checks { color: #bdcaca; }
.home-soft-dark .build .checks b { color: #ffffff; }
.home-soft-dark .build .pill--ghost {
  color: #075e63;
  border-color: rgba(7, 94, 99, .3);
  background: rgba(255, 255, 255, .45);
}

/* Brighter homepage actions from About onward; inner pages remain untouched. */
.home-soft-dark :is(.about, .services, .ai, .work, .proc, .build, .ind, .ins) .pill--ghost {
  color: #e9ffff;
  border-color: rgba(96, 220, 217, .46);
  background: linear-gradient(135deg, rgba(60, 195, 197, .18), rgba(20, 154, 157, .10));
  box-shadow: 0 8px 24px rgba(0, 0, 0, .18), inset 0 1px 0 rgba(255, 255, 255, .08);
  transition: background-color .3s var(--ease), color .3s var(--ease), border-color .3s var(--ease), box-shadow .3s var(--ease), transform .3s var(--ease);
}
.home-soft-dark :is(.about, .services, .ai, .work, .proc, .build, .ind, .ins) .pill--ghost:hover {
  color: #061011;
  border-color: #68d4d1;
  background: #68d4d1;
  box-shadow: 0 10px 28px rgba(60, 195, 197, .22);
}
.home-soft-dark :is(.about, .services, .ai, .work, .proc, .build, .ind, .ins) .pill--ghost:focus-visible {
  outline: 2px solid #68d4d1;
  outline-offset: 4px;
}

.home-soft-dark .faq {
  background:
    radial-gradient(55% 85% at 0% 20%, rgba(60, 195, 197, .16), transparent 68%),
    #1b3031;
  color: #f5f7f6;
}
.home-soft-dark .faq__grid { gap: clamp(40px, 6vw, 84px); }
.home-soft-dark .faq > .wrap > div:first-child { position: static; }
.home-soft-dark .faq > .wrap > div:first-child .h2 { max-width: 11ch; margin-top: 10px; color: #f5f7f6; }
.home-soft-dark .faq > .wrap > div:first-child .body { max-width: 38ch; margin-top: 20px; color: #aebebe; line-height: 1.75; }
.home-soft-dark .faq__list { gap: 14px; }
.home-soft-dark .faq details {
  position: relative;
  overflow: hidden;
  background: linear-gradient(145deg, rgba(34, 49, 50, .96), rgba(27, 40, 41, .96));
  border-color: rgba(104, 212, 209, .16);
  box-shadow: 0 12px 34px rgba(0, 0, 0, .12);
  transition: border-color .3s var(--ease), background .3s var(--ease), transform .3s var(--ease), box-shadow .3s var(--ease);
}
.home-soft-dark .faq details::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 3px;
  background: linear-gradient(180deg, var(--gold), var(--teal-l));
  opacity: 0;
  transition: opacity .3s var(--ease);
}
.home-soft-dark .faq details:hover {
  border-color: rgba(104, 212, 209, .34);
  box-shadow: 0 18px 42px rgba(0, 0, 0, .2);
}
.home-soft-dark .faq details[open] {
  background: linear-gradient(145deg, #233435, #1b292a);
  border-color: rgba(104, 212, 209, .42);
}
.home-soft-dark .faq details[open]::before { opacity: 1; }
.home-soft-dark .faq summary {
  padding: 22px 24px;
  color: #f5f7f6;
  font-size: clamp(16px, 1.3vw, 18px);
  line-height: 1.4;
}
.home-soft-dark .faq summary:focus-visible { outline: 2px solid var(--teal-l); outline-offset: -4px; border-radius: var(--r-s); }
.home-soft-dark .faq details p { max-width: 66ch; padding: 0 72px 24px 24px; color: #b9c8c8; line-height: 1.75; }
.home-soft-dark .faq summary i {
  width: 36px;
  height: 36px;
  background: rgba(60, 195, 197, .1);
  border: 1px solid rgba(104, 212, 209, .18);
  color: #68d4d1;
}
.home-soft-dark .faq details[open] summary i { background: var(--teal); border-color: var(--teal); color: #061011; }

@media (max-width: 767px) {
  .home-soft-dark .build,
  .home-soft-dark .faq { background-image: none; }
  .home-soft-dark .faq > .wrap > div:first-child { position: static; }
  .home-soft-dark .faq > .wrap > div:first-child .h2 { max-width: none; }
  .home-soft-dark .faq summary { padding: 18px; }
  .home-soft-dark .faq details p { padding: 0 18px 20px; }
}
