/* New Home Template — dark "growth infrastructure" landing page.
   Plain, hand-written CSS (not compiled from Sass). Loaded only on this
   page template — see base_theme_newhome_style() in inc/enqueue.php. */

@import url('https://fonts.googleapis.com/css2?family=Archivo:wght@500;600;700;800&display=swap');

.newhome-template {
  --ink: #08080c;
  --panel: #101020;
  --panel-2: #12121f;
  --panel-3: #0d0d16;
  --line: rgba(255, 255, 255, .08);
  --fog: #9c9ab2;
  --fog-dim: #6b6a82;
  --white: #edecf4;
  --teal: #45e3c4;
  --violet: #7c6cf7;
  --violet-2: #948bfb;
  --grad: linear-gradient(90deg, var(--teal), var(--violet));

  background: #ffffff;
  color: var(--fog);
  overflow-x: hidden;
}

.newhome-template * {
  box-sizing: border-box;
}

.newhome-template .wrap {
  max-width: 90%;
  margin: 0 auto;
  padding: 0 24px;
}

@media (max-width: 767.98px) {
  .newhome-template .wrap {
    padding: 0 18px;
  }
}

.section-header {
    font-size: calc(32px + (64 - 32) * ((100vw - 320px) / (1920 - 320)));
    font-weight: 900;
    letter-spacing: -.035em;
    background: linear-gradient(to right,
            #662D8E 0%,
            #009C8E 33%,
            #343CED 65%,
            #DF29BA 80%);
    -webkit-text-fill-color: transparent;
    background-clip: text;
    color: transparent;
    line-height: 1.15;
    max-width: 800px;
}

.newbtn-primary {
  background-color: #343CED;
  color: white;
  padding: 12px 24px;
  border-radius: 27px;
  font-weight: 500;
  transition: all 0.3s ease; 
  width: calc(160px + (250 - 160) * ((100vw - 320px) / (1920 - 320)));
  border: 2px solid transparent;
  text-decoration: none;
  text-align: center;
  position: relative; 
  text-shadow: none;
  font-size: 18px;


  @media (max-width: 768px) {
    font-size: 14px;
    width: auto;
    padding: 8px 16px;
  }

  
  &:hover {
    background-color: transparent;
    color: #343CED;
    background: linear-gradient(to right, #121FCF 0%, #CF1512 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    box-shadow: 0 4px 15px rgba(52, 60, 237, 0.4);
    transition: all 0.3s ease; 
  }
}

.newbtn-secondary {
  border: 2px solid #343CED;
  color: #343CED;
  padding: 12px 24px;
  border-radius: 27px;
  font-weight: 500;
  transition: all 0.3s ease;
  width: calc(160px + (250 - 160) * ((100vw - 320px) / (1920 - 320)));
  font-size: 16px;


  @media (max-width: 768px) {
    font-size: 14px;
    width: auto;
    padding: 8px 16px;
  }

  &:hover {
    border: 2px solid #343CED;
    background: linear-gradient(to right, #121FCF 0%, #CF1512 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
  }
}

.newhome-template h1,
.newhome-template h2,
.newhome-template h3,
.newhome-template h4 {
  font-family: "Archivo", "Nunito", sans-serif;
  color: var(--ink);
  margin: 0;
}

.newhome-template p {
  line-height: 1.7;
  color: var(--ink);
}

.newhome-template a {
  text-decoration: none;
}

/* ---- eyebrow / headers ------------------------------------------------ */

.newhome-template .eyebrow {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: .8rem;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--fog);
  margin-bottom: 16px;
}

/* .newhome-template .eyebrow::before {
  content: "";
  width: 18px;
  height: 1px;
  background: var(--grad);
} */

.newhome-template .accent {
  color: var(--fog-dim);
}

.newhome-template .grad-text {
  background: var(--grad);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* ---- scroll reveal ------------------------------------------------------
   Visible by default (no FOUC-hidden risk if JS fails to load). When
   newhome-template.js runs, it adds .js-reveal to each .reveal element and
   then .in-view once it scrolls into the viewport — see that file for the
   IntersectionObserver logic. */

.newhome-template .reveal.js-reveal {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity .6s ease, transform .6s ease;
}

.newhome-template .reveal.js-reveal.in-view {
  opacity: 1;
  transform: translateY(0);
}

@media (prefers-reduced-motion: reduce) {
  .newhome-template .reveal.js-reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }
}

/* ---- shared band/section chrome --------------------------------------- */

.newhome-template .band {
  padding: 96px 0;
  border-top: 1px solid var(--line);
}

@media (max-width: 767.98px) {
  .newhome-template .band {
    padding: 64px 0;
  }
}

.newhome-template .band-head {
  margin-bottom: 48px;
}

.newhome-template .link-arrow {
  position: relative;
  display: inline-block;
  font-weight: 600;
  font-size: .95rem;
  padding: 12px 20px;
  border-radius: 24px;
  color: #343ced;
  transition: color .2s ease, letter-spacing .2s ease;
}

/* Rounded ring drawn as a mask-punched pseudo-element instead of
   border-image (which ignores border-radius) or a two-layer background
   (which would need to assume a fixed fill color — .link-arrow sits on both
   light bands and dark cards). The ring floats over whatever is behind it.
   Solid #343ced by default, swaps to the full gradient on hover below. */
.newhome-template .link-arrow::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  padding: 2px;
  background: #343ced;
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  pointer-events: none;
}

.newhome-template .link-arrow:hover {
  color: transparent;
  letter-spacing: .01em;
  background: linear-gradient(to right,
            #662D8E 0%,
            #009C8E 33%,
            #343CED 65%,
            #DF29BA 80%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.newhome-template .link-arrow:hover::before {
  background: linear-gradient(to right,
            #662D8E 0%,
            #009C8E 33%,
            #343CED 65%,
            #DF29BA 80%);
}

/* =========================================================================
   HERO
   ========================================================================= */

.newhome-template .hero {
  position: relative;
  overflow: hidden;
  padding: 120px 0 72px;
  background:
    radial-gradient(60% 50% at 15% 0%, rgba(69, 227, 196, .12), transparent 60%),
    radial-gradient(50% 45% at 90% 10%, rgba(124, 108, 247, .14), transparent 60%),
    #ffffff;
}

@media (max-width: 767.98px) {
  .newhome-template .hero {
    padding: 88px 0 48px;
  }
}

.newhome-template .hero-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr);
  align-items: center;
  gap: 56px;
  min-height: 480px;
}

@media (max-width: 991.98px) {
  .newhome-template .hero-grid {
    grid-template-columns: 1fr;
    gap: 40px;
    min-height: 0;
  }
}

.newhome-template .hero .section-header {
  max-width: 620px;
}

/* Full-bleed background layer covering the whole .hero section — same
   technique as output/index.html's .hero_right (absolute, covers the
   whole section) paired with .hero_left (relative, z-index:1, on top).
   Lives directly in .hero, not .wrap.hero-grid, specifically so it isn't
   boxed into .wrap's max-width:90% + padding; .hero-grid's own z-index:1
   (added above) is what keeps the text stacked above it despite sitting
   later/outside in the DOM. */
.newhome-template .hero-visual-slot {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
}

/* Below .hero-grid's own single-column breakpoint there's no more "empty"
   column 2 for the particle formation to sit in — hero-copy stacks to full
   width and the sphere lands right on top of the text instead. Hiding it
   here also stops hero-particles.js's render loop from ever starting: its
   IntersectionObserver never reports display:none elements as
   intersecting, so start() (the rAF loop + GSAP timeline) simply never
   fires — no extra JS changes needed to avoid burning battery on a
   40,000-point WebGL scene nobody can see on mobile anyway. */
@media (max-width: 991.98px) {
  .newhome-template .hero-visual-slot {
    display: none;
  }
}

.newhome-template .particle-canvas {
  width: 100%;
  height: 100%;
  display: block;
}

.newhome-template .particle-canvas canvas {
  display: block;
}

.newhome-template .hero-copy {
  position: relative;
  z-index: 1;
}

.newhome-template .lede {
  font-size: calc(1rem + (1.2 - 1) * ((100vw - 320px) / (1920 - 320)));
  color: var(--ink);
  max-width: 560px;
  margin: 20px 0 32px;
}

.newhome-template .hero-cta {
  display: flex;
  align-items: center;
  gap: 24px;
  flex-wrap: wrap;
}

.newhome-template .hero-cta .btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.newhome-template .hero-cta .arr {
  transition: transform .2s ease;
}

.newhome-template .hero-cta .btn-primary:hover .arr {
  transform: translateX(3px);
}

/* ---- dashboard-card (output/chart.html port, replaces the old
   diagram-shell in #shift's .shift-visual) --------------------------------
   Reference is a fixed 760x520px design with every node absolutely
   positioned in px, calibrated to that exact canvas — unlike diagram-shell,
   which was a fluid viewBox SVG. dashboard-card-wrap sizes responsively via
   aspect-ratio; initDashboardCard() in newhome-template.js measures it and
   scales .dashboard-card down (transform:scale, ResizeObserver-driven) to
   fit whatever width .shift-visual actually has, so it doesn't overflow
   its grid column the way a bare 760px-wide block would on most desktop
   widths (.shift-visual is only ~.95fr of .shift-grid, well under 760px). */

.newhome-template .dashboard-card-wrap {
  position: relative;
  width: 100%;
  max-width: 760px;
  aspect-ratio: 760 / 520;
  margin: 0 auto;
  overflow: hidden;
  border-radius: 20px;
}

/* Separate rule for the Integrations-section copy — fills its container
   instead of capping at 760px and centering. aspect-ratio:760/520 still
   comes from .dashboard-card-wrap above (both classes stay on the
   element), so the fixed 760x520 .dashboard-card inside still scales up
   to exactly fill this wider box via initDashboardCard()'s transform:scale
   math (wrap.clientWidth / 760) — no JS changes needed for this. */
.newhome-template .dashboard-card-wrap--wide {
  max-width: none;
  margin: 0;
}

.newhome-template .dashboard-card {
  position: absolute;
  top: 0;
  left: 0;
  width: 760px;
  height: 520px;
  transform-origin: top left;
  font-family: "Courier New", Courier, monospace;
  color: #17162a;
  background: radial-gradient(circle at 45% 50%, #ffffff 0%, #f2f3f8 70%);
  border: 1px solid rgba(23, 22, 42, .08);
  border-radius: 20px;
  box-shadow: 0 20px 50px rgba(31, 26, 74, .12);
}

.newhome-template .dashboard-card .header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 24px 32px;
  font-size: 13px;
  letter-spacing: 2px;
}

.newhome-template .dashboard-card .status-running {
  display: flex;
  align-items: center;
  gap: 8px;
  /* #38ef7d (kept below for the dot/glow, which don't need text contrast)
     is too light to read as text on this white card — same darken-for-text
     pattern used for .cap-idx/.case accents elsewhere in this file. */
  color: #0d8a4f;
  font-weight: bold;
}

.newhome-template .dashboard-card .status-dot {
  width: 8px;
  height: 8px;
  background-color: #38ef7d;
  border-radius: 50%;
  box-shadow: 0 0 10px #38ef7d;
  animation: dashboard-status-pulse 1.8s infinite;
}

.newhome-template .dashboard-card .flow-svg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 1;
}

