/* New Home Template — full redesign ported from momentro-home.html.
   Plain, hand-written CSS (not compiled from Sass). Loaded only on this
   page template — see base_theme_newhome_style() in inc/enqueue.php.

   This replaces the previous "growth infrastructure" design (dashboard
   diagrams, cap-card bento grid, teal/violet gradient palette) entirely —
   the HTML (page-templates/home-template.php) and JS
   (assets/js/newhome-template.js) were already ported from
   momentro-home.html before this file was, so every rule here is scoped
   under .newhome-template to match the class names actually used there,
   not the old design's.

   momentro-home.html's own <nav> and <footer> were NOT carried into
   home-template.php — get_header()/get_footer() still render the theme's
   own header/footer (including the hardcoded nav built earlier this
   project). So the reference's nav{}, .logo, .navlinks, .navtoggle,
   footer, .foot-* rules are intentionally not ported here: nothing in the
   actual markup would ever match them. */

@import url('https://fonts.googleapis.com/css2?family=Barlow+Condensed:wght@500;600;700&family=Inter:wght@400;500;600&family=IBM+Plex+Mono:wght@400;500&family=Instrument+Serif:ital@1&display=swap');

.newhome-template {
  --teal: #00A59B;
  --teal-deep: #00857D;
  --ink: #131416;
  --paper: #F7F6F3;
  --slate: #5B6472;
  --line: #E4E2DC;
  --white: #fff;
  --dv-green: #3FB27F;
  --dv-amber: #F2A63B;
  --dv-magenta: #D6409F;
  --dv-violet: #7A5AF8;
  --dv-red: #E5484D;
  --dv-blue: #3B82F6;
  /* --maxw: 1200px; */

  font-family: 'Inter', system-ui, sans-serif;
  color: var(--ink);
  background: var(--paper);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: clip; /* clip, not hidden: hidden makes this a scroll container and breaks position:sticky inside it */
}

/* html itself can't be scoped under .newhome-template (it's an ancestor,
   not a descendant) — harmless site-wide, so left unscoped like the old
   file's few similarly unavoidable exceptions. */
html {
  scroll-behavior: smooth;
}

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

.newhome-template h1,
.newhome-template h2,
.newhome-template h3 {
  font-family: 'Barlow Condensed', sans-serif;
  font-weight: 600;
  line-height: 1;
  letter-spacing: -.01em;
}

.newhome-template .wrap {
  /* max-width: var(--maxw); */
  margin: 0 auto;
  /* padding: 0 32px; */
  padding-left: calc(30px + 70 * (100vw - 320px) / 1600);
  padding-right: calc(30px + 70 * (100vw - 320px) / 1600);
}


@media (max-width: 767.98px) {
  .newhome-template .wrap {
    padding-left: calc(8px + 16 * (100vw - 320px) / 1600);
    padding-right: calc(8px + 16 * (100vw - 320px) / 1600);
  }
}

.newhome-template .mono {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 12px;
  letter-spacing: .06em;
  color: var(--slate);
}

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

.newhome-template .dot {
  color: var(--teal);
}

/* ---- buttons ------------------------------------------------------- */

.newhome-template .btnnew {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 600;
  font-size: 15px;
  padding: 14px 26px;
  border-radius: 100px;
  transition: .2s;
  cursor: pointer;
  border: none;
}

.newhome-template .btnnew-primary {
  background: var(--ink);
  color: var(--white);
}

.newhome-template .btnnew-primary:hover {
  background: var(--teal);
  color: var(--white);
}

.newhome-template .btn-ghost {
  background: transparent;
  color: var(--ink);
  border: 1.5px solid var(--ink);
}

.newhome-template .btn-ghost:hover {
  background: var(--ink);
  color: var(--white);
}

.newhome-template .btn-light {
  background: var(--white);
  color: var(--ink);
}

.newhome-template .btn-light:hover {
  background: var(--teal);
  color: var(--white);
}

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

