/* Shiv Engineering - main stylesheet (CSS3) */
:root {
  --green: #2b8a4b;
  --green-700: #1f6b3b;
  --green-900: #12402a;
  --saffron: #f26b38;
  --saffron-600: #d9551f;
  --ink: #0f1c18;
  --steel: #18252a;
  --steel-2: #22343a;
  --text: #2a3633;
  --muted: #5f6e6a;
  --line: #e1e7e4;
  --bg: #ffffff;
  --bg-alt: #f3f6f4;
  --radius: 10px;
  --radius-lg: 16px;
  --shadow: 0 1px 2px rgba(15, 28, 24, .06), 0 8px 24px rgba(15, 28, 24, .08);
  --shadow-lg: 0 20px 50px rgba(15, 28, 24, .18);
  --head: "Barlow Condensed", "Arial Narrow", system-ui, sans-serif;
  --body: "Barlow", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --wrap: 1240px;
  --gutter: clamp(16px, 4vw, 32px);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; scroll-padding-top: 90px; }
body { margin: 0; font: 400 17px/1.6 var(--body); color: var(--text); background: var(--bg); overflow-x: hidden; overflow-x: clip; }
img, video { max-width: 100%; height: auto; display: block; }
a { color: var(--green-700); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--saffron-600); }
h1, h2, h3, h4 { font-family: var(--head); color: var(--ink); line-height: 1.1; margin: 0 0 .5em; font-weight: 700; letter-spacing: .2px; }
h1 { font-size: clamp(2.2rem, 5vw, 3.8rem); }
h2 { font-size: clamp(1.8rem, 3.6vw, 2.7rem); }
h3 { font-size: 1.35rem; }
p { margin: 0 0 1em; }
ul { padding-left: 1.2em; }
svg { width: 1em; height: 1em; flex: none; }
.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: -9999px; top: 0; background: var(--ink); color: #fff; padding: 10px 16px; z-index: 999; }
.skip:focus { left: 8px; }
:focus-visible { outline: 3px solid var(--saffron); outline-offset: 2px; }

