/* DrimySoft — site styles.
   Breakpoints: tablet ≤ 1024px, phone ≤ 767px.
   Brand icons (LinkedIn, Instagram, Facebook, arrow, dot-circle): Font Awesome Free, CC BY 4.0. */

:root {
  --green: #59ac7f;
  --green-bright: #00ac7c;
  --green-dark: #086d36;
  --navy: #0a0d31;
  --ink: #242627;
  --text: rgba(0, 0, 0, 0.6);
  --grey: #5f6567;
  --light: #f5f5f5;
  --silver: #d3d3d3;
  --lavender: #dee0ff;
  --mist: #e9e6ef;
  --line: rgba(0, 0, 0, 0.15);
  --shade: rgba(0, 0, 0, 0.15);
  --white: #fff;

  --font-head: 'Inter Tight', 'Helvetica Neue', Arial, sans-serif;
  --font-body: Helvetica, sans-serif;

  --container: 1280px;
  --gutter: 30px;
  --header-h: 94px;
  --radius: 4px;

  --h1: 60px; --h1-lh: 1;
  --h2: 48px; --h2-lh: 1.2;
  --h3: 30px; --h3-lh: 1.2;
  --h4: 24px; --h4-lh: 1.3;
  --h5: 20px; --h5-lh: 1.3;
  --h6: 16px; --h6-lh: 1.6;
}
@media (max-width: 1024px) {
  :root {
    --header-h: 72px;
    --h1: 35px; --h2: 30px; --h2-lh: 1.1; --h3: 24px; --h3-lh: 1.1;
    --h4: 22px; --h5: 18px; --h6: 15px; --h6-lh: 1;
  }
}
@media (max-width: 767px) {
  :root {
    --gutter: 20px;
    --header-h: 70px;
    --h1: 30px; --h2: 25px; --h2-lh: 1.3; --h3: 20px;
    --h4: 18px; --h4-lh: 1.4; --h5: 16px; --h6: 14px;
  }
}

/* ---------------------------------------------------------------- base */

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: var(--header-h); }
body {
  margin: 0;
  font: 400 16px/1.4 var(--font-body);
  color: var(--text);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}