.newhome-template section {
  position: relative;
}

.newhome-template .eyebrow {
  font-family: 'IBM Plex Mono';
  font-size: 12px;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--teal);
  margin-bottom: 18px;
  display: inline-block;
}

.newhome-template .sec-dark {
  background: var(--ink);
  color: var(--paper);
}

.newhome-template .sec-dark .mono {
  color: #8b93a1;
}

.newhome-template .band {
  padding: 110px 0;
}

.newhome-template .split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
}

.newhome-template h2.big {
  font-size: clamp(38px, 5vw, 66px);
  max-width: 16ch;
}

.newhome-template .lead {
  font-size: 18px;
  color: var(--slate);
  max-width: 52ch;
  margin-top: 22px;
}

.newhome-template .sec-dark .lead {
  color: #b7bdc9;
}

.newhome-template .kicker {
  font-family: 'Barlow Condensed';
  font-weight: 600;
  font-size: 22px;
  margin-top: 26px;
}

/* ---- scroll reveal ---------------------------------------------------
   IntersectionObserver in newhome-template.js adds .in once a .reveal
   element scrolls into view. Visible by default if JS fails (no
   FOUC-hidden risk) is NOT the case here — matching momentro-home.html
   exactly, these start hidden — but prefers-reduced-motion below still
   forces them visible regardless of JS. */
.newhome-template .reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity .7s, transform .7s;
}

.newhome-template .reveal.in {
  opacity: 1;
  transform: none;
}

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

.newhome-template .hero {
  padding: calc(20px + (100 - 20) * ((100vw - 320px) / (1920 - 320))) 0 80px;
  overflow: hidden;
}

.newhome-template .hero .grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  align-items: center;
}

.newhome-template .hero h1 {
  font-size: calc(32px + (96 - 32) * ((100vw - 320px) / (1920 - 320)));
  font-weight: 700;
}

.newhome-template .hero h1 em,
.newhome-template h2.big em {
  font-family: 'Instrument Serif', Georgia, serif;
  font-style: italic;
  font-weight: 400;
}

.newhome-template .hero .sub {
  font-size: 19px;
  color: var(--slate);
  max-width: 34ch;
  margin: 26px 0 34px;
}

.newhome-template .hero-video {
  width: 100%;
  aspect-ratio: 1504 / 1028;
  height: auto;
  object-fit: cover;
  border-radius: 16px;
  display: block;
}

.newhome-template .hero-canvas-wrap {
  position: relative;
}

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

.newhome-template .trust {
  padding: 26px 0 64px;
}

.newhome-template .trust p {
  font-family: 'IBM Plex Mono';
  font-size: 11.5px;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--slate);
  text-align: center;
  margin-bottom: 6px;
}

.newhome-template .trust .proof {
  font-family: 'Barlow Condensed';
  font-weight: 600;
  font-size: 20px;
  color: var(--ink);
  text-align: center;
  margin-bottom: 30px;
}

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

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

.newhome-template .marquee:hover .marquee-track {
  animation-play-state: paused;
}

.newhome-template .marquee-track span {
  font-family: 'Barlow Condensed';
  font-weight: 600;
  font-size: 22px;
  color: #b7b4ac;
  white-space: nowrap;
}

/* #mtrack now holds real client logos instead of text names — muted
   grayscale at rest, full color on hover, sized to a shared height so
   logos of very different native proportions still line up in the row. */
.newhome-template .marquee-track img {
  height: 100px;
  width: auto;
  object-fit: contain;
  flex-shrink: 0;
  filter: grayscale(1);
  opacity: .5;
  transition: opacity .2s ease, filter .2s ease;
}

.newhome-template .marquee-track img:hover {
  filter: grayscale(0);
  opacity: 1;
}

/* =========================================================================
   THE SHIFT — dashboard panel + copy
   ========================================================================= */