.wrap { max-width: var(--wrap); margin: 0 auto; padding-left: var(--gutter); padding-right: var(--gutter); }
.section { padding: clamp(56px, 8vw, 104px) 0; }
.section--alt { background: var(--bg-alt); }
.section--dark { background: var(--steel); color: #c9d4d1; }
.section--dark h2, .section--dark h3 { color: #fff; }
.section-head { max-width: 760px; margin-bottom: 40px; }
.section-head--center { text-align: center; margin-left: auto; margin-right: auto; }
.section-head--row { max-width: none; display: flex; justify-content: space-between; align-items: end; gap: 24px; flex-wrap: wrap; }
.lead { font-size: 1.15rem; color: var(--muted); }
.eyebrow { font: 600 .82rem/1 var(--body); letter-spacing: .16em; text-transform: uppercase; color: var(--saffron-600); margin: 0 0 14px; display: inline-flex; align-items: center; gap: 10px; }
.eyebrow::before { content: ""; width: 28px; height: 2px; background: currentColor; }
.eyebrow--light { color: #ffb08f; }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; font: 600 1rem/1 var(--body); padding: 13px 22px; border-radius: 6px; border: 2px solid transparent; text-decoration: none; cursor: pointer; transition: background .2s, color .2s, border-color .2s, transform .15s; white-space: nowrap; }
.btn:active { transform: translateY(1px); }
.btn svg { width: 18px; height: 18px; }
.btn-lg { padding: 16px 28px; font-size: 1.05rem; }
.btn-primary { background: var(--saffron); color: #fff; }
.btn-primary:hover { background: var(--saffron-600); color: #fff; }
.btn-accent { background: #fff; color: var(--green-900); }
.btn-accent:hover { background: var(--saffron); color: #fff; }
.btn-outline { border-color: var(--green-700); color: var(--green-700); background: transparent; }
.btn-outline:hover { background: var(--green-700); color: #fff; }
.btn-ghost-light { border-color: rgba(255,255,255,.6); color: #fff; background: transparent; }
.btn-ghost-light:hover { background: #fff; color: var(--ink); }
.link-arrow { font-weight: 600; text-decoration: none; display: inline-flex; align-items: center; gap: 6px; }
.link-arrow svg { transition: transform .2s; }
.link-arrow:hover svg { transform: translateX(4px); }

/* Top bar & header */
.topbar { background: var(--ink); color: #b9c6c2; font-size: .86rem; }
.topbar__in { display: flex; justify-content: space-between; align-items: center; gap: 16px; min-height: 38px; }
.topbar__badges { display: flex; gap: 18px; }
.topbar__badges span + span::before { content: "•"; margin-right: 18px; color: var(--saffron); }
.topbar__contact { display: flex; gap: 20px; }
.topbar a { color: #e6eeeb; text-decoration: none; display: inline-flex; align-items: center; gap: 6px; }
.topbar a:hover { color: #fff; }
.topbar svg { color: var(--saffron); }
.topbar__dl { color: #fff !important; font-weight: 600; }

.site-header { position: sticky; top: 0; z-index: 50; background: rgba(255,255,255,.96); -webkit-backdrop-filter: saturate(1.4) blur(8px); backdrop-filter: saturate(1.4) blur(8px); border-bottom: 1px solid var(--line); transition: box-shadow .2s; }
.site-header.is-scrolled { box-shadow: 0 4px 20px rgba(0,0,0,.08); }
.site-header__in { display: flex; align-items: center; justify-content: space-between; gap: 24px; min-height: 78px; }
.brand img { width: 190px; height: auto; }
.site-nav { display: flex; align-items: center; gap: 4px; }
.site-nav > a, .has-sub > a { font: 600 1.02rem/1 var(--body); color: var(--ink); text-decoration: none; padding: 12px 12px; border-radius: 6px; display: block; }
.site-nav > a:hover, .has-sub > a:hover, .site-nav a[aria-current="page"] { color: var(--green-700); }
.site-nav a[aria-current="page"] { box-shadow: inset 0 -2px 0 var(--saffron); border-radius: 0; }
.site-nav .nav-cta { margin-left: 10px; color: #fff; padding: 12px 20px; }
.site-nav .nav-cta:hover { color: #fff; }
.has-sub { position: relative; }
.has-sub > a::after { content: ""; display: inline-block; width: 6px; height: 6px; border-right: 2px solid currentColor; border-bottom: 2px solid currentColor; transform: rotate(45deg) translateY(-3px); margin-left: 8px; }
.sub { position: absolute; top: 100%; left: 0; min-width: 290px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow-lg); padding: 8px; opacity: 0; visibility: hidden; transform: translateY(6px); transition: .18s; }
.has-sub:hover .sub, .has-sub:focus-within .sub { opacity: 1; visibility: visible; transform: none; }
.sub a { display: block; padding: 9px 12px; border-radius: 6px; color: var(--text); text-decoration: none; font-size: .96rem; }
.sub a:hover { background: var(--bg-alt); color: var(--green-700); }
.nav-toggle { display: none; background: none; border: 0; width: 44px; height: 44px; padding: 10px; cursor: pointer; }
.nav-toggle span:not(.sr) { display: block; height: 2px; background: var(--ink); margin: 6px 0; transition: .2s; }
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

.crumbs { font-size: .88rem; color: var(--muted); display: flex; gap: 8px; flex-wrap: wrap; padding-top: 18px; padding-bottom: 4px; }
.crumbs a { color: var(--muted); text-decoration: none; }
.crumbs a:hover { color: var(--green-700); }

/* Hero */
.hero { position: relative; color: #fff; min-height: min(88vh, 780px); display: flex; align-items: center; overflow: hidden; background: var(--ink); }
.hero__slides { position: absolute; inset: 0; }
.hero__slides img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transition: opacity 1.4s ease; transform: scale(1.04); }
.hero__slides img.is-active { opacity: 1; animation: kenburns 9s ease-out forwards; }
@keyframes kenburns { from { transform: scale(1.08); } to { transform: scale(1); } }
.hero::after { content: ""; position: absolute; inset: 0; background: linear-gradient(100deg, rgba(10,20,17,.92) 0%, rgba(10,20,17,.75) 45%, rgba(10,20,17,.25) 100%); }
.hero__in { position: relative; z-index: 2; display: grid; grid-template-columns: 1.35fr .9fr; gap: 48px; align-items: center; padding-top: 64px; padding-bottom: 64px; }
.hero h1 { color: #fff; margin-bottom: 18px; }
.hero h1 em { font-style: normal; color: #ffb08f; }
.hero p.lead { color: #d5dfdc; font-size: clamp(1.05rem, 1.6vw, 1.25rem); max-width: 620px; }
.hero__ctas { display: flex; gap: 14px; flex-wrap: wrap; margin-top: 28px; }
.hero__proof { display: flex; gap: 22px; flex-wrap: wrap; margin-top: 34px; font-size: .95rem; color: #cfdad6; }
.hero__proof span { display: inline-flex; gap: 8px; align-items: center; }
.hero__proof svg { color: #7ad69a; width: 18px; height: 18px; }
.hero .lead-form { background: rgba(255,255,255,.97); color: var(--text); }

.page-hero { position: relative; color: #fff; background: var(--steel); overflow: hidden; }
.page-hero > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: .38; }
.page-hero::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(15,28,24,.95), rgba(15,28,24,.55)); }
.page-hero .wrap { position: relative; z-index: 1; padding-top: clamp(48px, 8vw, 96px); padding-bottom: clamp(48px, 8vw, 88px); }
.page-hero h1 { color: #fff; max-width: 900px; }
.page-hero p { color: #d2ddd9; max-width: 720px; font-size: 1.15rem; }
.page-hero .eyebrow { color: #ffb08f; }
.page-hero__ctas { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 24px; }

/* Stats */
.stats { background: var(--green-900); color: #fff; }
.stats__grid { display: grid; grid-template-columns: repeat(5, 1fr); }
.stat { padding: 30px 20px; border-left: 1px solid rgba(255,255,255,.12); }
.stat:first-child { border-left: 0; }
.stat b { display: block; font: 700 clamp(2rem, 3.5vw, 2.8rem)/1 var(--head); color: #fff; }
.stat span { font-size: .92rem; color: #b9d6c4; }

/* Logos */
.logos { padding: 40px 0; border-bottom: 1px solid var(--line); }
.logos__label { text-align: center; font-size: .82rem; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); margin-bottom: 22px; }
.marquee { overflow: hidden; -webkit-mask: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); mask: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); }
.marquee__track { display: flex; width: max-content; animation: marquee 40s linear infinite; align-items: center; will-change: transform; }
.marquee__item { flex: none; width: 170px; height: 64px; margin-right: 48px; display: flex; align-items: center; justify-content: center; }
.marquee:hover .marquee__track { animation-play-state: paused; }
.marquee img { max-height: 56px; max-width: 100%; width: auto; height: auto; object-fit: contain; }
@keyframes marquee { to { transform: translateX(-50%); } }

.logo-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 16px; }
.logo-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 12px; min-height: 150px; text-align: center; transition: box-shadow .2s, transform .2s; }
.logo-card:hover { box-shadow: var(--shadow); transform: translateY(-2px); }
.logo-card img { max-height: 70px; width: auto; max-width: 100%; object-fit: contain; }
.logo-card span { font-size: .85rem; color: var(--muted); }
.chips { display: flex; flex-wrap: wrap; gap: 10px; padding: 0; list-style: none; }
.chips li { background: #fff; border: 1px solid var(--line); border-radius: 999px; padding: 8px 16px; font-weight: 500; }

/* Cards */
.grid { display: grid; gap: 24px; }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 16px 20px; }
.card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg); overflow: hidden; display: flex; flex-direction: column; transition: box-shadow .25s, transform .25s; text-decoration: none; color: inherit; }
.card:hover { box-shadow: var(--shadow-lg); transform: translateY(-3px); color: inherit; }
.card__media { position: relative; aspect-ratio: 16 / 10; overflow: hidden; background: var(--bg-alt); }
.card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s; }
.card:hover .card__media img { transform: scale(1.05); }
.card__body { padding: 20px 22px 24px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.card__body h3 { margin: 0; font-size: 1.4rem; }
.card__body p { margin: 0; color: var(--muted); font-size: .98rem; }
.card__meta { font-size: .85rem; color: var(--muted); display: flex; align-items: center; gap: 6px; }
.card__meta svg { color: var(--saffron); }
.card__more { margin-top: auto; padding-top: 10px; font-weight: 600; color: var(--green-700); display: inline-flex; align-items: center; gap: 6px; }
.badge { position: absolute; left: 14px; top: 14px; background: rgba(15,28,24,.82); color: #fff; font-size: .75rem; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; padding: 6px 10px; border-radius: 4px; }
.badge--new { background: var(--saffron); left: auto; right: 14px; }
.spec-chip { position: absolute; left: 14px; bottom: 14px; background: #fff; color: var(--ink); border-radius: 6px; padding: 8px 12px; line-height: 1.1; box-shadow: var(--shadow); }
.spec-chip b { display: block; font: 700 1.5rem/1 var(--head); color: var(--green-700); }
.spec-chip span { font-size: .75rem; color: var(--muted); text-transform: uppercase; letter-spacing: .06em; }
.placeholder-media { width: 100%; height: 100%; display: grid; place-items: center; background: repeating-linear-gradient(135deg, var(--green-900) 0 18px, #16503a 18px 36px); color: #fff; text-align: center; padding: 24px; font: 600 1.3rem/1.2 var(--head); }

.service-card .card__media { aspect-ratio: 16 / 9; }
.service-card .card__body h3 { font-size: 1.3rem; }

/* Split / feature */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 5vw, 72px); align-items: center; }
.split--top { align-items: start; }
.split__media { position: relative; }
.split__media img { border-radius: var(--radius-lg); width: 100%; object-fit: cover; }
.split__media .float-card { position: absolute; right: -14px; bottom: -22px; background: var(--saffron); color: #fff; padding: 18px 22px; border-radius: var(--radius); box-shadow: var(--shadow-lg); }
.float-card b { display: block; font: 700 2.4rem/1 var(--head); }
.photo-stack { display: grid; grid-template-columns: 1.2fr 1fr; grid-template-rows: 1fr 1fr; gap: 12px; }
.photo-stack img { width: 100%; height: 100%; object-fit: cover; border-radius: var(--radius); }
.photo-stack img:first-child { grid-row: span 2; }
.ticks { list-style: none; padding: 0; margin: 0 0 1.2em; display: grid; gap: 10px; }
.ticks li { display: flex; gap: 10px; align-items: flex-start; }
.ticks li::before { content: ""; flex: none; width: 20px; height: 20px; margin-top: 3px; border-radius: 50%; background: var(--green) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='%23fff' d='m9 16.2-4.2-4.2-1.4 1.4L9 19 21 7l-1.4-1.4L9 16.2Z'/%3E%3C/svg%3E") center / 14px no-repeat; }
.ticks--2 { grid-template-columns: 1fr 1fr; }

/* KPI tiles */
.kpis { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.kpi { background: var(--steel-2); border-radius: var(--radius); padding: 24px; border-top: 3px solid var(--saffron); }
.kpi b { display: block; font: 700 1.5rem/1.1 var(--head); color: #fff; }
.kpi span { color: #a9b9b4; font-size: .95rem; }

/* Locations */
.locations { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 14px; }
.loc { display: flex; gap: 12px; align-items: flex-start; background: var(--steel-2); border-radius: var(--radius); padding: 16px 18px; }
.loc svg { color: var(--saffron); width: 22px; height: 22px; margin-top: 2px; }
.loc b { color: #fff; display: block; font-size: 1.02rem; }
.loc span { font-size: .88rem; color: #a9b9b4; }

/* Lead forms */
.lead-form { background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg); padding: clamp(20px, 3vw, 32px); box-shadow: var(--shadow); display: grid; gap: 14px; }
.lead-form--compact { gap: 12px; }
.form-title { font-size: 1.6rem; margin: 0 0 4px; }
.lead-form label { display: grid; gap: 6px; font-size: .9rem; font-weight: 600; color: var(--ink); }
.lead-form input, .lead-form select, .lead-form textarea { font: 400 1rem/1.4 var(--body); color: var(--text); padding: 12px 14px; border: 1px solid #cfd8d5; border-radius: 6px; background: #fff; width: 100%; transition: border-color .15s, box-shadow .15s; }
.lead-form input:focus, .lead-form select:focus, .lead-form textarea:focus { outline: none; border-color: var(--green); box-shadow: 0 0 0 3px rgba(43,138,75,.18); }
.lead-form input[type="file"] { padding: 9px; background: var(--bg-alt); }
.lead-form .check { display: flex; gap: 10px; align-items: flex-start; font-weight: 400; font-size: .86rem; color: var(--muted); }
.lead-form .check input { width: 18px; height: 18px; margin-top: 2px; flex: none; accent-color: var(--green); }
.lead-form .hint { font-weight: 400; color: var(--muted); }
.lead-form .err { color: #c0392b; font-weight: 600; font-size: .82rem; min-height: 0; }
.lead-form .err:empty { display: none; }
.lead-form .is-invalid { border-color: #c0392b; }
.form-note { font-size: .84rem; color: var(--muted); margin: 0; }
.lead-form button[disabled] { opacity: .7; cursor: wait; }
.hp { position: absolute !important; left: -10000px; width: 1px; height: 1px; overflow: hidden; }

/* Projects filter */
.filters { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 28px; }
.filters button { font: 600 .92rem/1 var(--body); border: 1px solid var(--line); background: #fff; color: var(--text); padding: 10px 16px; border-radius: 999px; cursor: pointer; transition: .15s; }
.filters button:hover { border-color: var(--green); color: var(--green-700); }
.filters button[aria-pressed="true"] { background: var(--green-700); border-color: var(--green-700); color: #fff; }
.filters__label { font-weight: 600; align-self: center; margin-right: 6px; color: var(--muted); font-size: .9rem; }
.is-hidden { display: none !important; }

/* Project detail */
.project-layout { display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(300px, 1fr); gap: 48px; align-items: start; }
.gallery { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; }
.gallery a { display: block; border-radius: var(--radius); overflow: hidden; background: var(--bg-alt); aspect-ratio: 4 / 3; cursor: zoom-in; }
.gallery a:first-child { grid-column: span 2; aspect-ratio: 16 / 9; }
.gallery img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s; }
.gallery a:hover img { transform: scale(1.04); }
.spec-table { width: 100%; border-collapse: collapse; font-size: .96rem; }
.spec-table th, .spec-table td { text-align: left; padding: 11px 0; border-bottom: 1px solid var(--line); vertical-align: top; }
.spec-table th { color: var(--muted); font-weight: 500; width: 46%; padding-right: 12px; }
.spec-table td { color: var(--ink); font-weight: 600; }
.sticky-side { position: sticky; top: 100px; display: grid; gap: 20px; }
.panel { background: var(--bg-alt); border-radius: var(--radius-lg); padding: 24px; }
.panel h3 { font-size: 1.3rem; }
.tags { display: flex; flex-wrap: wrap; gap: 8px; }
.tags a, .tags span { font-size: .85rem; padding: 6px 12px; border-radius: 999px; background: #fff; border: 1px solid var(--line); text-decoration: none; color: var(--text); }
.tags a:hover { border-color: var(--green); color: var(--green-700); }
.video-wrap { border-radius: var(--radius-lg); overflow: hidden; background: #000; margin-top: 24px; }

/* Lightbox */
.lightbox { position: fixed; inset: 0; background: rgba(5,10,9,.94); z-index: 200; display: none; align-items: center; justify-content: center; padding: 40px 60px; }
.lightbox.is-open { display: flex; }
.lightbox img { max-height: 86vh; max-width: 100%; width: auto; border-radius: 6px; }
.lightbox button { position: absolute; background: rgba(255,255,255,.1); color: #fff; border: 0; width: 48px; height: 48px; border-radius: 50%; font-size: 26px; cursor: pointer; }
.lightbox button:hover { background: rgba(255,255,255,.22); }
.lb-close { top: 16px; right: 16px; }
.lb-prev { left: 12px; top: 50%; transform: translateY(-50%); }
.lb-next { right: 12px; top: 50%; transform: translateY(-50%); }
.lb-cap { position: absolute; bottom: 14px; left: 0; right: 0; text-align: center; color: #cfd8d5; font-size: .9rem; }

/* Tables */
.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius); background: #fff; }
.data-table { width: 100%; border-collapse: collapse; font-size: .95rem; min-width: 520px; }
.data-table th, .data-table td { padding: 12px 16px; text-align: left; border-bottom: 1px solid var(--line); }
.data-table th { background: var(--bg-alt); font-weight: 600; color: var(--ink); }
.data-table td:last-child, .data-table th:last-child { text-align: right; }
.data-table tr:last-child td { border-bottom: 0; }

/* Steps */
.steps { counter-reset: step; display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.step { position: relative; padding: 24px; background: #fff; border-radius: var(--radius-lg); border: 1px solid var(--line); }
.step::before { counter-increment: step; content: "0" counter(step); font: 700 2.4rem/1 var(--head); color: var(--saffron); display: block; margin-bottom: 10px; }
.step h3 { font-size: 1.25rem; }
.step p { color: var(--muted); font-size: .96rem; margin: 0; }

/* People */
.people { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.person { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; }
.person .avatar { width: 52px; height: 52px; border-radius: 50%; background: var(--green-700); color: #fff; display: grid; place-items: center; font: 700 1.3rem/1 var(--head); margin-bottom: 12px; }
.person b { display: block; color: var(--ink); font-size: 1.08rem; }
.person span { color: var(--muted); font-size: .9rem; }

/* Lead magnet block */
.magnet { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: center; background: linear-gradient(135deg, var(--green-900), var(--green-700)); border-radius: 20px; padding: clamp(28px, 5vw, 56px); color: #d6e8dd; }
.magnet h2 { color: #fff; }
.magnet .ticks li::before { background-color: var(--saffron); }
.magnet__cover { display: flex; gap: 20px; align-items: center; margin-bottom: 18px; }
.pdf-mock { width: 110px; aspect-ratio: 210 / 297; background: #fff; border-radius: 4px; box-shadow: 0 16px 32px rgba(0,0,0,.35); transform: rotate(-4deg); overflow: hidden; flex: none; position: relative; }
.pdf-mock img { width: 100%; height: 62%; object-fit: cover; }
.pdf-mock::after { content: "COMPANY PROFILE"; position: absolute; left: 8px; right: 8px; bottom: 12px; font: 700 .62rem/1.1 var(--head); color: var(--green-900); letter-spacing: .08em; border-top: 3px solid var(--saffron); padding-top: 6px; }

/* CTA band & footer */
.cta-band { background: linear-gradient(110deg, var(--saffron-600), var(--saffron)); color: #fff; }
.cta-band__in { display: flex; justify-content: space-between; align-items: center; gap: 32px; padding-top: 52px; padding-bottom: 52px; flex-wrap: wrap; }
.cta-band h2 { color: #fff; margin-bottom: 8px; max-width: 700px; }
.cta-band p { color: #fff3ec; margin: 0; max-width: 640px; }
.cta-band .eyebrow--light { color: #fff; }
.cta-band__actions { display: flex; gap: 12px; flex-wrap: wrap; }

.site-footer { background: var(--ink); color: #9fb0ab; padding-top: 64px; font-size: .95rem; }
.footer-grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1.2fr; gap: 40px; padding-bottom: 44px; }
.site-footer h3 { color: #fff; font-size: 1.15rem; letter-spacing: .06em; text-transform: uppercase; }
.site-footer ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.site-footer a { color: #c8d4d0; text-decoration: none; }
.site-footer a:hover { color: #fff; }
.site-footer address { font-style: normal; margin-bottom: 12px; line-height: 1.6; }
.footer-logo { background: #fff; padding: 10px 14px; border-radius: 8px; margin-bottom: 16px; width: 200px; }
.social { display: inline-flex; align-items: center; gap: 8px; }
.social svg { width: 22px; height: 22px; color: #0a66c2; background: #fff; border-radius: 3px; }
.gst { font-size: .86rem; color: #7f918c; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.08); padding-top: 20px; padding-bottom: 24px; display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; font-size: .85rem; }

.wa-float { position: fixed; right: 20px; bottom: 20px; width: 58px; height: 58px; border-radius: 50%; background: #25d366; color: #fff; display: grid; place-items: center; box-shadow: 0 8px 24px rgba(0,0,0,.25); z-index: 60; transition: transform .2s; }
.wa-float:hover { transform: scale(1.08); color: #fff; }
.wa-float svg { width: 30px; height: 30px; }
.action-bar { display: none; }

/* Modal */
.modal { border: 0; padding: 0; border-radius: 18px; max-width: 820px; width: calc(100% - 32px); box-shadow: var(--shadow-lg); overflow: hidden; }
.modal::backdrop { background: rgba(5,12,10,.7); }
.modal__grid { display: grid; grid-template-columns: .8fr 1fr; }
.modal__media img { width: 100%; height: 100%; object-fit: cover; }
.modal__body { padding: 28px; }
.modal__body .lead-form { border: 0; box-shadow: none; padding: 0; }
.modal__close { position: absolute; top: 10px; right: 12px; background: #fff; border: 0; width: 36px; height: 36px; border-radius: 50%; font-size: 24px; cursor: pointer; z-index: 2; box-shadow: var(--shadow); }

/* Prose */
.prose { max-width: 780px; }
.prose h2 { margin-top: 1.6em; font-size: 1.8rem; }
.prose h3 { margin-top: 1.4em; }

/* Reveal on scroll */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity .6s ease, transform .6s ease; }
.reveal.is-in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .reveal { opacity: 1; transform: none; }
  html { scroll-behavior: auto; }
}

/* Responsive */
@media (max-width: 1100px) {
  .grid-4, .people { grid-template-columns: repeat(2, 1fr); }
  .stats__grid { grid-template-columns: repeat(3, 1fr); }
  .stat:nth-child(4) { border-left: 0; }
  .steps { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 1000px) {
  .topbar__badges { display: none; }
  .topbar__in { justify-content: center; }
  .nav-toggle { display: block; }
  /* backdrop-filter would make the fixed menu size itself to the header, so drop it on small screens */
  .site-header { -webkit-backdrop-filter: none; backdrop-filter: none; background: #fff; }
  .site-nav { position: fixed; top: 116px; left: 0; right: 0; bottom: 0; height: auto; background: #fff; flex-direction: column; align-items: stretch; padding: 16px var(--gutter) 120px; gap: 0; overflow-y: auto; -webkit-overflow-scrolling: touch; overscroll-behavior: contain; transform: translateX(100%); visibility: hidden; transition: transform .25s, visibility 0s linear .25s; z-index: 49; }
  .site-nav.is-open { transform: none; visibility: visible; transition: transform .25s, visibility 0s; }
  .site-nav > a, .has-sub > a { padding: 14px 4px; border-bottom: 1px solid var(--line); font-size: 1.1rem; }
  .site-nav a[aria-current="page"] { box-shadow: none; }
  .sub { position: static; opacity: 1; visibility: visible; transform: none; box-shadow: none; border: 0; padding: 4px 0 8px 12px; min-width: 0; display: none; }
  .has-sub.is-open .sub { display: block; }
  .site-nav .nav-cta { margin: 18px 0 0; }
  .hero__in, .split, .project-layout, .magnet { grid-template-columns: 1fr; }
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
  .kpis { grid-template-columns: repeat(2, 1fr); }
  .sticky-side { position: static; }
  .modal__grid { grid-template-columns: 1fr; }
  .modal__media { display: none; }
}
@media (max-width: 720px) {
  body { font-size: 16px; padding-bottom: 64px; }
  .topbar { display: none; }
  .site-nav { top: 78px; }
  .marquee__item { width: 130px; height: 56px; margin-right: 32px; }
  .marquee img { max-height: 48px; }
  .brand img { width: 160px; }
  .grid-3, .grid-4, .grid-2, .people, .steps, .ticks--2, .footer-grid { grid-template-columns: 1fr; }
  .stats__grid { grid-template-columns: repeat(2, 1fr); }
  .stat { border-left: 0; border-top: 1px solid rgba(255,255,255,.12); padding: 20px 8px; }
  .stat:nth-child(-n+2) { border-top: 0; }
  .stat:last-child { grid-column: span 2; }
  .kpis { grid-template-columns: 1fr; }
  .gallery { grid-template-columns: 1fr 1fr; }
  .hero { min-height: 0; }
  .hero__ctas .btn { flex: 1 1 100%; }
  .section-head--row { display: block; }
  .cta-band__actions .btn { flex: 1 1 100%; }
  .wa-float { display: none; }
  .action-bar { display: grid; grid-template-columns: 1fr 1fr 1.3fr; position: fixed; left: 0; right: 0; bottom: 0; z-index: 70; background: #fff; border-top: 1px solid var(--line); box-shadow: 0 -4px 20px rgba(0,0,0,.08); }
  .action-bar a { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; padding: 9px 4px; font-size: .78rem; font-weight: 600; color: var(--ink); text-decoration: none; }
  .action-bar svg { width: 22px; height: 22px; color: var(--green); }
  .action-bar a.is-primary { background: var(--saffron); color: #fff; }
  .action-bar a.is-primary svg { color: #fff; }
  .lightbox { padding: 20px 8px; }
  .split__media .float-card { right: 10px; bottom: -16px; }
}
@media print {
  .topbar, .site-header, .cta-band, .site-footer, .wa-float, .action-bar, .modal { display: none !important; }
}
.mt-40 { margin-top: 40px; }
.map { width: 100%; height: 420px; border: 0; display: block; filter: grayscale(.2); }
.h2-size { font-size: clamp(1.8rem, 3.6vw, 2.7rem); }
.magnet h1 { color: #fff; }
figure.card { margin: 0; }
.site-nav > a, .has-sub > a { white-space: nowrap; }
@media (max-width: 1200px) and (min-width: 1001px) { .site-nav > a, .has-sub > a { padding: 12px 8px; font-size: .96rem; } .brand img { width: 160px; } }

.people--2 { grid-template-columns: repeat(2, minmax(0, 320px)); }
@media (max-width: 720px) { .people--2 { grid-template-columns: 1fr; } }

.jobs { display: grid; gap: 14px; margin-bottom: 20px; }
.job h3 { margin-bottom: 4px; }
.job p { margin-bottom: 8px; }

.dev-credit .heart { color: #e5484d; }
.dev-credit a { color: #fff; font-weight: 600; }
