/* ==========================================================================
   TechWyse Elementor Widgets — Shared System CSS
   Source: design-system/colors_and_type.css + design-system/site.css
           + per-component <style> blocks lifted verbatim from each JSX
   ========================================================================== */

/* ---- Fonts (local woff2) ---- */
@font-face {
  font-family: "Sora";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("../fonts/sora-400.woff2") format("woff2");
}
@font-face {
  font-family: "Sora";
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url("../fonts/sora-500.woff2") format("woff2");
}
@font-face {
  font-family: "Sora";
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("../fonts/sora-600.woff2") format("woff2");
}
@font-face {
  font-family: "Sora";
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url("../fonts/sora-700.woff2") format("woff2");
}
@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("../fonts/inter-400.woff2") format("woff2");
}
@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url("../fonts/inter-500.woff2") format("woff2");
}
@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("../fonts/inter-600.woff2") format("woff2");
}
@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url("../fonts/inter-700.woff2") format("woff2");
}

/* ---- Design tokens ---- */
:root {
  --color-white: #ffffff;
  --color-neutral-lightest: #f2f2f2;
  --color-neutral-lighter:  #d9d9d9;
  --color-neutral-light:    #b3b4b4;
  --color-neutral:          #808383;
  --color-neutral-dark:     #4d5252;
  --color-neutral-darker:   #1b2020;
  --color-neutral-darkest:  #020808;

  --color-coral-red-lightest: #feebeb;
  --color-coral-red-lighter:  #fed8d8;
  --color-coral-red-light:    #fe7879;
  --color-coral-red:          #fe3f40;
  --color-coral-red-dark:     #cb3233;
  --color-coral-red-darker:   #651919;
  --color-coral-red-darkest:  #4c1213;

  --color-jelly-bean-lightest: #e9f0f5;
  --color-jelly-bean-lighter:  #d4e2ec;
  --color-jelly-bean-light:    #6b99bf;
  --color-jelly-bean:          #2c6ea4;
  --color-jelly-bean-dark:     #235883;
  --color-jelly-bean-darker:   #112c41;
  --color-jelly-bean-darkest:  #0d2131;

  --color-jungle-green-lightest: #e9f5f4;
  --color-jungle-green-lighter:  #d4ecea;
  --color-jungle-green-light:    #68bdb6;
  --color-jungle-green:          #28a197;
  --color-jungle-green-dark:     #208078;
  --color-jungle-green-darker:   #10403c;
  --color-jungle-green-darkest:  #0c302d;

  --color-neutral-darkest-5:  rgba(2, 8, 8, 0.05);
  --color-neutral-darkest-10: rgba(2, 8, 8, 0.10);
  --color-neutral-darkest-15: rgba(2, 8, 8, 0.15);
  --color-neutral-darkest-20: rgba(2, 8, 8, 0.20);
  --color-neutral-darkest-30: rgba(2, 8, 8, 0.30);
  --color-neutral-darkest-40: rgba(2, 8, 8, 0.40);
  --color-neutral-darkest-50: rgba(2, 8, 8, 0.50);
  --color-neutral-darkest-60: rgba(2, 8, 8, 0.60);
  --color-white-10: rgba(255, 255, 255, 0.10);
  --color-white-20: rgba(255, 255, 255, 0.20);

  --color-indigo:           #595CE1;
  --color-indigo-light:     #8B8DEC;
  --color-indigo-lightest:  #EEEEFC;
  --color-indigo-dark:      #3B3FB8;
  --color-navy:             #131A3A;
  --color-navy-darker:      #0A0F25;
  --color-paper:            #F7F4EE;

  --fg-1: var(--color-neutral-darkest);
  --fg-2: var(--color-neutral-dark);
  --fg-3: var(--color-neutral);
  --fg-on-accent: var(--color-white);
  --bg-1: var(--color-white);
  --bg-2: var(--color-neutral-lightest);
  --bg-3: var(--color-coral-red-lightest);
  --accent: var(--color-coral-red);
  --accent-hover: var(--color-coral-red-dark);
  --border: var(--color-neutral-darkest-15);
  --border-strong: var(--color-neutral-darkest);

  --font-heading: "Sora", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-body:    "Inter", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-weight-heading: 500;
  --font-weight-body: 400;

  --text-h1: 3rem;
  --text-h2: 2.75rem;
  --text-h3: 2rem;
  --text-h4: 1.5rem;
  --text-h5: 1.25rem;
  --text-h6: 1.125rem;
  --text-large:   1.125rem;
  --text-medium:  1rem;
  --text-regular: 0.875rem;
  --text-small:   0.75rem;
  --text-tiny:    0.625rem;

  --lh-tight: 1.1;
  --lh-snug: 1.2;
  --lh-normal: 1.3;
  --lh-relaxed: 1.4;
  --lh-loose: 1.5;
  --tracking-heading: -0.01em;

  --radius-button: 0.375rem;
  --radius-card:   0.5rem;
  --radius-image:  0.5rem;
  --radius-badge:  0.375rem;
  --radius-tag:    0.25rem;
  --radius-checkbox: 0.125rem;

  --section-px: 5%;
  --section-py: 4rem;
  --section-py-md: 6rem;
  --section-py-lg: 7rem;

  --container-xxl: 80rem;

  --reveal-dur: 700ms;
  --reveal-ease: cubic-bezier(0.22, 1, 0.36, 1);
}

@media (min-width: 992px) {
  :root {
    --text-h1: 5.25rem;
    --text-h2: 3.75rem;
    --text-h3: 3rem;
    --text-h4: 2.5rem;
    --text-h5: 2rem;
    --text-h6: 1.625rem;
    --text-large:   1.625rem;
    --text-medium:  1.25rem;
    --text-regular: 1.125rem;
    --text-small:   1rem;
    --text-tiny:    0.75rem;
  }
}

/* ---- Color schemes ---- */
.scheme-1 {
  --bg: var(--color-white);
  --fg: var(--color-neutral-darkest);
  --accent: var(--color-coral-red);
  --border: var(--color-neutral-darkest-15);
  background-color: var(--bg);
  color: var(--fg);
}
.scheme-2 {
  --bg: var(--color-coral-red-lightest);
  --fg: var(--color-neutral-darkest);
  --accent: var(--color-neutral-darkest);
  --border: var(--color-neutral-darkest-15);
  background-color: var(--bg);
  color: var(--fg);
}
.scheme-3 {
  --bg: var(--color-neutral-lightest);
  --fg: var(--color-neutral-darkest);
  --accent: var(--color-neutral-darkest);
  --border: var(--color-neutral-darkest-15);
  background-color: var(--bg);
  color: var(--fg);
}
.scheme-indigo {
  --bg: var(--color-navy-darker);
  --fg: var(--color-white);
  --accent: var(--color-coral-red);
  --border: rgba(255, 255, 255, 0.12);
  background-color: var(--bg);
  color: var(--fg);
}
.scheme-paper {
  --bg: var(--color-paper);
  --fg: var(--color-neutral-darkest);
  --accent: var(--color-coral-red);
  --border: var(--color-neutral-darkest-15);
  background-color: var(--bg);
  color: var(--fg);
}

/* ---- Semantic element styles ---- */
.elementor-widget-container h1,
.elementor-widget-container h2,
.elementor-widget-container h3,
.elementor-widget-container h4,
.elementor-widget-container h5,
.elementor-widget-container h6 {
  font-family: var(--font-heading);
  font-weight: var(--font-weight-heading);
  letter-spacing: var(--tracking-heading);
  margin: 0;
}
.elementor-widget-container h1 { font-size: var(--text-h1); line-height: var(--lh-tight); }
.elementor-widget-container h2 { font-size: var(--text-h2); line-height: var(--lh-snug); }
.elementor-widget-container h3 { font-size: var(--text-h3); line-height: var(--lh-snug); }
.elementor-widget-container h4 { font-size: var(--text-h4); line-height: var(--lh-normal); }
.elementor-widget-container h5 { font-size: var(--text-h5); line-height: var(--lh-normal); }
.elementor-widget-container h6 { font-size: var(--text-h6); line-height: var(--lh-relaxed); }
.elementor-widget-container p  { font-size: var(--text-regular); line-height: var(--lh-loose); margin: 0; font-weight: var(--font-weight-body); }
.elementor-widget-container a:not(.btn)  { color: inherit; }
.elementor-widget-container a:not(.btn):hover { opacity: 0.85; }
.elementor-widget-container hr { border: 0; border-top: 1px solid var(--border); margin: 0; }

/* ---- Layout primitives ---- */
.tw-container {
  max-width: var(--container-xxl);
  margin-inline: auto;
  padding-inline: var(--section-px);
  width: 100%;
}
.tw-section {
  padding-block: var(--section-py);
}
@media (min-width: 768px) {
  .tw-section { padding-block: var(--section-py-md); }
}
@media (min-width: 992px) {
  .tw-section { padding-block: var(--section-py-lg); }
}

/* ---- Type ---- */
.display {
  font-family: var(--font-heading);
  font-weight: 500;
  letter-spacing: -0.025em;
  line-height: 0.95;
  font-size: clamp(2.5rem, 6.5vw, 5.25rem);
}
.display-xl {
  font-family: var(--font-heading);
  font-weight: 500;
  letter-spacing: -0.025em;
  line-height: 0.95;
  font-size: clamp(2.75rem, 7vw, 6rem);
}
.eyebrow-row {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-body);
  font-size: var(--text-small);
  font-weight: 500;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--fg, var(--color-neutral-darkest));
}
.eyebrow-row::before {
  content: "";
  display: inline-block;
  width: 1.5rem;
  height: 1px;
  background: currentColor;
  opacity: 0.6;
}
.eyebrow { font-size: var(--text-regular); font-weight: 600; margin-bottom: 0.75rem; }
.text-large   { font-size: var(--text-large);   line-height: var(--lh-loose); }
.text-medium  { font-size: var(--text-medium);  line-height: var(--lh-loose); }
.text-regular { font-size: var(--text-regular); line-height: var(--lh-loose); }
.text-small   { font-size: var(--text-small);   line-height: var(--lh-loose); }
.text-tiny    { font-size: var(--text-tiny);    line-height: var(--lh-loose); }