.newhome-template .panel {
  background: #0d0e10;
  border: 1px solid #23262b;
  border-radius: 16px;
  padding: 26px;
  box-shadow: 0 30px 60px -30px rgba(0, 0, 0, .5);
  height: 100%;
}

.newhome-template .panel .phead {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-family: 'IBM Plex Mono';
  font-size: 11px;
  color: #6b7280;
  text-transform: uppercase;
  letter-spacing: .1em;
  margin-bottom: 20px;
}

/* An emptied header bar (e.g. #build's preview panel) would still add its
   20px margin above the image, making the top gap larger than the other
   three sides — drop it entirely so the panel padding is even all round. */
.newhome-template .panel .phead:empty {
  display: none;
}

.newhome-template .panel .dotrow {
  display: flex;
  gap: 6px;
}

.newhome-template .panel .dotrow i {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: #2a2d33;
  display: block;
}

.newhome-template .flow {
  display: flex;
  align-items: center;
  gap: 14px;
  margin: 10px 0 22px;
  flex-wrap: wrap;
}

.newhome-template .cube {
  width: 56px;
  height: 56px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  font-family: 'IBM Plex Mono';
  font-size: 10px;
  color: #fff;
  letter-spacing: .05em;
}

.newhome-template .arrow {
  color: #3a3e45;
  font-size: 20px;
}

.newhome-template .inputs {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 20px;
}

.newhome-template .inrow {
  display: flex;
  align-items: center;
  gap: 12px;
  font-family: 'IBM Plex Mono';
  font-size: 12px;
  color: #aeb4bd;
}

.newhome-template .chip {
  width: 34px;
  height: 34px;
  border-radius: 9px;
  display: grid;
  place-items: center;
  flex: none;
}

.newhome-template .shift-visual img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 16px;
}

/* ---- WHAT WE BUILD — accordion + live-preview panel ------------------- */

.newhome-template .acc-item {
  border-bottom: 1px solid var(--line);
}

.newhome-template .acc-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 24px 0;
  cursor: pointer;
  gap: 20px;
}

.newhome-template .acc-head h3 {
  font-family: 'Barlow Condensed';
  font-weight: 600;
  font-size: 27px;
  transition: .2s;
}

.newhome-template .acc-item.open .acc-head h3 {
  color: var(--teal);
}

.newhome-template .acc-sub {
  font-size: 14px;
  color: var(--slate);
  margin-top: 4px;
}

.newhome-template .acc-plus {
  font-size: 24px;
  color: var(--slate);
  flex: none;
  transition: .3s;
}

.newhome-template .acc-item.open .acc-plus {
  transform: rotate(45deg);
  color: var(--teal);
}

.newhome-template .acc-body {
  max-height: 0;
  overflow: hidden;
  transition: max-height .35s ease;
}

.newhome-template .acc-body p {
  padding-bottom: 26px;
  color: var(--slate);
  font-size: 15.5px;
  max-width: 60ch;
}

/* Per-item preview image, mobile only — see .panel / .acc-image swap in
   the max-width:900px breakpoint below. Hidden on desktop, where the
   sticky .panel already shows the matching .screen image instead. */
.newhome-template .acc-image {
  display: none;
}

.newhome-template .screen {
  display: none;
}

.newhome-template .screen.active {
  display: block;
  animation: newhome-fade-in .4s;
}

.newhome-template .screen img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 10px;
}


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

.newhome-template .stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border-top: 1px solid var(--line);
}

.newhome-template .stat {
  padding: 40px 24px;
  border-bottom: 1px solid var(--line);
  border-right: 1px solid var(--line);
}

.newhome-template .stat:nth-child(3n) {
  border-right: none;
}

.newhome-template .stat .num {
  font-family: 'Barlow Condensed';
  font-weight: 700;
  font-size: clamp(44px, 5vw, 68px);
  line-height: 1;
  color: var(--ink);
}

.newhome-template .stat .lab {
  color: var(--slate);
  font-size: 15px;
  margin-top: 8px;
}

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