.newhome-template .dashboard-card .flow-line {
  fill: none;
  stroke: rgba(23, 22, 42, .15);
  stroke-width: 1.5;
  stroke-dasharray: 4 6;
  animation: dashboard-dash-move 20s linear infinite;
}

.newhome-template .dashboard-card .node {
  position: absolute;
  z-index: 2;
  border: 1px solid rgba(23, 22, 42, .1);
  background: rgba(255, 255, 255, .85);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  color: #17162a;
  text-transform: uppercase;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-align: center;
  display: flex;
  justify-content: center;
  align-items: center;
  transition: all .3s ease;
  cursor: pointer;
  box-shadow: 0 4px 14px rgba(31, 26, 74, .08);
}

.newhome-template .dashboard-card .node:hover {
  border-color: #00acc4;
  box-shadow: 0 0 15px rgba(0, 172, 196, .3);
}

.newhome-template .dashboard-card .node-primary {
  width: 100px;
  height: 60px;
  border-radius: 12px;
  border: 1.5px solid #0d8a4f;
  color: #17162a;
  box-shadow: 0 0 24px rgba(13, 138, 79, .18), inset 0 0 15px rgba(13, 138, 79, .08);
}

.newhome-template .dashboard-card .node-center-glow {
  position: absolute;
  width: 120px;
  height: 120px;
  background: radial-gradient(circle, rgba(13, 138, 79, .16) 0%, transparent 70%);
  pointer-events: none;
  z-index: 0;
}