/* ---- Buttons ---- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: calc(0.75rem + 10px) calc(1.125rem + 10px);
  border-radius: var(--radius-button);
  font-family: var(--font-body);
  font-weight: 500;
  font-size: var(--text-regular);
  line-height: 1;
  cursor: pointer;
  position: relative;
  overflow: hidden;
  isolation: isolate;
  transition: transform 240ms var(--reveal-ease, ease), box-shadow 240ms ease,
              background-color 240ms ease, border-color 240ms ease;
  border: 1px solid transparent;
  white-space: nowrap;
  text-decoration: none;
}
.btn::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(120deg, transparent 30%, rgba(255,255,255,0.28) 50%, transparent 70%);
  transform: translateX(-130%);
  transition: transform 600ms var(--reveal-ease, ease);
  pointer-events: none;
}
.btn:hover::after { transform: translateX(130%); }
.btn:hover > svg:last-child { transform: translateX(4px); }
.btn > svg:last-child { transition: transform 240ms var(--reveal-ease, ease); }
@media (prefers-reduced-motion: reduce) {
  .btn::after { display: none; }
  .btn:hover > svg:last-child { transform: none; }
}
.btn-primary {
  background: var(--color-coral-red);
  color: var(--color-white);
  border-color: var(--color-coral-red);
}
.btn-primary svg path { stroke: #FFFFFF !important; }
.btn-primary:hover {
  background: var(--color-coral-red-dark);
  border-color: var(--color-coral-red-dark);
  opacity: 1;
  transform: translateY(-2px);
  box-shadow: 0 10px 24px rgba(254,63,64,0.35);
}
.btn-primary:active { transform: translateY(0); box-shadow: 0 4px 12px rgba(254,63,64,0.3); }
.btn-secondary {
  background: transparent;
  color: var(--fg, var(--color-neutral-darkest));
  border-color: var(--border, var(--color-neutral-darkest-15));
}
.btn-secondary:hover {
  background: var(--color-neutral-darkest-5);
  opacity: 1;
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(2,8,8,0.08);
}
.scheme-indigo .btn-secondary { border-color: rgba(255,255,255,0.2); color: var(--color-white); }
.scheme-indigo .btn-secondary:hover { background: rgba(255,255,255,0.06); }
.btn-ghost { background: transparent; color: var(--fg, var(--color-neutral-darkest)); border: none; padding: 0.5rem 0; }
.btn-ghost:hover { opacity: 0.75; }
.btn-sm { padding: calc(0.5rem + 10px) calc(0.875rem + 10px); font-size: var(--text-small); }
.btn-lg { padding: calc(1rem + 10px) calc(1.5rem + 10px); font-size: var(--text-medium); }

/* ---- Borders ---- */
.surface {
  background: var(--bg, var(--color-white));
  border: 1px solid var(--border, var(--color-neutral-darkest-15));
  border-radius: var(--radius-card);
}
.divider-top    { border-top: 1px solid var(--border, var(--color-neutral-darkest-15)); }
.divider-bottom { border-bottom: 1px solid var(--border, var(--color-neutral-darkest-15)); }

/* ---- Focus ---- */
button:focus-visible, a:focus-visible, .btn:focus-visible, input:focus-visible {
  outline: 2px solid var(--color-indigo);
  outline-offset: 2px;
}

/* ---- Marquee ---- */
@keyframes marquee-x {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}
.marquee {
  display: flex;
  width: max-content;
  gap: 3rem;
  animation: marquee-x var(--marquee-dur, 40s) linear infinite;
}
.marquee-mask {
  overflow: hidden;
  mask-image: linear-gradient(to right, transparent 0, black 6%, black 94%, transparent 100%);
  -webkit-mask-image: linear-gradient(to right, transparent 0, black 6%, black 94%, transparent 100%);
}
@media (prefers-reduced-motion: reduce) { .marquee { animation: none !important; } }

/* ---- Scroll reveal ---- */
.reveal-armed [data-reveal] {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity var(--reveal-dur) var(--reveal-ease),
              transform var(--reveal-dur) var(--reveal-ease);
}
.reveal-armed [data-reveal].is-in { opacity: 1; transform: none; }
.reveal-armed [data-reveal][data-reveal-from="left"]  { transform: translateX(-28px); }
.reveal-armed [data-reveal][data-reveal-from="right"] { transform: translateX(28px); }
.reveal-armed [data-reveal][data-reveal-from="scale"] { transform: scale(0.94); }
.reveal-armed [data-reveal][data-reveal-from].is-in   { transform: none; }
.eyebrow-row::before { transition: width 600ms var(--reveal-ease); }
.reveal-armed [data-reveal] .eyebrow-row::before { width: 0; }
.reveal-armed [data-reveal].is-in .eyebrow-row::before { width: 1.5rem; }
@media (prefers-reduced-motion: reduce) { [data-reveal] { transition-duration: 1ms !important; } }

/* ---- Animations ---- */
@keyframes float-y {
  0%, 100% { transform: translateY(0); }
  50%      { transform: translateY(-6px); }
}
@media (prefers-reduced-motion: no-preference) {
  .hero-live-stack > div:nth-child(1) { animation: float-y 6s ease-in-out infinite; }
  .hero-live-stack > div:nth-child(2) { animation: float-y 6s ease-in-out infinite 1.2s; }
  .hero-live-stack > div:nth-child(3) { animation: float-y 6s ease-in-out infinite 2.4s; }
}
.partner-tile, .creds-grid > div { transition: transform 260ms var(--reveal-ease), box-shadow 260ms ease; }
.zoom-img { overflow: hidden; }
.zoom-img img { transition: transform 600ms var(--reveal-ease); }
.zoom-img:hover img { transform: scale(1.05); }

/* ---- Tag/chip ---- */
.tag {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.625rem 1rem;
  border: 1px solid var(--border, var(--color-neutral-darkest-15));
  border-radius: var(--radius-tag);
  font-size: var(--text-small);
  font-weight: 500;
  background: transparent;
  line-height: 1;
}
.tag .dot {
  display: inline-block;
  width: 0.4rem;
  height: 0.4rem;
  border-radius: 50%;
  background: var(--color-coral-red);
}

/* ---- Live dot ---- */
@keyframes pulse-dot {
  0%, 100% { box-shadow: 0 0 0 0 currentColor; opacity: 1; }
  50%      { box-shadow: 0 0 0 6px transparent; opacity: 0.5; }
}
.live-dot {
  display: inline-block;
  width: 0.5rem;
  height: 0.5rem;
  border-radius: 50%;
  background: var(--color-coral-red);
  color: rgba(254, 63, 64, 0.4);
  animation: pulse-dot 2s ease-in-out infinite;
}

/* ---- Caret blink ---- */
@keyframes caret-blink {
  0%, 50% { opacity: 1; }
  51%, 100% { opacity: 0; }
}
.caret {
  display: inline-block;
  width: 0.08em;
  height: 1em;
  background: currentColor;
  vertical-align: -0.12em;
  margin-left: 0.06em;
  animation: caret-blink 1.05s steps(1) infinite;
}

/* ---- Link grow ---- */
.link-grow {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
  padding-bottom: 0.125rem;
}
.link-grow::after {
  content: "";
  position: absolute;
  left: 0; bottom: 0;
  height: 1px;
  width: 1.5rem;
  background: currentColor;
  transition: width 240ms ease;
}
.link-grow:hover { opacity: 1; }
.link-grow:hover::after { width: 100%; }

/* ---- Card hover ---- */
.card-interactive { transition: background-color 200ms ease, border-color 200ms ease; }
.card-interactive:hover { background-color: var(--color-neutral-darkest-5); }
.scheme-indigo .card-interactive:hover { background-color: rgba(255,255,255,0.04); }
.card-interactive p:first-of-type { margin-top: 0 !important; }

/* ---- Utilities ---- */
.mono { font-family: ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas, monospace; font-feature-settings: "tnum" 1, "calt" 0; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }

/* ---- Header/nav ----
   Fixed (not sticky) so the header stays pinned even when a theme wrapper
   somewhere up the DOM sets overflow-x:hidden, which silently breaks
   position:sticky. .tw-header-spacer (emitted right after </header> in
   class-nav-widget.php) reserves the header's height so page content
   doesn't jump underneath it. */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  width: 100%;
  z-index: 100;
  background: var(--color-white);
  border-bottom: 1px solid var(--border);
  backdrop-filter: saturate(180%) blur(8px);
  -webkit-backdrop-filter: saturate(180%) blur(8px);
}
.tw-header-spacer { height: 80px; }

/* ---- Bento card ---- */
.bento-grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 1px;
  background: var(--color-neutral-darkest-15);
  border: 1px solid var(--color-neutral-darkest-15);
  border-radius: var(--radius-card);
  overflow: hidden;
}
.bento-cell {
  background: var(--color-white);
  padding: 1.75rem;
  display: flex;
  flex-direction: column;
  transition: background-color 220ms ease;
}
@media (min-width: 992px) {
  .bento-cell { padding: 2.25rem; }
}

/* ============================================================
   NAV component CSS
   ============================================================ */

/* Mobile hamburger toggle button — hidden at desktop widths */
.tw-nav-toggle {
  display: inline-flex; align-items: center; justify-content: center;
  width: 2.5rem; height: 2.5rem; flex-shrink: 0; border-radius: var(--radius-button);
  border: 1px solid var(--color-neutral-darkest-15); background: var(--color-white);
  color: var(--color-neutral-darkest); cursor: pointer; padding: 0;
}
.tw-nav-toggle svg { display: block; }

/* Mobile-only submenu expand button (chevron), injected by JS next to each
   top-level link that has children; the link itself stays a normal, clickable <a> */
.tw-submenu-toggle {
  display: none; position: absolute; right: 0; top: 50%; transform: translateY(-50%);
  width: 2.25rem; height: 2.25rem; align-items: center; justify-content: center;
  background: transparent; border: none; padding: 0; cursor: pointer; color: var(--color-neutral-darkest);
}
.tw-submenu-toggle svg { transition: transform 200ms ease; }

@media (min-width: 1200px) {
  [data-show="md"] { display: inline-flex !important; }
  .tw-nav-toggle { display: none !important; }
}

@media (max-width: 1199px) {
  .menu_bg_over {
    position: fixed; inset: 0; z-index: 89;
    background: rgba(10,15,37,0.5); opacity: 0; pointer-events: none;
    transition: opacity 250ms ease;
  }
  .tw-primary-nav.is-open .menu_bg_over { opacity: 1; pointer-events: auto; }

  .tw-submenu-toggle { display: inline-flex; }
}

/* ============================================================
   HERO component CSS
   ============================================================ */
@keyframes hero-rot {
  from { opacity: 0; transform: translateY(0.4em); }
  to   { opacity: 1; transform: none; }
}
@media (min-width: 992px) {
  .hero-grid {
    grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr) !important;
    gap: 4rem !important;
  }
}

/* ============================================================
   MANIFESTO component CSS
   ============================================================ */
@media (min-width: 992px) {
  .manifesto-grid {
    grid-template-columns: minmax(0, 5fr) minmax(0, 6fr) !important;
    gap: 5rem !important;
  }
}

/* ============================================================
   SERVICES component CSS
   ============================================================ */
.services-bento { grid-template-columns: repeat(4, 1fr) !important; }
.services-bento .bento-cell { min-height: 240px; }
/* Force uniform full/half-width cards below desktop, regardless of each
   card's own lg/md/sm span — only the >=992px track lets per-card inline
   grid-column values (driven by the repeater's span setting) take effect. */
@media (max-width: 991px) {
  .services-bento .bento-cell { grid-column: span 4 !important; }
}