.newhome-template .tabs {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  border-bottom: 1px solid #26292f;
  margin: 36px 0 40px;
}

.newhome-template .tab {
  font-family: 'Barlow Condensed';
  font-weight: 600;
  font-size: 18px;
  padding: 12px 16px;
  color: #7c828c;
  cursor: pointer;
  border-bottom: 2px solid transparent;
  margin-bottom: -1px;
  transition: .2s;
  white-space: nowrap;
}

.newhome-template .tab:hover {
  color: var(--paper);
}

.newhome-template .tab.active {
  color: var(--white);
  border-bottom-color: var(--teal);
}

.newhome-template .case {
  display: none;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
  align-items: center;
}

.newhome-template .case.active {
  display: grid;
  animation: newhome-fade-in .4s;
}

.newhome-template .case-visual {
  aspect-ratio: 4 / 3;
  border-radius: 16px;
  position: relative;
  overflow: hidden;
  display: grid;
  place-items: center;
  border: 1px solid #2c2f36;
}

.newhome-template .case-visual img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.newhome-template .case-visual::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  box-shadow: inset 0 0 0 1px rgba(0, 165, 155, .25);
  border-radius: 16px;
  background: linear-gradient(180deg, transparent 62%, rgba(19, 20, 22, .35));
}

.newhome-template .case-visual .lbl {
  font-family: 'Barlow Condensed';
  font-weight: 700;
  font-size: 38px;
  color: rgba(255, 255, 255, .92);
  z-index: 1;
  text-align: center;
  padding: 0 24px;
  line-height: 1.05;
}

.newhome-template .case-tag {
  font-family: 'IBM Plex Mono';
  font-size: 12px;
  color: var(--teal);
  letter-spacing: .05em;
  margin-bottom: 14px;
}

.newhome-template .case h3 {
  font-size: 34px;
  max-width: 16ch;
  margin-bottom: 18px;
}

.newhome-template .case p {
  color: #b7bdc9;
  font-size: 15.5px;
  max-width: 56ch;
}

.newhome-template .casemetrics {
  display: flex;
  gap: 40px;
  margin-top: 26px;
  flex-wrap: wrap;
}

.newhome-template .casemetrics .m .v {
  font-family: 'Barlow Condensed';
  font-weight: 700;
  font-size: 36px;
  color: var(--teal);
  line-height: 1;
}

.newhome-template .casemetrics .m .k {
  font-family: 'IBM Plex Mono';
  font-size: 11px;
  color: #8b93a1;
  margin-top: 4px;
}

.newhome-template .builtwith {
  font-family: 'IBM Plex Mono';
  font-size: 11px;
  color: #6b7280;
  margin-top: 24px;
  letter-spacing: .03em;
}

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

.newhome-template .intg {
  margin-top: 48px;
}

.newhome-template .intg img {
  display: block;
  width: 100%;
  max-width: 1000px;
  height: auto;
  margin: 0 auto;
  /* border: 1px solid var(--line); */
  border-radius: 16px;
  /* background: var(--white); */
  background: transparent;
}

.newhome-template .intg-col h4 {
  font-family: 'IBM Plex Mono';
  font-size: 11px;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--teal);
  margin-bottom: 14px;
}

.newhome-template .intg-item {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 14px 16px;
  font-weight: 500;
  font-size: 14.5px;
  margin-bottom: 10px;
}

/* =========================================================================
   HOW WE ENGAGE — flip cards
   ========================================================================= */

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

.newhome-template .ecard {
  height: 430px;
  perspective: 1400px;
  cursor: pointer;
}

.newhome-template .ecard-inner {
  position: relative;
  width: 100%;
  height: 100%;
  transition: transform .6s cubic-bezier(.4, .15, .2, 1);
  transform-style: preserve-3d;
}

