/* ==========================================================================
   MOTION IT — DESIGN SYSTEM
   One central stylesheet for every page under /motion-it/.

   How it fits together
   --------------------
   layouts/motion-it.blade.php declares   @layer legacy, design-system;
   • "legacy"        = the original inline layout CSS and each page's own @push('styles') block
   • "design-system" = this file. Later layers beat earlier ones regardless of selector
                       specificity, so these tokens and components are the single source of truth
                       for typography, buttons, links, cards, sections, forms, header and footer.
   Page CSS now only describes page-specific *structure* (grids, flex, icons, animation hooks).

   Breakpoints (media queries can't read variables, so they are written out):
     Mobile   up to 767px
     Tablet   768px – 1023px
     Desktop  1024px and up
     Navigation collapses to the menu button at 1279px and below.
   ========================================================================== */

@layer design-system {

/* --------------------------------------------------------------------------
   1. DESIGN TOKENS
   -------------------------------------------------------------------------- */
:root{
  /* Brand */
  --color-brand:#C9A24C;
  --color-brand-hover:#DDBB6B;
  --color-brand-strong:#B58E3A;
  --color-on-brand:#0A0806;

  /* Surfaces and neutrals */
  --color-bg:#0A0806;
  --color-bg-raised:#17130D;
  --color-surface:rgba(10,8,6,.58);
  --color-surface-card:rgba(10,8,6,.5);
  --color-surface-hover:rgba(201,162,76,.07);
  --color-secondary:#F4EFE6;

  /* Text */
  --color-heading:#F4EFE6;
  --color-body:rgba(244,239,230,.86);
  --color-muted:rgba(244,239,230,.70);

  /* Lines and interaction */
  --color-border:rgba(201,162,76,.24);
  --color-border-strong:rgba(201,162,76,.55);
  --color-link:#C9A24C;
  --color-link-hover:#E6CD8A;
  --color-focus:#E6CD8A;

  /* Feedback */
  --color-success:#6BD39A;
  --color-error:#FF8A7A;

  /* Legacy names, kept so existing page CSS keeps resolving */
  --void:var(--color-bg);
  --deep:var(--color-bg-raised);
  --mist:#A39C8C;
  --fog-white:var(--color-heading);
  --signal:var(--color-brand);
  --navy-ink:#2B2013;
  --line-dim:var(--color-border);

  /* Typography — Syne (headings), Space Mono (labels, navigation, buttons), Manrope (body text) */
  --font-display:'Syne',system-ui,-apple-system,'Segoe UI',Arial,sans-serif;
  --font-mono:'Space Mono',ui-monospace,'SFMono-Regular',Menlo,Consolas,monospace;
  --font-sans:'Manrope',system-ui,-apple-system,'Segoe UI',Roboto,'Helvetica Neue',Arial,sans-serif;
  --fw-regular:400;
  --fw-medium:500;
  --fw-semibold:600;
  --fw-bold:700;

  /* Type scale (desktop value is the upper clamp bound) */
  --fs-hero:clamp(1.375rem,.9rem + 2.9vw,3.5rem);       /* 22 -> 56 */
  --fs-h1:clamp(1.375rem,.8rem + 2.9vw,3rem);           /* 22 -> 48 */
  --fs-h2:clamp(1.1875rem,.8rem + 1.9vw,2.25rem);       /* 19 -> 36 */
  --fs-h3:clamp(1.125rem,.95rem + .75vw,1.625rem);      /* 18 -> 26 */
  --fs-h4:clamp(1.0625rem,1rem + .25vw,1.3125rem);      /* 17 -> 21 */
  --fs-h5:1.125rem;                                     /* 18 */
  --fs-lg:clamp(1.0625rem,1rem + .25vw,1.125rem);       /* 17 -> 18  intro / lead text */
  --fs-base:1rem;                                       /* 16 */
  --fs-card:.9375rem;                                   /* 15  card and list text */
  --fs-sm:.875rem;                                      /* 14 */
  --fs-xs:.75rem;                                       /* 12  captions, eyebrows */
  --fs-nav:.75rem;                                      /* 12  uppercase mono navigation */
  --fs-btn:.75rem;                                      /* 12  uppercase mono buttons */

  --lh-hero:1.12;
  --lh-h1:1.15;
  --lh-h2:1.2;
  --lh-h3:1.3;
  --lh-h4:1.35;
  --lh-h5:1.4;
  --lh-lg:1.7;
  --lh-base:1.65;
  --lh-sm:1.55;
  --lh-xs:1.5;
  --lh-ui:1.4;
  --lh-btn:1.2;

  --ls-heading:.03em;                                   /* Syne capitals */
  --ls-heading-sm:.01em;
  --ls-caps:.24em;                                      /* eyebrow labels */
  --ls-nav:.13em;
  --ls-btn:.14em;

  /* Spacing (4px base) */
  --space-1:4px;
  --space-2:8px;
  --space-3:12px;
  --space-4:16px;
  --space-4h:20px;
  --space-5:24px;
  --space-6:32px;
  --space-6h:40px;
  --space-7:48px;
  --space-8:64px;
  --space-9:80px;
  --space-10:96px;

  /* Layout */
  --container:1280px;
  --gutter:clamp(16px,3.2vw,48px);           /* 16px phones, ~24px tablets, 48px desktops */
  --section-y:clamp(40px,3.2vw + 24px,88px); /* gap between sections: 40px phones, ~48px tablets, up to 88px */
  --header-h:76px;
  --card-pad:24px;
  --card-pad-lg:32px;
  --card-bg:var(--color-surface-card);        /* swapped for the combined tone when a section panel is flattened */
  --measure:56rem;                           /* line length for centred paragraphs inside a panel (about 100 characters) */
  --measure-wide:68rem;                      /* section heading blocks and FAQ lists */

  /* Shape and depth */
  --radius-sm:8px;
  --radius-md:12px;
  --radius-lg:16px;
  --radius-xl:24px;
  --radius-pill:999px;
  --shadow-sm:0 1px 2px rgba(0,0,0,.30);
  --shadow-md:0 10px 30px rgba(0,0,0,.28);
  --shadow-lg:0 18px 48px rgba(0,0,0,.34);
  --shadow-btn:0 8px 22px rgba(201,162,76,.28);

  /* Forms */
  --field-h:52px;
  --field-bg:#F4EFE6;
  --field-text:#2B2013;
  --field-placeholder:rgba(43,32,19,.68);
  --field-border:rgba(43,32,19,.28);

  /* Motion */
  --ease:cubic-bezier(.16,1,.3,1);
  --dur:.25s;
}

/* --------------------------------------------------------------------------
   2. BASE
   -------------------------------------------------------------------------- */
html{font-size:100%;-webkit-text-size-adjust:100%;scroll-padding-top:calc(var(--header-h) + var(--space-4));}
body{
  font-family:var(--font-sans);
  font-size:var(--fs-base);
  line-height:var(--lh-base);
  font-weight:var(--fw-regular);
  color:var(--color-body);
  -webkit-font-smoothing:antialiased;
  text-rendering:optimizeLegibility;
  overflow-wrap:break-word;
}
img{max-width:100%;}
main{display:block;}
::selection{background:var(--color-brand);color:var(--color-on-brand);}

.skip-link{
  position:absolute;left:var(--space-4);top:-120px;z-index:400;
  padding:12px 20px;border-radius:var(--radius-pill);
  background:var(--color-brand);color:var(--color-on-brand);
  font-size:var(--fs-btn);font-weight:var(--fw-semibold);
}
.skip-link:focus{top:var(--space-3);}
:where(a,button,input,textarea,select,summary,[tabindex]):focus-visible{
  outline:2px solid var(--color-focus);outline-offset:3px;
}
.text-center{text-align:center;}
.ds-note{
  max-width:var(--measure);margin:var(--space-4) auto 0;text-align:center;
  font-size:var(--fs-sm);line-height:var(--lh-sm);color:var(--color-muted);
}

/* --------------------------------------------------------------------------
   3. TYPOGRAPHY
   -------------------------------------------------------------------------- */
h1,h2,h3,h4,h5,h6{
  font-family:var(--font-display);
  color:var(--color-heading);
  font-weight:var(--fw-bold);
  letter-spacing:var(--ls-heading-sm);
  text-wrap:balance;
}
h1,h2,.display{text-transform:uppercase;letter-spacing:var(--ls-heading);}
h1{font-size:var(--fs-h1);line-height:var(--lh-h1);}
h2{font-size:var(--fs-h2);line-height:var(--lh-h2);}
h3{font-size:var(--fs-h3);line-height:var(--lh-h3);}
h4{font-size:var(--fs-h4);line-height:var(--lh-h4);}
h5{font-size:var(--fs-h5);line-height:var(--lh-h5);}
h6{font-size:var(--fs-base);line-height:var(--lh-ui);}

.hero-headline{font-size:var(--fs-h2);line-height:var(--lh-h2);max-width:min(100%,1100px);}
.page-banner h1{max-width:min(100%,960px);margin-inline:auto;}

/* Section headings share one rhythm */
.page-intro h2,.section-head h2,.intro-heading,.about-motion-heading,.projects-head h2,
.logo-head h2,.focus-head h2,.promise-head h2,.values-head h2,.benefits-head h2,.funfacts-head h2,
.contact-head h2,.trust-banner-2 h2{
  font-size:var(--fs-h2);line-height:var(--lh-h2);margin:0 0 var(--space-5);
}
.trust-heading{font-size:var(--fs-h3);line-height:var(--lh-h3);}

/* Eyebrow and caption: the only places capitals and tracking are used */
.eyebrow{
  font-family:var(--font-mono);
  font-size:var(--fs-xs);line-height:var(--lh-xs);font-weight:var(--fw-regular);
  letter-spacing:var(--ls-caps);text-transform:uppercase;color:var(--color-brand);
  margin-bottom:var(--space-3);
}
.hero-eyebrow{margin-bottom:0;}
.field-label,.capability-num,.pillar-num,.funfact-label,.footer-vendors-label,
.process-phase-title,.related-q{
  font-family:var(--font-mono);
  font-size:var(--fs-xs);line-height:var(--lh-xs);font-weight:var(--fw-regular);
  letter-spacing:.1em;text-transform:uppercase;color:var(--color-brand);
}
.nav-mega-col-title{
  font-family:var(--font-display);
  font-size:var(--fs-xs);line-height:var(--lh-xs);font-weight:var(--fw-bold);
  letter-spacing:.04em;text-transform:uppercase;color:var(--color-brand);
}
.hero-small,.contact-info-label{
  font-family:var(--font-mono);
  font-size:var(--fs-xs);line-height:var(--lh-xs);font-weight:var(--fw-regular);
  letter-spacing:.1em;text-transform:uppercase;color:var(--color-muted);
}

/* Paragraphs */
p{font-size:var(--fs-base);line-height:var(--lh-base);font-weight:var(--fw-regular);color:var(--color-body);}
.hero-sub,.hero-lead,.section-lede,.partners-lede,.insights-lede,.page-banner > p{
  font-size:var(--fs-lg);line-height:var(--lh-lg);color:var(--color-body);
  max-width:var(--measure);margin-inline:auto;
}
.hero-lead{font-weight:var(--fw-medium);}
.overview-closing{font-family:var(--font-display);font-size:var(--fs-h5);line-height:var(--lh-h5);font-weight:var(--fw-bold);color:var(--color-brand);margin-top:var(--space-5);}
.page-banner .hero-sub,.page-banner > p{margin-top:var(--space-4);}

/* Section intro blocks: centred, readable measure, consistent spacing */
.page-intro,.section-head{text-align:center;max-width:var(--measure-wide);margin-inline:auto;margin-bottom:var(--space-6h);}
.focus-head,.promise-head,.values-head,.logo-head,.benefits-head,.projects-head,.funfacts-head,.contact-head,.managed-faq-wrap{max-width:var(--measure-wide);}
.story-text{max-width:var(--measure);}
.section-head{margin-bottom:var(--space-6h);}
.page-intro p,.section-head p{max-width:var(--measure);margin:0 auto var(--space-4);text-align:center;}
.page-intro p:last-child,.section-head p:last-child{margin-bottom:0;}
.about-motion-card > p,.intro-card > p,.trust-banner-2 > p{text-align:center;max-width:var(--measure);margin-inline:auto;margin-bottom:var(--space-4);}
.about-motion-card > p:last-of-type,.intro-card > p:last-of-type{margin-bottom:0;}
.ds-note,.tech-note{font-size:var(--fs-sm);}

/* Lists */
.check-list li,.capability-list li,.tech-col li,.quad-card li,.pillar-card li,.split-card li,
.consulting-block li,.services-type-block li,.backup-cat li,.svc-benefits li,.simple-benefit span{
  font-size:var(--fs-card);line-height:var(--lh-sm);font-weight:var(--fw-regular);color:var(--color-body);
}
.simple-benefit span{font-weight:var(--fw-medium);}

/* Reduce the tracking of mono-style labels used inside components */
.flow-line{font-size:var(--fs-sm);font-weight:var(--fw-semibold);color:var(--color-brand);line-height:var(--lh-sm);}
.highlight-box{font-size:var(--fs-lg);font-weight:var(--fw-semibold);line-height:var(--lh-base);color:var(--color-heading);}

/* --------------------------------------------------------------------------
   4. LINKS
   -------------------------------------------------------------------------- */
main :where(p,li,dd) a:not(.cta-btn):not(.cta-btn-secondary):not(.related-card):not(.industry-card):not(.auto-card){
  color:var(--color-link);font-weight:var(--fw-semibold);
  text-decoration:underline;text-decoration-thickness:1px;text-underline-offset:3px;
  text-decoration-color:rgba(201,162,76,.5);
  transition:color var(--dur) ease,text-decoration-color var(--dur) ease;
}
main :where(p,li,dd) a:not(.cta-btn):not(.cta-btn-secondary):not(.related-card):not(.industry-card):not(.auto-card):hover{
  color:var(--color-link-hover);text-decoration-color:currentColor;
}
/* "Explore ... →" style links inside cards */
.pillar-card a,.project-teaser a,.capability-related a,.card-related a,.pillar-breadcrumb a,.related-card span{
  display:inline-flex;align-items:center;gap:6px;
  font-size:var(--fs-sm);line-height:var(--lh-ui);font-weight:var(--fw-semibold);
  color:var(--color-link);text-decoration:none;
}
.pillar-card a:hover,.project-teaser a:hover,.capability-related a:hover,.card-related a:hover,.pillar-breadcrumb a:hover{color:var(--color-link-hover);gap:10px;}
.related-card:hover span{color:var(--color-link-hover);}

/* --------------------------------------------------------------------------
   5. BUTTONS  (one primary, one secondary; identical dimensions)
   -------------------------------------------------------------------------- */
.cta-btn,.cta-btn-secondary,.contact-form button{
  display:inline-flex;align-items:center;justify-content:center;gap:var(--space-2);
  min-height:48px;padding:14px 28px;
  font-family:var(--font-mono);
  font-size:var(--fs-xs);line-height:var(--lh-btn);font-weight:var(--fw-bold);
  letter-spacing:var(--ls-btn);text-transform:uppercase;
  text-align:center;text-decoration:none;cursor:pointer;
  border:1px solid var(--color-brand);border-radius:var(--radius-pill);
  background:var(--color-brand);color:var(--color-on-brand);
  transition:background var(--dur) ease,border-color var(--dur) ease,color var(--dur) ease,transform var(--dur) ease,box-shadow var(--dur) ease;
}
.cta-btn:hover,.contact-form button:hover{
  background:var(--color-brand-hover);border-color:var(--color-brand-hover);
  transform:translateY(-1px);box-shadow:var(--shadow-btn);
}
.cta-btn.outline,.cta-btn-secondary{
  background:transparent;color:var(--color-heading);border-color:rgba(244,239,230,.45);
}
.cta-btn.outline:hover,.cta-btn-secondary:hover{
  background:rgba(201,162,76,.1);border-color:var(--color-brand);color:var(--color-brand);box-shadow:none;
}
.cta-btn:active{transform:translateY(0);}
.cta-row,.hero-cta-row,.intro-cta-row{display:flex;flex-wrap:wrap;justify-content:center;align-items:center;gap:var(--space-4);}
.cta-row,.intro-cta-row{margin-top:var(--space-6);}
.hero-viewport .cta-btn{margin-top:0;}
.trust-banner-2 .cta-btn{margin-top:var(--space-4);}

/* --------------------------------------------------------------------------
   6. SECTIONS, CONTAINERS AND PANELS
   -------------------------------------------------------------------------- */
.about-section,.intro-section,.about-motion-section,.trust-section,.funfacts-section{
  padding:calc(var(--section-y) / 2) var(--gutter);
}
.page-banner{padding:calc(var(--header-h) + var(--space-7)) var(--gutter) var(--space-9);}
.hero-viewport{padding:calc(var(--header-h) + var(--space-5)) var(--gutter) var(--space-9);}

/* Frosted panel: one width, one radius, one shadow */
.about-container,.about-motion-card,.intro-card,.trust-card,.trust-banner-2{
  width:100%;max-width:var(--container);margin-inline:auto;
  padding:var(--space-7) clamp(20px,3vw,40px);
  border-radius:var(--radius-xl);
  box-shadow:var(--shadow-lg);
}
.about-motion-card,.intro-card,.trust-card,.trust-banner-2{
  background:var(--color-surface);border:1px solid var(--color-border);
}
#services .about-motion-card{max-width:var(--container);}
/* Every panel is the same width (var(--container)), whatever it contains. */
/* The banner is a flex column in the layout with gap:24px; the margins below already set the rhythm, so the gap would double it. */
.trust-banner-2{text-align:center;gap:0;}

/* One vertical rhythm in every panel (same as the home sections):
   eyebrow to heading 12, heading to text 24, text to text 16, text to button 32, heading block to content 40.
   The last block of a panel keeps no bottom margin, so the panel padding is the only space below it. */
:is(.about-container,.about-motion-card,.intro-card,.trust-card,.trust-banner-2) > :last-child,
:is(.about-container,.about-motion-card,.intro-card,.trust-card,.trust-banner-2) > :last-child > :last-child{margin-bottom:0;}
.projects-grid-wrap{width:100%;max-width:var(--container);margin-inline:auto;}

/* --------------------------------------------------------------------------
   7. CARDS  (padding, radius, border, hover and type are identical everywhere)
   -------------------------------------------------------------------------- */
.pillar-card,.quad-card,.auto-card,.item-card,.related-card,.industry-card,.sector-card,.capability-card,
.differentiator-card,.split-card,.project-teaser,.project-card,.promise-card,.value-card,.benefit-card,
.device-card,.backup-cat,.consulting-block,.services-type-block,.tech-col,.focus-card,.service-type-col,
.svc-card{
  background:var(--card-bg);
  border:1px solid var(--color-border);
  border-radius:var(--radius-lg);
  padding:var(--card-pad);
  box-shadow:none;
}
.svc-card,.focus-card,.consulting-block,.services-type-block,.service-type-col,.split-card{padding:var(--card-pad-lg);}
.pillar-card:hover,.quad-card:hover,.auto-card:hover,.item-card:hover,.related-card:hover,.industry-card:hover,
.sector-card:hover,.capability-card:hover,.differentiator-card:hover,.split-card:hover,.project-teaser:hover,
.project-card:hover,.promise-card:hover,.value-card:hover,.benefit-card:hover,.device-card:hover,.backup-cat:hover,
.consulting-block:hover,.services-type-block:hover,.tech-col:hover,.service-type-col:hover,.svc-card:hover{
  border-color:var(--color-border-strong);background:var(--color-surface-hover);
}
/* compact tiles */
.simple-benefit,.callout-chip,.chip{
  border:1px solid var(--color-border);border-radius:var(--radius-md);
  background:var(--card-bg);
}
.callout-chip,.chip{
  border-radius:var(--radius-pill);padding:8px 16px;
  font-size:var(--fs-sm);line-height:var(--lh-ui);font-weight:var(--fw-medium);color:var(--color-body);
}
.simple-benefit{padding:14px 18px;}

/* Card titles and text */
.pillar-card h3,.quad-card h3,.auto-card h3,.item-card h3,.related-card h3,.industry-card h3,.sector-card h3,
.capability-card h3,.differentiator-card h3,.split-card h3,.promise-card h3,.value-card h3,.device-card h3,
.backup-cat h3,.consulting-block h3,.services-type-block h3,.tech-col h3,.service-type-col h3,.project-card h3{
  font-size:var(--fs-h4);line-height:var(--lh-h4);font-weight:650;margin:0 0 var(--space-3);color:var(--color-heading);
}
.pillar-card p,.quad-card p,.auto-card p,.item-card p,.related-card p,.industry-card p,.sector-card p,
.capability-card p,.differentiator-card p,.split-card p,.promise-card p,.value-card p,.device-card p,
.consulting-block p,.services-type-block p,.service-type-col p,.project-card p,.focus-card p,.field-value{
  font-size:var(--fs-card);line-height:var(--lh-sm);color:var(--color-body);text-align:left;
}
.capability-lede{font-size:var(--fs-base);font-weight:var(--fw-semibold);color:var(--color-heading);}
.capability-scenario{font-size:var(--fs-sm);color:var(--color-muted);}
.field-value.title{font-size:var(--fs-base);font-weight:var(--fw-semibold);color:var(--color-heading);}
.device-specs span{font-size:var(--fs-xs);line-height:var(--lh-xs);font-weight:var(--fw-medium);color:var(--color-muted);}

/* Process / stage steps */
.stage-item h3{font-size:var(--fs-h5);line-height:var(--lh-h5);font-weight:var(--fw-semibold);color:var(--color-brand);margin:0 0 var(--space-2);}
.stage-item p{font-size:var(--fs-card);line-height:var(--lh-sm);color:var(--color-body);}
.stage-item{background:var(--card-bg);border:1px solid var(--color-border);border-radius:var(--radius-lg);padding:var(--space-5);}
.stage-node-num,.stage-tag,.process-step-num{font-size:var(--fs-sm);font-weight:var(--fw-bold);}

/* Five and six column layouts are narrow, so their cards use tighter padding. */
.stage-track.cols-5 .stage-item,.stage-track.cols-6 .stage-item{padding:var(--space-4) var(--space-3);}

/* Process steps: one responsive rule-set for the 4, 5 and 6 step variants.
   (The old page CSS kept 5/6 columns on phones, which overflowed the screen.) */
@media (max-width:1199px){
  .stage-item{padding:var(--space-4);}
  :where(.stage-track.cols-5,.stage-track.cols-6) .stage-cards-row{grid-template-columns:repeat(3,1fr);}
  /* the connected circles only make sense when every step has its own column */
  :where(.stage-track.cols-5,.stage-track.cols-6) .stage-nodes-row{display:none;}
  :where(.stage-track.cols-5,.stage-track.cols-6) .stage-item .stage-tag{
    display:flex;align-items:center;justify-content:center;
    width:32px;height:32px;margin:0 auto var(--space-3);border-radius:50%;
    border:2px solid rgba(201,162,76,.45);color:var(--color-brand);
  }
}
@media (max-width:899px){
  .stage-track .stage-cards-row{grid-template-columns:repeat(2,1fr);gap:var(--space-4);}
  .stage-track .stage-nodes-row{display:none;}
  .stage-track .stage-item .stage-tag{
    display:flex;align-items:center;justify-content:center;
    width:32px;height:32px;margin:0 auto var(--space-3);border-radius:50%;
    border:2px solid rgba(201,162,76,.45);color:var(--color-brand);
  }
}
@media (max-width:767px){
  .stage-track .stage-nodes-row{display:none;}
  .stage-track .stage-cards-row{grid-template-columns:1fr;gap:var(--space-3);}
  .stage-track .stage-item{flex-direction:row;align-items:flex-start;text-align:left;gap:var(--space-4);padding:var(--space-4);}
  .stage-track .stage-item .stage-text{min-width:0;}
  .stage-track .stage-item p{text-align:left;}
  .stage-track .stage-item .stage-tag{flex-shrink:0;margin:0;}
}

/* Statistics */
.trust-stats strong,.proof-stats strong,.funfact-number{
  font-size:var(--fs-h3);line-height:var(--lh-h3);font-weight:var(--fw-bold);color:var(--color-brand);
}
.trust-stats span,.proof-stats span{font-size:var(--fs-sm);line-height:var(--lh-sm);font-weight:var(--fw-medium);color:var(--color-muted);}
.trust-stats div,.proof-stats div{border-color:var(--color-border);border-radius:var(--radius-lg);}

/* FAQ */
.faq-q{font-size:var(--fs-h5);line-height:var(--lh-h5);font-weight:var(--fw-semibold);color:var(--color-heading);}
.faq-a p{font-size:var(--fs-base);line-height:var(--lh-base);color:var(--color-body);max-width:var(--measure);text-align:left;}
.faq-item.open .faq-a{max-height:640px;}
.faq-plus{font-size:var(--fs-h3);font-weight:var(--fw-regular);color:var(--color-brand);}

/* Tables */
.compare-table th,.services-table th{font-size:var(--fs-sm);font-weight:var(--fw-bold);color:var(--color-heading);}
.compare-table td,.services-table td{font-size:var(--fs-card);line-height:var(--lh-sm);color:var(--color-body);}

/* --------------------------------------------------------------------------
   8. FORMS
   -------------------------------------------------------------------------- */
.contact-form input:not([type="checkbox"]),.contact-form textarea,.contact-form select{
  min-height:var(--field-h);padding:14px 16px;
  font-size:var(--fs-base);line-height:var(--lh-ui);font-weight:var(--fw-regular);
  color:var(--field-text);background:var(--field-bg);
  border:1px solid var(--field-border);border-radius:var(--radius-md);
}
.contact-form textarea{min-height:150px;line-height:var(--lh-base);}
.contact-form ::placeholder{color:var(--field-placeholder);opacity:1;}
.contact-form input:not([type="checkbox"]):focus,.contact-form textarea:focus,.contact-form select:focus{
  outline:none;border-color:var(--color-brand);box-shadow:0 0 0 3px rgba(230,205,138,.55);
}
.contact-form label{font-size:var(--fs-sm);font-weight:var(--fw-semibold);color:var(--color-heading);}
.recaptcha-check label{font-size:var(--fs-sm);font-weight:var(--fw-medium);color:var(--field-text);}
.form-note{font-size:var(--fs-sm);line-height:var(--lh-sm);font-weight:var(--fw-medium);color:var(--color-success);}
.form-error,.field-error{font-size:var(--fs-sm);line-height:var(--lh-sm);font-weight:var(--fw-medium);color:var(--color-error);}
.contact-info-value{font-size:var(--fs-base);font-weight:var(--fw-semibold);color:var(--color-brand);}

/* --------------------------------------------------------------------------
   9. HEADER AND NAVIGATION
   -------------------------------------------------------------------------- */
nav{padding:14px var(--gutter);min-height:var(--header-h);}
.nav-logo-img{height:44px;}
.nav-links{align-items:center;gap:clamp(14px,1.8vw,28px);}
.nav-links > li{
  font-family:var(--font-mono);
  font-size:var(--fs-nav);line-height:var(--lh-ui);font-weight:var(--fw-regular);
  letter-spacing:var(--ls-nav);text-transform:uppercase;color:var(--color-muted);
}
.nav-links > li > a{display:inline-flex;align-items:center;padding:8px 0;}
.nav-links > li:hover,.nav-links > li.current{color:var(--color-heading);}
.nav-links > li.current::after{bottom:-2px;height:2px;background:var(--color-brand);}
.nav-links > li.has-dropdown.current > a{color:var(--color-brand);}
.nav-links > li.has-dropdown > a::after{
  content:"";width:6px;height:6px;margin-left:8px;
  border-right:1.5px solid currentColor;border-bottom:1.5px solid currentColor;
  transform:rotate(45deg) translateY(-2px);opacity:.7;
}
.nav-dropdown-wrap{padding-top:12px;}
.nav-dropdown{
  min-width:260px;padding:var(--space-2);
  background:rgba(10,8,6,.97);border:1px solid var(--color-border);
  border-radius:var(--radius-md);box-shadow:var(--shadow-lg);
}
.nav-dropdown li{
  padding:0;border-left:0;border-radius:var(--radius-sm);white-space:nowrap;
  font-family:var(--font-mono);
  font-size:var(--fs-xs);line-height:var(--lh-ui);font-weight:var(--fw-regular);
  letter-spacing:var(--ls-nav);text-transform:uppercase;color:var(--color-body);
}
.nav-dropdown li > a{display:block;padding:10px 14px;}
.nav-dropdown li:hover,.nav-dropdown li.current{background:rgba(201,162,76,.1);color:var(--color-brand);}
/* keyboard users get the same dropdown as mouse users */
.nav-links li.has-dropdown:focus-within .nav-dropdown-wrap{opacity:1;visibility:visible;pointer-events:auto;}
.nav-links li.has-dropdown:focus-within .nav-dropdown{transform:translateY(0);}

/* menu button (hidden on desktop) */
.nav-toggle{
  display:none;align-items:center;justify-content:center;
  width:44px;height:44px;padding:0;cursor:pointer;
  background:transparent;border:1px solid var(--color-border);border-radius:var(--radius-md);color:var(--color-heading);
}
.nav-toggle-bars,.nav-toggle-bars::before,.nav-toggle-bars::after{
  display:block;width:20px;height:2px;background:currentColor;border-radius:2px;
  transition:transform var(--dur) var(--ease),opacity var(--dur) ease;
}
.nav-toggle-bars{position:relative;}
.nav-toggle-bars::before,.nav-toggle-bars::after{content:"";position:absolute;left:0;}
.nav-toggle-bars::before{top:-6px;}
.nav-toggle-bars::after{top:6px;}
nav.nav-open .nav-toggle-bars{background:transparent;}
nav.nav-open .nav-toggle-bars::before{transform:translateY(6px) rotate(45deg);}
nav.nav-open .nav-toggle-bars::after{transform:translateY(-6px) rotate(-45deg);}
nav.nav-open{transform:none !important;}

@media (max-width:1279px){
  .nav-toggle{display:inline-flex;}
  .nav-links{
    display:none;position:fixed;top:var(--header-h);left:0;right:0;
    flex-direction:column;align-items:stretch;gap:0;
    max-height:calc(100vh - var(--header-h));max-height:calc(100dvh - var(--header-h));overflow-y:auto;
    padding:var(--space-2) var(--gutter) var(--space-6);
    background:rgba(10,8,6,.98);border-bottom:1px solid var(--color-border);box-shadow:var(--shadow-lg);
  }
  nav.nav-open .nav-links{display:flex;}
  .nav-links > li{font-size:var(--fs-sm);padding:0;border-bottom:1px solid var(--color-border);color:var(--color-body);}
  .nav-links > li > a{display:flex;width:100%;padding:14px 0;}
  .nav-links > li.has-dropdown > a::after{display:none;}
  .nav-links > li.current::after{display:none;}
  .nav-links > li.current > a{color:var(--color-brand);}
  .nav-dropdown-wrap,.nav-links li.has-dropdown .nav-dropdown-wrap{
    position:static;opacity:1;visibility:visible;pointer-events:auto;padding:0 0 var(--space-3);
  }
  .nav-dropdown{min-width:0;padding:0 0 0 var(--space-4);background:transparent;border:0;box-shadow:none;transform:none;}
  .nav-links li.has-dropdown .nav-dropdown{transform:none;}
  .nav-dropdown li{font-size:var(--fs-xs);color:var(--color-muted);border-radius:0;white-space:normal;}
  .nav-dropdown li > a{padding:9px 0;}
  .nav-dropdown li:hover,.nav-dropdown li.current{background:transparent;}
}

/* --------------------------------------------------------------------------
   10. FOOTER
   -------------------------------------------------------------------------- */
.footer-main{padding:var(--space-9) var(--gutter) var(--space-7);}
.footer-bottom{padding:var(--space-5) var(--gutter);}
.footer-grid h4{font-size:var(--fs-h5);line-height:var(--lh-h5);font-weight:var(--fw-bold);color:var(--color-heading);margin-bottom:var(--space-5);}
.footer-blurb,.footer-nav li,.footer-contact-item span:last-child{
  font-size:var(--fs-card);line-height:var(--lh-sm);font-weight:var(--fw-regular);color:var(--color-muted);text-align:left;
}
.footer-nav li{margin-bottom:var(--space-3);}
.footer-nav li a{display:inline-block;padding:2px 0;}
.footer-nav li:hover,.footer-nav li a:hover{color:var(--color-brand);}
.footer-bottom .copyright,.footer-legal{font-size:var(--fs-sm);line-height:var(--lh-sm);font-weight:var(--fw-regular);}
.footer-bottom .copyright{color:var(--color-muted);}
.footer-legal a{color:var(--color-link);}
.footer-legal a:hover{color:var(--color-link-hover);}

/* --------------------------------------------------------------------------
   10b. SMALL CORRECTIONS
   -------------------------------------------------------------------------- */
p{text-wrap:pretty;}
.svc-big-num{font-size:var(--fs-h2);line-height:1;font-weight:var(--fw-bold);}
/* full-width map: 100vw included the scrollbar and caused horizontal overflow */
.contact-map-wrap{width:100%;left:0;margin-left:0;}

/* --------------------------------------------------------------------------
   11. RESPONSIVE
   -------------------------------------------------------------------------- */
@media (max-width:1023px){
  .about-container,.about-motion-card,.intro-card,.trust-card,.trust-banner-2{padding:var(--space-6) clamp(20px,3vw,32px);}
}
@media (max-width:767px){
  :root{--card-pad:20px;--card-pad-lg:24px;--field-h:50px;}
  .about-container,.about-motion-card,.intro-card,.trust-card,.trust-banner-2{padding:var(--space-6) 20px;border-radius:var(--radius-lg);}
  .page-banner{padding:calc(var(--header-h) + var(--space-5)) var(--gutter) var(--space-7);}
  .hero-viewport{padding:calc(var(--header-h) + var(--space-4)) var(--gutter) var(--space-8);}
  .page-intro,.section-head{margin-bottom:var(--space-6);}
  .cta-row,.hero-cta-row,.intro-cta-row{flex-direction:column;align-items:stretch;}
  .cta-row .cta-btn,.hero-cta-row .cta-btn,.intro-cta-row .cta-btn,.trust-banner-2 .cta-btn{width:100%;}
  .page-intro p,.section-head p{text-align:left;}
  .eyebrow{letter-spacing:.16em;}
  .hero-eyebrow{gap:var(--space-1) var(--space-4);}
  .hero-eyebrow span{border-right:0;padding:0;}
}
@media (prefers-reduced-motion:reduce){
  .cta-btn,.cta-btn-secondary,.nav-toggle-bars,.nav-toggle-bars::before,.nav-toggle-bars::after{transition:none;}
  .cta-btn:hover{transform:none;}
}

/* --------------------------------------------------------------------------
   12. FLAT CONTENT  (no card inside a card)
   Rule: one visible container per piece of content. Inside a card, groups are
   separated with headings, dividers and spacing, not with another bordered box.
   -------------------------------------------------------------------------- */

/* Service card: "What this means for your business" is a plain section of the card */
.svc-card .svc-benefits{
  align-self:start;padding:var(--space-5) 0 0;
  background:none;border:0;border-radius:0;box-shadow:none;
  border-top:1px solid var(--color-border);
}
.svc-benefits h4{margin:0 0 var(--space-3);}
.svc-benefits ul{gap:var(--space-3);}
.svc-benefits li{gap:var(--space-3);font-size:var(--fs-card);line-height:var(--lh-sm);}
.svc-benefits li svg{width:18px;height:18px;margin-top:calc((var(--lh-sm) * 1em - 18px) / 2);}
.svc-cta{max-width:100%;}
@media (min-width:1181px){
  .svc-body,.svc-card:nth-child(even) .svc-body{column-gap:var(--space-5);}
  .svc-card .svc-benefits{align-self:stretch;padding:0 0 0 var(--space-5);border-top:0;border-left:1px solid var(--color-border);}
  .svc-card:nth-child(even) .svc-benefits{padding:0 var(--space-5) 0 0;border-left:0;border-right:1px solid var(--color-border);}
}

/* "Related: ..." line inside a card is text with a divider, not a card */
.card-related{
  margin-top:var(--space-4);padding-top:var(--space-3);
  border-top:1px solid var(--color-border);
}

/* Phones: a section panel that only wraps cards adds a second frame and eats
   16 to 40px of width on each side. The cards become the one visible container,
   keeping the same combined tone the panel and card made together (0.58 over 0.50
   = 0.79 of the same dark colour), so the colours on screen do not change. */
@media (max-width:767px){
  :is(.about-container,.about-motion-card,.intro-card,.trust-card):has(:is(.pillar-card,.quad-card,.auto-card,.item-card,.related-card,.industry-card,.sector-card,.capability-card,.differentiator-card,.split-card,.project-teaser,.project-card,.promise-card,.value-card,.benefit-card,.device-card,.backup-cat,.consulting-block,.services-type-block,.tech-col,.focus-card,.service-type-col,.svc-card,.stage-item,.simple-benefit,.trust-stats > div,.no-roles-box)){
    --card-bg:rgba(10,8,6,.79);
    padding:0;
    background:none;border:0;border-radius:0;box-shadow:none;
    backdrop-filter:none;-webkit-backdrop-filter:none;
  }
  :is(.about-container,.about-motion-card,.intro-card,.trust-card):has(:is(.pillar-card,.quad-card,.auto-card,.item-card,.related-card,.industry-card,.sector-card,.capability-card,.differentiator-card,.split-card,.project-teaser,.project-card,.promise-card,.value-card,.benefit-card,.device-card,.backup-cat,.consulting-block,.services-type-block,.tech-col,.focus-card,.service-type-col,.svc-card,.stage-item,.simple-benefit,.trust-stats > div,.no-roles-box)) :is(.trust-stats > div,.no-roles-box){background:rgba(10,8,6,.75);}
  .svc-cta{justify-self:stretch;}
  /* long centred paragraphs are hard to read on a phone: headings stay centred, body copy is left-aligned */
  .about-motion-card > p,.intro-card > p,.section-lede,.partners-lede,.insights-lede{text-align:left;}
  .page-intro h2,.section-head h2,.intro-heading,.about-motion-heading,.projects-head h2,
  .logo-head h2,.focus-head h2,.promise-head h2,.values-head h2,.benefits-head h2,.funfacts-head h2,
  .contact-head h2,.trust-banner-2 h2{margin-bottom:var(--space-4);}
}

/* --------------------------------------------------------------------------
   13. FLUID FIT FOR SMALL SCREENS AND LARGE SCREENS
   -------------------------------------------------------------------------- */
@media (max-width:479px){
  :root{--card-pad:16px;--card-pad-lg:20px;--ls-btn:.08em;--ls-nav:.1em;--ls-caps:.18em;}
  .cta-btn,.cta-btn-secondary,.contact-form button{padding:14px 20px;}
}
@media (max-width:359px){
  .eyebrow{letter-spacing:.12em;}
}

/* Image-led project cards: the image runs edge to edge and the text block has its own padding,
   so the card itself must not add a second layer of padding. */
.project-card{padding:0;overflow:hidden;}
.project-card-body{padding:var(--space-6) var(--space-5);}
.project-card-body h3{font-size:var(--fs-h5);line-height:var(--lh-h5);overflow-wrap:break-word;}

/* Four-up promise and value grids: columns may shrink below their content, then step 4 -> 2 -> 1
   (uppercase Syne words such as COMMUNICATION need about 215px, so four columns only from 1280px) */
.promise-grid,.values-grid{grid-template-columns:repeat(4,minmax(0,1fr));gap:var(--space-5);}
.promise-card{padding:var(--space-6) var(--space-4h);}
.promise-card h3,.value-card h3{overflow-wrap:break-word;}
@media (max-width:1279px){.promise-grid,.values-grid{grid-template-columns:repeat(2,minmax(0,1fr));}}
@media (max-width:560px){.promise-grid,.values-grid{grid-template-columns:minmax(0,1fr);gap:var(--space-4);}}

/* Contact form: fields pair up on tablets and laptops, one per row on phones so labels and placeholders are not clipped */
.contact-form{grid-template-columns:repeat(2,minmax(0,1fr));gap:var(--space-4);}
.contact-form .full{grid-column:1 / -1;}
.contact-grid{gap:clamp(32px,5vw,64px);}
@media (max-width:575px){.contact-form{grid-template-columns:minmax(0,1fr);} .contact-form button{width:100%;}}

/* Stat tiles and technology columns: columns may shrink below their content, so nothing pushes the page wider
   (technology columns: four across only from 1280px, two on tablets and small laptops, one on phones) */
.proof-stats,.trust-stats{grid-template-columns:repeat(4,minmax(0,1fr));}
@media (max-width:820px){.proof-stats,.trust-stats{grid-template-columns:repeat(2,minmax(0,1fr));}}
.proof-stats strong,.proof-stats span,.trust-stats strong,.trust-stats span,.tech-col li{overflow-wrap:anywhere;}
.tech-grid{grid-template-columns:repeat(4,minmax(0,1fr));}
@media (max-width:1279px){.tech-grid{grid-template-columns:repeat(2,minmax(0,1fr));}}
@media (max-width:560px){.tech-grid{grid-template-columns:minmax(0,1fr);}}

/* Home hero label row (four items): one line from 900px; below that a 2 x 2 block, one column on phones,
   with no dividers so nothing dangles at the end of a wrapped line */
@media (max-width:899px){
  .hero-eyebrow{display:grid;grid-template-columns:repeat(2,auto);justify-content:center;gap:var(--space-1) var(--space-6);}
  .hero-eyebrow span{border-right:0;padding:0;}
}
@media (max-width:479px){
  .hero-eyebrow{grid-template-columns:auto;gap:var(--space-1);}
}

/* Section rhythm, continued */
/* a button that follows text inside a text block sits 32px below it (text margin 16 + button margin 16) */
.page-intro > .cta-btn{margin-top:var(--space-4);}
/* a text block that continues straight after a grid or table */
.page-intro.page-intro--follow{margin-top:var(--space-6);}
/* every heading block gives the content below it the same 40px (32px on phones) */
.focus-head,.promise-head,.values-head,.logo-head,.benefits-head,.projects-head,.funfacts-head,.contact-head{margin-bottom:var(--space-6h);}
@media (max-width:767px){.focus-head,.promise-head,.values-head,.logo-head,.benefits-head,.projects-head,.funfacts-head,.contact-head{margin-bottom:var(--space-6);}}

} /* end @layer design-system */