.service-cell:hover .service-corner-arrow {
  background-color: var(--color-coral-red) !important;
  border-color: var(--color-coral-red) !important;
  color: var(--color-white) !important;
  transform: translate(2px, -2px) !important;
}
.service-cell:hover .service-corner-arrow svg path { stroke: #FFFFFF !important; }
.service-cell:hover .service-photo { opacity: 1 !important; }
.service-cell:hover .service-icon {
  background-color: rgba(255,255,255,0.18) !important;
  color: var(--color-white) !important;
}
.service-cell:hover .service-icon img { filter: brightness(0) invert(1) !important; }
.service-cell:hover .service-content h3 { color: var(--color-white) !important; }
.service-cell:hover .service-content p { color: rgba(255,255,255,0.82) !important; }
.service-cell:hover .service-content > div > .mono { color: rgba(255,255,255,0.7) !important; }
.service-cell:hover .service-metric-k { color: rgba(255,255,255,0.82) !important; }

@media (min-width: 768px) {
  .services-bento { grid-template-columns: repeat(8, 1fr) !important; }
  .services-bento .bento-cell { min-height: 260px; }
}
@media (min-width: 992px) {
  /* Track count only — each card's own span (lg/md/sm) comes from its inline
     grid-column style, driven by the repeater's per-card setting, so the
     layout stays correct no matter how many cards are added/removed/reordered. */
  .services-bento { grid-template-columns: repeat(12, 1fr) !important; }
  .services-bento .service-cell-lg { min-height: 320px; }
  .services-header { grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr) !important; gap: 4rem !important; }
}

/* ============================================================
   LANDSCAPE component CSS
   ============================================================ */
.shifts-grid { grid-template-columns: 1fr; }
@media (min-width: 768px) {
  .shifts-grid { grid-template-columns: 1fr 1fr !important; }
}
@media (min-width: 1080px) {
  .shifts-grid { grid-template-columns: repeat(4, 1fr) !important; }
}
@media (min-width: 768px) {
  .serp-grid { grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr) !important; gap: 2rem !important; }
}
@media (min-width: 992px) {
  .landscape-header { grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr) !important; gap: 4rem !important; }
}

/* ============================================================
   PROCESS component CSS
   ============================================================ */
.process-flow {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
}
.process-rail { display: grid; gap: 0; align-content: start; }
.process-tab {
  position: relative;
  display: flex;
  align-items: center;
  gap: 1rem;
  width: 100%;
  text-align: left;
  background: transparent;
  border: none;
  border-top: 1px solid var(--color-neutral-darkest-15);
  padding: 1.25rem 0.5rem 1.25rem 0;
  cursor: pointer;
  font: inherit;
  color: var(--color-neutral-darkest);
  transition: padding-left 240ms ease, opacity 240ms ease;
}
.process-rail .process-tab:last-child { border-bottom: 1px solid var(--color-neutral-darkest-15); }
.process-tab-num {
  font-family: var(--font-heading);
  font-weight: 500;
  font-size: 1rem;
  color: var(--color-neutral-darkest-60);
  width: 2rem;
  flex-shrink: 0;
  transition: color 240ms ease;
}
.process-tab-text { display: flex; flex-direction: column; gap: 0.15rem; flex: 1; min-width: 0; }
.process-tab-title { font-family: var(--font-heading); font-weight: 500; font-size: 1.15rem; letter-spacing: -0.01em; transition: color 240ms ease; }
.process-tab-duration { font-size: 0.7rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--color-neutral-darkest-60); }
.process-tab-bar {
  width: 1.5rem; height: 1px; background: var(--color-neutral-darkest-15);
  flex-shrink: 0; transition: width 240ms ease, background-color 240ms ease;
}
.process-tab:not(.is-active) { opacity: 0.6; }
.process-tab.is-active { padding-left: 1rem; opacity: 1; }
.process-tab.is-active .process-tab-num { color: var(--color-coral-red); }
.process-tab.is-active .process-tab-bar { width: 2.5rem; background: var(--color-coral-red); }

.process-panel {
  position: relative;
  overflow: hidden;
  background: var(--color-white);
  border: 1px solid var(--color-neutral-darkest-15);
  border-radius: var(--radius-card);
  padding: 2.5rem;
  min-height: 22rem;
  animation: panelFade 420ms var(--reveal-ease, ease) both;
}
@keyframes panelFade {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: none; }
}
.process-watermark {
  position: absolute;
  right: -0.5rem; top: -2.5rem;
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: clamp(9rem, 20vw, 16rem);
  line-height: 1;
  color: var(--color-coral-red);
  opacity: 0.06;
  letter-spacing: -0.04em;
  pointer-events: none;
  z-index: 0;
}
@media (min-width: 992px) {
  .process-flow { grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.4fr) !important; gap: 3rem !important; align-items: start; }
  .process-header { grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr) !important; gap: 4rem !important; }
}

/* Process panel: hide inactive panels */
.process-panel-wrap .process-panel { display: none; }
.process-panel-wrap .process-panel.is-active { display: block; }

/* ============================================================
   PROOF component CSS
   ============================================================ */
.proof-card:hover { background: rgba(255,255,255,0.1) !important; border-color: rgba(255,255,255,0.2) !important; transform: translateY(-3px); }
@media (min-width: 768px) {
  .stats-grid { grid-template-columns: repeat(4, 1fr) !important; }
  .outcome-row {
    display: grid !important;
    grid-template-columns: minmax(0, 1.2fr) minmax(0, 0.9fr) minmax(0, 1.2fr) !important;
    gap: 2.5rem !important;
    align-items: center !important;
  }
}
@media (min-width: 992px) {
  .proof-header { grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr) !important; gap: 4rem !important; }
}

/* ============================================================
   ECOMMERCE component CSS
   ============================================================ */
@media (min-width: 992px) {
  .ecom-grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) !important; gap: 4rem !important; }
}

/* ============================================================
   LOCATIONS component CSS
   ============================================================ */
.locations-grid { grid-template-columns: 1fr; }
.location-card:hover {
  transform: translateY(-6px) !important;
  box-shadow: 0 2px 4px rgba(2,8,8,0.06), 0 28px 56px rgba(2,8,8,0.18);
  border-color: transparent;
}
.location-card:hover .location-arrow {
  background-color: var(--color-coral-red) !important;
  border-color: var(--color-coral-red) !important;
  color: var(--color-white) !important;
}
.location-card:hover .location-arrow svg path { stroke: #FFFFFF !important; }
.location-card:hover .location-img { transform: scale(1.05); }
@media (min-width: 640px) {
  .locations-grid { grid-template-columns: 1fr 1fr !important; }
}
@media (min-width: 992px) {
  .locations-grid { grid-template-columns: repeat(4, 1fr) !important; }
  .loc-header { grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr) !important; gap: 4rem !important; }
}

/* ============================================================
   CREDENTIALS component CSS
   ============================================================ */
@media (min-width: 640px) { .creds-grid { grid-template-columns: 1fr 1fr !important; gap: 2.5rem 2rem !important; } }
@media (min-width: 992px) { .creds-grid { grid-template-columns: repeat(4, 1fr) !important; } }

/* ============================================================
   PARTNERS component CSS
   ============================================================ */
.partner-tile:hover { transform: translateY(-3px); box-shadow: 0 16px 36px rgba(0,0,0,0.3); }
@media (min-width: 640px) { .partners-grid { grid-template-columns: repeat(3, 1fr) !important; } }
@media (min-width: 992px) {
  .partners-grid { grid-template-columns: repeat(4, 1fr) !important; }
  .partners-header { grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr) !important; gap: 4rem !important; }
}

/* ============================================================
   WORK component CSS
   ============================================================ */
.work-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 2px 4px rgba(2,8,8,0.06), 0 28px 56px rgba(2,8,8,0.16);
  border-color: transparent;
}
.work-card:hover .work-overlay { opacity: 1; }
.work-card:hover .work-arrow {
  background-color: var(--color-coral-red) !important;
  border-color: var(--color-coral-red) !important;
  color: var(--color-white) !important;
  transform: translate(2px, -2px);
}
.work-card:hover .work-arrow svg path { stroke: #FFFFFF !important; }
@media (min-width: 768px) {
  .work-grid { grid-template-columns: repeat(3, 1fr) !important; }
  .work-header { grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr) !important; gap: 4rem !important; }
}

/* ============================================================
   FAQ component CSS
   ============================================================ */
@media (min-width: 992px) {
  .faq-grid { grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.6fr) !important; gap: 5rem !important; }
}
.qa-body {
  max-height: 0;
  overflow: hidden;
  transition: max-height 320ms ease;
}
.qa-row.is-open .qa-body { max-height: 20rem; }
.qa-toggle {
  width: 2rem; height: 2rem;
  border-radius: 999px;
  border: 1px solid var(--color-neutral-darkest-15);
  display: inline-flex; align-items: center; justify-content: center;
  transition: transform 220ms ease, background-color 200ms;
  background: transparent;
  color: var(--color-neutral-darkest);
  flex-shrink: 0;
}
.qa-row.is-open .qa-toggle {
  background: var(--color-neutral-darkest);
  color: var(--color-white);
  transform: rotate(45deg);
}
.qa-row.is-faq-hidden { display: none; }

/* ============================================================
   CTA component CSS
   ============================================================ */
@media (min-width: 992px) {
  .cta-grid { grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr) !important; gap: 4rem !important; align-items: center !important; }
}

/* ============================================================
   FOOTER component CSS
   ============================================================ */
.footer-link:hover { color: var(--color-coral-red) !important; }
.foot_nav { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.625rem; }
.foot_nav li a { color: rgba(255,255,255,0.78) !important; text-decoration: none; font-size: var(--text-regular); transition: color 180ms ease; }
.foot_nav li a:hover { color: var(--color-coral-red) !important; }
.policy_nav { list-style: none; margin: 0; padding: 0; display: flex; gap: 1.5rem; flex-wrap: wrap; }
.policy_nav a { color: inherit; text-decoration: none; }
@media (min-width: 768px) {
  .footer-mid { grid-template-columns: repeat(2, 1fr) !important; gap: 3rem 2rem !important; }
  .partnership-row { grid-template-columns: minmax(0, auto) minmax(0, 1fr) !important; gap: 3.5rem !important; align-items: center !important; }
  .partnership-blurb { border-left: 1px solid rgba(255,255,255,0.12); padding-left: 3.5rem; }
}
@media (min-width: 992px) {
  .footer-top { grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr) !important; gap: 5rem !important; align-items: end !important; }
  .footer-mid { grid-template-columns: 1.4fr 1fr 1fr 1.3fr !important; gap: 3rem 2.5rem !important; }
}

/* ============================================================
   Theme isolation — prevents theme CSS from overriding widgets
   ============================================================ */