.newhome-template .ecard:hover .ecard-inner,
.newhome-template .ecard.flipped .ecard-inner {
  transform: rotateY(180deg);
}

.newhome-template .face {
  position: absolute;
  inset: 0;
  backface-visibility: hidden;
  border-radius: 18px;
  padding: 28px 24px;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.newhome-template .front {
  justify-content: flex-end;
}

.newhome-template .front .k {
  font-family: 'IBM Plex Mono';
  font-size: 11px;
  letter-spacing: .08em;
  text-transform: uppercase;
  opacity: .8;
  margin-bottom: 8px;
}

.newhome-template .front h3 {
  font-size: 30px;
  max-width: 11ch;
}

.newhome-template .front .flip-cue {
  position: absolute;
  top: 22px;
  right: 22px;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  border: 1.5px solid currentColor;
  display: grid;
  place-items: center;
  font-size: 20px;
  opacity: .7;
}

.newhome-template .back {
  transform: rotateY(180deg);
  background: var(--white);
  color: var(--ink);
  border: 1px solid var(--line);
  justify-content: space-between;
}

.newhome-template .back .k {
  font-family: 'IBM Plex Mono';
  font-size: 11px;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--teal);
  margin-bottom: 8px;
}

.newhome-template .back h3 {
  font-size: 24px;
  margin-bottom: 12px;
}

.newhome-template .back p {
  font-size: 13.5px;
  color: var(--slate);
  line-height: 1.55;
  margin-bottom: 20px;
}

.newhome-template .back .foot {
  border-top: 1px solid var(--line);
  padding-top: 14px;
  margin-top: 14px;
}

.newhome-template .back .foot .fl {
  font-family: 'IBM Plex Mono';
  font-size: 10px;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: #9aa0aa;
}

.newhome-template .back .foot .fv {
  font-size: 13px;
  margin-bottom: 8px;
}

.newhome-template .back .btnnew {
  align-self: flex-start;
  padding: 11px 22px;
  font-size: 14px;
  margin-top: 12px;
}

.newhome-template .e-dark .back {
  background: var(--ink);
  color: var(--paper);
  border-color: #2c2f36;
}

.newhome-template .e-dark .back p {
  color: #b7bdc9;
}

.newhome-template .e-dark .back .foot {
  border-top-color: #2c2f36;
}

.newhome-template .e-dark .back .fv {
  color: var(--paper);
}

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

.newhome-template .faq-split {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 64px;
  align-items: start;
}

.newhome-template .faq-item {
  border-bottom: 1px solid var(--line);
}

.newhome-template .faq-head {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  padding: 24px 0;
  cursor: pointer;
}

.newhome-template .faq-head h3 {
  font-size: 22px;
  font-family: 'Barlow Condensed';
  font-weight: 600;
}

.newhome-template .faq-plus {
  color: var(--teal);
  font-size: 24px;
  flex: none;
  transition: .3s;
}

.newhome-template .faq-item.open .faq-plus {
  transform: rotate(45deg);
}

.newhome-template .faq-body {
  max-height: 0;
  overflow: hidden;
  transition: max-height .35s ease;
}

.newhome-template .faq-body p {
  padding-bottom: 24px;
  color: var(--slate);
  max-width: 70ch;
}

/* =========================================================================
   CONTACT — mad-libs form
   ========================================================================= */

.newhome-template .madlib {
  font-family: 'Barlow Condensed';
  font-weight: 500;
  font-size: clamp(26px, 3.4vw, 40px);
  line-height: 1.5;
  color: var(--paper);
}

.newhome-template .madlib input {
  background: transparent;
  border: none;
  border-bottom: 2px solid #3a3e45;
  color: #fff;
  font-family: 'Barlow Condensed';
  font-weight: 600;
  font-size: inherit;
  padding: 2px 6px;
  min-width: 200px;
  transition: .2s;
  outline: none;
}

.newhome-template .madlib input::placeholder {
  color: #565b63;
}