.newhome-template .dashboard-card .node-box {
  width: 90px;
  height: 48px;
  border-radius: 10px;
}

.newhome-template .dashboard-card .node-circle {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  border: 2px solid #00acc4;
  background: #ffffff;
}

.newhome-template .dashboard-card .node-label {
  position: absolute;
  font-size: 11px;
  color: #6b6a82;
  letter-spacing: 1px;
  white-space: nowrap;
  z-index: 2;
}

/* ---- trust / logo marquee ---------------------------------------------- */

/* Own section now (was nested inside .hero) — same gradient background as
   .hero so the two still read as one continuous backdrop, and the same
   72px/48px bottom padding .hero used to provide after this content. */
.newhome-template .trust-band {
  padding: 0 0 72px;
  /* background:
    radial-gradient(60% 50% at 15% 0%, rgba(69, 227, 196, .12), transparent 60%),
    radial-gradient(50% 45% at 90% 10%, rgba(124, 108, 247, .14), transparent 60%),
    #ffffff; */
}

@media (max-width: 767.98px) {
  .newhome-template .trust-band {
    padding-bottom: 48px;
  }
}

.newhome-template .trust {
  margin-top: 64px;
  padding-top: 32px;
  border-top: 1px solid var(--line);
}

.newhome-template .trust .lbl {
  text-align: center;
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--fog-dim);
  margin-bottom: 36px;
}

.newhome-template .marquee {
  overflow: hidden;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent);
}

.newhome-template .marquee-track {
  display: flex;
  align-items: center;
  width: max-content;
  gap: 64px;
  animation: newhome-marquee 26s linear infinite;
}