[class*="elementor-widget-techwyse_"] > .elementor-widget-container {
  font-family: var(--font-body) !important;
  color: var(--color-neutral-darkest) !important;
  line-height: 1.5;
  margin: 0;
  padding: 0;
}
[class*="elementor-widget-techwyse_"] .elementor-widget-container * {
  box-sizing: border-box;
}
[class*="elementor-widget-techwyse_"] .elementor-widget-container :is(h1,h2,h3,h4,h5,h6,p,figure,blockquote,ul,ol) {
  margin: 0;
}
[class*="elementor-widget-techwyse_"] .elementor-widget-container button,
[class*="elementor-widget-techwyse_"] .elementor-widget-container input,
[class*="elementor-widget-techwyse_"] .elementor-widget-container textarea {
  font-family: inherit;
}
/* Re-assert img sizing against theme overrides */
[class*="elementor-widget-techwyse_"] .elementor-widget-container img[style*="height:100%"] { height: 100% !important; }
[class*="elementor-widget-techwyse_"] .elementor-widget-container img[style*="object-fit:cover"] { object-fit: cover !important; }
[class*="elementor-widget-techwyse_"] .elementor-widget-container img[style*="object-fit: cover"] { object-fit: cover !important; }
/* Re-assert hero typography — theme !important p rules must not shrink or fatten the subtext */
.elementor-widget-container .tw-hero-subtext {
  font-family: var(--font-body) !important;
  font-size: var(--text-large) !important;
  line-height: 1.45 !important;
  font-weight: 400 !important;
  color: var(--color-neutral-darker) !important;
  max-width: 44ch;
}
/* Re-assert display-xl heading size and weight against theme h1 overrides */
[class*="elementor-widget-techwyse_"] .elementor-widget-container .display-xl {
  font-family: var(--font-heading) !important;
  font-size: clamp(2.75rem, 7vw, 6rem) !important;
  font-weight: 500 !important;
  letter-spacing: -0.025em !important;
  line-height: calc(0.95em + 5px) !important;
}
/* Remove Elementor column default inner padding for sections that contain TechWyse widgets.
   Without this, the column adds ~10px per side on top of .tw-container's own 5% gutter,
   making content visibly narrower than final.html at the same screen width. */