.newhome-template .madlib input:focus {
  border-bottom-color: var(--teal);
}

/* Forminator forms rendered inside .madlib (see .madlib-form) inherit the
   same sentence typography; Forminator's own markup (.forminator-row >
   .forminator-col > .forminator-field) is a vertical field-stack by
   default, so it's reflowed here to sit inline like the plain inputs this
   replaced. Labels are kept for accessibility but hidden visually — the
   original had no visible labels, only placeholder text. Target structural
   Forminator classes (not per-field IDs) so this keeps working regardless
   of which form ID is embedded, or if fields are added/reordered/renamed
   in the Forminator admin. */

/* Forminator enqueues its own front-end stylesheet (forminator-forms.min.css,
   built for a light default theme with boxed, bordered fields) which fights
   almost everything set here on equal-or-higher selector specificity — so
   every rule below is !important-armored rather than relying on source
   order, since this stylesheet can't guarantee loading after Forminator's. */
.newhome-template .madlib-form,
.newhome-template .madlib-form * {
  font-family: 'Barlow Condensed' !important;
  font-weight: 500 !important;
  color: var(--paper) !important;
}

.newhome-template .madlib-form .forminator-row {
  display: flex !important;
  flex-wrap: wrap !important;
  align-items: baseline !important;
  margin: 0 !important;
}

.newhome-template .madlib-form .forminator-col {
  width: auto !important;
  max-width: 100% !important;
  flex: 0 0 auto !important;
  padding: 0 !important;
  margin: 0 !important;
}

.newhome-template .madlib-form .forminator-field {
  margin-bottom: 0 !important;
}

.newhome-template .madlib-form .forminator-label {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  white-space: nowrap !important;
}

/* "Html" merge-tag fields carry the literal sentence text ("My name is",
   ", from", etc.) as plain connector words between the real fields — they
   need to read as the same inline Barlow Condensed sentence, not a block
   with its own spacing. The visible text lives in the nested <div><div>,
   the field's .forminator-label (hidden above) duplicates it for a11y. */
/* .forminator-col-12 excluded: the form's consent/privacy copy is also
   built as an "Html" field (full width), and must keep its normal block
   paragraph styling (see .consent below), not the inline sentence flow
   the short col-3/col-6 connector fields need. */
.newhome-template .madlib-form .forminator-field-html:not(.forminator-col-12),
.newhome-template .madlib-form .forminator-field-html:not(.forminator-col-12) div {
  display: inline !important;
  margin: 0 !important;
  padding: 0 !important;
}

.newhome-template .madlib-form .forminator-field-html.forminator-col-12 {
  width: 100% !important;
}

/* The "your name" / "your city" / "your challenge" fields were built in
   Forminator as multi-line Textarea fields (forminator-forms.min.css sets
   textarea{display:block;width:100%;min-height:140px;border:1px solid...}),
   which render as a tall boxed field by default — collapsed here into a
   single underlined inline line matching the plain inputs this replaced. */
.newhome-template .madlib-form input[type="text"],
.newhome-template .madlib-form input[type="email"],
.newhome-template .madlib-form input[type="tel"],
.newhome-template .madlib-form input[type="number"],
.newhome-template .madlib-form .forminator-input,
.newhome-template .madlib-form .forminator-textarea {
  display: inline-block !important;
  box-sizing: content-box !important;
  width: auto !important;
  height: auto !important;
  min-height: 0 !important;
  max-height: none !important;
  vertical-align: baseline !important;
  background: transparent !important;
  background-image: none !important;
  border: none !important;
  border-bottom: 2px solid #3a3e45 !important;
  border-radius: 0 !important;
  box-shadow: none !important;
  resize: none !important;
  overflow: hidden !important;
  white-space: nowrap !important;
  line-height: normal !important;
  color: #fff !important;
  font-family: 'Barlow Condensed' !important;
  font-weight: 600 !important;
  font-size: inherit !important;
  padding: 2px 6px !important;
  margin: 0 !important;
  min-width: 200px !important;
  transition: .2s !important;
  outline: none !important;
}

