/* ==========================================================================
   AgamiSoft landing — built from Figma "Ux- agamisoft" / Landing Page / V2.1
   ========================================================================== */

/* Aeonik (licensed, self-hosted) lives in /fonts as .woff2. local() is checked
   first so an installed copy skips the download; the system stack is the
   fallback if the files are missing. No third-party font requests. */
@font-face { font-family: "Aeonik"; font-weight: 400; font-display: swap; src: local("Aeonik"), local("Aeonik Regular"), url("../fonts/Aeonik-Regular.woff2") format("woff2"); }
@font-face { font-family: "Aeonik"; font-weight: 500; font-display: swap; src: local("Aeonik Medium"), url("../fonts/Aeonik-Medium.woff2") format("woff2"); }
@font-face { font-family: "Aeonik"; font-weight: 700; font-display: swap; src: local("Aeonik Bold"), url("../fonts/Aeonik-Bold.woff2") format("woff2"); }

:root {
  --orange: #ff6b00;
  --navy: #003562;
  --ink: #0a0a0a;
  --ink-2: #121212;
  --ink-3: #121317;
  --muted: #71717a;
  --line: #f3f4f6;
  --bg-soft: #fbfbfb;
  --bg-grey: #f6f6f6;
  --cream: #f4f1e9;
  --font: "Aeonik", system-ui, -apple-system, "Segoe UI", sans-serif;
  --pill: 999px;
  --wrap: 1200px;
  /* Until Aeonik finishes loading the fallback (system UI font) runs slightly
     wide, so tighten it to sit close to Aeonik's metrics */
  --tt: -0.022em;
  --tb: 0.02em;
  --ts: -0.025em; /* small (20–24px) bold headings */
}
.aeonik { --tt: 0; --tb: 0; --ts: 0; }

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 96px; -webkit-text-size-adjust: 100%; }
body { margin: 0; font-family: var(--font); color: var(--ink); background: #fff; letter-spacing: var(--tt); -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; }
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button, input, textarea { font: inherit; color: inherit; }
button { cursor: pointer; border: 0; background: none; padding: 0; }
h1, h2, h3, p, ul { margin: 0; padding: 0; }
ul { list-style: none; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

.wrap { width: min(var(--wrap), 100% - 40px); margin-inline: auto; }
.accent { color: var(--orange); }

/* ---------- shared pieces ---------- */
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px; padding: 6px 16px;
  border-radius: var(--pill); background: rgba(255, 107, 0, .05);
  font: 500 13px/19.5px var(--font); letter-spacing: 1px; text-transform: uppercase; color: var(--ink);
}
.eyebrow::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--orange); }
.eyebrow--dark { background: rgba(255, 255, 255, .05); color: var(--cream); font-weight: 400; }