.elementor-column:has([class*="elementor-widget-techwyse_"]) > .elementor-element-populated {
  padding: 0 !important;
}
/* Re-assert button colors — btn-primary must be white text on coral, not inheriting dark theme color */
[class*="elementor-widget-techwyse_"] .elementor-widget-container .btn-primary { color: #ffffff !important; }
[class*="elementor-widget-techwyse_"] .elementor-widget-container .btn-primary:hover {
  background: var(--color-coral-red-dark) !important;
  border-color: var(--color-coral-red-dark) !important;
  color: #ffffff !important;
  opacity: 1 !important;
  transform: translateY(-2px) !important;
  box-shadow: 0 10px 24px rgba(254,63,64,0.35) !important;
}
[class*="elementor-widget-techwyse_"] .elementor-widget-container .btn-primary:active {
  transform: translateY(0) !important;
  box-shadow: 0 4px 12px rgba(254,63,64,0.3) !important;
}
[class*="elementor-widget-techwyse_"] .elementor-widget-container .btn-secondary:hover {
  background: var(--color-neutral-darkest-5) !important;
  opacity: 1 !important;
  transform: translateY(-2px) !important;
  box-shadow: 0 8px 20px rgba(2,8,8,0.08) !important;
}
[class*="elementor-widget-techwyse_"] .elementor-widget-container .scheme-indigo .btn-secondary:hover {
  background: rgba(255,255,255,0.06) !important;
}
[class*="elementor-widget-techwyse_"] .elementor-widget-container .btn-ghost:hover { opacity: 0.75 !important; }
/* Re-assert manifesto text sizes — theme p/paragraph rules must not override .text-large/.text-medium */
[class*="elementor-widget-techwyse_"] .elementor-widget-container .text-large {
  font-size: var(--text-large) !important;
  line-height: var(--lh-loose) !important;
}
[class*="elementor-widget-techwyse_"] .elementor-widget-container .text-medium {
  font-size: var(--text-medium) !important;
  line-height: var(--lh-loose) !important;
}
/* Proof section — tighten outcomes-grid gap and strip any theme blockquote background */
[class*="elementor-widget-techwyse_"] .elementor-widget-container .outcomes-grid {
  gap: 0.75rem !important;
}
[class*="elementor-widget-techwyse_"] .elementor-widget-container .proof-card {
  margin: 0 !important;
}
[class*="elementor-widget-techwyse_"] .elementor-widget-container .outcome-row blockquote {
  background: none !important;
  background-color: transparent !important;
  border-left: 2px solid var(--color-coral-red) !important;
}
/* Partners — enforce tile dimensions against theme div overrides */
[class*="elementor-widget-techwyse_"] .elementor-widget-container .partner-tile {
  padding: 1.5rem !important;
}
[class*="elementor-widget-techwyse_"] .elementor-widget-container .partner-tile img {
  width: auto !important;
  max-width: 100% !important;
  object-fit: contain !important;
}
/* FAQ — no hover/focus background or pseudo-elements on question toggle buttons */
[class*="elementor-widget-techwyse_"] .elementor-widget-container .qa-row button:hover,
[class*="elementor-widget-techwyse_"] .elementor-widget-container .qa-row button:focus {
  background: none !important;
  background-color: transparent !important;
  background-image: none !important;
  box-shadow: none !important;
  outline: none !important;
  transform: none !important;
}
[class*="elementor-widget-techwyse_"] .elementor-widget-container .qa-row button::before,
[class*="elementor-widget-techwyse_"] .elementor-widget-container .qa-row button::after,
[class*="elementor-widget-techwyse_"] .elementor-widget-container .qa-row button:hover::before,
[class*="elementor-widget-techwyse_"] .elementor-widget-container .qa-row button:hover::after {
  display: none !important;
  content: none !important;
  background: none !important;
}
[class*="elementor-widget-techwyse_"] .elementor-widget-container .faq-grid .btn-secondary,
[class*="elementor-widget-techwyse_"] .elementor-widget-container .kit-faq-grid .btn-secondary {
  color: var(--color-neutral-darkest) !important;
  border-color: var(--color-neutral-darkest-15) !important;
}
[class*="elementor-widget-techwyse_"] .elementor-widget-container .faq-grid .btn-secondary:hover,
[class*="elementor-widget-techwyse_"] .elementor-widget-container .kit-faq-grid .btn-secondary:hover {
  color: var(--color-neutral-darkest) !important;
}
/* Suppress theme-injected ::before on .btn — only ::after shine sweep is part of the design */
[class*="elementor-widget-techwyse_"] .elementor-widget-container .btn::before {
  display: none !important;
  content: none !important;
  background: none !important;
}
/* Process tab — title turns black on hover (not inheriting muted colour) */
[class*="elementor-widget-techwyse_"] .elementor-widget-container .process-tab:hover .process-tab-title {
  color: var(--color-neutral-darkest) !important;
}
/* Phone number button — no lift, no background, no shine sweep */
[class*="elementor-widget-techwyse_"] .elementor-widget-container a[href^="tel:"].btn:hover,
[class*="elementor-widget-techwyse_"] .elementor-widget-container a[href^="tel:"].btn:focus {
  transform: none !important;
  box-shadow: none !important;
  background: transparent !important;
  background-color: transparent !important;
  opacity: 1 !important;
}
[class*="elementor-widget-techwyse_"] .elementor-widget-container a[href^="tel:"].btn::after {
  display: none !important;
  content: none !important;
}
/* Buttons — ensure text+icon are centred both axes against theme overrides */
[class*="elementor-widget-techwyse_"] .elementor-widget-container .btn {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  line-height: 1 !important;
}
/* Footer heading — force white on dark background */
[class*="elementor-widget-techwyse_"] .elementor-widget-container footer h2 {
  color: var(--color-white) !important;
}
/* Newsletter form — full reset so WordPress theme never overrides the compact design */
[class*="elementor-widget-techwyse_"] .elementor-widget-container .tw-newsletter-form {
  display: flex !important;
  align-items: center !important;
  gap: 0.5rem !important;
  padding: 0.4rem 0.4rem 0.4rem 1rem !important;
  background: rgba(255,255,255,0.06) !important;
  border: 1px solid rgba(255,255,255,0.15) !important;
  border-radius: var(--radius-card) !important;
  width: 100% !important;
  max-width: 30rem !important;
  box-sizing: border-box !important;
}
[class*="elementor-widget-techwyse_"] .elementor-widget-container .tw-newsletter-form input[type="email"] {
  flex: 1 !important;
  background: transparent !important;
  border: none !important;
  outline: none !important;
  box-shadow: none !important;
  -webkit-appearance: none !important;
  appearance: none !important;
  color: var(--color-white) !important;
  font-family: inherit !important;
  font-size: var(--text-regular) !important;
  padding: 0.5rem 0 !important;
  margin: 0 !important;
  min-width: 0 !important;
  min-height: 0 !important;
  height: auto !important;
  line-height: 1.4 !important;
  border-radius: 0 !important;
  width: auto !important;
}
[class*="elementor-widget-techwyse_"] .elementor-widget-container .tw-newsletter-form button[type="submit"] {
  padding: 0.6rem 1rem !important;
  min-height: 0 !important;
  height: auto !important;
  flex-shrink: 0 !important;
}
/* Newsletter — Elementor (Pro) Form override, styled to match the static form above */
[class*="elementor-widget-techwyse_"] .elementor-widget-container .tw-newsletter-elementor-form .elementor-form {
  width: 100% !important;
  margin: 0 !important;
}
[class*="elementor-widget-techwyse_"] .elementor-widget-container .tw-newsletter-elementor-form .elementor-form-fields-wrapper {
  display: flex !important;
  align-items: center !important;
  flex-wrap: nowrap !important;
  gap: 0.5rem !important;
  padding: 0.4rem 0.4rem 0.4rem 1rem !important;
  background: rgba(255,255,255,0.06) !important;
  border: 1px solid rgba(255,255,255,0.15) !important;
  border-radius: var(--radius-card) !important;
  box-sizing: border-box !important;
  row-gap: 0 !important;
}
[class*="elementor-widget-techwyse_"] .elementor-widget-container .tw-newsletter-elementor-form .elementor-field-group {
  margin: 0 !important;
  padding: 0 !important;
  flex: 1 1 auto !important;
  min-width: 0 !important;
  width: auto !important;
}
[class*="elementor-widget-techwyse_"] .elementor-widget-container .tw-newsletter-elementor-form .elementor-field-group.e-form__buttons,
[class*="elementor-widget-techwyse_"] .elementor-widget-container .tw-newsletter-elementor-form .elementor-field-type-submit {
  flex: 0 0 auto !important;
  width: auto !important;
}
[class*="elementor-widget-techwyse_"] .elementor-widget-container .tw-newsletter-elementor-form .elementor-field-label {
  display: none !important;
}
[class*="elementor-widget-techwyse_"] .elementor-widget-container .tw-newsletter-elementor-form .elementor-field {
  background: transparent !important;
  border: none !important;
  outline: none !important;
  box-shadow: none !important;
  -webkit-appearance: none !important;
  appearance: none !important;
  color: var(--color-white) !important;
  font-family: inherit !important;
  font-size: var(--text-regular) !important;
  padding: 0.5rem 0 !important;
  margin: 0 !important;
  min-width: 0 !important;
  min-height: 0 !important;
  height: auto !important;
  line-height: 1.4 !important;
  border-radius: 0 !important;
  width: 100% !important;
}
[class*="elementor-widget-techwyse_"] .elementor-widget-container .tw-newsletter-elementor-form .elementor-field::placeholder {
  color: rgba(255,255,255,0.5) !important;
}
[class*="elementor-widget-techwyse_"] .elementor-widget-container .tw-newsletter-elementor-form .elementor-button {
  background: var(--color-coral-red) !important;
  border: none !important;
  border-radius: var(--radius-button) !important;
  color: var(--color-white) !important;
  font-family: inherit !important;
  font-weight: 500 !important;
  font-size: 0.85rem !important;
  padding: 0.6rem 1rem !important;
  min-height: 0 !important;
  height: auto !important;
  white-space: nowrap !important;
  fill: var(--color-white) !important;
}
[class*="elementor-widget-techwyse_"] .elementor-widget-container .tw-newsletter-elementor-form .elementor-message,
[class*="elementor-widget-techwyse_"] .elementor-widget-container .tw-newsletter-elementor-form .elementor-message-danger,
[class*="elementor-widget-techwyse_"] .elementor-widget-container .tw-newsletter-elementor-form .elementor-message-success {
  color: rgba(255,255,255,0.75) !important;
  font-size: 0.7rem !important;
  margin-top: 0.5rem !important;
}
/* Process tabs — no hover/focus background or pseudo-element decoration (theme adds both) */
[class*="elementor-widget-techwyse_"] .elementor-widget-container .process-tab:hover,
[class*="elementor-widget-techwyse_"] .elementor-widget-container .process-tab:focus {
  background: none !important;
  background-color: transparent !important;
  background-image: none !important;
  box-shadow: none !important;
  outline: none !important;
}
[class*="elementor-widget-techwyse_"] .elementor-widget-container .process-tab::before,
[class*="elementor-widget-techwyse_"] .elementor-widget-container .process-tab::after,
[class*="elementor-widget-techwyse_"] .elementor-widget-container .process-tab:hover::before,
[class*="elementor-widget-techwyse_"] .elementor-widget-container .process-tab:hover::after {
  display: none !important;
  content: none !important;
  background: none !important;
}
/* Blockquote — remove any theme border-radius */
[class*="elementor-widget-techwyse_"] .elementor-widget-container blockquote {
  border-radius: 0 !important;
}
/* Process tab — remove theme-injected border-radius on <button> */
[class*="elementor-widget-techwyse_"] .elementor-widget-container button.process-tab {
  border-radius: 0 !important;
}
/* ============================================================
   Viewport < 1600px — scale down large display headings
   and proof-section counters that hit their clamp() ceiling
   ============================================================ */
@media (max-width: 1599px) {
  :root {
    --text-h1: 4rem;
    --text-h2: 3rem;
    --text-h3: 2.5rem;
    --text-h4: 2rem;
    --text-h5: 1.75rem;
    --text-h6: 1.375rem;
    --text-large: 1.25rem;
    --text-medium: 1rem;
    --text-regular: 0.9rem;
    --text-small: 0.8125rem;
  }
  .display-xl { font-size: clamp(2.5rem, 5vw, 4rem) !important; }
  .display    { font-size: clamp(2rem, 4.5vw, 3.5rem) !important; }
  /* Proof section counters */
  [class*="elementor-widget-techwyse_"] .elementor-widget-container .stats-grid .mono[style*="clamp"] {
    font-size: clamp(2rem, 4vw, 3rem) !important;
  }
  /* FAQ question button — reduce from clamp max of 1.5rem */
  [class*="elementor-widget-techwyse_"] .elementor-widget-container .qa-row button span[style*="font-size"] {
    font-size: 1.1rem !important;
  }
  /* FAQ question button — reduce top/bottom padding */
  [class*="elementor-widget-techwyse_"] .elementor-widget-container .qa-row button {
    padding-top: 1.125rem !important;
    padding-bottom: 1.125rem !important;
  }
  /* Every section — tighter top/bottom padding */
  .tw-section { padding-top: 50px !important; padding-bottom: 50px !important; }

  /* Numlist number — reduced size, gap tightened to match */
  .kit-numlist-num { font-size: 1.75rem !important; }
  .kit-numlist { gap: 1.5rem 3rem !important; }

  /* Services bento metric values ("1 dashboard", "Weekly") — smaller */
  .bento-cell .mono { font-size: 1.25rem !important; }

  /* Services bento cells — tighter padding */
  .bento-cell { padding: 1.5rem !important; }

  /* Landscape mock-SERP card — tighter padding */
  .landscape-serp-card { padding: 1rem !important; }

  /* Buttons — padding reduction (font-size already shrinks via --text-* tokens above) */
  .btn    { padding: 0.625rem 0.875rem !important; }
  .btn-sm { padding: 0.5rem 0.6875rem !important; }
  .btn-lg { padding: 0.75rem 1.125rem !important; }

  /* Headings with fixed/clamp inline font-size that bypass the --text-h2/h3 tokens */
  .footer-top h2 { font-size: clamp(1.75rem, 3.5vw, 2.5rem) !important; }
  .process-panel h3 { font-size: clamp(1.4rem, 2.4vw, 2rem) !important; }
  .shifts-grid h3 { font-size: 1.15rem !important; }
  .creds-big { font-size: 1.625rem !important; }

  /* Final CTA — tighter spacing below the heading and the subtext paragraph */
  #contact .cta-grid h2 + p { margin-top: 0.75rem !important; }
  #contact .cta-grid h2 + p + div { margin-top: 1.25rem !important; }
}

/* "Let's build something real." final CTA heading — larger on very wide viewports */
@media (min-width: 1700px) {
  #contact h2 { font-size: 84px !important; }
}

/* ============================================================
   Viewport < 1200px — buttons, headings, hero, manifesto
   ============================================================ */
@media (max-width: 1199px) {
  /* Heading + section-padding token scale */
  :root {
    --text-h1: 2.5rem;
    --text-h2: 2rem;
    --text-h3: 1.75rem;
    --section-py:    1.6rem;   /* 4rem × 0.4 — 60% reduction */
    --section-py-md: 2.4rem;   /* 6rem × 0.4 */
    --section-py-lg: 2.8rem;   /* 7rem × 0.4 */
  }

  /* Main section top/bottom spacing — reduced cap */
  .tw-section { padding-block: 2rem !important; }

  /* Hero grid — tighter gap */
  .hero-grid { gap: 2rem !important; }

  /* Services bento cell description paragraph — smaller */
  .bento-cell p { font-size: 0.9rem !important; }

  /* Services help note ("Not sure where to start?...") — smaller */
  .services-help-note { font-size: 0.9rem !important; }

  /* Display classes — must match isolation-block specificity to beat !important */
  [class*="elementor-widget-techwyse_"] .elementor-widget-container .display-xl {
    font-size: clamp(1.5rem, 3vw, 2.25rem) !important;
  }
  [class*="elementor-widget-techwyse_"] .elementor-widget-container .display {
    font-size: clamp(1.5rem, 3vw, 2.25rem) !important;
  }

  /* Hero subtext */
  [class*="elementor-widget-techwyse_"] .elementor-widget-container .tw-hero-subtext {
    font-size: 1rem !important;
  }

  /* Hero section — tighter top/bottom padding */
  #tw-hero .tw-container { padding-top: 40px !important; padding-bottom: 40px !important; }

  /* Marquee — tighter spacing above the scrolling row */
  .marquee-mask { margin-top: 24px !important; }

  /* Buttons — ~50% reduction in padding + font-size */
  .btn    { font-size: 0.875rem !important; padding: 0.5rem 0.75rem !important; }
  .btn-sm { font-size: 0.75rem  !important; padding: 0.375rem 0.625rem !important; }
  .btn-lg { font-size: 0.875rem !important; padding: 0.625rem 1rem !important; }

  /* Manifesto ("A focused agency") — collapse grid, smaller paragraphs */
  .manifesto-grid {
    grid-template-columns: minmax(0, 1fr) !important;
    gap: 2rem !important;
  }
  [class*="elementor-widget-techwyse_"] .elementor-widget-container .manifesto-grid h2 {
    width: auto !important;
    max-width: 100% !important;
  }
  [class*="elementor-widget-techwyse_"] .elementor-widget-container .manifesto-grid .text-large {
    font-size: 1rem !important;
  }
  [class*="elementor-widget-techwyse_"] .elementor-widget-container .manifesto-grid .text-medium {
    font-size: 0.875rem !important;
  }
  [class*="elementor-widget-techwyse_"] .elementor-widget-container .manifesto-grid p {
    max-width: 100% !important;
  }

  /* Collapse all two-column section title headers to single column */
  .services-header,
  .landscape-header,
  .process-header,
  .proof-header,
  .partners-header,
  .loc-header,
  .work-header,
  .faq-grid {
    grid-template-columns: minmax(0, 1fr) !important;
    gap: 1.5rem !important;
  }

  /* Reduce all section header margin-bottom */
  [class*="elementor-widget-techwyse_"] .elementor-widget-container .services-header,
  [class*="elementor-widget-techwyse_"] .elementor-widget-container .landscape-header,
  [class*="elementor-widget-techwyse_"] .elementor-widget-container .process-header,
  [class*="elementor-widget-techwyse_"] .elementor-widget-container .proof-header,
  [class*="elementor-widget-techwyse_"] .elementor-widget-container .partners-header,
  [class*="elementor-widget-techwyse_"] .elementor-widget-container .loc-header,
  [class*="elementor-widget-techwyse_"] .elementor-widget-container .work-header {
    margin-bottom: 2rem !important;
  }

  /* Full-width h2 and p inside all section headers */
  [class*="elementor-widget-techwyse_"] .elementor-widget-container [class$="-header"] h2,
  [class*="elementor-widget-techwyse_"] .elementor-widget-container .faq-grid h2 {
    max-width: 100% !important;
    width: auto !important;
  }
  [class*="elementor-widget-techwyse_"] .elementor-widget-container [class$="-header"] p,
  [class*="elementor-widget-techwyse_"] .elementor-widget-container .faq-grid p:not(.qa-body p) {
    max-width: 100% !important;
    width: auto !important;
    height: auto !important;
    font-size: 1rem !important;
  }

  /* Remove fixed heights / widths that break stacked layout */
  [class*="elementor-widget-techwyse_"] .elementor-widget-container .process-header p {
    height: auto !important;
  }
  [class*="elementor-widget-techwyse_"] .elementor-widget-container .landscape-header [style*="113px"] {
    padding-bottom: 0 !important;
  }

  /* services-header p — margin-bottom cap */
  [class*="elementor-widget-techwyse_"] .elementor-widget-container .services-header p {
    margin-bottom: 15px !important;
  }

  /* landscape-header subtext div — full width (content is a div, not a p) */
  [class*="elementor-widget-techwyse_"] .elementor-widget-container .landscape-header > div[style*="max-width"] {
    max-width: 100% !important;
    width: auto !important;
    height: auto !important;
    padding-bottom: 0 !important;
  }

  /* Proof card — reduce padding */
  [class*="elementor-widget-techwyse_"] .elementor-widget-container .proof-card {
    padding: 1rem !important;
  }

  /* Reduce box margin-bottom from 4rem → 2rem */
  [class*="elementor-widget-techwyse_"] .elementor-widget-container .outcomes-grid {
    margin-top: 2rem !important;
  }
  [class*="elementor-widget-techwyse_"] .elementor-widget-container .stats-grid {
    gap: 1.5rem !important;
  }

  /* Hero stats — reduce +74 / 4 / 100% counter font size */
  [class*="elementor-widget-techwyse_"] .elementor-widget-container #tw-hero [style*="4.2vw"] {
    font-size: clamp(1.25rem, 3vw, 2rem) !important;
  }

  /* Landscape — reduce spacing above shifts grid (SERP mock margin-bottom) */
  [class*="elementor-widget-techwyse_"] .elementor-widget-container #landscape [style*="margin-bottom:4rem"] {
    margin-bottom: 2rem !important;
  }

  /* Mono utility — reduce at this breakpoint too */
  [class*="elementor-widget-techwyse_"] .elementor-widget-container .mono {
    font-size: 0.875rem !important;
  }

  /* services-header — tighter margin-bottom */
  [class*="elementor-widget-techwyse_"] .elementor-widget-container .services-header {
    margin-bottom: 1.25rem !important;
  }

  /* FAQ question buttons — reduce top/bottom padding */
  [class*="elementor-widget-techwyse_"] .elementor-widget-container .qa-row button {
    padding-top: 1rem !important;
    padding-bottom: 1rem !important;
  }

  /* Footer-top — collapse to single column, centre-align content */
  .footer-top {
    grid-template-columns: minmax(0, 1fr) !important;
    gap: 2rem !important;
  }
  [class*="elementor-widget-techwyse_"] .elementor-widget-container .footer-top h2 {
    max-width: 100% !important;
    width: auto !important;
    text-align: center !important;
    font-size: clamp(1.25rem, 3.5vw, 1.875rem) !important;
  }
  [class*="elementor-widget-techwyse_"] .elementor-widget-container .footer-top h2 br {
    display: none !important;
  }
  [class*="elementor-widget-techwyse_"] .elementor-widget-container .footer-top p {
    max-width: 100% !important;
    width: auto !important;
    text-align: center !important;
    font-size: 0.9rem !important;
  }
  [class*="elementor-widget-techwyse_"] .elementor-widget-container .footer-top > div {
    align-items: center !important;
  }

  /* services-header paragraph — remove bottom padding when revealed */
  [class*="elementor-widget-techwyse_"] .elementor-widget-container .services-header p.is-in {
    padding-bottom: 0 !important;
  }

  /* Manifesto (#about) — cap the revealed div top margin */
  #about .tw-container > div.is-in {
    margin-top: 20px !important;
  }

  /* Credentials — smaller big-text (Since 2001, 125+ specialists, Accreditations, Contracts) */
  .creds-big { font-size: 1.5rem !important; }
}