img, svg { display: block; max-width: 100%; }
img { height: auto; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
p { margin: 0 0 1em; }
p:last-child { margin-bottom: 0; }
ul { margin: 0; padding: 0; list-style: none; }
h1, h2, h3, h4, h5, h6 { margin: 0; font-family: var(--font-head); font-weight: 600; color: var(--navy); }
h1 { font-size: var(--h1); line-height: var(--h1-lh); letter-spacing: -1px; }
h2 { font-size: var(--h2); line-height: var(--h2-lh); font-weight: 700; }
h3 { font-size: var(--h3); line-height: var(--h3-lh); }
h4 { font-size: var(--h4); line-height: var(--h4-lh); }
h5 { font-size: var(--h5); line-height: var(--h5-lh); }
h6 { font-size: var(--h6); line-height: var(--h6-lh); }
.icon { width: 1em; height: 1em; flex: none; fill: currentColor; }
.sprite { display: none; }
[hidden] { display: none !important; }

.skip-link { position: absolute; left: -9999px; top: 0; z-index: 100; padding: 10px 16px; background: var(--white); color: var(--ink); }
.skip-link:focus { left: 10px; top: 10px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
:focus-visible { outline: 2px solid var(--green); outline-offset: 2px; }

.container { width: 100%; max-width: calc(var(--container) + 2 * var(--gutter)); margin-inline: auto; padding-inline: var(--gutter); }
.container-wide { width: calc(100% - 2 * var(--gutter)); max-width: 1320px; padding-inline: 0; }
@media (max-width: 767px) { .container-wide { width: 100%; } }

main { padding-top: var(--header-h); }

/* ---------------------------------------------------------------- shared pieces */

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 14px 24px; border-radius: var(--radius);
  font: 600 14px/1.2 var(--font-head); text-align: center;
  color: var(--white); background: var(--green);
  transition: background-color .3s, color .3s;
}
.btn:hover, .btn:focus-visible { background: var(--ink); color: var(--white); }
.btn-secondary { background: var(--silver); color: var(--green-dark); }
.btn-plain { text-transform: none; }
@media (max-width: 1024px) { .btn { padding: 13px 22px; } }
@media (max-width: 767px) { .btn { padding: 12px 20px; } }

.chip {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 6.5px 8px; border-radius: var(--radius);
  font: 600 10px/17px var(--font-head); letter-spacing: 1px; text-transform: uppercase;
  color: var(--grey); background: var(--light);
}
.chip-dark { color: var(--lavender); background: var(--shade); }
.chip-light { padding: 2px 9px; font: 500 12px/1.2 Inter, var(--font-head); letter-spacing: 0; text-transform: none; color: var(--ink); }
.chip-light .icon { width: 8px; height: 9px; }

.link-more {
  display: inline-block; padding-bottom: 1px;
  font: 600 12px/1.3 var(--font-head); color: var(--green);
  border-bottom: 3px solid var(--lavender);
  transition: color .3s, border-color .3s;
}
.link-more:hover { color: var(--ink); border-color: var(--green); }

.rule { height: 1px; margin: 0; border: 0; background: var(--line); }

.lead { font-size: 20px; line-height: 1.5; color: var(--ink); }

.check-list li { display: flex; align-items: center; gap: 9px; margin-bottom: 10px; font-size: 16px; line-height: 1.4; color: var(--ink); }
.check-list .icon { width: 23px; height: 18px; color: var(--green); }

/* ---------------------------------------------------------------- header */

.site-header { position: fixed; inset: 0 0 auto; z-index: 50; background: var(--white); transition: transform .35s ease; }
.site-header.is-hidden { transform: translateY(-100%); }
.header-bar {
  position: relative; z-index: 2;
  display: grid; grid-template-columns: 201px 1fr 349px; align-items: center; height: var(--header-h);
  background: var(--white);
}
.header-bar::after { content: ''; position: absolute; left: var(--gutter); right: var(--gutter); bottom: 0; height: 1px; background: var(--line); }
.header-logo { display: block; }
.header-logo img { width: 153px; height: auto; margin-left: 0; }

.main-nav { display: flex; justify-content: center; }
.main-nav ul { display: flex; }
.main-nav a {
  display: flex; align-items: center; gap: 4px; padding: 20px 5px; margin-inline: 5.5px;
  font: 500 16px/1.2 var(--font-head); color: var(--ink); transition: color .3s;
}
.main-nav .icon { width: 10px; height: 10px; opacity: .7; }
.main-nav li.is-open > a, .main-nav a:hover { color: var(--green); }

.header-actions { grid-column: 3; display: flex; align-items: center; justify-content: flex-end; gap: 0; }
.header-call { width: 142px; display: flex; flex-direction: column; align-items: flex-start; gap: 6px; }
.header-phone { font: 500 16px/1.2 var(--font-head); color: var(--ink); }
.header-actions .btn { margin-left: 0; }
.menu-toggle { display: none; width: 36px; height: 36px; align-items: center; justify-content: center; color: var(--ink); }
.menu-toggle .icon { width: 24px; height: 24px; }
.menu-toggle .when-open, .menu-toggle[aria-expanded="true"] .when-closed { display: none; }
.menu-toggle[aria-expanded="true"] .when-open { display: block; }

@media (max-width: 1024px) {
  .header-bar { grid-template-columns: 1fr auto; }
  .header-actions { grid-column: 2; }
  .main-nav { display: none; }
  .header-call { margin-right: 0; }
  .menu-toggle { display: flex; width: 33px; height: 33px; }
  .menu-toggle .icon { width: 22px; height: 22px; }
}
@media (max-width: 767px) {
  .header-logo img { width: 120px; }
  .header-call { display: none; }
  .header-actions { gap: 0; }
  .menu-toggle { width: 36px; height: 36px; }
  .menu-toggle .icon { width: 24px; height: 24px; }
}

/* mobile / tablet menu */
.mobile-menu {
  position: absolute; left: 0; right: 0; top: 100%; z-index: 1;
  background: var(--white); border: 1px solid var(--line); border-top: 0;
  box-shadow: 0 0 10px rgba(0, 0, 0, .1);
}
.mobile-menu li { position: relative; }
.mobile-menu a { display: block; padding: 15px 20px; font: 500 15px/1.2 var(--font-head); color: var(--ink); }
.mobile-menu a:hover { color: var(--green); }
.mobile-menu .sub-toggle { position: absolute; top: 0; right: 0; width: 50px; height: 47px; display: flex; align-items: center; justify-content: center; color: var(--ink); }
.mobile-menu .sub-toggle .icon { width: 10px; height: 10px; transition: transform .2s; }
.mobile-menu .sub-toggle[aria-expanded="true"] .icon { transform: rotate(180deg); }
.mobile-menu ul ul a { padding-left: 40px; }
@media (min-width: 1025px) { .mobile-menu { display: none !important; } }

/* mega menus */
.mega {
  position: absolute; left: 0; right: 0; top: 70px; z-index: 3;
  border-top: 1px solid var(--line);
  background: linear-gradient(90deg, var(--white) calc(50% + 294px), var(--light) 0);
}
.mega-backdrop { position: fixed; inset: 0; z-index: -1; background: rgba(0, 0, 0, .5); }
.mega-grid { display: grid; grid-template-columns: 345px 589px 1fr; min-height: 402px; }
.mega-col { padding: 50px 0; }
.mega-title { margin-bottom: 18px; font: 600 20px/1.3 var(--font-head); color: var(--navy); }
.mega-title-sm { font-size: 14px; font-weight: 500; margin-bottom: 12px; }
.mega-links a, .mega-platforms li { display: flex; align-items: center; gap: 12px; padding: 8px 0; font: 500 15px/1.4 var(--font-head); color: var(--ink); }
.mega-links a:hover { color: var(--green); }
.mega-cards { display: grid; grid-template-columns: repeat(2, 200px); gap: 15px; }
.mega-card {
  display: flex; flex-direction: column; justify-content: space-between; gap: 22px;
  height: 113px; padding: 20px; border: 1px solid var(--line); border-radius: 6px;
  font: 500 15px/1.3 var(--font-head); color: var(--ink); transition: color .3s;
}
.mega-card .icon { width: 36px; height: 36px; color: var(--green); }
.mega-card:hover { color: var(--green); }
.mega-aside { position: relative; padding-left: 86px; }
.mega-badge {
  position: absolute; left: -60px; top: 0;
  display: flex; align-items: center; justify-content: center;
  width: 120px; height: 120px; border-radius: 50%; background: var(--white);
}
.mega-badge .icon { width: 65px; height: 65px; color: var(--green); }
.mega-services .mega-aside .mega-title { margin-top: 2px; }
.mega-about { grid-template-columns: 490px 444px 1fr; min-height: 390px; }
.mega-lead { margin: 0; font: 600 30px/1.2 var(--font-head); color: var(--navy); }
.mega-about .mega-col:nth-child(2) { padding-top: 54px; }
.mega-platforms .icon { width: 24px; height: 24px; }

/* ---------------------------------------------------------------- footer */

.site-footer { padding: 25px 0 20px; background: var(--white); color: var(--ink); font-size: 14px; line-height: 1.4; }
.footer-grid { display: grid; grid-template-columns: 256px 256px 294px 1fr; align-items: start; padding-bottom: 20px; }
.footer-badge img { width: 80px; height: 80px; }
.bar { position: relative; padding-left: 20px; }
.bar::before { content: ''; position: absolute; left: 0; top: 3px; width: 3px; height: 27px; background: var(--silver); }
.footer-item a { display: block; max-width: 150px; color: var(--ink); }
.footer-contact a { max-width: none; font-family: var(--font-head); line-height: 1.4; padding: 1px 0 2px; }
.footer-item a:hover, .footer-social a:hover { color: var(--green); }
.footer-social { display: grid; grid-template-columns: repeat(3, 1fr); justify-items: center; padding-left: 44px; }
.footer-social a { display: flex; flex-direction: column; align-items: center; gap: 6px; font: 400 14px/1.2 var(--font-head); color: var(--navy); }
.footer-social .icon { width: 24px; height: 24px; color: var(--ink); }
.footer-legal { display: flex; justify-content: center; gap: 20px; margin: 0 auto; }
.footer-legal span + a { margin-left: -14px; }

@media (max-width: 1024px) {
  .footer-grid { grid-template-columns: repeat(3, 1fr); row-gap: 25px; }
  .footer-social { grid-column: 1 / -1; padding-left: 0; }
  .footer-social.bar::before { display: none; }
}
@media (max-width: 767px) {
  .site-footer { padding-top: 30px; }
  .footer-grid { grid-template-columns: 1fr; row-gap: 0; }
  .footer-badge { padding-bottom: 60px; border-bottom: 1px solid var(--line); margin-bottom: 20px; }
  .site-footer .bar { padding-left: 0; }
  .site-footer .bar::before { display: none; }
  .footer-item { padding-bottom: 20px; }
  .footer-item a { max-width: none; }
  .footer-item br { display: none; }
  .footer-contact { padding-bottom: 28px; border-bottom: 1px solid var(--line); }
  .footer-social { width: 351px; margin: 25px 0 0 -20px; padding: 0 0 22px; }
  .footer-legal { justify-content: flex-start; padding-bottom: 10px; }
}

/* ---------------------------------------------------------------- reveal on scroll */

.reveal { opacity: 0; transform: translateY(30px); transition: opacity .9s ease, transform .9s ease; }
.reveal.is-visible { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
}

body { animation: page-in .5s ease both; }
@keyframes page-in { from { opacity: 0; } }
@media (prefers-reduced-motion: reduce) { body { animation: none; } }

/* ---------------------------------------------------------------- layout helpers */

.center { text-align: center; }
.btn-row { display: flex; flex-wrap: wrap; gap: 15px; }
.section-title { margin: 20px 0 25px; }
.rule-spaced { margin: 60px 0 55px; }
@media (max-width: 1024px) { .rule-spaced { margin: 30px 0 25px; } }
@media (max-width: 767px) { .rule-spaced { margin: 30px 0 25px; } }

/* ---------------------------------------------------------------- home: hero */

.hero { position: relative; min-height: 475px; margin-top: 60px; }
.hero-text { position: relative; z-index: 1; padding-top: 90px; }
.hero-title { max-width: 640px; margin-bottom: 32px; font-size: 72px; line-height: 1; color: var(--green-bright); }
.hero-lead { max-width: 540px; margin: 0 0 30px; font: 400 32px/1.4 var(--font-body); color: var(--ink); }
.hero-img {
  position: absolute; top: 0; right: var(--gutter);
  width: 750px; height: 475px; object-fit: cover;
  -webkit-mask: url(/assets/img/hero-mask.png) bottom right / cover no-repeat;
  mask: url(/assets/img/hero-mask.png) bottom right / cover no-repeat;
}
@media (max-width: 1024px) {
  .hero { min-height: 300px; margin-top: 30px; }
  .hero-text { padding-top: 33px; }
  .hero-title { max-width: 50%; font-size: 4.5vw; }
  .hero-lead { max-width: 46%; font-size: 20px; }
  .hero-img { width: 450px; height: 300px; -webkit-mask-position: bottom left; mask-position: bottom left; }
}
@media (max-width: 767px) {
  .hero { min-height: 400px; margin-top: 40px; }
  .hero-text { padding-top: 0; }
  .hero-title { max-width: none; font-size: 30px; }
  .hero-lead { max-width: none; margin-bottom: 15px; font-size: 18px; }
  .hero .btn-row { flex-direction: column; align-items: flex-start; gap: 14px; }
  .hero-img { top: auto; bottom: 0; width: 250px; height: 120px; }
}

/* ---------------------------------------------------------------- home: stats */

.stats { display: grid; grid-template-columns: repeat(5, 256px); margin-bottom: 50px; color: var(--ink); }
.stats-badge { display: flex; justify-content: center; padding-bottom: 20px; }
.stats-badge img { width: 107px; height: 107px; margin: -18px 0 -22px; }
.stat p { margin: 0; }
.stat-num { font: 600 30px/1.2 var(--font-head); color: var(--navy); }
.stat-num small { font-size: 20px; }
@media (max-width: 1024px) {
  .stats { grid-template-columns: repeat(4, 210px); margin-bottom: 10px; }
  .stats-badge { grid-column: 1 / -1; padding-bottom: 40px; margin-bottom: 40px; border-bottom: 1px solid var(--line); }
  .stats-badge img { width: 317px; height: 317px; margin: -20px 0; }
  .stat-num { font-size: 24px; }
  .stat-num small { font-size: 18px; }
}
@media (max-width: 767px) {
  .stats { grid-template-columns: 1fr 1fr; row-gap: 0; margin-bottom: 35px; }
  .stats-badge { padding-bottom: 31px; margin-bottom: 0; border-bottom: 0; }
  .stats-badge img { width: 140px; height: 140px; margin: 0; }
  .stat { padding-bottom: 11px; }
  .stat p:last-child { margin-bottom: 16px; }
  .stat:last-child p:last-child { margin-bottom: 39px; }
  .stat-num { font-size: 20px; }
  .stat-num small { font-size: 16px; }
}

/* ---------------------------------------------------------------- home: dark banner */

.banner-dark {
  display: flex; flex-direction: column; align-items: flex-start; justify-content: space-between;
  min-height: 332px; margin-bottom: 49px; padding: 25px; border-radius: var(--radius);
  background: var(--ink) url(/assets/img/circuits-1837.webp) 90% 100% / auto no-repeat;
}
.banner-dark h2 { max-width: 780px; color: var(--white); }
@media (max-width: 1024px) {
  .banner-dark { min-height: 205px; background-image: url(/assets/img/mark-400.webp); background-position: 53vw -.1em; background-size: 200px auto; }
  .banner-dark h2 { max-width: none; }
}
@media (max-width: 767px) {
  .banner-dark { min-height: 186px; margin: 0 calc(-1 * var(--gutter)) 30px; padding: 20px; border-radius: 0; }
}

/* ---------------------------------------------------------------- home: features */

.features {
  display: grid; grid-template-columns: repeat(4, 1fr); padding-bottom: 59px; margin-bottom: 50px;
  background: linear-gradient(var(--line), var(--line)) bottom / calc(100% - 2 * var(--gutter)) 1px no-repeat;
}
.feature { padding-right: 15px; }
.feature + .feature { padding-left: 15px; }
.feature img { height: 70px; width: auto; margin-bottom: 20px; }
.feature h3 { margin-bottom: 20px; font-size: var(--h4); line-height: var(--h4-lh); }
.feature p { max-width: 250px; font-size: 14px; line-height: 1.4; }
@media (max-width: 1024px) { .feature, .feature + .feature { padding: 0 15px 0 0; } }
@media (max-width: 767px) {
  .features { grid-template-columns: 1fr; row-gap: 0; padding-bottom: 0; margin-bottom: 25px; background: none; }
  .feature, .feature:nth-child(even) { padding: 0 0 30px; margin-bottom: 30px; border-bottom: 1px solid var(--line); }
  .feature img { margin-bottom: 15px; }
  .feature h3 { margin-bottom: 15px; }
  .feature p { max-width: none; }
}

/* ---------------------------------------------------------------- solutions band + cards */

.solutions-band { padding: 60px 0; margin-bottom: 80px; background: linear-gradient(180deg, var(--green) 0%, var(--mist) 100%); }
.solutions-band .center { margin: 70px 0 0; }
.cards-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.sol-card { display: flex; flex-direction: column; background: var(--white); border-radius: var(--radius); }
.sol-card-body { flex: 1; display: block; padding: 9px 30px 28px; color: var(--ink); }
.sol-card-body .icon { width: 65px; height: 65px; margin-bottom: 20px; color: var(--green); }
.sol-card-body h3 { margin-bottom: 15px; font-size: var(--h4); line-height: 1.3; color: var(--ink); transition: color .3s; }
.sol-card-body:hover h3 { color: var(--green); }
.sol-card-body p { font-size: 14px; line-height: 1.4; }
.sol-card-foot { padding: 20px 30px 13px; border-top: 1px solid var(--line); }
@media (max-width: 1024px) { .cards-4 { gap: 20px; } .sol-card-body, .sol-card-foot { padding-inline: 30px; } }
@media (max-width: 767px) {
  .solutions-band { padding: 30px 0; margin-bottom: 60px; }
  .solutions-band .center { margin-top: 58px; }
  .section-title { margin-bottom: 20px; }
  .cards-4 { grid-template-columns: 1fr; gap: 35px; }
  .sol-card-body { padding: 20px 20px 24px; }
  .sol-card-body .icon { margin-bottom: 21px; }
  .sol-card-foot { padding: 20px 20px 10px; }
}

/* ---------------------------------------------------------------- support + IT challenges */

.support { padding: 60px 0 60px; margin-bottom: 80px; background: var(--ink); color: var(--light); }
.support-intro h2 { margin: 20px 0 25px; color: var(--white); }
.support-intro p { color: var(--light); }
.challenges { margin-top: 61px; }
.challenges-head {
  display: flex; align-items: center; justify-content: space-between;
  width: 30%; max-width: 384px; min-width: 280px; height: 71px; margin: 0 auto; padding: 0 13px;
  border-radius: 25px 25px 0 0; background: var(--shade);
}
.challenges-head h3 { font-size: var(--h5); color: var(--light); }
.round-btn {
  display: flex; align-items: center; justify-content: center;
  width: 46px; height: 46px; border-radius: 50%; background: var(--shade); color: rgba(245, 245, 241, .7);
  transition: color .3s, background-color .3s;
}
.round-btn .icon { width: 15px; height: 15px; }
.round-btn:hover { color: var(--white); background: rgba(0, 0, 0, .3); }
.challenges-tabs {
  display: grid; grid-template-columns: 20% 1fr 1fr 20%; gap: 10px;
  height: 80px; padding-top: 10px; background: var(--shade);
}
.challenges-tabs span { border-radius: 12px 12px 0 0; background: var(--ink); }
.carousel-track {
  position: relative; display: flex; gap: 45px; margin: 0 20px;
  overflow-x: auto; scroll-snap-type: x mandatory; scroll-behavior: smooth; scrollbar-width: none;
  align-items: flex-start;
}
.carousel-track::-webkit-scrollbar { display: none; }
.tech-card {
  flex: 0 0 calc((100% - 90px) / 3); scroll-snap-align: start;
  padding: 25px; border-radius: var(--radius); background: var(--shade);
  transition: background-color .3s;
}
.tech-card:has(details[open]) { background: rgba(0, 0, 0, .6); }
.tech-card h4 { margin-bottom: 8px; font-size: var(--h5); line-height: 1.3; color: var(--light); }
.tech-card p { margin-bottom: 14px; font-size: 14px; line-height: 1.4; color: rgba(245, 245, 241, .7); }
.tech-more summary {
  display: flex; align-items: center; gap: 10px; width: max-content; padding: 5px 0;
  list-style: none; cursor: pointer; font-size: 14px; color: var(--light);
}
.tech-more summary::-webkit-details-marker { display: none; }
.tech-more summary .icon { width: 21px; height: 21px; color: var(--grey); }
.tech-more summary .when-open, .tech-more[open] summary .when-closed { display: none; }
.tech-more[open] summary .when-open { display: block; }
.tech-logos { margin-top: 15px; }
.tech-logos li { display: flex; align-items: center; height: 165px; padding: 0 15px; }
.tech-logos li + li { border-top: 1px solid rgba(255, 255, 255, .8); }
.tech-logos img { max-width: 125px; max-height: 90px; width: auto; height: auto; }
@media (max-width: 1024px) { .tech-card { flex-basis: calc((100% - 10px) / 2); } .carousel-track { gap: 10px; } }
@media (max-width: 767px) {
  .support { padding: 40px 0 60px; margin-bottom: 40px; }
  .support-intro h2 { margin: 15px 0 15px; }
  .challenges { margin-top: 40px; }
  .challenges-head { width: calc((100% - 40px) * .9); max-width: none; min-width: 0; height: 66px; padding: 0 8px; }
  .challenges-head h3 { font-size: 16px; }
  .challenges-tabs { height: 60px; }
  .carousel-track { margin: 0 10px; gap: 10px; }
  .tech-card { flex-basis: 100%; }
}

/* ---------------------------------------------------------------- contact block */

.contact-block { margin-bottom: 80px; }
.contact-top { min-height: 327px; padding: 20px 25px 25px; display: flex; flex-direction: column; align-items: flex-start; justify-content: space-between; border-radius: var(--radius) var(--radius) 0 0; background: var(--ink); }
.contact-top h2 { max-width: 640px; color: var(--white); }
.contact-body {
  display: grid; grid-template-columns: minmax(0, 57fr) minmax(0, 43fr); column-gap: 0;
  padding: 35px 25px 20px; border-radius: 0 0 var(--radius) var(--radius);
  background: linear-gradient(90deg, var(--mist) 0%, var(--green) 100%);
}
.contact-info .lead { max-width: 560px; margin-bottom: 50px; }
.contact-phone { display: inline-block; margin-bottom: 55px; font: 600 var(--h5)/1.3 var(--font-head); color: var(--navy); }
.contact-phone:hover { color: var(--green-dark); }
.contact-sub { margin-bottom: 20px; font-size: var(--h5); line-height: 1.3; }
.benefits { display: flex; gap: 0; margin-bottom: 52px; }
.benefits .check-list { width: 225px; }
.steps { display: flex; margin: 0; padding: 0; list-style: none; }
.steps li { position: relative; display: flex; align-items: center; gap: 0; flex: 0 0 249px; color: var(--ink); }
.step-num { width: 30px; flex: none; font: 600 24px/1.3 var(--font-head); color: var(--ink); }
.steps p { flex: 0 0 160px; margin: 0; padding-right: 20px; font-size: 14px; line-height: 1.4; }
.step-sep { width: 20px; height: 66px; margin-left: 20px; color: var(--line); }

.form-card { align-self: start; margin: -255px 0 0 30px; padding: 25px 45px 45px; border-radius: var(--radius); background: var(--white); }
.form-card-head { position: relative; margin: 0 -45px 25px; padding-bottom: 6px; text-align: center; border-bottom: 1px solid var(--line); }
.form-card-head h3 { font-size: 20px; line-height: 1.3; }
.form-card-head .icon { width: 25px; height: 25px; margin: 5px auto -12px; color: var(--ink); background: var(--white); }

@media (max-width: 1024px) {
  .contact-block { width: 100%; }
  .contact-top { min-height: 233px; border-radius: 0; }
  .contact-body { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); border-radius: 0; }
  .contact-info { padding-right: 25px; }
  .contact-top h2 { max-width: 425px; }
  .benefits { margin-bottom: 31px; }
  .benefits .check-list:first-child { width: 165px; }
  .form-card { margin: -105px 0 0 30px; padding: 25px 30px 40px; }
  .form-card-head { margin-inline: -30px; }
  .steps { flex-direction: column; }
  .steps li { flex: none; margin-bottom: 21px; }
  .step-num { width: 25px; font-size: 22px; }
  .steps p { flex: 1; margin: 5px 0; padding-right: 0; }
  .step-sep { position: absolute; left: 6px; bottom: -31px; width: 12px; height: 40px; margin: 0; transform: rotate(90deg); }
}
@media (max-width: 767px) {
  .contact-block { margin-bottom: 50px; }
  .contact-top { min-height: 207px; padding: 20px; border-radius: 0; }
  .contact-body { grid-template-columns: 1fr; padding: 30px 20px 0; border-radius: 0; }
  .contact-info { padding-right: 0; }
  .contact-top h2 { max-width: none; }
  .contact-phone { margin-bottom: 40px; }
  .benefits { margin-bottom: 8px; }
  .benefits .check-list { width: 50%; }
  .steps { flex-direction: column; }
  .steps li { flex: none; min-height: 39px; margin-bottom: 25px; }
  .step-num { width: 40px; }
  .steps p { flex: 1; padding-right: 0; }
  .step-sep { position: absolute; left: 4px; bottom: -36px; width: 12px; height: 40px; margin: 0; transform: rotate(90deg); }
  .form-card { margin: 10px -20px 0; padding: 25px 20px 40px; border-radius: 0; }
  .form-card-head { margin-inline: -20px; }
}