.newhome-template .marquee-track img {
  height: 84px;
  width: auto;
  object-fit: contain;
  opacity: .55;
  /* filter: grayscale(1) brightness(2); */
  transition: opacity .2s ease;
  flex-shrink: 0;
}

.newhome-template .marquee-track img:hover {
  opacity: .9;
}

/* =========================================================================
   THE SHIFT
   ========================================================================= */

.newhome-template .shift-grid {
  display: grid;
  grid-template-columns: minmax(0, .95fr) minmax(0, 1.05fr);
  align-items: center;
  gap: 56px;
}

@media (max-width: 991.98px) {
  .newhome-template .shift-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }
}

.newhome-template .shift-body {
  max-width: 780px;
}

.newhome-template .shift-body p {
  font-size: 1.2rem;
  margin-bottom: 20px;
}

.newhome-template .shift-tag {
  font-family: "Archivo", sans-serif;
  font-weight: 700;
  font-size: 2rem !important;
  color: var(--ink);
}

.newhome-template .pov {
  margin-top: 48px;
  border-radius: 16px;
  padding: 2px;
  background: var(--grad);
}

.newhome-template .pov-inner {
  background-image: url('../images/data-problem.png');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  border: 1px solid transparent;
  border-radius: 14px;
  height: 300px;
  padding: 40px;
  transition: background .35s ease, border-color .35s ease, box-shadow .35s ease;
}

/* .newhome-template .pov-inner:hover {
  background: rgba(255, 255, 255, 0.9);
  -webkit-backdrop-filter: blur(18px) saturate(160%);
  backdrop-filter: blur(18px) saturate(160%);
  border-color: rgba(255, 255, 255, .6);
  box-shadow: 0 8px 32px rgba(31, 26, 74, .12), inset 0 1px 0 rgba(255, 255, 255, .6);
} */

@media (max-width: 767.98px) {
  .newhome-template .pov-inner {
    padding: 28px;
  }
}

.newhome-template .pov-inner .head-pov {
  font-size: calc(1.6rem + (3 - 1.6) * ((100vw - 320px) / (1920 - 320)));
  margin: 12px 0 16px;
  max-width: calc(250px + (640 - 250) * ((100vw - 320px) / (1920 - 320)));

}

/* .newhome-template .pov-inner p {
  max-width: 640px;
} */

/* =========================================================================
   WHAT WE BUILD — capability cards
   ========================================================================= */

/* ---- bento grid ----------------------------------------------------------
   3 columns x 2 equal-height rows. Row 1: foundation (2 cols) + sense
   (1 col). Row 2: three equal 1-col cards. Each non-foundation card carries
   its own --accent (set per nth-child below), which drives its corner glow,
   idx pill and hover border. */

.newhome-template .caps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-template-rows: repeat(2, 1fr);
  gap: 20px;
}

/* Image sizing is tiered by each card's actual column width, not just
   viewport width: foundation spans 2 of 3 columns (~780px at desktop) so it
   carries the full 220x220 image; the other four span only 1 column
   (~380px) and get a proportionally smaller 160x160 — a flat 220px on a
   380px-wide card would leave almost no room for the text. padding-right
   reserves that same width (background rendering ignores padding, so this
   is what actually keeps the text column from running underneath the
   image) and stays paired with its card's background-size at every
   breakpoint below. */

.newhome-template .cap-card.foundation {
  grid-column: span 2;
  grid-row: 1;
  /* --accent: var(--teal); */
  background-image: url('../images/card3.png');
  background-repeat: no-repeat;
  background-position: right bottom;
  background-size: cover;
  /* padding-right: 25%; */
}

.newhome-template .cap-card:nth-child(2) {
  grid-column: span 1;
  grid-row: 1;
  /* --accent: #662D8E; */
  background-image: url('../images/card2.png');
  background-repeat: no-repeat;
  background-position: right bottom;
  background-size: cover;
  /* padding-right: 25%; */
}

.newhome-template .cap-card:nth-child(3) {
  grid-row: 2;
  /* --accent: #009C8E; */
  background-image: url('../images/card1.png');
  background-repeat: no-repeat;
  background-position: right bottom;
  background-size: cover;
  /* padding-right: 25%; */
}

.newhome-template .cap-card:nth-child(4) {
  grid-row: 2;
  /* --accent: #343CED; */
  background-image: url('../images/card4.png');
  background-repeat: no-repeat;
  background-position: right bottom;
  background-size: cover;
  /* padding-right: 25%; */
}

.newhome-template .cap-card:nth-child(5) {
  grid-row: 2;
  /* --accent: #DF29BA; */
  background-image: url('../images/card5.png');
  background-repeat: no-repeat;
  background-position: right bottom;
  background-size: cover;
  /* padding-right: 25%; */
}