/* ============================================================
   Viewport < 1024px — hero stack, marquee, ecom, work, FAQ, CTA
   ============================================================ */
@media (max-width: 1023px) {
  /* Hero — collapse to single column, centre live-stack, fix inline margin */
  .hero-grid {
    grid-template-columns: minmax(0, 1fr) !important;
    margin-left: 0 !important;
    margin-top: 15px !important;
    margin-bottom: 15px !important;
  }
  [class*="elementor-widget-techwyse_"] .elementor-widget-container .hero-live-stack {
    justify-self: center !important;
    max-width: 100% !important;
  }
  [class*="elementor-widget-techwyse_"] .elementor-widget-container .tw-hero-subtext {
    max-width: 100% !important;
  }
  [class*="elementor-widget-techwyse_"] .elementor-widget-container h1.display-xl {
    max-width: 100% !important;
  }

  /* Marquee — smaller scrolling text (inline style override) */
  [class*="elementor-widget-techwyse_"] .elementor-widget-container .marquee span[style*="font-size"] {
    font-size: 1rem !important;
  }

  /* Mono utility — reduce across all uses */
  [class*="elementor-widget-techwyse_"] .elementor-widget-container .mono {
    font-size: 0.875rem !important;
  }

  /* Ecommerce — collapse grid, full-width text */
  .ecom-grid {
    grid-template-columns: minmax(0, 1fr) !important;
  }
  [class*="elementor-widget-techwyse_"] .elementor-widget-container .ecom-grid h2,
  [class*="elementor-widget-techwyse_"] .elementor-widget-container .ecom-grid p {
    max-width: 100% !important;
    width: auto !important;
  }

  /* Work — collapse 3-column grid to 1 column */
  .work-grid {
    grid-template-columns: minmax(0, 1fr) !important;
  }

  /* FAQ — reduce question button padding */
  [class*="elementor-widget-techwyse_"] .elementor-widget-container .qa-row button {
    padding-top: 1rem !important;
    padding-bottom: 1rem !important;
  }

  /* CTA — full-width heading + paragraph, hide decorative <br>, reduce gap */
  .cta-grid { gap: 30px !important; }
  [class*="elementor-widget-techwyse_"] .elementor-widget-container .cta-grid h2,
  [class*="elementor-widget-techwyse_"] .elementor-widget-container .cta-grid p {
    max-width: 100% !important;
    width: auto !important;
  }
  [class*="elementor-widget-techwyse_"] .elementor-widget-container .cta-grid h2 br {
    display: none !important;
  }

  /* CTA left-column inner divs — reduce top margin (buttons row + proof points) */
  [class*="elementor-widget-techwyse_"] .elementor-widget-container .cta-grid .is-in > div[style*="margin-top"] {
    margin-top: 1.25rem !important;
  }
}

/* ============================================================
   INNER PAGE KIT — lifted verbatim from components/page-kit.jsx
   + the matching <style> rules in design-system/site.css. Shared
   by techwyse_page_hero, techwyse_page_fold, techwyse_page_faq
   and techwyse_page_cta.
   ============================================================ */

/* ----- Page hero ----- */
.page-hero { min-height: 850px; display: flex; align-items: stretch; }
.page-hero > .tw-container { display: flex; flex-direction: column; }
.hero-backdrop { position: absolute; inset: 0; z-index: 0; opacity: 0.2; pointer-events: none; }
.page-hero-status { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 1rem; padding-top: 2.5rem; margin-bottom: 1rem; }
.page-hero-grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: 2.5rem 4rem; align-items: center; flex: 1; padding-top: 1rem; padding-bottom: 2rem; }
.page-hero-proof { display: flex; flex-wrap: wrap; align-items: center; gap: 0.625rem; width: 100%; margin-top: auto; padding-top: 1.5rem; padding-bottom: 2.5rem; border-top: 1px solid var(--color-neutral-darkest-15); }
@media (min-width: 992px) {
  .page-hero-grid { grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr); }
  .page-hero-grid.no-media { grid-template-columns: minmax(0, 1fr); }
}
.page-hero-media-wrap { position: relative; }
.page-hero-media { position: relative; overflow: hidden; border-radius: var(--radius-card); aspect-ratio: 4 / 5; background: var(--color-neutral-darkest-15); box-shadow: -22px 22px 0 -2px var(--color-coral-red-lightest), 0 24px 60px rgba(0,0,0,0.14); }
.page-hero-media img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform 700ms var(--reveal-ease); }
.page-hero-media:hover img { transform: scale(1.04); }
.page-hero-float { position: absolute; left: -1.75rem; bottom: 1.75rem; background: var(--color-white); border-radius: var(--radius-card); padding: 1rem 1.25rem; min-width: 13rem; display: flex; flex-direction: column; gap: 0.4rem; box-shadow: 0 1px 2px rgba(2,8,8,0.04), 0 18px 44px rgba(2,8,8,0.16); animation: float-y 6s ease-in-out infinite; }
.page-hero-float-head { display: flex; align-items: center; justify-content: space-between; gap: 0.75rem; font-size: 0.66rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--color-neutral-darkest-60); font-weight: 500; }
.page-hero-float-value { display: flex; align-items: baseline; gap: 0.3rem; font-family: var(--font-heading); font-weight: 600; font-size: 2rem; line-height: 1; letter-spacing: -0.02em; color: var(--color-coral-red); }
.page-hero-trend { font-size: 0.85rem; }
.page-hero-trend.up { color: #1F8A5B; }
.page-hero-trend.down { color: var(--color-coral-red); }
.page-hero-float-cap { font-size: 0.7rem; color: var(--color-neutral-darkest-60); letter-spacing: 0.01em; }
@media (max-width: 991px) {
  .page-hero { min-height: 0; }
  .page-hero-media { aspect-ratio: 16 / 10; box-shadow: -14px 14px 0 -2px var(--color-coral-red-lightest), 0 18px 40px rgba(0,0,0,0.14); }
  .page-hero-float { left: 0.75rem; bottom: 0.75rem; min-width: 0; padding: 0.75rem 1rem; }
  .page-hero-float-value { font-size: 1.6rem; }
}
@media (prefers-reduced-motion: reduce) { .page-hero-float { animation: none; } }

/* ----- Content fold (all variants) ----- */
body { counter-reset: pgfoldidx; }
.fold-section { counter-increment: pgfoldidx; }
.fold-index { display: none; align-items: center; gap: 0.6rem; font-family: var(--font-heading); font-weight: 600; font-size: 0.78rem; letter-spacing: 0.16em; color: var(--color-coral-red); margin-bottom: 0.9rem; }
.fold-index::before { content: counter(pgfoldidx, decimal-leading-zero); }
.fold-index::after { content: ""; width: 2rem; height: 1px; background: currentColor; opacity: 0.45; }
.fold-stack-head .fold-index { justify-content: center; }
.scheme-indigo .fold-index { color: var(--color-coral-red); }
.fold-overlay-inner .fold-index { color: rgba(255,255,255,0.92); }

.fold-grid-media { display: grid; grid-template-columns: minmax(0, 1fr); gap: 2.5rem 4rem; align-items: center; }
@media (min-width: 992px) {
  .fold-grid-media { grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr); align-items: stretch; }
  .fold-grid-media.media-left > .fold-media { order: -1; }
  .fold-grid-media > .fold-media { aspect-ratio: auto; height: 100%; min-height: 460px; }
}
.fold-media { position: relative; overflow: hidden; border-radius: var(--radius-card); aspect-ratio: 4 / 3; background: var(--color-neutral-darkest-15); box-shadow: 0 1px 2px rgba(0,0,0,0.08), 0 24px 60px rgba(0,0,0,0.12); }
.fold-media img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform 700ms var(--reveal-ease); }
.fold-media:hover img { transform: scale(1.04); }
.fold-grid-media > .fold-media { box-shadow: 22px 22px 0 -2px var(--color-coral-red-lightest), 0 24px 60px rgba(0,0,0,0.12); }
.fold-grid-media.media-left > .fold-media { box-shadow: -22px 22px 0 -2px var(--color-coral-red-lightest), 0 24px 60px rgba(0,0,0,0.12); }
@media (max-width: 991px) {
  .fold-grid-media > .fold-media, .fold-grid-media.media-left > .fold-media { box-shadow: 14px 14px 0 -2px var(--color-coral-red-lightest), 0 18px 40px rgba(0,0,0,0.12); }
}
@media (min-width: 992px) {
  .fold-grid-media.fold-portrait { grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr); align-items: start; }
  .fold-grid-media.fold-portrait > .fold-media { aspect-ratio: 3 / 4; min-height: 0; height: auto; }
}
.fold-head-split { display: grid; grid-template-columns: minmax(0, 1fr); gap: 2rem 4rem; align-items: start; }
@media (min-width: 992px) { .fold-head-split { grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.25fr); } }
.fold-media-wide { position: relative; overflow: hidden; border-radius: var(--radius-card); aspect-ratio: 24 / 9; margin-top: 3rem; background: var(--color-neutral-darkest-15); box-shadow: 0 1px 2px rgba(0,0,0,0.08), 0 24px 60px rgba(0,0,0,0.12); }
.fold-media-wide img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform 700ms var(--reveal-ease); }
.fold-media-wide:hover img { transform: scale(1.03); }
.fold-stack-head { max-width: 70ch; margin: 0 auto; }
.fold-stack-head .eyebrow-row { justify-content: center; }
@media (min-width: 1200px) { .fold-stack-head { max-width: 60rem; } }
.fold-overlay { position: relative; overflow: hidden; border-radius: var(--radius-card); aspect-ratio: 21 / 9; background: var(--color-neutral-darkest); box-shadow: 0 1px 2px rgba(0,0,0,0.08), 0 24px 60px rgba(0,0,0,0.18); }
.fold-overlay img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform 800ms var(--reveal-ease); }
.fold-overlay:hover img { transform: scale(1.04); }
.fold-overlay::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(2,8,8,0.82) 0%, rgba(2,8,8,0.5) 45%, rgba(2,8,8,0.12) 100%); }
.fold-overlay-inner { position: absolute; inset: 0; display: flex; flex-direction: column; justify-content: flex-end; padding: clamp(1.5rem, 4vw, 3.5rem); z-index: 1; }
.fold-overlay-body { margin-top: 2.5rem; display: grid; grid-template-columns: minmax(0, 1fr); gap: 1.25rem 4rem; }
@media (min-width: 768px) { .fold-overlay-body { grid-template-columns: repeat(2, minmax(0, 1fr)); align-items: start; } }
.fold-overlay-body p { margin: 0; }
@media (max-width: 640px) { .fold-overlay { aspect-ratio: 4 / 5; } }

