/* ==========================================================================
   Homepage: compact (medium-size) sections, clients and related websites.
   Loaded after glass.css so these rules win over the general card styles.
   ========================================================================== */

/* ---------- Compact sections: tighter spacing, medium headings, smaller cards ---------- */
.section--compact { padding-block: clamp(32px, 3.6vw, 56px); }
.section--compact .section-head { margin-block-end: clamp(18px, 2vw, 28px); }
.section--compact .h2 { font-size: clamp(1.45rem, 1.15rem + 1.1vw, 2rem); }
.section--compact .eyebrow { font-size: .75rem; }
.section--compact .lede { font-size: 1rem; max-width: 62ch; }
.section--compact .btn { padding-block: 10px; padding-inline: 18px; font-size: var(--fs-sm); }

/* Explore our technology: shorter bento tiles. */
.section--compact .bento { grid-auto-rows: minmax(190px, auto); gap: 14px; }
.section--compact .bento__item { min-height: 190px; padding: 20px; border-radius: 18px; }
.section--compact .bento__item h3 { font-size: 1.125rem; }
.section--compact .bento__item:nth-child(1) h3 { font-size: 1.5rem; }
.section--compact .bento__item p { font-size: .8125rem; margin: 6px 0 10px; }
.section--compact .bento__item .link-arrow { font-size: .8125rem; }
@media (max-width: 560px) { .section--compact .bento__item:nth-child(n) { min-height: 180px; } }

/* Integrated solutions: smaller spotlight and tiles. */
.section--compact .solution-spotlight { gap: clamp(20px, 4vw, 48px); margin-block-end: 24px; }
.section--compact .solution-spotlight .art { aspect-ratio: 16 / 10; max-height: 320px; }
.section--compact .solution-spotlight .panel { padding: 18px 20px; }
.section--compact .solution-spotlight .panel h3 { font-size: 1.125rem; }
.section--compact .solution-grid { grid-template-columns: repeat(auto-fill, minmax(min(100%, 220px), 1fr)); gap: 12px; }
.section--compact .solution-tile { padding: 18px; gap: 10px; border-radius: 16px; }
.section--compact .solution-tile h3 { font-size: 1rem; }
.section--compact .solution-tile p { font-size: .8125rem; }
.section--compact .solution-tile .icon-badge { width: 40px; height: 40px; }

/* Industries: smaller, squarer cards, more per row. */
.section--compact .industry-rail { grid-template-columns: repeat(auto-fill, minmax(min(100%, 200px), 1fr)); gap: 12px; }
.section--compact .industry-card { aspect-ratio: 1 / 1; padding: 16px; border-radius: 18px; }
.section--compact .industry-card h3 { font-size: 1rem; }
.section--compact .industry-card p { font-size: .75rem; }