@media (max-width: 991.98px) {
  .newhome-template .caps {
    grid-template-columns: repeat(2, 1fr);
    grid-template-rows: none;
    grid-auto-rows: auto;
  }

  .newhome-template .cap-card.foundation,
  .newhome-template .cap-card:nth-child(2),
  .newhome-template .cap-card:nth-child(3),
  .newhome-template .cap-card:nth-child(4),
  .newhome-template .cap-card:nth-child(5) {
    grid-column: span 1;
    grid-row: auto;
  }

  .newhome-template .cap-card.foundation {
    grid-column: span 2;
  }
}

/* Everything stacks to a single column here, so every card — including
   foundation, no longer the wide one — ends up at roughly the same narrow
   width. All five get the same, further-reduced image size. */
@media (max-width: 575.98px) {
  .newhome-template .caps {
    grid-template-columns: 1fr;
  }

  .newhome-template .cap-card {
    grid-column: span 1 !important;
  }

}

/* Light-mood card: near-white fill instead of the dark var(--panel) used
   elsewhere in this template, so the GIF thumbnails (sized/positioned per
   card above) read as photos on a light card rather than a full-bleed dark
   background. */
.newhome-template .cap-card {
  position: relative;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  min-height: 550px;
  background-color: #ffffff;
  border: 1px solid rgba(23, 22, 42, .1);
  border-radius: 14px;
  padding: 28px;
  transition: border-color .2s ease, transform .2s ease, box-shadow .2s ease;
}

.newhome-template .cap-card::after {
  content: "";
  position: absolute;
  top: -30%;
  right: -20%;
  width: 60%;
  height: 60%;
  border-radius: 50%;
  background: var(--accent, var(--violet));
  opacity: .16;
  filter: blur(38px);
  pointer-events: none;
}

.newhome-template .cap-card:hover {
  border-color: color-mix(in srgb, var(--accent, var(--violet)) 55%, transparent);
  transform: translateY(-3px);
  box-shadow: 0 16px 36px -18px rgba(0, 0, 0, .55);
}

.newhome-template .cap-card h3 {
  position: relative;
  color: #17162a;
  font-size: 1.15rem;
  margin: 10px 0 6px;
}

.newhome-template .cap-card p {
  position: relative;
  color: #4b4a63;
  font-size: .92rem;
  margin: 0;
}

.newhome-template .cap-card.foundation h3 {
  font-size: 1.4rem;
}

.newhome-template .cap-idx {
  position: relative;
  display: inline-block;
  font-family: "Archivo", monospace;
  font-size: .7rem;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--carbon);
  /* background: color-mix(in srgb, var(--accent, var(--teal)) 16%, transparent); */
  border-radius: 20px;
  padding: 4px 10px;
  margin-bottom: 8px;
}

.newhome-template .cap-card.foundation .cap-idx {
  /* var(--teal) reads fine as a border/glow accent but is too light a mint
     for pill text on the new light card fill, so it's darkened here only
     (deep enough to clear 4.5:1 contrast against the pill's light tint). */
    color: var(--carbon);
  /* background: rgba(15, 143, 125, .14); */
}

/* #009C8E and #DF29BA (nth-child 3 and 5) are likewise too light to use
   directly as small bold text on the light card fill — same fix, darkened
   text only, --accent itself stays untouched for the glow/hover border. */
.newhome-template .cap-card:nth-child(3) .cap-idx {
    color: var(--carbon);
  /* background: rgba(0, 156, 142, .14); */
}

.newhome-template .cap-card:nth-child(5) .cap-idx {
    color: var(--carbon);
  /* background: rgba(223, 41, 186, .14); */
}

.newhome-template .cap-role {
  position: relative;
  display: block;
  font-size: .82rem;
  color: var(--fog-dim);
  margin-bottom: 4px;
}

.newhome-template .build-foot {
  margin-top: 40px;
  text-align: center;
}

/* =========================================================================
   METRICS
   ========================================================================= */

.newhome-template .metrics-band {
  background: #ffffff;
}

.newhome-template .metrics {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px 24px;
  text-align: center;
}

@media (max-width: 767.98px) {
  .newhome-template .metrics {
    grid-template-columns: repeat(2, 1fr);
  }
}

.newhome-template .metrics .n {
  font-family: "Archivo", sans-serif;
  font-weight: 800;
  font-size: calc(36px + (64 - 36) * ((100vw - 320px) / (1920 - 320)));
  line-height: 1;
}

/* .n renders either as plain text (no-JS fallback) or, once
   newhome-template.js wraps it, as .n-num + .n-suffix — both need their own
   gradient-clip since `background` isn't inherited from the parent .n. */