/* ----- Kit: card grid (variable columns via .kit-cols-N) ----- */
.kit-card-grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: 1rem; margin-top: 3rem; }
@media (min-width: 640px) { .kit-card-grid { grid-template-columns: repeat(2, 1fr) !important; } }
@media (min-width: 992px) {
  .kit-card-grid.kit-cols-3 { grid-template-columns: repeat(3, 1fr) !important; }
  .kit-card-grid.kit-cols-4 { grid-template-columns: repeat(4, 1fr) !important; }
  .kit-card-grid.kit-cols-5 { grid-template-columns: repeat(5, 1fr) !important; }
}
.kit-card { background: var(--color-white); border: 1px solid var(--color-neutral-darkest-15); border-radius: var(--radius-card); padding: 2rem; display: flex; flex-direction: column; gap: 0.75rem; min-height: 180px; }
.scheme-indigo .kit-card { background: var(--color-navy-darker); border-color: rgba(255,255,255,0.12); }
.kit-card-icon { width: 2.75rem; height: 2.75rem; border-radius: 999px; background: var(--color-coral-red-lightest); color: var(--color-coral-red); display: inline-flex; align-items: center; justify-content: center; }
.scheme-indigo .kit-card-icon { background: rgba(255,255,255,0.08); }
.kit-card-num { font-family: var(--font-heading); font-weight: 600; font-size: 0.95rem; color: var(--color-coral-red); }
.kit-card h3 { font-size: 1.375rem; line-height: 1.2; margin-top: 0.5rem; }
.scheme-indigo .kit-card h3 { color: var(--color-white); }
.kit-card p { font-size: var(--text-regular); line-height: 1.55; color: var(--color-neutral-darkest-60); }
.scheme-indigo .kit-card p { color: rgba(255,255,255,0.7); }
.kit-card-label { font-size: 0.75rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--color-neutral-darkest-60); margin-bottom: 1.25rem; }
.scheme-indigo .kit-card-label { color: rgba(255,255,255,0.6); }

/* ----- Kit: process grid ----- */
.kit-proc-grid { margin-top: 3rem; display: grid; grid-template-columns: minmax(0, 1fr); gap: 1.25rem; }
@media (min-width: 640px) { .kit-proc-grid { grid-template-columns: repeat(2, 1fr) !important; } }
@media (min-width: 992px) { .kit-proc-grid { grid-template-columns: repeat(3, 1fr) !important; } }
.kit-proc-card { border: 1px solid var(--color-neutral-darkest-15); border-radius: var(--radius-card); padding: 1.75rem; background: var(--color-white); display: flex; flex-direction: column; gap: 0.75rem; }
.kit-proc-num { font-family: var(--font-heading); font-weight: 600; font-size: 1.5rem; color: var(--color-coral-red); letter-spacing: -0.02em; }
.kit-proc-card h3 { font-size: 1.25rem; line-height: 1.2; }
.kit-proc-card p { font-size: var(--text-regular); line-height: 1.55; color: var(--color-neutral-darkest-60); }

/* ----- Kit: chip list ----- */
.kit-chip-label { font-size: 0.75rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--color-neutral-darkest-60); margin-bottom: 1rem; }
.kit-chip-list { display: flex; flex-wrap: wrap; gap: 0.625rem; }

/* ----- Kit: NumberList (airy borderless numbered rows) ----- */
.kit-numlist { display: grid; grid-template-columns: minmax(0, 1fr); gap: 2rem 4rem; }
@media (min-width: 768px) { .kit-numlist { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.kit-numlist-item { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 1.25rem; align-items: start; }
.kit-numlist-num {
  font-family: var(--font-heading); font-weight: 600;
  font-size: 2.25rem; line-height: 1; letter-spacing: -0.03em;
  color: var(--color-coral-red);
  -webkit-text-stroke: 0; opacity: 0.9;
}

/* ----- Kit: DefList (hairline-divided definition rows) ----- */
.kit-deflist { display: grid; grid-template-columns: minmax(0, 1fr); }
.kit-deflist-row {
  display: grid; grid-template-columns: minmax(0, 1fr); gap: 0.5rem 4rem;
  padding: 1.5rem 0;
  border-top: 1px solid var(--color-neutral-darkest-15);
  align-items: baseline;
}
.kit-deflist-row:last-child { border-bottom: 1px solid var(--color-neutral-darkest-15); }
@media (min-width: 820px) {
  .kit-deflist-row { grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.5fr); }
}
.kit-deflist-row h3 { display: flex; align-items: baseline; gap: 0.85rem; margin: 0; }
.kit-deflist-tick {
  font-family: var(--font-heading); font-weight: 600;
  font-size: 0.85rem; color: var(--color-coral-red);
  letter-spacing: 0.04em;
}

/* ----- Kit: FeatureRows (two-column icon rows, no frames) ----- */
.kit-featrows { display: grid; grid-template-columns: minmax(0, 1fr); gap: 1.75rem 4rem; }
@media (min-width: 768px) { .kit-featrows { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.kit-featrows-item { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 1rem; align-items: start; }
.kit-featrows-ic {
  width: 2.5rem; height: 2.5rem; flex-shrink: 0;
  border-radius: 999px;
  color: var(--color-coral-red);
  display: inline-flex; align-items: center; justify-content: center;
}

/* ----- Kit: page FAQ (distinct grid fractions from homepage's photo-based faq-grid) ----- */
.kit-faq-grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: 3rem 5rem; align-items: start; }
@media (min-width: 992px) { .kit-faq-grid { grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.6fr) !important; } }

/* ----- Full-width FAQ page section (techwyse_faq_full — no left column) ----- */
/* No .tw-section/.divider-bottom/id here by design — padding and any border are
   controlled entirely via Elementor's own section/widget Advanced settings. */
.page-faq-full-head.is-centered { text-align: center; }
.page-faq-full-list { margin-top: 2.5rem; }
.faq-load-more { text-align: center; margin-top: 2rem; }

/* ----- Page hero — tighter top/bottom spacing than a standard section ----- */
.page-hero.tw-section { padding-block: 2rem; }
@media (min-width: 768px) { .page-hero.tw-section { padding-block: 2.5rem; } }
@media (min-width: 992px) { .page-hero.tw-section { padding-block: 3rem; } }
.page-hero .page-hero-status { padding-top: 1.5rem; }
.page-hero .page-hero-proof { padding-top: 1rem; padding-bottom: 1.5rem; }

/* "Our approach" — drop the grid/gap layout for normal block flow, with
   ordinary margin-based spacing between the heading block and each paragraph */
#fold-approach .fold-grid-media > div:first-child { display: block !important; }
#fold-approach .fold-grid-media > div:first-child > div { margin-bottom: 1rem; }
#fold-approach .fold-grid-media > div:first-child p { margin-bottom: 1rem; }

/* Edmonton — "Marketing for small clinics, growing practices, and
   multi-location groups in Edmonton." heading, wider max-width */
#edmonton-stages h2 { max-width: 60rem; }

/* ----- Website Development page — under-1199px refinements ----- */
@media (max-width: 1199px) {
  /* All split/portrait folds — columns collapse to full width, tighter row gap, smaller copy,
     heading/paragraph max-width removed so the now-full-width text isn't still capped */
  .fold-grid-media { grid-template-columns: minmax(0, 1fr) !important; gap: 1.5rem 2rem !important; }
  .fold-grid-media h2 { max-width: 100% !important; }
  .fold-grid-media p { max-width: 100% !important; font-size: 1rem !important; }
  /* ...and its image shrinks, centers, and gets breathing room below it */
  .fold-grid-media .fold-media { max-width: 500px; margin-inline: auto; margin-bottom: 15px; }

  /* Analytics and Tracking "Performance review" — image appears first, content
     second, this width range only */
  .fold-media-reorder-first { order: -1; }

  /* "Our approach" — image appears first, content second, this width range only.
     Shared anchor_id across 5 pages (Website Development, Content Marketing,
     Analytics, AI Search Optimization, Paid Search) — applies to all of them.
     Analytics' own "Our approach" uses the overlay variant (no .fold-media), so
     this has no effect there. */
  #fold-approach .fold-media { order: -1; }

  /* All banner folds — header row collapses to full width, max-width removed, smaller copy, tighter gap */
  .fold-head-split { grid-template-columns: minmax(0, 1fr) !important; gap: 1rem !important; }
  .fold-head-split h2 { max-width: 100% !important; }
  .fold-head-split p { max-width: 100% !important; font-size: 1rem !important; }

  /* Wide fold image (banner/stack variants) sits closer to the content above it */
  .fold-media-wide { margin-top: 1.5rem !important; }

  /* "Content that helps patients take action" — full-width overlay body + smaller copy */
  .fold-overlay-body { grid-template-columns: minmax(0, 1fr) !important; }
  .fold-overlay-body p { font-size: 1rem !important; }

  /* "Flexible platform development" + "After your website goes live" (stack variant) —
     full width, max-width removed, smaller copy */
  .fold-stack-head { max-width: none !important; }
  .fold-stack-head h2 { max-width: 100% !important; }
  .fold-stack-head p { max-width: 100% !important; font-size: 1rem !important; }

  /* FAQ — full-width columns, tighter gap, intro paragraph full width */
  .kit-faq-grid { grid-template-columns: minmax(0, 1fr) !important; gap: 1.5rem !important; }
  .kit-faq-grid > div:first-child p { max-width: 100% !important; }

  /* Final CTA heading + paragraph — full width, smaller copy */
  #contact h2 { max-width: 100% !important; }
  #contact p { max-width: 100% !important; font-size: 1rem !important; }

  /* Hero — tighter spacing above/below the first body paragraph */
  .page-hero-copy div[style*="max-width:54ch"] { margin-top: 0.75rem !important; gap: 0.5rem !important; }

  /* Every h2 on the page (fold headings, FAQ, CTA) — smaller size */
  .fold-grid-media h2,
  .fold-head-split h2,
  .fold-overlay-inner h2,
  .fold-stack-head h2,
  .kit-faq-grid h2,
  #contact h2 {
    font-size: 1.6rem !important;
  }

  /* Every card grid — center-aligned, so a trailing orphan row (e.g. 5 cards in
     3 columns) centers instead of left-aligning with an empty gap */
  .kit-card-grid {
    display: flex !important;
    flex-wrap: wrap;
    justify-content: center;
  }
  .kit-card-grid .kit-card {
    flex: 1 1 280px;
    max-width: 340px;
  }

  /* Tighter spacing above every content-block card grid / process grid */
  .kit-card-grid-wrap,
  .kit-proc-grid {
    margin-top: 30px !important;
  }

  /* "Search drives patient decisions" — extra space between the image and the
     Visibility/Trust/Bookings cards below it */
  #why-seo .kit-card-grid-wrap { margin-top: 60px !important; }
}