.h2 { font: 700 52px/57.2px var(--font); letter-spacing: calc(-.52px + var(--tb)); }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 60px; padding: 0 24px;
  border-radius: var(--pill); font: 500 18px/18px var(--font); white-space: nowrap;
  transition: transform .2s ease, background-color .2s ease, box-shadow .2s ease;
}
.btn:hover { transform: translateY(-2px); }
.btn svg { width: 34px; height: 34px; flex: none; transition: transform .2s ease; }
.btn:hover svg { transform: translate(2px, -2px); }
.btn--orange { background: var(--orange); color: #fff; padding: 0 28px; }
.btn--orange:hover { background: #ff7d1f; box-shadow: 0 10px 24px -10px rgba(255, 107, 0, .7); }
.btn--dark { background: var(--ink); color: #fff; }
.btn--dark:hover { background: #262626; }
.btn--white { background: #fff; color: var(--ink); padding: 0 28px; }
.btn--outline { background: transparent; color: var(--ink-2); border: 1px solid rgba(0, 0, 0, .3); }
.btn--outline:hover { background: var(--ink); color: #fff; border-color: var(--ink); }

.sec-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 24px; }
.sec-head .h2 { margin-top: 20px; }
.sec-head__lead { margin-top: 12px; font: 400 17px/27.2px var(--font); color: var(--muted); }
.sec-center { display: flex; flex-direction: column; align-items: center; text-align: center; }

.check-list li { display: flex; align-items: center; gap: 10px; }
.check-list svg { width: 16px; height: 16px; flex: none; }

.price-card__price, .stats strong { letter-spacing: var(--tb); }
.proc-card h3, .feat-card h3, .work-card h3, .audit-card h3, .faq-item__q, .footer__cols h3, .price-card h3, .office h3 { letter-spacing: var(--ts); }
/* measured with the design font, so no fallback compensation */
.process .sec-center > p, .contact__label, .price-card--featured .price-card__desc { letter-spacing: 0; }

/* ---------- 01 announcement ---------- */
.announce {
  display: flex; align-items: center; justify-content: center; gap: 12px; padding: 12px 16px;
  background: var(--navy); font: 400 15px/20.6px var(--font); color: rgba(255, 255, 255, .7); text-align: center;
}
.announce a { font-weight: 700; color: var(--orange); text-decoration: underline; text-underline-offset: 3px; }
.announce__chip { flex: none; padding: 4px 10px; border-radius: var(--pill); background: rgba(255, 107, 0, .2); color: var(--orange); font-size: 12px; line-height: 12px; }

/* ---------- 02 hero ---------- */
.hero { position: relative; height: 810px; overflow: hidden; background: #042443; color: #fff; }
.hero__video { position: absolute; inset: 0; z-index: 0; width: 100%; height: 100%; object-fit: cover; object-position: center; pointer-events: none; }
.hero::before {
  content: ""; position: absolute; left: -56px; top: -48px; z-index: 1; width: 690px; height: 994px; pointer-events: none;
  background: linear-gradient(90deg, rgba(3, 3, 3, .9) 0%, rgba(3, 3, 3, 0) 100%);
}
.nav {
  position: absolute; z-index: 20; top: 18px; left: 50%; transform: translateX(-50%); width: min(var(--wrap), 100% - 40px); height: 60px;
  display: flex; align-items: center; justify-content: space-between; padding: 12px 16px 12px 24px;
  border-radius: var(--pill); border: 1px solid rgba(255, 255, 255, .2); background: rgba(255, 255, 255, .1);
  -webkit-backdrop-filter: blur(16px); backdrop-filter: blur(16px); box-shadow: 0 10px 30px rgba(0, 0, 0, .08);
  transition: background-color .3s ease, top .3s ease;
}
.nav.is-stuck { position: fixed; top: 0px; background: rgba(10, 10, 10, .72); }
.nav__logo img { width: 112px; height: 36px; }
.nav__links { display: flex; gap: 32px; }
.nav__links a { font: 400 14px/21px var(--font); color: rgba(255, 255, 255, .7); transition: color .2s; }
.nav__links a:hover { color: #fff; }
.nav__cta { padding: 10px 20px; border-radius: var(--pill); background: #fff; color: var(--ink-2); font: 500 14px/14px var(--font); transition: background-color .2s; }
.nav__cta:hover { background: var(--orange); color: #fff; }
.nav__toggle { display: none; width: 40px; height: 40px; border-radius: 50%; background: rgba(255, 255, 255, .12); color: #fff; }
.nav__toggle svg { margin: auto; }

.hero__content { position: relative; z-index: 2; padding-top: 194px; }
.hero__badge {
  display: inline-flex; align-items: center; gap: 8px; padding: 8px 24px; border-radius: var(--pill);
  background: rgba(255, 255, 255, .2); border: 1px solid rgba(255, 255, 255, .2); -webkit-backdrop-filter: blur(16px); backdrop-filter: blur(16px);
  box-shadow: 0 1px 2px -1px rgba(0, 0, 0, .1), 0 1px 3px rgba(0, 0, 0, .1);
  font: 400 13px/19.5px var(--font); letter-spacing: 1px; text-transform: uppercase; color: #ddd;
}
.hero__badge i { display: grid; place-items: center; width: 16px; height: 16px; border-radius: 50%; background: var(--orange); color: #fff; font: normal 10px/1 Arial, sans-serif; }
.hero h1 { margin-top: 24px; max-width: 565px; font: 700 66px/72.6px var(--font); letter-spacing: calc(-2px + var(--tb)); }
.hero__lead { margin-top: 3px; max-width: 437px; font: 400 20px/32px var(--font); color: rgba(255, 255, 255, .8); }
.hero .btn { margin-top: 32px; }

/* ---------- clients strip ---------- */
.clients { margin-top: 20px; height: 114px; padding: 12px 0; background: #fff; border-block: 1px solid rgba(18, 18, 18, .3); overflow: hidden; }
.clients__inner { display: flex; align-items: center; gap: 24px; height: 88px; padding-left: max(20px, (100% - var(--wrap)) / 2); }
.clients__label { flex: none; width: 178px; font: 600 15px/18px var(--font); text-transform: uppercase; color: rgba(10, 10, 10, .7); position: relative; z-index: 2; }
.clients__viewport { position: relative; flex: 1; overflow: hidden; -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 56px); mask-image: linear-gradient(90deg, transparent 0, #000 56px); }
.clients__track { display: flex; align-items: center; gap: 29px; width: max-content; animation: marquee 40s linear infinite; }
.clients__viewport:hover .clients__track { animation-play-state: paused; }
.clients__item { display: flex; align-items: center; justify-content: center; width: 160px; height: 48px; padding: 10px; border-left: 1px solid rgba(30, 41, 59, .2); }
.clients__item:first-child { width: 134px; border-left: 0; justify-content: flex-start; }
.clients__item img { max-height: 37px; width: auto; opacity: .85; filter: saturate(.9); }
@keyframes marquee { to { transform: translateX(calc(-50% - 14.5px)); } }

/* ---------- 03 about ---------- */
.about { padding: 80px 0; }
.about__top { display: flex; justify-content: space-between; gap: 54px; }
.about__title { flex: 0 1 696px; }
.about__title .h2 { margin-top: 20px; }
.about__copy { flex: 0 1 464px; padding-top: 40px; }
.about__copy .lead { font: 500 24px/33.6px var(--font); color: var(--ink-3); }
.about__copy p + p { margin-top: 9px; font: 400 16px/25.6px var(--font); color: rgba(18, 19, 23, .65); }
.about__copy .btn { margin-top: 24px; padding: 0 28px; }
.stats { display: grid; grid-template-columns: 284fr 306fr 306fr 304fr; margin-top: 60px; border-block: 1px solid rgba(18, 18, 18, .3); }
.stats > div { min-height: 145px; display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 28px 22px; text-align: center; }
.stats > div:first-child { padding-left: 0; }
.stats > div:not(:last-child) { border-right: 1px solid rgba(18, 19, 23, .18); }
.stats strong { font: 700 47px/47px var(--font); color: var(--ink-3); }
.stats span { margin-top: 5px; font: 400 18px/21.6px var(--font); color: rgba(18, 19, 23, .65); }
.certs { display: flex; align-items: center; justify-content: center; gap: 12px; margin-top: 60px; }
.certs__label { width: 164px; font: 500 15px/18px var(--font); text-transform: uppercase; color: rgba(10, 10, 10, .7); }
.certs__row { display: flex; align-items: center; gap: 16px; }

/* ---------- 04 industries ---------- */
.industries { padding: 80px 0; background: var(--bg-grey); }
.industries .sec-head > div { max-width: 560px; }
.ind-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; margin-top: 48px; }

.ind-card__in { display: flex; flex-direction: column; height: 100%; min-height: 317px; padding: 28px; border-radius: 24px; background: #fff; transition: box-shadow .25s ease; }
.ind-card:hover .ind-card__in { box-shadow: inset 0 0 0 1px rgba(255, 107, 0, .35); }
.ind-card h3 { font: 700 28px/30.8px var(--font); letter-spacing: -1px; }
.ind-card p { flex: 1; margin-top: 12px; font: 400 16px/24.4px var(--font); color: var(--muted); }
.ind-card ul { margin-top: 24px; padding-top: 20px; border-top: 1px solid var(--line); font: 400 14px/21px var(--font); color: rgba(10, 10, 10, .8); }
.ind-card li + li { margin-top: 10px; }

/* ---------- banners ---------- */
.banner-sec { padding: 80px 0 32px; }
.banner-sec--tight { padding: 32px 0; }
.banner { display: flex; align-items: center; justify-content: space-between; gap: 24px; padding: 48px 64px; border-radius: 24px; background: var(--orange); color: #fff; }
.banner p { max-width: 720px; font: 700 44px/48.4px var(--font); letter-spacing: calc(-.44px + var(--tb)); }
.banner p span { color: rgba(255, 255, 255, .6); }
.banner .btn { padding: 0 28px; gap: 0; }
.banner--sm { padding-block: 48px; min-height: 216px; }
.banner--sm p { max-width: 644px; font-size: 32px; line-height: 40px; letter-spacing: calc(-.32px + var(--tb)); }
.banner--sm .btn { height: 50px; font: 500 18px/18px var(--font); }

/* ---------- 06 before / after ---------- */
.ba { padding: 80px 0; }
.ba .h2 { margin-top: 16px; max-width: 774px; }
.ba-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; margin-top: 56px; }
.ba-card { padding: 32px; border-radius: 24px; border: 1px solid var(--line); background: #fafafa; }
.ba-card--after {
  border-color: rgba(255, 107, 0, .2); box-shadow: 0 20px 50px -20px rgba(255, 107, 0, .5);
  background: linear-gradient(180deg, rgba(255, 107, 0, .05) 0%, rgba(255, 223, 207, .18) 14%, rgba(255, 244, 238, .39) 36%, rgba(255, 249, 245, .53) 50%, rgba(255, 252, 251, .73) 71%, #fff 100%);
}
.ba-card__img { width: 100%; aspect-ratio: 522 / 254; object-fit: cover; border-radius: 16px; }
.ba-card--after .ba-card__img { border-radius: 11px; }
.ba-card__tag { margin-top: 32px; font: 400 14px/18px var(--font); letter-spacing: 1px; text-transform: uppercase; color: var(--muted); }
.ba-card--after .ba-card__tag { color: var(--orange); }
.ba-card h3 { margin-top: 4px; font: 700 28px/30.8px var(--font); letter-spacing: -1px; }
.ba-card ul { margin-top: 33px; font: 400 15px/22.5px var(--font); color: var(--muted); }
.ba-card--after ul { color: rgba(10, 10, 10, .8); }
.ba-card li { display: flex; gap: 12px; }
.ba-card li + li { margin-top: 16px; }
.ba-card li svg { width: 16px; height: 16px; flex: none; }

/* ---------- 07 ecosystem ---------- */
.eco { padding: 80px 0; background: var(--ink); color: var(--cream); }
.eco__head { display: flex; justify-content: space-between; align-items: flex-end; gap: 60px; padding-top: 24px; }
.eco__head h2 { max-width: 800px; font: 700 66.6px/73.3px var(--font); letter-spacing: calc(-.67px + var(--tb)); }
.eco__head p { max-width: 360px; font: 400 18px/23.3px var(--font); opacity: .65; }
.eco-grid { display: grid; grid-template-columns: repeat(3, 1fr); grid-template-rows: 224px 224px; gap: 20px; margin-top: 56px; }
.eco-card { display: flex; flex-direction: column; padding: 28px; background: rgba(255, 255, 255, .04); border: 1px solid rgba(255, 255, 255, .2); color: #fff; transition: background-color .25s ease, border-color .25s ease; }
.eco-card:hover { background: rgba(255, 255, 255, .07); border-color: rgba(255, 107, 0, .5); }
.eco-card--tall { grid-row: span 2; justify-content: space-between; outline: 1px solid rgba(255, 255, 255, .2); outline-offset: 1px; margin: 1px; }
.eco-card__icon { display: grid; place-items: center; width: 48px; height: 48px; border-radius: 16px; background: rgba(255, 107, 0, .15); color: var(--orange); }
.eco-card__icon svg { width: 24px; height: 24px; }
.eco-card--tall .eco-card__icon { background: none; }
.eco-card--tall .eco-card__icon svg { width: 48px; height: 48px; }
.eco-card h3 { margin-top: 24px; font: 700 28px/30.8px var(--font); letter-spacing: -1px; }
.eco-card p { margin-top: 12px; font: 400 15px/24.4px var(--font); color: rgba(255, 255, 255, .6); }

/* ---------- 08 process ---------- */
.process { padding: 96px 0; }
.process .h2 { margin-top: 20px; max-width: 620px; }
.process .sec-center > p { margin-top: 16px; max-width: 620px; font: 400 17px/27.6px var(--font); color: var(--muted); }
.proc-grid { display: grid; grid-template-columns: repeat(4, 1fr); grid-template-rows: 220px 198px; gap: 20px; margin-top: 56px; }
.proc-card { padding: 24px; border-radius: 24px; background: var(--bg-soft); border: 1px solid var(--line); transition: border-color .25s ease, background-color .25s ease; }
.proc-card:hover { background: #fff; border-color: rgba(255, 107, 0, .3); }
.proc-card .proc-card__num { margin: 0; font: 500 40px/40px var(--font); color: rgba(10, 10, 10, .1); transition: color .25s ease; }
.proc-card:hover .proc-card__num { color: var(--orange); }
.proc-card h3 { margin-top: 24px; font: 700 24px/26.4px var(--font); }
.proc-card p { margin-top: 8px; font: 400 14px/22.8px var(--font); color: var(--muted); }
.proc-card--cta { display: flex; flex-direction: column; justify-content: space-between; background: var(--orange); border-color: var(--orange); color: #fff; font: 400 20px/30px var(--font); }
.proc-card--cta:hover { background: #ff7d1f; border-color: #ff7d1f; }
.proc-card--cta span { display: grid; place-items: center; width: 54px; height: 54px; border-radius: 9px; background: #fff; color: var(--ink-2); transition: transform .2s ease; }
.proc-card--cta:hover span { transform: translate(3px, -3px); }
.proc-card--cta svg { width: 34px; height: 34px; }

/* ---------- 09 why us ---------- */
.why { padding: 96px 0; background: var(--bg-soft); }
.why .sec-head > div { max-width: 640px; }
.feat-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 19px 20px; margin-top: 56px; }
.feat-card { min-height: 219px; padding: 24px; border-radius: 24px; background: #fff; border: 1px solid var(--line); transition: transform .25s ease, box-shadow .25s ease; }
.feat-card:hover { transform: translateY(-4px); box-shadow: 0 16px 30px -18px rgba(0, 0, 0, .18); }
.icon-box { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 12px; background: rgba(255, 107, 0, .05); color: var(--orange); }
.icon-box svg { width: 20px; height: 20px; }
.feat-card h3 { margin-top: 20px; font: 700 24px/26.4px var(--font); }
.feat-card p { margin-top: 10px; font: 400 14px/22.8px var(--font); color: var(--muted); }

/* ---------- 11 pricing ---------- */
.pricing { padding: 96px 0; }
.pricing .h2 { margin-top: 20px; max-width: 640px; }
.pricing .sec-center > p { margin-top: 16px; max-width: 640px; font: 400 17px/27.6px var(--font); color: var(--muted); }
.tabs { display: inline-flex; margin-top: 32px; padding: 4px; border-radius: var(--pill); background: var(--line); }
.tabs button { padding: 10px 24px; border-radius: var(--pill); font: 500 14px/21px var(--font); color: rgba(10, 10, 10, .6); transition: background-color .2s, color .2s; }
.tabs button[aria-selected="true"] { background: var(--ink); color: #fff; }
.price-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; margin-top: 48px; align-items: start; }
.price-card { position: relative; display: flex; flex-direction: column; min-height: 561px; padding: 28px; border-radius: 24px; background: #fff; border: 1px solid var(--line); box-shadow: 0 4px 20px rgba(0, 0, 0, .12); }
.price-card h3 { font: 500 22px/33px var(--font); }
.price-card__desc { margin-top: 8px; font: 400 14px/22.8px var(--font); color: var(--muted); }
.price-card__price { margin-top: 24px; font: 700 36px/39.6px var(--font); }
.price-card__note { font: 400 13px/19.5px var(--font); color: var(--muted); }
.price-card .btn { margin-top: 38px; height: 45px; font-size: 16px; line-height: 16px; }
.price-card ul { margin-top: 28px; padding-top: 24px; border-top: 1px solid var(--line); font: 400 13.5px/18.6px var(--font); color: rgba(10, 10, 10, .75); }
.price-card li { display: flex; align-items: flex-start; gap: 10px; }
.price-card li + li { margin-top: 12px; }
.price-card li svg { width: 16px; height: 16px; flex: none; margin-top: 1px; }
.price-card li.plus { display: block; font-weight: 700; }
.price-card--featured { background: var(--ink); border-color: var(--ink); color: #fff; box-shadow: 0 25px 50px -12px rgba(0, 0, 0, .25); margin-top: -1px; }
.price-card--featured .price-card__desc { color: rgba(255, 255, 255, .6); font-family: var(--font); }
.price-card--featured .price-card__note { color: rgba(255, 255, 255, .5); }
.price-card--featured ul { border-color: rgba(255, 255, 255, .1); color: rgba(255, 255, 255, .8); }
.price-card__badge { position: absolute; top: 24px; right: 26px; padding: 4px 12px; border-radius: var(--pill); background: var(--orange); font: 500 11px/16.5px var(--font); letter-spacing: .28px; text-transform: uppercase; }
.price-panel[hidden] { display: none; }

/* ---------- 12 portfolio ---------- */
.portfolio { padding: 96px 0; background: var(--bg-soft); }
.portfolio .sec-head > div { max-width: 620px; }
.work-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 23px 24px; margin-top: 48px; }
.work-card {
  position: relative;
  display: block;
  width: 100%;
  text-align: left;
  cursor: pointer;
  overflow: hidden;
  border-radius: 24px;
  background: #fff;
  border: 1px solid var(--line);
  transition: transform .3s ease, box-shadow .3s ease, border-color .3s ease;
}
.work-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 24px 40px -24px rgba(0, 0, 0, .25);
  border-color: rgba(255, 107, 0, .35);
}
.work-card__img { position: relative; overflow: hidden; background: #e9fcc1; }
.work-card__img img { width: 100%; aspect-ratio: 382 / 287; object-fit: cover; transition: transform .5s ease; }
.work-card:hover .work-card__img img { transform: scale(1.04); }
.work-card__overlay {
  position: absolute;
  inset: 0;
  background: rgba(10, 10, 10, .32);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity .3s ease;
  pointer-events: none;
}
.work-card__overlay-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 20px;
  border-radius: var(--pill);
  background: #fff;
  color: var(--ink);
  font: 500 14px/14px var(--font);
  transform: translateY(10px);
  transition: transform .3s ease, background-color .2s ease, color .2s ease;
  box-shadow: 0 10px 25px rgba(0, 0, 0, .25);
}
.work-card__overlay-btn svg { width: 14px; height: 14px; transition: transform .2s ease; }
.work-card:hover .work-card__overlay { opacity: 1; }
.work-card:hover .work-card__overlay-btn { transform: translateY(0); }
.work-card:hover .work-card__overlay-btn svg { transform: translate(2px, -2px); }

.work-card__body { padding: 24px 24px 27px; }
.work-card__meta { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.work-card__tag { font: 400 12px/18px var(--font); letter-spacing: 1px; text-transform: uppercase; color: var(--orange); }
.work-card__action {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font: 500 13px/18px var(--font);
  color: var(--muted);
  transition: color .2s ease;
}
.work-card__action svg { width: 14px; height: 14px; transition: transform .2s ease; }
.work-card:hover .work-card__action { color: var(--orange); }
.work-card:hover .work-card__action svg { transform: translate(2px, -2px); }
.work-card h3 { margin-top: 6px; font: 700 24px/26.4px var(--font); color: var(--ink); transition: color .2s ease; }
.work-card:hover h3 { color: var(--orange); }

/* ---------- portfolio modal dialog ---------- */
.modal {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity .25s ease, visibility .25s ease;
}
.modal.is-active {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}
.modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(4, 18, 33, 0.72);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  cursor: pointer;
}
.modal__dialog {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: 680px;
  max-height: min(90vh, 840px);
  background: #ffffff;
  border-radius: 28px;
  box-shadow: 0 30px 70px -15px rgba(0, 0, 0, .4), 0 0 0 1px rgba(255, 255, 255, .15);
  overflow-y: auto;
  overscroll-behavior: contain;
  display: flex;
  flex-direction: column;
  transform: translateY(24px) scale(0.97);
  transition: transform .3s cubic-bezier(0.16, 1, 0.3, 1), opacity .3s ease;
  opacity: 0;
}
.modal.is-active .modal__dialog {
  transform: translateY(0) scale(1);
  opacity: 1;
}
.modal__close {
  position: absolute;
  top: 16px;
  right: 16px;
  z-index: 20;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.92);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  color: var(--ink);
  display: grid;
  place-items: center;
  border: 1px solid rgba(0, 0, 0, 0.08);
  box-shadow: 0 4px 14px rgba(0, 0, 0, .15);
  cursor: pointer;
  transition: background-color .2s ease, color .2s ease, transform .2s ease;
}
.modal__close:hover {
  background: var(--ink);
  color: #ffffff;
  transform: rotate(90deg);
}
.modal__close svg {
  width: 18px;
  height: 18px;
}
.modal__content {
  display: flex;
  flex-direction: column;
  width: 100%;
}
.modal__media {
  position: relative;
  width: 100%;
  height: 320px;
  flex: 0 0 320px;
  overflow: hidden;
  background: #f4f4f4;
}
.modal__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.modal__badge {
  position: absolute;
  top: 20px;
  left: 20px;
  padding: 6px 14px;
  border-radius: var(--pill);
  background: rgba(10, 10, 10, .82);
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
  color: #fff;
  font: 500 12px/16px var(--font);
  letter-spacing: .8px;
  text-transform: uppercase;
}
.modal__body {
  padding: 34px 34px 38px;
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.modal__eyebrow {
  margin-bottom: 8px;
}
.modal__title {
  font: 700 28px/33px var(--font);
  letter-spacing: var(--ts);
  color: var(--ink);
}
.modal__desc {
  margin-top: 10px;
  font: 400 15px/25px var(--font);
  color: var(--muted);
}
.modal__features {
  background: var(--bg-soft);
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 20px 22px;
}
.modal__features-title {
  font: 600 12px/16px var(--font);
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--orange);
  margin-bottom: 12px;
}
.modal__list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.modal__list li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font: 400 14px/21px var(--font);
  color: var(--ink);
}
.modal__list li svg {
  width: 17px;
  height: 17px;
  flex: none;
  color: var(--orange);
  margin-top: 2px;
}
.modal__actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px;
  margin-top: 4px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
}
.modal__btn {
  height: 52px;
  font-size: 16px;
  padding: 0 24px;
}
.modal__link-sub {
  font: 500 14px/20px var(--font);
  color: var(--muted);
  text-decoration: underline;
  text-underline-offset: 3px;
  transition: color .2s ease;
}
.modal__link-sub:hover {
  color: var(--orange);
}

/* ---------- 13 faq ---------- */
.faq { padding: 96px 0; background: var(--bg-soft); }
.faq__grid { display: grid; grid-template-columns: 461px 1fr; gap: 48px; align-items: start; }
.faq__intro .h2 { margin-top: 19px; }
.faq__intro p { margin-top: 16px; font: 400 18px/28.8px var(--font); color: var(--muted); }
.faq__intro .btn { margin-top: 24px; height: 51px; }
.faq__intro .btn span { font-size: 15px; transform: translateY(-2px); }
.faq__list { display: flex; flex-direction: column; gap: 12px; }
.faq-item { border-radius: 16px; background: #fff; border: 1px solid var(--line); }
.faq-item__q { display: flex; align-items: center; justify-content: space-between; gap: 16px; width: 100%; padding: 20px 24px; text-align: left; font: 700 24px/26.4px var(--font); color: var(--ink-2); }
.faq-item__icon { position: relative; flex: none; width: 36px; height: 36px; border-radius: 50%; background: var(--ink-2); transition: background-color .25s ease; }
.faq-item__icon::before, .faq-item__icon::after { content: ""; position: absolute; left: 50%; top: 50%; width: 10px; height: 1.5px; background: #fff; transform: translate(-50%, -50%); transition: transform .25s ease; }
.faq-item__icon::after { transform: translate(-50%, -50%) rotate(90deg); }
.faq-item.is-open .faq-item__icon { background: var(--orange); }
.faq-item.is-open .faq-item__icon::after { transform: translate(-50%, -50%) rotate(0deg); }
.faq-item__a { display: grid; grid-template-rows: 0fr; transition: grid-template-rows .3s ease; }
.faq-item.is-open .faq-item__a { grid-template-rows: 1fr; }
.faq-item__a > div { overflow: hidden; }
.faq-item__a p { padding: 0 24px 20px; margin-top: -5px; font: 400 16px/25.6px var(--font); color: var(--muted); }

/* ---------- 14 free audit ---------- */
.audit { padding: 96px 0; background: var(--bg-soft); }
.audit .h2 { margin-top: 19px; max-width: 831px; }
.audit .sec-center > p { margin-top: 12px; font: 400 16px/24px var(--font); color: var(--muted); }
.audit-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px 19px; margin-top: 48px; }
.audit-card { display: flex; flex-direction: column; min-height: 253px; padding: 28px; border-radius: 24px; background: #fff; border: 1px solid var(--line); transition: border-color .25s ease, box-shadow .25s ease; }
.audit-card:hover { border-color: rgba(255, 107, 0, .3); box-shadow: 0 16px 30px -18px rgba(255, 107, 0, .35); }
.audit-card h3 { margin-top: 20px; font: 700 24px/26.4px var(--font); }
.audit-card p { margin-top: 12px; font: 400 14px/22.8px var(--font); color: var(--muted); }
.audit-card a { display: inline-flex; align-items: center; gap: 6px; margin-top: 26px; font: 500 14px/21px var(--font); color: var(--orange); }
.audit-card a span { transition: transform .2s ease; }
.audit-card a:hover span { transform: translateX(4px); }

/* ---------- 15 contact ---------- */
.contact { padding: 96px 0; background: var(--ink); color: #fff; }
.contact__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; }
.contact .h2 { max-width: 536px; }
.contact__sub { margin-top: 16px; font: 400 18px/27px var(--font); color: var(--muted); }
.contact__label { margin-top: 32px; font: 600 13px/19.5px var(--font); letter-spacing: 1px; text-transform: uppercase; color: var(--orange); }
.contact__links { display: flex; flex-direction: column; gap: 6px; margin-top: 12px; font: 400 18px/27px var(--font); }
.contact__links a { width: fit-content; transition: color .2s; }
.contact__links a:hover { color: var(--orange); }
.form { padding: 28px; border-radius: 24px; background: var(--bg-soft); border: 1px solid var(--line); color: var(--ink); }
.form__row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.field { display: block; width: 100%; height: 49px; padding: 12px 16px; border-radius: 16px; border: 1px solid rgba(18, 18, 18, .1); background: #fff; font: 400 15px/18px var(--font); outline: none; transition: border-color .2s, box-shadow .2s; }
.field::placeholder { color: rgba(10, 10, 10, .5); }
.field:focus { border-color: var(--orange); box-shadow: 0 0 0 3px rgba(255, 107, 0, .15); }
.form > .field { margin-top: 16px; }
textarea.field { height: 139px; resize: vertical; line-height: 22.5px; }
.form .btn { width: 100%; height: 55px; margin-top: 27px; font-family: var(--font); }
.form__status { margin-top: 12px; font-size: 14px; color: #15803d; }
.form__status:empty { display: none; }

/* ---------- 16 final cta ---------- */
.cta { position: relative; height: 650px; overflow: hidden; background: #fdfbfa; text-align: center; }
/* blurred 70px grid: 8 horizontal lines from y=85, 14 vertical lines from x=110 */
.cta__grid { position: absolute; left: 50%; top: 92px; width: 1103px; height: 645px; margin-left: -552px; filter: blur(6px); pointer-events: none; }
.cta__grid::before, .cta__grid::after { content: ""; position: absolute; }
.cta__grid::before { left: 0; right: 0; top: 85px; height: 560px; background: repeating-linear-gradient(to bottom, rgba(22, 22, 22, .1) 0 1px, transparent 1px 69.89px); }
.cta__grid::after { top: 0; bottom: 0; left: 110px; width: 980px; background: repeating-linear-gradient(to right, rgba(22, 22, 22, .1) 0 1px, transparent 1px 69.89px); }
.cta__veil { position: absolute; left: 50%; top: 294px; width: 889px; margin-left: -445px; height: 241px; background: rgba(255, 255, 255, .7); }
.cta__inner { position: relative; z-index: 1; display: flex; flex-direction: column; align-items: center; padding-top: 135px; }
.cta h2 { max-width: 816px; font: 700 66px/72.6px var(--font); letter-spacing: calc(-.66px + var(--tb)); }
.cta p { margin-top: 24px; max-width: 704px; font: 400 18px/28.8px var(--font); color: var(--muted); }
.cta__btns { display: flex; gap: 16px; margin-top: 24px; }
.cta__btns .btn { height: 62px; gap: 12px; }
.cta__btns .btn--outline { background: #fdfdfd; }
.cta__btns .btn--outline:hover { background: var(--ink); }

/* ---------- 17 footer ---------- */
.footer { background: var(--ink); color: #fff; }
.offices { position: relative; height: 456px; overflow: hidden; }
.offices__map { position: absolute; left: -63px; top: -185px; width: 1565px; max-width: none; height: 756px; pointer-events: none; } /* PNG already carries the 15% opacity */
.offices__row { position: relative; left: 20px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; padding-top: 134px; }
.office { position: relative; overflow: hidden; display: flex; flex-direction: column; align-items: center; justify-content: center; height: 159px; padding: 20px 24px; border-radius: 12px; background: rgba(255, 255, 255, .1); border: 1px solid rgba(255, 255, 255, .22); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); text-align: center; isolation: isolate; }
.office__bg { position: absolute; inset: 0; z-index: -1; width: 100%; height: 100%; max-width: none; object-fit: cover; pointer-events: none; filter: grayscale(1) contrast(.9); opacity: .22; }
.office h3 { font: 500 20px/24px var(--font); }
.office address { margin-top: 16px; font: normal 400 14px/19.6px var(--font); color: rgba(255, 255, 255, .72); }
.office a { display: inline-flex; align-items: center; gap: 12px; margin-top: 16px; font: 700 20px/22px var(--font); }
.office a svg { width: 24px; height: 24px; }
.office a:hover span { color: var(--orange); }
.office--us a span { text-decoration: underline; text-underline-offset: 3px; }

.footer__main { padding: 80px 0; }
.footer__tagline { display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.footer__tagline p { display: flex; align-items: center; gap: 8px; font: 400 14px/22.4px var(--font); color: rgba(255, 255, 255, .6); }
.footer__tagline p i { width: 2px; height: 18px; background: rgba(255, 255, 255, .3); }
.footer__tagline svg { width: 24px; height: 24px; }
.socials { display: flex; gap: 33px; }
.socials a { color: rgba(255, 255, 255, .6); transition: color .2s; }
.socials a:hover { color: var(--orange); }
.socials svg { width: 24px; height: 24px; }
.footer__mid { display: flex; justify-content: space-between; align-items: center; gap: 40px; margin-top: 60px; }
.footer__mid h2 { max-width: 495px; font: 700 52px/57.2px var(--font); letter-spacing: calc(-.52px + var(--tb)); color: rgba(255, 255, 255, .6); }
.footer__mid h2 span { color: #fff; }
.footer__mid .btn { margin-top: 36px; height: 52px; padding: 0 28px; border-radius: 40px; }
.footer__cols { display: flex; gap: 64px; }
.footer__cols h3 { font: 700 24px/26.4px var(--font); }
.footer__cols ul { display: flex; flex-direction: column; gap: 16px; margin-top: 18px; line-height: 18px; }
.footer__cols a { font: 400 18px/18px var(--font); color: rgba(255, 255, 255, .6); white-space: nowrap; transition: color .2s; }
.footer__cols a:hover { color: #fff; }
.footer__bottom { display: flex; justify-content: space-between; align-items: flex-end; margin-top: 80px; padding-top: 31px; border-top: 1px solid #ddd; }
.footer__bottom small { display: block; font: 400 14px/14px var(--font); color: rgba(255, 255, 255, .6); }
.footer__bottom strong { display: block; margin-top: 16px; font: 400 24px/38.4px var(--font); }
.footer__time { display: flex; align-items: center; gap: 163px; }
.footer__time > div { width: 166px; }
.footer__time strong { margin: 0 0 16px; }
.to-top { display: grid; place-items: center; width: 62px; height: 62px; border-radius: 50%; background: var(--orange); color: #fff; transition: transform .2s ease; }
.to-top:hover { transform: translateY(-4px); }
.to-top svg { width: 24px; height: 24px; }

/* ---------- reveal on scroll ---------- */
.js .reveal { opacity: 0; transform: translateY(24px); transition: opacity .7s ease, transform .7s ease; }
.js .reveal.is-in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .js .reveal { opacity: 1; transform: none; transition: none; }
  .clients__track { animation: none; }
}

/* ==========================================================================
   Responsive
   ========================================================================== */
@media (max-width: 1200px) {
  .nav__links { gap: 20px; }
  .hero h1 { font-size: 56px; line-height: 62px; }
  .h2 { font-size: 44px; line-height: 50px; }
  .eco__head h2, .cta h2 { font-size: 54px; line-height: 60px; }
  .banner p { font-size: 36px; line-height: 42px; }
  .proc-grid, .feat-grid, .price-grid { grid-template-columns: repeat(2, 1fr); grid-template-rows: none; }
  .ind-grid, .work-grid, .audit-grid { grid-template-columns: repeat(2, 1fr); }
  .eco-grid { grid-template-columns: repeat(2, 1fr); grid-template-rows: none; }
  .eco-card--tall { grid-row: span 2; }
  .faq__grid { grid-template-columns: 1fr; }
  .footer__mid { flex-direction: column; align-items: flex-start; }
  .offices { height: auto; padding-bottom: 80px; }
  .offices__row { left: 0; gap: 16px; }
  .footer__time { gap: 48px; }
}

@media (max-width: 900px) {
  .nav__links, .nav__cta { display: none; }
  .nav__toggle { display: grid; }
  .nav.is-open { height: auto; flex-wrap: wrap; border-radius: 24px; background: rgba(10, 10, 10, .92); }
  .nav.is-open .nav__links { display: flex; flex-direction: column; gap: 16px; width: 100%; order: 3; padding: 20px 0 8px; }
  .nav.is-open .nav__links a { font-size: 17px; }
  .nav.is-open .nav__cta { display: inline-block; order: 4; margin: 8px 0 4px; }
  .hero { height: auto; min-height: 600px; padding-bottom: 80px; }
  .hero::before { width: calc(100% + 56px); background: linear-gradient(90deg, rgba(3, 3, 3, .92) 0%, rgba(3, 3, 3, .55) 100%); }
  .hero__content { padding-top: 150px; }
  /* column stack: never let space-between distribute vertically, and never let
     a desktop flex-basis (which maps to height here) reserve empty space */
  .about__top, .sec-head, .eco__head, .banner { flex-direction: column; align-items: flex-start; justify-content: flex-start; }
  .about__title, .about__copy { flex: 0 0 auto; }
  .about__top { gap: 32px; }
  .eco__head { gap: 24px; }
  .about__copy { padding-top: 0; }
  .stats { grid-template-columns: 1fr 1fr; }
  .stats > div { padding: 24px 12px; }
  .stats > div:first-child { padding-left: 12px; }
  .stats > div:nth-child(2) { border-right: 0; }
  .stats > div:nth-child(-n+2) { border-bottom: 1px solid rgba(18, 19, 23, .18); }
  .stats strong { font-size: 42px; line-height: 44px; }
  .certs { flex-direction: column; text-align: center; }
  .certs__row { flex-wrap: wrap; justify-content: center; }
 
  .ba-grid, .contact__grid, .offices__row { grid-template-columns: 1fr; }
  .offices__row { left: 0; }
  .banner { padding: 40px 32px; }
  .footer__cols { flex-wrap: wrap; gap: 40px; }
  .footer__bottom { flex-direction: column; align-items: flex-start; gap: 32px; }

  /* comfortable tap targets for touch layouts */
  .nav.is-open .nav__links { gap: 0; }
  .nav__links a { display: block; padding: 10px 0; }
  .nav.is-open .nav__cta { padding: 14px 24px; }
  .announce a { padding: 6px 0; }
  .audit-card a { margin-top: 16px; padding: 11px 0; }
  .contact__links { gap: 0; }
  .contact__links a { padding: 8px 0; }
  .office a { margin-top: 8px; padding: 10px 0; }
  .footer__cols ul { gap: 0; }
  .footer__cols a { display: block; padding: 12px 0; }
  .socials a { display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 44px; }
}

@media (max-width: 640px) {
  .wrap { width: calc(100% - 32px); }
  .announce { font-size: 13px; line-height: 18px; }
  .announce__chip { display: none; }
  .nav { width: calc(100% - 32px); }
  .hero h1 { font-size: 44px; line-height: 50px; letter-spacing: -1px; }
  .hero__lead { font-size: 18px; line-height: 28px; }
  .h2, .footer__mid h2 { font-size: 36px; line-height: 42px; }
  .eco__head h2, .cta h2 { font-size: 40px; line-height: 46px; }
  .banner p, .banner--sm p { font-size: 28px; line-height: 34px; }
  .about, .industries, .ba, .eco { padding: 64px 0; }
  .process, .why, .pricing, .portfolio, .faq, .audit, .contact { padding: 72px 0; }
  .banner-sec { padding-top: 64px; }
  .ind-grid, .work-grid, .audit-grid, .proc-grid, .feat-grid, .price-grid, .eco-grid { grid-template-columns: 1fr; }
  /* single-column CTA: lay it out as a row and match the step cards' height */
  .proc-card--cta { flex-direction: row; align-items: center; justify-content: space-between; gap: 20px; min-height: 194px; }
  .proc-card--cta span { flex: none; }
  .eco-card--tall { grid-row: auto; min-height: 280px; }
  .ba-card { padding: 20px; }
  .faq-item__q { font-size: 19px; line-height: 24px; }
  .form__row { grid-template-columns: 1fr; }
  .cta { height: auto; padding-bottom: 96px; }
  .cta__inner { padding-top: 96px; }
  .cta__btns { flex-direction: column; width: 100%; }
  .clients__label { width: 120px; font-size: 13px; }
  /* badges keep desktop pixel sizes otherwise: scale so all four fit one line */
  .certs__row img { height: 36px; width: auto; }
  .stats strong { font-size: 36px; line-height: 38px; }
  .stats span { font-size: 15px; line-height: 20px; }
  .stats > div { min-height: 116px; }
  .socials { gap: 20px; }
  .footer__tagline { flex-direction: column; align-items: flex-start; }
  .footer__time { width: 100%; justify-content: space-between; gap: 16px; }
}

@media (max-width: 680px) {
  .modal { padding: 12px; }
  .modal__dialog { max-height: 94vh; border-radius: 20px; }
  .modal__close { top: 12px; right: 12px; width: 36px; height: 36px; }
  .modal__media { height: 220px; flex: 0 0 220px; }
  .modal__body { padding: 22px 18px 24px; }
  .modal__title { font-size: 23px; line-height: 27px; }
  .modal__actions { flex-direction: column; align-items: stretch; text-align: center; }
  .modal__btn { width: 100%; }
}