.newhome-template .metrics .n,
.newhome-template .metrics .n-num,
.newhome-template .metrics .n-suffix {
  background: var(--grad);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.newhome-template .metrics .k {
  margin-top: 10px;
  font-size: 1.2rem;
  font-weight: 500;
  color: var(--fog-dim);
  line-height: 1.4;
}

/* =========================================================================
   THE WORK — case studies
   ========================================================================= */

/* ---- tabbed case study (adaglobal.com-style) ---------------------------
   A row of company-name tab buttons switches which single .case-panel is
   shown below (see initCaseTabs() in newhome-template.js). Only one panel
   is visible at a time; the count-up stats in a panel animate the first
   time it's shown, whether that's on scroll-into-view (the initial panel)
   or on tab click (every other panel — display:none elements never
   intersect, so IntersectionObserver alone can't catch those). */

/* Horizontal scroller, not a flex-wrap row — flex items default to
   flex:0 1 auto, but "0 1" still lets a wrapped row's leftover space push
   items apart; with 5+ tabs that read as evenly stretched across the full
   width. flex:0 0 auto here pins every tab to its own content width, and
   overflow-x replaces wrapping so a 6th/7th case scrolls instead. */
.newhome-template .case-tabs {
  display: flex;
  gap: 32px;
  overflow-x: auto;
  overscroll-behavior-x: contain;
  scroll-snap-type: x mandatory;
  border-bottom: 1px solid rgba(23, 22, 42, .1);
  margin-bottom: 32px;
  padding-bottom: 1px;
  /* Scrolling itself stays fully usable (drag/trackpad/touch/arrow keys) —
     only the visible scrollbar chrome is hidden. */
  scrollbar-width: none;
  -ms-overflow-style: none;
}

.newhome-template .case-tabs::-webkit-scrollbar {
  display: none;
}

.newhome-template .case-tab {
  position: relative;
  flex: 0 0 20%;
  scroll-snap-align: start;
  white-space: normal;
  text-align: center;
  background: none;
  border: none;
  cursor: pointer;
  font-family: "Archivo", sans-serif;
  font-weight: 700;
  font-size: calc(1rem + (1.5 - 1) * ((100vw - 320px) / (1920 - 320)));
  color: #6b6a82;
  padding: 12px 0;
  transition: color .2s ease;
}

.newhome-template .case-tab::after {
  content: "";
  position: absolute;
  left: 0;
  right: 100%;
  bottom: -1px;
  height: 2px;
  background: #343ced;
  transition: right .25s ease;
}

.newhome-template .case-tab:hover {
  color: #17162a;
}

.newhome-template .case-tab.active {
  color: #17162a;
}

.newhome-template .case-tab.active::after {
  right: 0;
}

.newhome-template .case-panel {
  display: none;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr);
  gap: 48px;
  align-items: center;
}

.newhome-template .case-panel.active {
  display: grid;
}

@media (max-width: 767.98px) {
  .newhome-template .case-panel {
    grid-template-columns: 1fr;
    gap: 28px;
  }
}

.newhome-template .case-media {
  aspect-ratio: 6 / 4;
  border-radius: 16px;
  background:
    radial-gradient(120% 140% at 100% 0%, rgba(52, 60, 237, .16), transparent 60%),
    radial-gradient(120% 140% at 0% 100%, rgba(0, 156, 142, .14), transparent 60%),
    #f0f0f4;
}

/* 768px–1023.98px only — below 768px falls back to the base 6/4 above. */
@media (max-width: 1023.98px) and (min-width: 768px) {
  .newhome-template .case-media {
    aspect-ratio: 6 / 5;
  }
}

.newhome-template .case-tag {
  display: block;
  font-size: .8rem;
  font-weight: 700;
  letter-spacing: .06em;
  color: #343ced;
  margin-bottom: 16px;
}

.newhome-template .case-topic {
  font-size: clamp(1.6rem, 1.2rem + 1.6vw, 2.4rem);
  margin-bottom: 16px;
}

.newhome-template .case-desc {
  font-size: 1.05rem;
  color: #4b4a63;
  max-width: 480px;
  margin-bottom: 20px;
}

.newhome-template .case-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 40px;
  margin-top: 36px;
}

.newhome-template .case-stat {
  position: relative;
  padding-left: 18px;
}

.newhome-template .case-stat::before {
  content: "";
  position: absolute;
  left: 0;
  top: 4px;
  bottom: 4px;
  width: 3px;
  border-radius: 3px;
  background: #343ced;
}

.newhome-template .case-stat .n {
  display: block;
  font-family: "Archivo", sans-serif;
  font-weight: 800;
  font-size: clamp(2rem, 1.5rem + 1.6vw, 2.75rem);
  color: #17162a;
  line-height: 1;
}

.newhome-template .case-stat .k {
  display: block;
  font-size: .82rem;
  color: #6b6a82;
  margin-top: 8px;
}

/* =========================================================================
   INTEGRATIONS
   ========================================================================= */

.newhome-template .integ-intro {
  max-width: 680px;
  margin-bottom: 40px;
  font-size: 1.2rem;
}

.newhome-template .integ-cols {
  margin-top: 48px;
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 28px;
}