@media (max-width: 1023px) {
  /* Hero photo — capped width, centered, fixed height */
  .page-hero-media-wrap { max-width: 500px; margin-inline: auto; }
  .page-hero-media { aspect-ratio: auto !important; height: 500px !important; }

  /* Hero heading + its body copy — full width */
  .page-hero-copy h1 { max-width: 100% !important; }
  .page-hero-copy div[style*="max-width:54ch"] { max-width: 100% !important; }

  /* "Our approach" — tighter spacing below its image */
  #fold-approach .fold-grid-media .fold-media { margin-bottom: 10px !important; }

  /* Process cards — tighter padding, smaller heading */
  .kit-proc-card { padding: 1.1rem !important; }
  .kit-proc-card h3 { font-size: 1.05rem !important; }

  /* Regular cards — smaller heading, tighter padding */
  .kit-card h3 { font-size: 1.15rem !important; }
  .kit-card { padding: 1.5rem !important; }

  /* Numlist gap tightens further at this width */
  .kit-numlist { gap: 1.25rem 2rem !important; }

  /* FAQ questions — a little smaller. Matches (and beats, via the same isolation
     prefix) the specificity of the existing <1599px reduction to 1.1rem above. */
  [class*="elementor-widget-techwyse_"] .elementor-widget-container .qa-row button span:not(.qa-icon) { font-size: 1rem !important; }

  /* Indigo-scheme folds — tighter spacing between the last line of text and a
     following button/link (e.g. the "Explore GEO and AI Optimization" CTA) */
  .scheme-indigo .kit-link-wrap { margin-top: 1rem !important; }
}

@media (min-width: 1024px) and (max-width: 1199px) {
  /* Calgary — extra 20px above the text block ("Local SEO in Calgary" /
     "Toronto-based, Canada-focused") and 20px below the photo alongside it,
     this width range only */
  #fold-local-seo-calgary .fold-grid-media > div:first-child,
  #fold-toronto-based .fold-grid-media > div:first-child {
    margin-top: 20px !important;
  }
  #fold-local-seo-calgary .fold-media,
  #fold-toronto-based .fold-media,
  #why-calgary .fold-media {
    margin-bottom: 20px !important;
  }
}

@media (max-width: 767px) {
  /* Every card grid card — tighter padding */
  .kit-card { padding: 1.25rem !important; }
}

/* FAQ button — force black text/border regardless of theme link-color bleed */
.kit-faq-grid .btn-secondary { color: var(--color-neutral-darkest) !important; border-color: var(--color-neutral-darkest-15) !important; }
.kit-faq-grid .btn-secondary:hover { color: var(--color-neutral-darkest) !important; }

/* "Platform strategy" — 1st body paragraph spans full width, 2nd left-aligned */
#fold-platform-strategy .fold-overlay-body p:nth-child(1) { grid-column: 1 / -1; width: 100%; }
#fold-platform-strategy .fold-overlay-body p:nth-child(2) { text-align: left; }

/* Reputation and Review Strategy — "Reviews help support your local search presence."
   1st body paragraph (GBP trust-signal explainer) spans full width; 2nd stays in its
   normal column below. */
#fold-local-reputation .fold-overlay-body p:nth-child(1) { grid-column: 1 / -1; width: 100%; }

/* FAQ questions (both the homepage's techwyse_faq and the inner-page techwyse_page_faq) —
   balance line-wrapping so a 2-line question never leaves one short word alone */
.qa-row button span:not(.qa-icon) { text-wrap: balance; }

/* ------------------------------------------------------------------
   Footer newsletter → Contact Form 7
   Reproduces the original .tw-newsletter-form pill (transparent email
   input + coral "Subscribe" pill with arrow) for a CF7-rendered form.
   Scoped to the footer card so nothing leaks to other CF7 forms.
   ------------------------------------------------------------------ */
.footer-newsletter-card .tw-newsletter-cf7 { width:100%; max-width:30rem; }
.footer-newsletter-card .wpcf7,
.footer-newsletter-card .wpcf7 .wpcf7-form { margin:0; padding:0; }

/* The pill row (wrap the field + submit in <div class="tw-nl-row"> in the CF7 template) */
.footer-newsletter-card .wpcf7 .tw-nl-row {
  display:flex !important; align-items:center; gap:0.5rem;
  flex-wrap:nowrap !important;
  background:rgba(255,255,255,0.06) !important;
  border:1px solid rgba(255,255,255,0.15) !important;
  border-radius:var(--radius-card) !important;
  padding:0.4rem 0.4rem 0.4rem 1rem;
  width:100%;
}
/* wpautop wraps the field + submit + spinner in a <p>, which becomes the
   pill's only flex child and stacks the controls. Make that <p> transparent
   so the field and button are flex items of .tw-nl-row again. Also drop any
   stray <br> wpautop may inject. */
.footer-newsletter-card .wpcf7 .tw-nl-row > p { display:contents !important; margin:0 !important; }
.footer-newsletter-card .wpcf7 br { display:none !important; }
.footer-newsletter-card .wpcf7 .tw-nl-row .wpcf7-form-control-wrap { flex:1 1 auto; display:block; min-width:0; margin:0; }
.footer-newsletter-card .wpcf7 .tw-nl-row input.wpcf7-submit,
.footer-newsletter-card .wpcf7 .tw-nl-row input[type="submit"] { flex:0 0 auto; }

/* Email input — transparent, borderless, white text */
.footer-newsletter-card .wpcf7 input.wpcf7-email,
.footer-newsletter-card .wpcf7 input[type="email"] {
  width:100%; flex:1;
  background:transparent !important; border:none !important; outline:none !important; box-shadow:none !important;
  -webkit-appearance:none; appearance:none;
  color:var(--color-white) !important; font-family:inherit; font-size:var(--text-regular);
  padding:0.5rem 0 !important; min-width:0; min-height:0; height:auto; line-height:1.4; border-radius:0 !important;
}
.footer-newsletter-card .wpcf7 input.wpcf7-email::placeholder { color:rgba(255,255,255,0.5); }

/* Submit — coral pill with the same right-arrow icon (as background SVG) */
.footer-newsletter-card .wpcf7 input.wpcf7-submit,
.footer-newsletter-card .wpcf7 input[type="submit"] {
  background-color:var(--color-coral-red) !important;
  border:none !important; border-radius:var(--radius-button) !important;
  color:var(--color-white) !important; font-family:inherit; font-weight:500; font-size:0.85rem;
  cursor:pointer; padding:0.5rem 2.15rem 0.5rem 1rem !important; white-space:nowrap; flex-shrink:0;
  min-height:0; height:auto; width:auto;
  background-image:url("data:image/svg+xml,%3Csvg%20xmlns='http://www.w3.org/2000/svg'%20width='24'%20height='24'%20viewBox='0%200%2024%2024'%20fill='none'%3E%3Cpath%20d='M5%2012h14M13%206l6%206-6%206'%20stroke='%23ffffff'%20stroke-width='1.75'%20stroke-linecap='round'%20stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat:no-repeat; background-position:right 0.75rem center; background-size:14px 14px;
}
.footer-newsletter-card .wpcf7 input.wpcf7-submit:hover,
.footer-newsletter-card .wpcf7 input[type="submit"]:hover { background-color:var(--color-coral-red-dark) !important; }

/* Messages — keep them legible on the dark footer, matching the caption style */
.footer-newsletter-card .wpcf7-response-output {
  color:rgba(255,255,255,0.72) !important; font-size:0.7rem; line-height:1.5;
  border:none !important; padding:0 !important; margin:0.6rem 0 0 !important;
}
.footer-newsletter-card .wpcf7 .wpcf7-not-valid-tip { color:#ffb4b4; font-size:0.7rem; margin-top:0.35rem; }
.footer-newsletter-card .wpcf7-spinner { margin:0 0 0 0.5rem; }