.newhome-template .madlib-form input::placeholder,
.newhome-template .madlib-form .forminator-textarea::placeholder {
  color: #565b63 !important;
  opacity: 1 !important;
}

.newhome-template .madlib-form input:focus,
.newhome-template .madlib-form .forminator-textarea:focus {
  border-bottom-color: var(--teal) !important;
}

.newhome-template .madlib-form .forminator-row-last {
  width: 100% !important;
  margin-top: 28px !important;
}

.newhome-template .madlib-form .forminator-button-submit {
  display: inline-flex !important;
  align-items: center !important;
  gap: 8px !important;
  font-family: 'Inter', system-ui, sans-serif !important;
  font-weight: 600 !important;
  font-size: 15px !important;
  padding: 14px 26px !important;
  border-radius: 100px !important;
  border: none !important;
  cursor: pointer !important;
  transition: .2s !important;
  background: var(--white) !important;
  color: var(--ink) !important;
}

.newhome-template .madlib-form .forminator-button-submit:hover {
  background: var(--teal) !important;
  color: var(--white) !important;
}

/* Strip any default card chrome Forminator's base CSS puts on the form
   wrapper — this form should look like plain text, not a boxed widget. */
.newhome-template .madlib-form .forminator-custom-form,
.newhome-template .madlib-form .forminator-response-message {
  background: transparent !important;
  border: none !important;
  box-shadow: none !important;
  padding: 0 !important;
}

/* Forminator's validation error message (.forminator-error-message) has
   its own pink background baked in — drop the background, keep the text
   readable against this section's dark background. */
.newhome-template .madlib-form .forminator-error-message {
  background-color: transparent !important;
  color: #ff0000 !important;
}

/* Form #712 specifically: its fields recreate the original madlib's
   words, but not its trailing punctuation at the end of each line
   ("your city,", "your challenge.", "your phone.") — there's no field
   for that, so restore it here. Tied to this form's own field IDs,
   unlike the rest of .madlib-form above which stays generic. */
#forminator-module-712 #textarea-2::after,
#forminator-module-712 #textarea-3::after,
#forminator-module-712 #phone-1::after {
  font-family: 'Barlow Condensed' !important;
  font-weight: 500 !important;
  color: var(--paper) !important;
}

#forminator-module-712 #textarea-2::after {
  content: "," !important;
}

#forminator-module-712 #textarea-3::after {
  content: "." !important;
}

.newhome-template .consent {
  font-size: 13px;
  color: #8b93a1;
  margin: 32px 0 22px;
  max-width: 60ch;
}

.newhome-template .consent a {
  color: var(--teal);
}

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

.newhome-template .finalcta {
  text-align: center;
  padding: 120px 0;
}

.newhome-template .finalcta h2 {
  font-size: clamp(44px, 6vw, 84px);
}

/* #build accordion column: capped to the image panel's height and scrolled
   internally, so opening an item never makes the section taller than the
   panel. height:0 + min-height:100% keeps this column from contributing to
   the grid row's height (the panel alone sets it). Desktop only — below
   900px .split stacks to one column and this must size normally. */
@media (min-width: 901px) {
  .newhome-template .split > .acc-scroll {
    align-self: stretch;
    height: 0;
    min-height: 100%;
    overflow-y: auto;
    padding-right: 14px;
    overscroll-behavior: contain;
    scrollbar-width: thin;
  }

  /* First accordion title lines up with the top of the preview image:
     panel border (1px) + panel padding (26px), instead of the default 24px. */
  .newhome-template #build .acc-item:first-child .acc-head {
    padding-top: 27px;
  }
}

/* =========================================================================
   RESPONSIVE
   ========================================================================= */