/* Brands: four small tiles per row. */
.section--compact .brand-row { grid-template-columns: repeat(auto-fill, minmax(min(100%, 220px), 1fr)); gap: 12px; }
.section--compact .brand-tile { padding: 18px; gap: 8px; border-radius: 16px; }
.section--compact .brand-tile img { height: 32px; width: auto; max-width: 100%; object-fit: contain; object-position: left center; }
[dir="rtl"] .section--compact .brand-tile img { object-position: right center; }
.section--compact .brand-wordmark { font-size: 1.35rem; }
.section--compact .brand-tile p { font-size: .8125rem; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.section--compact .disclaimer { margin-block-start: 14px; font-size: .75rem; }

/* Insights: compact cards. */
.section--compact .grid--3 { grid-template-columns: repeat(auto-fill, minmax(min(100%, 260px), 1fr)); gap: 14px; }
.section--compact .card { border-radius: 16px; }
.section--compact .card__media { aspect-ratio: 16 / 9; }
.section--compact .card__body { padding: 16px 18px; gap: 6px; }
.section--compact .card__title { font-size: 1.0625rem; }
.section--compact .card__text { font-size: .8125rem; }

/* FAQ: tighter rows. */
.section--compact .faq summary { padding-block: 14px; font-size: 1rem; }
.section--compact .faq__answer { padding-block-end: 14px; font-size: var(--fs-sm); }
.section--compact.split, .section--compact .split { gap: clamp(20px, 4vw, 48px); }

/* Get started banner: medium size. */
.section--compact .cta-banner { padding: clamp(26px, 4vw, 48px); border-radius: 22px; }
.section--compact .cta-banner h2 { font-size: clamp(1.45rem, 1.1rem + 1.4vw, 2.1rem); max-width: 26ch; }
.section--compact .cta-banner p { font-size: 1rem; margin-block: 12px 20px; }

/* Featured products: category links now sit between the heading and the grid. */
.category-links--top { margin-block: 0 22px; }

/* Line-art scenes on the dark overlay cards sit a little higher so titles stay clear. */
.bento__item .art--scene .art__scene { padding: 4% 4% 30%; }
.industry-card .art--scene .art__scene { padding: 4% 4% 44%; }
/* Software feature card: big text at the top, so the scene sits small in the bottom corner. */
.software-hero-card .art--scene .art__scene { padding: 48% 3% 3% 46%; object-position: 100% 100%; opacity: .55; }
[dir="rtl"] .software-hero-card .art--scene .art__scene { padding: 48% 46% 3% 3%; transform: scaleX(-1); }
.software-hero-card .art__badge { display: none; }

/* ---------- Clients ---------- */
.section-head--center { justify-content: center; text-align: center; }
.section-head--center .section-head__text { margin-inline: auto; }
.client-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 150px), 1fr));
  gap: 12px;
  list-style: none;
  margin: 0;
  padding: 0;
}
.client-logo {
  display: grid;
  place-items: center;
  height: 92px;
  min-width: 0;
  overflow: hidden;
  padding: 10px 12px;
  border-radius: 14px;
  background: #fff;
  border: 1px solid var(--line);
  box-shadow: 0 6px 18px -14px rgba(16, 32, 71, .35);
  transition: transform .25s var(--ease), box-shadow .25s var(--ease);
}
.client-logo:hover { transform: translateY(-2px); box-shadow: 0 14px 28px -16px rgba(16, 32, 71, .45); }
.client-logo a { display: grid; place-items: center; width: 100%; height: 100%; }
.client-logo img { max-width: 100%; max-height: 68px; width: auto; height: auto; object-fit: contain; }
@media (max-width: 560px) {
  .client-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
  .client-logo { height: 70px; padding: 6px 8px; border-radius: 10px; }
  .client-logo img { max-height: 50px; }
}