/* ---------------------------------------------------------------- forms */

.form { display: flex; flex-wrap: wrap; gap: 20px; }
.field { flex: 1 1 100%; display: flex; flex-direction: column; gap: 5px; }
.field-half { flex-basis: calc(50% - 10px); }
.field label { font-size: 14px; line-height: 1.6; color: var(--ink); }
.req { margin-left: 3px; color: #e51b1b; }
.field input, .field select, .field textarea {
  width: 100%; min-height: 42px; padding: 10px 15px;
  font: 400 14px/1.4 var(--font-body); color: #1f2124;
  background: var(--white); border: 1px solid var(--line); border-radius: var(--radius);
  appearance: none; transition: border-color .2s;
}
.field textarea { min-height: 100px; resize: vertical; }
.field .btn { align-self: flex-start; }
.field ::placeholder { color: var(--text); opacity: 1; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--green); }
.field select { padding-right: 36px; color: var(--text); cursor: pointer; }
.select { position: relative; }
.select .icon { position: absolute; right: 12px; top: 50%; width: 11px; height: 11px; margin-top: -5px; color: var(--text); pointer-events: none; }
.field.has-error input, .field.has-error select, .field.has-error textarea { border-color: #e51b1b; }
.field-error { font-size: 12px; color: #e51b1b; }
.field-trap { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.turnstile-slot:empty { display: none; }
.turnstile-slot { min-height: 65px; }
.form .btn[disabled] { opacity: .6; cursor: progress; }
.form-message { flex-basis: 100%; margin: 0; padding: 12px 15px; border-radius: var(--radius); font-size: 14px; }
.form-message.is-success { color: #0f5132; background: #d1e7dd; }
.form-message.is-error { color: #842029; background: #f8d7da; }
@media (max-width: 767px) {
  .field-half { flex-basis: 100%; }
  .field input, .field select, .field textarea { min-height: 44px; font-size: 16px; }
}

/* ---------------------------------------------------------------- home: tablet spacing (measured from the original) */
@media (min-width: 768px) and (max-width: 1024px) {
  .stat { padding-bottom: 23px; }
  .stat p:last-child { margin-bottom: 16px; }
  .banner-dark { margin-bottom: 55px; }
  .solutions-band { padding: 30px 0 40px; margin-bottom: 60px; }
  .support { padding-top: 30px; margin-bottom: 41px; }
  .steps li { margin-bottom: 36px; }
  .step-sep { bottom: -38px; }
  .challenges { margin-top: 46px; }
  .challenges-head { height: 68px; }
}

/* ---------------------------------------------------------------- inner pages: title band */

.page-hero { padding: calc(12vh + 25px) 0 3vh; color: var(--white); background: #1e2122 url(/assets/img/circuits-band-1682.webp) bottom right / contain no-repeat; }
.page-hero-inner { display: flex; flex-direction: column; align-items: flex-start; }
.page-hero .chip { margin-bottom: 26px; padding: 4px 9px 6px; }
.page-hero h1 { max-width: 768px; margin-bottom: 25px; color: var(--white); }
.page-hero .btn { margin-bottom: 25px; }
@media (max-width: 1024px) { .page-hero { padding: calc(8vh + 25px) 0 1vh; background-position: bottom center; background-size: cover; } }
@media (max-width: 767px) { .page-hero { padding-top: calc(4.3vh + 25px); } }

/* ---------------------------------------------------------------- inner pages: text + image rows */

.split { display: grid; grid-template-columns: 60fr 40fr; margin-top: 100px; margin-bottom: 100px; container-type: inline-size; }
.split + .split { margin-top: 0; }
.split-reverse { grid-template-columns: 55fr 45fr; }
.split-half { grid-template-columns: 1fr 1fr; }
.split-text { display: flex; flex-direction: column; justify-content: center; padding: 6cqw 6cqw 6cqw 0; }
.split-reverse .split-text { padding: 8.4cqw 10px 8.4cqw 5.9cqw; }
.split-media { position: relative; min-height: 270px; }
.split-media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: top center; }
.split-media-portrait img { object-position: center; }
.split-title { margin-bottom: 20px; font-size: var(--h3); line-height: var(--h3-lh); font-weight: 600; }
.prose { margin-bottom: 20px; }
.prose p { margin: 0 0 16px; }
.prose ul { margin: 16px 0; padding-left: 27px; list-style: disc; }
.prose li { margin-bottom: 16px; }
.prose strong { font-weight: 700; }
.prose p:last-child { margin-bottom: 16px; }
.split-text > .prose:last-child { margin-bottom: 0; }
.check-items { display: grid; grid-template-columns: 306fr 326fr; column-gap: 40px; padding: 10px; }
.check-item { display: flex; gap: 10px; }
.check-col:first-child .check-item:first-child { margin-bottom: 40px; }
.check-item .icon { width: 24px; height: 24px; color: var(--green); }
.check-item h3 { margin-bottom: 6px; font-size: var(--h5); line-height: 1.3; }
.check-item p { margin: 0; font-size: 14px; line-height: 1.4; }
.split ~ .contact-block { margin-top: 220px; } /* 100px row margin + 120px; vertical margins collapse */

@media (max-width: 1024px) {
  .split { margin: 30px 0 80px; }
  .split-reverse, .split-half { grid-template-columns: 1fr 1fr; margin-bottom: 100px; }
  .check-items { grid-template-columns: 1fr; }
  .split ~ .contact-block { margin: 0; }
}
@media (max-width: 767px) {
  .split, .split-reverse, .split-half { grid-template-columns: 1fr; margin: 20px 0; }
  .split-reverse { margin-bottom: 50px; }
  .split .split-media { order: -1; height: 270px; margin-bottom: 0; }
  .split-textfirst .split-media { display: none; } /* the original hides this photo on phones */
  .split-textfirst .split-text { padding-top: 0 !important; }
  .split-reverse .split-media { margin: 0 10px 20px; }
  .split-text, .split-reverse .split-text { padding: 0; }
  .split:not(.split-reverse) .split-text { padding-top: 30px; }
  .check-items { grid-template-columns: 1fr; padding: 0 10px 20px; }
  .check-item { flex-direction: column; align-items: center; gap: 16px; text-align: center; }
}

/* ---------------------------------------------------------------- industry pages */

.industry-intro { display: flex; flex-direction: column; align-items: center; padding-top: 75px; padding-bottom: 38px; text-align: center; }
.industry-intro .chip { margin-bottom: 21px; }
.industry-intro h1 { margin-bottom: 20px; }
.industry-lead { width: 100%; max-width: 780px; margin: 0; font-size: 20px; line-height: 1.5; }
.industry-intro .btn { margin-top: 20px; }
.industry-banner { width: 100%; height: 344px; object-fit: cover; object-position: top center; }
@media (max-width: 1024px) { .industry-banner-wrap { max-width: none; padding: 0; } }
@media (max-width: 767px) { .industry-banner { height: 245px; } }
.focus { max-width: calc(800px + 2 * var(--gutter)); margin-top: 80px; margin-bottom: 80px; }
.focus .chip { margin-bottom: 20px; }
.focus p { margin: 0 0 20px; font-size: 20px; line-height: 1.5; color: var(--ink); text-align: center; }
.media-row { display: grid; grid-template-columns: 666fr 614fr; min-height: 475px; margin-bottom: 100px; }
.media-row-text { display: flex; flex-direction: column; justify-content: center; padding: 20px 0 37px 122px; }
.media-row-text h2 { margin-bottom: 39px; }
.two-cols { display: grid; grid-template-columns: 1fr 1fr; column-gap: 128px; margin-bottom: 100px; }
.two-cols h2 { grid-column: 1 / -1; max-width: 640px; margin-bottom: 40px; }
.two-cols .prose { font-size: 20px; line-height: 1.5; }
.why-us { min-height: 255px; margin-bottom: 100px; background: url(/assets/img/dots-pattern.svg) 90% 100% / 19% auto no-repeat; background-origin: content-box; }
.why-us h2 { margin-bottom: 39px; }
.check-list-spaced li { gap: 0; margin: 0; padding-bottom: 15px; color: var(--text); }
.check-list-spaced li + li { margin-top: 15px; }
.check-list-spaced .icon { margin-right: 5px; }
.why-us ~ .contact-block { margin: 200px auto 100px; } /* 100px section margin + 100px; vertical margins collapse */

@media (max-width: 1024px) {
  .industry-intro { padding-top: 77px; padding-bottom: 46px; }
  .industry-banner-wrap { padding: 0; }
  .focus { margin: 80px auto 65px; }
  .media-row { grid-template-columns: 437fr 403fr; min-height: 313px; margin-bottom: 60px; }
  .media-row-text { justify-content: flex-start; padding: 15px 0 0 30px; }
  .media-row-text h2 { margin-bottom: 25px; }
  .two-cols { grid-template-columns: 378fr 378fr; column-gap: 78px; margin-bottom: 29px; }
  .two-cols h2 { max-width: 420px; }
  .why-us { min-height: 200px; margin-bottom: 46px; }
  .why-us .check-list { max-width: 40%; }
  .why-us ~ .contact-block { margin: 60px 0 0; }
}
@media (max-width: 767px) {
  .industry-intro { padding-top: 40px; padding-bottom: 28px; }
  .industry-intro .chip { margin-bottom: 12px; }
  .industry-intro h1 { margin-bottom: 15px; }
  .focus { margin: 30px auto 0; }
  .focus .chip { margin-bottom: 15px; }
  .focus p { font-size: 20px; }
  .media-row { grid-template-columns: 1fr; margin-bottom: 0; }
  .media-row .split-media { height: 345px; }
  .media-row-text { padding: 0; }
  .media-row-text h2 { margin-bottom: 20px; }
  .check-list-spaced li { padding-bottom: 7.5px; }
  .check-list-spaced li + li { margin-top: 7.5px; }
  .two-cols { grid-template-columns: 1fr; margin-bottom: 0; }
  .two-cols h2 { margin-bottom: 20px; }
  .why-us { min-height: 0; padding-top: 81px; margin-bottom: 40px; background-size: 40% auto; }
  .why-us .check-list { max-width: none; }
  .why-us ~ .contact-block { margin: 40px 0 0; }
}

/* solutions overview: card band without heading */
.solutions-band-plain { padding: 100px 0 130px; margin-bottom: 100px; }
.two-cols + .solutions-band-plain { margin-top: -20px; }
.focus-plain { margin-bottom: 100px; }
.solutions-band-plain ~ .contact-block { margin-top: 200px; } /* 100px band margin + 100px; vertical margins collapse */
@media (max-width: 1024px) {
  .two-cols + .solutions-band-plain { margin-top: 11px; }
  .focus-plain { margin-bottom: 50px; }
  .solutions-band-plain ~ .contact-block { margin: 0; }
}
@media (max-width: 767px) { .focus-plain { margin-bottom: 0; } .two-cols + .solutions-band-plain { margin-top: -20px; } }
@media (max-width: 1024px) { .solutions-band-plain { padding: 30px 0 70px; margin-bottom: 60px; } }
@media (max-width: 767px) { .solutions-band-plain { padding: 40px 0 60px; margin-bottom: 60px; } }

/* ---------------------------------------------------------------- get to know us */

.about-intro { padding-bottom: 29px; }
.about-intro h1 { max-width: 780px; }
.about-intro .industry-lead { margin-bottom: 0; }
.timeline { position: relative; max-width: calc(800px + 2 * var(--gutter)); margin-top: 30px; margin-bottom: 100px; padding-top: 3px; }
.timeline::before { content: ''; position: absolute; left: 50%; top: 1px; bottom: 0; width: 1px; background: #d9d9d9; }
.timeline-start { position: absolute; left: 50%; top: -16.5px; width: 36px; height: 36px; margin-left: -18px; color: var(--green); background: var(--white); border-radius: 50%; }
.timeline-row { position: relative; display: grid; grid-template-columns: 1fr 1fr; align-items: center; padding: 40px 0; }
.timeline-row img { width: 312px; height: 312px; border-radius: var(--radius); }
.timeline-row .timeline-text { padding-left: 89px; }
.timeline-row-flip img { grid-column: 2; grid-row: 1; margin-left: 89px; }
.timeline-row-flip .timeline-text { grid-column: 1; grid-row: 1; padding: 0 88px 0 0; }
.timeline-text h2 { margin-bottom: 20px; font-size: var(--h4); line-height: 1.3; font-weight: 600; }
.timeline-text p { margin: 0; font-size: 16px; line-height: 1.4; }
.timeline-dot { position: absolute; left: 50%; top: 177px; width: 16px; height: 16px; margin-left: -8px; color: var(--green); background: var(--white); border-radius: 50%; }
.why-text { margin: 60px auto 90px; }
.why-text .chip { margin-bottom: 20px; }
.why-text .prose { font-size: 20px; line-height: 1.5; }
.why-text .prose p { text-align: left; }
.why-text .prose li { margin-bottom: 20px; }
.why-text .prose li p { margin-top: 16px; }
.banner-values { min-height: 390px; margin-bottom: 90px; }
.values { display: grid; grid-template-columns: repeat(3, 1fr); margin-bottom: 80px; }
.value-col { display: flex; flex-direction: column; gap: 20px; }
.value { max-width: 341px; min-height: 183px; }
.value .icon { width: 66px; height: 66px; margin: 3px 0 23px; color: var(--green); }
.value h3 { margin: 14px 0 20px; font-size: var(--h4); line-height: 1.3; }
.value h3 { margin-top: 0; }
.value p { font-size: 14px; line-height: 1.4; }
.team-band { padding: 182px 0 162px; background: linear-gradient(230deg, var(--green) 0%, var(--mist) 86%); text-align: center; }
.team-band-inner { max-width: calc(700px + 2 * var(--gutter)); }
.team-band h2 { margin-bottom: 20px; }
.team-band p { margin-bottom: 20px; }
.approach { display: grid; grid-template-columns: 512fr 768fr; margin-top: 60px; }
.approach-text { padding-right: 55px; }
.approach-text h2 { margin-bottom: 37px; }
.approach-text .prose { margin-bottom: 15px; }
.approach .split-media img { object-position: center; }
.approach ~ .contact-block { margin-top: 100px; }

@media (max-width: 1024px) {
  .timeline-row { padding: 40px 0; }
  .timeline-row img { width: 340px; height: 340px; }
  .timeline-row .timeline-text { padding-left: 61px; }
  .timeline-row-flip img { margin-left: 61px; }
  .timeline-row-flip .timeline-text { padding: 0 60px 0 0; }
  .timeline-dot { top: 189px; }
  .timeline { margin-bottom: 60px; }
  .banner-values { min-height: 271px; margin: 40px 0 20px; }
  .values { margin: 40px 0; }
  .value { max-width: 252px; min-height: 180px; }
  .team-band { padding: 110px 0 90px; }
  .approach { grid-template-columns: 336fr 504fr; margin: 30px auto 60px; }
  .approach-text { padding-right: 30px; }
  .approach-text h2 { margin-bottom: 25px; }
  .approach-text .prose { margin-bottom: 5px; }
  .approach ~ .contact-block { margin-top: 0; }
}
@media (max-width: 767px) {
  .timeline { margin-top: 0; margin-bottom: 40px; padding-top: 7px; }
  .timeline::before { left: var(--gutter); }
  .timeline-start { left: var(--gutter); }
  .timeline-row, .timeline-row-flip { grid-template-columns: 1fr; padding: 0 0 0 21px; }
  .timeline-row img, .timeline-row-flip img { grid-column: 1; grid-row: 1; width: 100%; height: auto; margin: 0 0 30px; }
  .timeline-row .timeline-text, .timeline-row-flip .timeline-text { grid-column: 1; grid-row: 2; padding: 0 0 30px; }
  .timeline-dot { left: 0; top: auto; margin: 7px 0 0 -8px; }
  .timeline-row .timeline-dot { grid-row: 2; align-self: start; position: absolute; }
  .why-text { margin: 40px auto; }
  .banner-values { min-height: 284px; margin: 0 calc(-1 * var(--gutter)) 15px; }
  .values { grid-template-columns: 1fr 1fr; margin: 40px 0 0; }
  .value-col { gap: 15px; padding-bottom: 45px; }
  .value-col:nth-child(even) { padding-left: 10px; }
  .value { max-width: none; min-height: 196px; padding-right: 10px; }
  .team-band { padding: 74px 0 54px; }
  .approach { grid-template-columns: 1fr; margin: 40px auto; }
  .approach-text { padding: 0; }
  .approach .split-media { height: 315px; margin-top: 30px; }
  .approach ~ .contact-block { margin-top: 0; }
  .timeline-row-textfirst .timeline-text { grid-row: 1 !important; }
  .timeline-row-textfirst img { grid-row: 2 !important; }
  .timeline-row-textfirst .timeline-dot { grid-row: 1 !important; }
}

/* ---------------------------------------------------------------- contact page */

.contact-intro { padding-bottom: 9px; }
.contact-intro h1 { margin-bottom: 10px; }
.contact-lines { display: flex; align-items: center; justify-content: center; margin-bottom: 32px; }
.contact-lines p { display: flex; flex-direction: column; width: 152px; margin: 0; padding-top: 12px; font: 500 16px/1.2 var(--font-head); color: var(--ink); text-align: left; }
.contact-lines p span { margin-bottom: 1px; }
.contact-lines a:hover { color: var(--green); }
.contact-lines-sep { width: 73px; height: 61px; padding: 0 24px 0 25px; color: rgba(0, 0, 0, .15); }
.contact-intro .btn { margin-top: 0; }
.contact-intro ~ .contact-block { margin-top: 103px; }
@media (max-width: 1024px) {
  .contact-lines-sep { height: 46px; }
  .contact-intro ~ .contact-block { margin: 0; }
}
@media (max-width: 767px) {
  .contact-lines { flex-direction: column; }
  .contact-lines p { width: auto; padding: 0; text-align: center; }
  .contact-lines-sep { height: 46px; margin: 0; padding: 0; transform: rotate(90deg); }
}