@media (max-width: 991.98px) {
  .newhome-template .integ-cols {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 575.98px) {
  .newhome-template .integ-cols {
    grid-template-columns: 1fr;
  }
}

.newhome-template .integ-cols h4 {
  font-size: 1.2rem;
  color: var(--ink);
  margin-bottom: 14px;
}

.newhome-template .integ-cols ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.newhome-template .integ-cols li {
  font-size: 1rem;
  color: var(--fog);
  padding: 6px 0;
  border-top: 1px solid var(--line);
}

.newhome-template .integ-cols li:first-child {
  border-top: none;
}

/* =========================================================================
   HOW WE PARTNER
   ========================================================================= */

.newhome-template .partner {
  text-align: center;
  max-width: 720px;
  margin: 0 auto;
}

.newhome-template .partner .section-header {
  max-width: none;
  margin: 0 auto 20px;
}

.newhome-template .partner p {
  margin-bottom: 24px;
}

/* =========================================================================
   HOW WE ENGAGE
   ========================================================================= */

.newhome-template #engage.band {
  position: relative;
  overflow: hidden;
}

.newhome-template #engage.band::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  
}

.newhome-template #engage.band > .wrap {
  position: relative;
  z-index: 1;
}

.newhome-template .engage-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

@media (max-width: 991.98px) {
  .newhome-template .engage-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 575.98px) {
  .newhome-template .engage-grid {
    grid-template-columns: 1fr;
  }
}

/* ---- glassmorphism card -------------------------------------------------
   Translucent fill + backdrop-filter blur, so the gradient blobs behind
   #engage (see ::before above) show through softly. Text colors below are
   deliberately overridden away from the template's dark-card defaults
   (var(--white)/var(--fog)), which read near-invisible on light glass. */

.newhome-template .engage-card {
  position: relative;
  display: flex;
  flex-direction: column;
  background: rgba(255, 255, 255, .5);
  border: 1px solid rgba(255, 255, 255, .6);
  border-radius: 14px;
  padding: 26px;
  -webkit-backdrop-filter: blur(18px) saturate(160%);
  backdrop-filter: blur(18px) saturate(160%);
  box-shadow: 0 8px 32px rgba(31, 26, 74, .12), inset 0 1px 0 rgba(255, 255, 255, .6);
  transition: border-color .2s ease, transform .2s ease, box-shadow .2s ease;
}

@supports not ((-webkit-backdrop-filter: blur(1px)) or (backdrop-filter: blur(1px))) {
  .newhome-template .engage-card {
    background: rgba(255, 255, 255, .92);
  }
}

.newhome-template .engage-card:hover {
  border-color: rgba(52, 60, 237, .4);
  transform: translateY(-3px);
  box-shadow: 0 16px 40px rgba(31, 26, 74, .18), inset 0 1px 0 rgba(255, 255, 255, .7);
  background:
    radial-gradient(38% 42% at 12% 15%, rgba(102, 45, 142, .16), transparent 65%),
    radial-gradient(34% 38% at 88% 10%, rgba(0, 156, 142, .14), transparent 60%),
    radial-gradient(42% 46% at 55% 95%, rgba(223, 41, 186, .12), transparent 65%),
    radial-gradient(30% 34% at 95% 80%, rgba(52, 60, 237, .12), transparent 60%);
}

.newhome-template .engage-card h3 {
  color: #17162a;
  font-size: 1.1rem;
  margin: 10px 0 8px;
}

.newhome-template .e-format {
  font-size: .68rem;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: #343ced;
}

.newhome-template .e-what {
  color: #4b4a63;
  font-size: .88rem;
  margin: 0 0 20px;
  flex: 1;
}

.newhome-template .e-meta {
  padding-top: 16px;
  border-top: 1px solid rgba(23, 22, 42, .12);
}

.newhome-template .e-row {
  display: flex;
  flex-direction: column;
  gap: 2px;
  margin-bottom: 12px;
}

.newhome-template .e-row .lab {
  font-size: .68rem;
  font-weight: 700;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: #6b6a82;
}

.newhome-template .e-row .val {
  font-size: .85rem;
  color: #3d3c52;
}

.newhome-template .e-cta {
  font-size: .85rem;
}

/* =========================================================================
   PRICING
   Same glassmorphism card treatment as .engage-card above, duplicated
   under its own class names rather than reusing #engage's classes, so the
   two sections can be edited independently.
   ========================================================================= */

.newhome-template .pricing-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

@media (max-width: 991.98px) {
  .newhome-template .pricing-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 575.98px) {
  .newhome-template .pricing-grid {
    grid-template-columns: 1fr;
  }
}

.newhome-template .pricing-card {
  position: relative;
  display: flex;
  flex-direction: column;
  background: rgba(255, 255, 255, .5);
  border: 1px solid rgba(255, 255, 255, .6);
  border-radius: 14px;
  padding: 26px;
  -webkit-backdrop-filter: blur(18px) saturate(160%);
  backdrop-filter: blur(18px) saturate(160%);
  box-shadow: 0 8px 32px rgba(31, 26, 74, .12), inset 0 1px 0 rgba(255, 255, 255, .6);
  transition: border-color .2s ease, transform .2s ease, box-shadow .2s ease;
}