/* ---------- Our websites / sister companies: showcase banner ---------- */
.apps-showcase { padding-block: clamp(36px, 5vw, 72px); }
.apps-banner {
  position: relative;
  overflow: hidden;
  isolation: isolate;
  border-radius: 28px;
  padding: clamp(24px, 4.5vw, 56px);
  color: var(--text-inverse);
  background:
    radial-gradient(55% 80% at 100% 0%, rgba(44, 198, 232, .28), transparent 65%),
    radial-gradient(50% 90% at 0% 100%, rgba(134, 97, 197, .35), transparent 65%),
    linear-gradient(135deg, var(--navy-950) 0%, var(--navy-800) 55%, var(--navy-700) 100%);
  box-shadow: 0 30px 70px -40px rgba(7, 13, 28, .8);
}
/* Four-colour strip along the top. */
.apps-banner::before { content: ""; position: absolute; inset: 0 0 auto; height: 5px; background: var(--brand-strip); }
/* Faint grid that fades out towards the edges. */
.apps-banner::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  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: 36px 36px;
  mask-image: radial-gradient(70% 70% at 50% 40%, #000, transparent);
  -webkit-mask-image: radial-gradient(70% 70% at 50% 40%, #000, transparent);
}
.apps-banner__head {
  display: grid;
  grid-template-columns: minmax(0, .9fr) minmax(0, 1.4fr);
  gap: clamp(18px, 4vw, 56px);
  align-items: start;
  margin-block-end: clamp(24px, 3.5vw, 40px);
}
.apps-banner .eyebrow { color: var(--cyan-300); }
.apps-banner .h2 { color: var(--white); font-size: clamp(1.7rem, 1.25rem + 1.8vw, 2.6rem); line-height: var(--lh-tight); }
.apps-banner__text p { margin: 0; color: var(--text-inverse-muted); font-size: 1rem; line-height: 1.7; }
.apps-banner__text p + p { margin-block-start: 12px; }
/* The last paragraph is the short closing line: brighter, as a highlight. */
.apps-banner__text p:last-child:not(:first-child) { color: var(--white); font-weight: 500; padding-inline-start: 14px; border-inline-start: 3px solid var(--cyan-400); }

.apps-banner__grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: clamp(12px, 1.6vw, 20px);
  list-style: none;
  margin: 0;
  padding: 0;
}
.apps-banner__grid > li { display: flex; }
.app-showcase {
  display: flex;
  flex-direction: column;
  width: 100%;
  border-radius: 16px;
  overflow: hidden;
  text-decoration: none;
  color: var(--white);
  background: rgba(255, 255, 255, .06);
  border: 1px solid rgba(255, 255, 255, .14);
  transition: transform .3s var(--ease), box-shadow .3s var(--ease), border-color .3s var(--ease), background .3s var(--ease);
}
.app-showcase:hover, .app-showcase:focus-visible {
  transform: translateY(-6px);
  background: rgba(255, 255, 255, .1);
  border-color: color-mix(in srgb, var(--c-accent, #fff) 70%, transparent);
  box-shadow: 0 24px 50px -24px color-mix(in srgb, var(--c-accent, #2cc6e8) 75%, transparent);
}
/* Logo plate: solid white so every logo shows in its own colours, with an accent bar under it. */
.app-showcase__plate {
  display: grid;
  place-items: center;
  height: 150px;
  padding: 16px 18px;
  background: #fff;
  border-block-end: 4px solid var(--c-accent, var(--cyan-400));
}
.app-showcase__plate img {
  max-width: 100%;
  max-height: 104px;
  width: auto;
  height: auto;
  object-fit: contain;
  transition: transform .35s var(--ease);
}
.app-showcase:hover .app-showcase__plate img { transform: scale(1.06); }
.app-showcase__tile {
  display: grid;
  place-items: center;
  width: 84px;
  height: 84px;
  border-radius: 22px;
  background: var(--accent);
  color: #fff;
  font-family: var(--font-latin);
  font-size: 1.75rem;
  font-weight: 600;
  letter-spacing: .02em;
  box-shadow: 0 10px 24px -12px rgba(16, 32, 71, .6);
}
.app-showcase__body { display: grid; gap: 2px; padding: 10px 12px 11px; flex: 1; align-content: start; }
.app-showcase__label { font-weight: 600; font-size: .9375rem; line-height: 1.25; }
.app-showcase__host { font-size: .75rem; color: var(--text-inverse-muted); overflow-wrap: anywhere; }
.app-showcase__go {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-block-start: 4px;
  font-size: .75rem;
  font-weight: 600;
  color: var(--cyan-300);
}
.app-showcase__arrow { display: inline-block; transition: transform .25s var(--ease); }
.app-showcase:hover .app-showcase__arrow { transform: translateX(4px); }
[dir="rtl"] .app-showcase__arrow { transform: scaleX(-1); }
[dir="rtl"] .app-showcase:hover .app-showcase__arrow { transform: scaleX(-1) translateX(4px); }

@media (max-width: 1100px) {
  .apps-banner__grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}
@media (max-width: 860px) {
  .apps-banner__grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .apps-banner__head { grid-template-columns: 1fr; }
}
@media (max-width: 560px) {
  .apps-banner { border-radius: 20px; }
  .apps-banner__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .app-showcase { border-radius: 14px; }
  .app-showcase__plate { height: 96px; padding: 12px; }
  .app-showcase__plate img { max-height: 66px; }
  .app-showcase__tile { width: 60px; height: 60px; border-radius: 16px; font-size: 1.25rem; }
  .app-showcase__body { padding: 8px 10px 10px; }
  .app-showcase__label { font-size: .875rem; }
  .app-showcase__host { font-size: .75rem; overflow-wrap: anywhere; }
}
@media (prefers-reduced-motion: reduce) {
  .app-showcase, .app-showcase__plate img, .app-showcase__arrow { transition: none; }
}