@media (max-width: 900px) {
  .newhome-template .hero .grid,
  .newhome-template .split,
  .newhome-template .case.active,
  .newhome-template .faq-split {
    grid-template-columns: 1fr;
    gap: 36px;
  }

  /* "The shift" section: the visual sits before the copy in source order
     (so it's first in the two-column desktop grid), but on a single mobile
     column the copy should read first and the visual follow underneath. */
  .newhome-template .shift-visual {
    order: 1;
  }

  /* "What we build" accordion: the sticky live-preview panel only works
     alongside a wide, non-scrolling second column, so below 900px each
     accordion item shows its own .acc-image inline instead (see
     .acc-image above). Scoped to #build so the unrelated "shift" section
     panel (SENSE/DECIDE/ACT) further up the page keeps showing. */
  .newhome-template #build .panel {
    display: none;
  }

  .newhome-template .acc-image {
    display: block;
    width: 100%;
    height: auto;
    border-radius: 10px;
    margin-bottom: 16px;
  }

  /* Case study tabs: 8 labels wrap onto several messy lines below 900px.
     Scroll horizontally in one row instead, with a fade on the right edge
     hinting there's more to swipe to (same mask technique as .marquee). */
  .newhome-template .tabs {
    flex-wrap: nowrap;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    -webkit-mask-image: linear-gradient(90deg, #000 94%, transparent);
    mask-image: linear-gradient(90deg, #000 94%, transparent);
  }

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

  .newhome-template .tab {
    flex: 0 0 auto;
  }

  .newhome-template .stats,
  .newhome-template .engage {
    grid-template-columns: 1fr 1fr;
  }

  .newhome-template .stat:nth-child(3n) {
    border-right: 1px solid var(--line);
  }

  .newhome-template .stat:nth-child(2n) {
    border-right: none;
  }

  .newhome-template .band {
    padding: 72px 0;
  }

  .newhome-template .wrap {
    padding: 0 22px;
  }
}

@media (max-width: 560px) {
  /* .newhome-template .stats, */
  .newhome-template .engage {
    grid-template-columns: 1fr;
  }

  .newhome-template .stat {
    border-right: none !important;
  }
}

@media (prefers-reduced-motion: reduce) {
  .newhome-template .marquee-track {
    animation: none;
  }

  .newhome-template .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }

  .newhome-template .ecard-inner {
    transition: none;
  }

  .newhome-template * {
    scroll-behavior: auto;
  }
}

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

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

@keyframes newhome-fade-in {
  from {
    opacity: 0;
    transform: translateY(8px);
  }
  to {
    opacity: 1;
  }
}

/* =========================================================================
   MOBILE ACCESSIBILITY — 16px minimum text size
   Every rule above that sets text smaller than 16px is lifted to 16px on
   mobile. Larger sizes (headings, stats, etc.) are left untouched.
   ========================================================================= */

@media (max-width: 767.98px) {
  .newhome-template .mono,
  .newhome-template .btnnew,
  .newhome-template .eyebrow,
  .newhome-template .trust p,
  .newhome-template .panel .phead,
  .newhome-template .cube,
  .newhome-template .inrow,
  .newhome-template .acc-sub,
  .newhome-template .acc-body p,
  .newhome-template .stat .lab,
  .newhome-template .case-tag,
  .newhome-template .case p,
  .newhome-template .casemetrics .m .k,
  .newhome-template .builtwith,
  .newhome-template .intg-col h4,
  .newhome-template .intg-item,
  .newhome-template .front .k,
  .newhome-template .back .k,
  .newhome-template .back p,
  .newhome-template .back .foot .fl,
  .newhome-template .back .foot .fv,
  .newhome-template .back .btnnew,
  .newhome-template .consent {
    font-size: 16px;
  }

  /* Flip cards have a fixed height with overflow hidden, so the larger
     back-face text needs one card per row and a taller card to fit. */
  .newhome-template .engage {
    grid-template-columns: 1fr;
  }

  .newhome-template .ecard {
    height: 560px;
  }
}