@supports not ((-webkit-backdrop-filter: blur(1px)) or (backdrop-filter: blur(1px))) {
  .newhome-template .pricing-card {
    background: rgba(255, 255, 255, .92);
  }
}

.newhome-template .pricing-card:hover {
  border-color: rgba(52, 60, 237, .4);
  transform: translateY(-3px);
  box-shadow: 0 16px 40px rgba(31, 26, 74, .18), inset 0 1px 0 rgba(255, 255, 255, .7);
  background:
    radial-gradient(38% 42% at 12% 15%, rgba(102, 45, 142, .16), transparent 65%),
    radial-gradient(34% 38% at 88% 10%, rgba(0, 156, 142, .14), transparent 60%),
    radial-gradient(42% 46% at 55% 95%, rgba(223, 41, 186, .12), transparent 65%),
    radial-gradient(30% 34% at 95% 80%, rgba(52, 60, 237, .12), transparent 60%);
}

.newhome-template .pricing-card h3 {
  color: #17162a;
  font-size: 1.1rem;
  margin: 10px 0 8px;
}

.newhome-template .price-tier {
  font-size: .68rem;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: #343ced;
}

.newhome-template .price-desc {
  color: #4b4a63;
  font-size: .88rem;
  margin: 0 0 20px;
  flex: 1;
}

.newhome-template .price-meta {
  padding-top: 16px;
  border-top: 1px solid rgba(23, 22, 42, .12);
}

.newhome-template .price-row {
  display: flex;
  flex-direction: column;
  gap: 2px;
  margin-bottom: 12px;
}

.newhome-template .price-row .price-lab {
  font-size: .68rem;
  font-weight: 700;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: #6b6a82;
}

.newhome-template .price-row .price-val {
  font-size: .85rem;
  color: #3d3c52;
}

.newhome-template .price-feature-list {
  list-style: none;
  margin: 0 0 20px;
  padding: 0;
}

.newhome-template .price-feature-list li {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: .88rem;
  font-weight: 600;
  color: #343ced;
  padding: 8px 0;
}

.newhome-template .price-feature-list li i {
  color: #17162a;
  font-size: 1.05rem;
  line-height: 1;
}

.newhome-template .price-cta {
  font-size: .85rem;
}

/* =========================================================================
   FAQ
   ========================================================================= */

.newhome-template .faq-list {
  max-width: 100%;
}

.newhome-template .faq {
  border-bottom: 2px solid #e7e7e7;
}

/* .newhome-template .faq:last-child {
  border-bottom: 1px solid #f3f3f3;
} */

.newhome-template .faq summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 22px 0;
  cursor: pointer;
  list-style: none;
}

.newhome-template .faq summary::-webkit-details-marker {
  display: none;
}

.newhome-template .faq .faq-question {
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--ink);
  margin: 0;
  transition: color .2s ease;
}

.newhome-template .faq summary:hover .faq-question {
  background: linear-gradient(to right,
            #662D8E 0%,
            #009C8E 33%,
            #343CED 65%,
            #DF29BA 80%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
}

.newhome-template .faq .sign {
  position: relative;
  flex-shrink: 0;
  width: 18px;
  height: 18px;
}

.newhome-template .faq .sign::before,
.newhome-template .faq .sign::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  background: var(--teal);
  transform: translate(-50%, -50%);
  transition: transform .2s ease;
}

.newhome-template .faq .sign::before {
  width: 14px;
  height: 2px;
}

.newhome-template .faq .sign::after {
  width: 2px;
  height: 14px;
}

.newhome-template .faq[open] .sign::after {
  transform: translate(-50%, -50%) rotate(90deg);
  opacity: 0;
}

.newhome-template .faq p {
  padding: 0 0 22px;
  max-width: 680px;
  font-size: 1.2rem;
}

/* =========================================================================
   CLOSE
   ========================================================================= */

.newhome-template .close {
  padding: 110px 0;
  text-align: center;
}

@media (max-width: 767.98px) {
  .newhome-template .close {
    padding: 72px 0;
  }
}

.newhome-template .close .section-header {
  max-width: 640px;
  margin: 0 auto 20px;
}

.newhome-template .close p {
  max-width: 620px;
  margin: 0 auto 32px;
  font-size: 1.2rem;
}

.newhome-template .close .btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

/* ---- keyframes ---------------------------------------------------------- */

@keyframes dashboard-status-pulse {
  0%, 100% {
    transform: scale(1);
    opacity: 1;
  }
  50% {
    transform: scale(1.3);
    opacity: .6;
  }
}

@keyframes dashboard-dash-move {
  to {
    stroke-dashoffset: -1000;
  }
}

@keyframes newhome-marquee {
  from {
    transform: translateX(0);
  }
  to {
    transform: translateX(-50%);
  }
}
