/* ==========================================================
   Marvs Global Limited: main stylesheet
   Sections: tokens, reset, buttons, header, hero, trust strip,
   about, services, client portal, projects, banner, inner pages,
   contact form, legal, footer,
   responsive (tablet <=1100px, mobile <=767px, small <=359px)
   ========================================================== */

/* ---------- Design tokens ---------- */
:root {
  --font-sans: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  --font-display: "Montserrat", "Inter", system-ui, Arial, sans-serif;
  --primary: #d50b13;
  --primary-foreground: #f8fafc;
  --background: #ffffff;
  --foreground: #1a2028;
  --card: #ffffff;
  --muted: #f3f5f8;
  --muted-foreground: #62666d;
  --accent: #f1f5f9;
  --border: #e2e8f0;
  --navy: #1d242e;
  --on-dark-muted: #b7bbc0;
  --success: #176f45;
  --success-soft: #e1f4e8;
  --hero-shade: linear-gradient(90deg, rgba(11,18,29,.88) 0%, rgba(11,18,29,.66) 45%, rgba(11,18,29,.3) 100%);
  --photo-shade: linear-gradient(0deg, rgba(11,18,29,.9), rgba(11,18,29,0) 70%);
  --banner-shade: rgba(19,25,34,.91);
  --shadow-subtle: 0 12px 32px rgba(16,22,31,.05);
  --shadow-preview: 0 24px 60px rgba(4,6,9,.28);
  --shadow-button: 0 1px 3px rgba(0,0,0,.1), 0 1px 2px -1px rgba(0,0,0,.1);
}

/* ---------- Reset and base ---------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; border: 0 solid var(--border); }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; line-height: 1.5; }
body { background: var(--background); color: var(--foreground); font-family: var(--font-sans); }
h1, h2, h3, h4 { font-size: inherit; font-weight: inherit; }
h1, h2, h3 { font-family: var(--font-display); }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }
img, svg { display: block; max-width: 100%; }
img { height: auto; }
button { font: inherit; color: inherit; background: none; cursor: pointer; }
[hidden] { display: none !important; }

.container-shell { width: min(1200px, 100% - 96px); margin-inline: auto; }
.section-space { padding-block: 96px; }
.accent { color: var(--primary); }
.muted-on-dark { color: var(--on-dark-muted); }
.sprite { position: absolute; }
.icon { width: 1.25em; height: 1.25em; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; flex-shrink: 0; }
.br-sm, .br-md { display: none; }
.skip-link { position: fixed; top: -60px; left: 20px; z-index: 100; padding: 12px 20px; background: var(--primary); color: var(--primary-foreground); }
.skip-link:focus { top: 10px; }
.eyebrow { display: flex; align-items: center; gap: 10px; margin-bottom: 23px; font-size: 13px; font-weight: 600; line-height: 1.6; text-transform: uppercase; }
.eyebrow > span { flex-shrink: 0; width: 26px; height: 2px; background: var(--primary); }

/* ---------- Buttons ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 48px; padding: 0 24px; border-radius: 2px; font-size: 16px; font-weight: 500; line-height: 20px; white-space: nowrap; cursor: pointer; transition: background-color .15s, color .15s; }
.btn svg { width: 16px; height: 16px; flex-shrink: 0; pointer-events: none; }
.btn:focus-visible, .menu-toggle:focus-visible { outline: 2px solid var(--primary); outline-offset: 2px; }
.btn-primary { background: var(--primary); color: var(--primary-foreground); box-shadow: var(--shadow-button); }
.btn-primary:hover { background: rgba(213,11,19,.9); }
.btn-ghost { background: transparent; border: 1px solid rgba(248,250,252,.4); color: var(--primary-foreground); }
.btn-ghost:hover { background: rgba(248,250,252,.12); }
.btn-outline { height: 44px; padding: 0 16px; background: var(--background); border: 1px solid var(--border); box-shadow: var(--shadow-button); }
.btn-outline:hover { background: var(--accent); }
.btn-link { height: auto; margin-top: 24px; padding: 0; border-radius: 6px; text-underline-offset: 4px; }
.btn-link:hover { text-decoration: underline; }
.header-cta { display: none; height: 44px; padding: 0 20px; font-size: 15px; }

/* ---------- Header ---------- */
.site-header { position: sticky; top: 0; z-index: 30; height: 88px; background: var(--background); border-bottom: 1px solid var(--border); }
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 24px; height: 100%; }
.brand { display: inline-flex; align-items: center; gap: 10px; flex-shrink: 0; color: var(--foreground); }
.brand-light { color: var(--primary-foreground); }
.brand-symbol { display: grid; place-items: center; width: 39px; height: 44px; color: var(--primary); border: 1.5px solid var(--primary); }
.brand-symbol .icon { width: 29px; height: 32px; stroke-width: 1.5; }
.brand strong { display: block; font-family: var(--font-display); font-size: 28px; font-weight: 800; line-height: 1.1; }
.brand small { display: block; margin-top: 4px; font-size: 11px; font-weight: 600; }
/* Logo: skyline mark image with the name as live text (inverted mark on light backgrounds) */
.brand-logo { gap: 12px; }
.brand-logo .brand-mark { width: 62px; height: auto; }
.brand-logo > span { display: inline-flex; flex-direction: column; align-items: flex-start; }
.brand-logo strong { letter-spacing: .02em; margin-right: -.02em; }
/* Spacing sized so GLOBAL LIMITED runs exactly the width of MARVS; the negative
   margin cancels the space letter-spacing leaves after the last letter. */
.brand-logo small { letter-spacing: .14em; margin-right: -.14em; white-space: nowrap; }
.main-nav { display: none; align-items: center; gap: 32px; }
.nav-link { position: relative; display: flex; align-items: center; height: 88px; font-size: 15px; font-weight: 500; transition: color .2s; }
.nav-link:hover, .nav-active { color: var(--primary); }
.nav-active::after { content: ""; position: absolute; left: 0; bottom: 23px; width: 18px; height: 2px; background: var(--primary); }
.menu-toggle { display: inline-flex; align-items: center; justify-content: center; width: 36px; height: 36px; border-radius: 4px; transition: background-color .15s; }
.menu-toggle:hover { background: var(--accent); }
.menu-toggle .icon { width: 16px; height: 16px; }
.mobile-nav { position: absolute; top: 100%; left: 0; width: 100%; padding: 20px 24px; background: var(--background); border-bottom: 1px solid var(--border); box-shadow: var(--shadow-subtle); }
.mobile-nav > a { display: flex; justify-content: space-between; align-items: center; height: auto; padding: 13px 0; border-bottom: 1px solid var(--border); font-size: 16px; }
.mobile-nav .nav-active::after { display: none; }
.mobile-nav > .btn { justify-content: center; height: 48px; margin-top: 16px; padding: 0 24px; border-bottom: 0; }

/* ---------- Hero slider ---------- */
/* All slides sit in the same grid cell, so the hero is always as tall as its tallest slide. */
.hero { position: relative; display: grid; min-height: 660px; min-height: clamp(500px, 100svh - 168px, 660px); overflow: hidden; color: var(--primary-foreground); }
.hero-slide { position: relative; grid-area: 1 / 1; display: flex; align-items: center; opacity: 0; visibility: hidden; transition: opacity .8s ease, visibility 0s linear .8s; }
.hero-slide.is-active { opacity: 1; visibility: visible; transition: opacity .8s ease, visibility 0s; }
.hero-image { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center 57%; }
.hero-overlay { position: absolute; inset: 0; background: var(--hero-shade); }
.hero-content { position: relative; display: flex; flex-direction: column; align-items: flex-start; padding-block: 90px; text-align: left; }
.hero-title { max-width: 780px; font-size: 64px; font-weight: 800; line-height: 1.17; }
.hero-content > p { max-width: 560px; margin-top: 24px; font-size: 18px; line-height: 1.7; color: var(--on-dark-muted); }
.hero-actions { display: flex; flex-wrap: wrap; gap: 16px; margin-top: 32px; }

/* Text animation: each line rises in one after another when its slide becomes active */
.hero-content > * { opacity: 0; transform: translateY(28px); transition: opacity .7s ease, transform .7s ease; }
.hero-slide.is-active .hero-content > * { opacity: 1; transform: none; }
/* Outgoing text clears away quickly so it never overlaps the incoming slide's text */
.hero-slide:not(.is-active) .hero-content > * { transition-duration: .25s; transition-delay: 0s; }
.hero-slide.is-active .hero-content > :nth-child(1) { transition-delay: .25s; }
.hero-slide.is-active .hero-content > :nth-child(2) { transition-delay: .4s; }
.hero-slide.is-active .hero-content > :nth-child(3) { transition-delay: .55s; }
.hero-slide.is-active .hero-content > :nth-child(4) { transition-delay: .7s; }

/* Slider dots, sitting on the image at the bottom centre */
.hero-dots { position: absolute; z-index: 2; left: 0; right: 0; bottom: 18px; display: flex; justify-content: center; gap: 4px; }
.hero-dot { width: 28px; height: 28px; padding: 8px; background: #fff; background-clip: content-box; border: 0; border-radius: 50%; opacity: .4; cursor: pointer; transition: opacity .3s; }
.hero-dot:hover { opacity: .75; }
.hero-dot.is-active { opacity: 1; }
.hero-dot:focus-visible { outline: 2px solid #fff; outline-offset: -2px; }

/* ---------- Trust strip ---------- */
.trust-strip { background: var(--muted); border-bottom: 1px solid var(--border); }
.trust-grid { display: grid; grid-template-columns: repeat(4, 1fr); padding-block: 31px; }
.trust-item { display: flex; align-items: center; gap: 15px; padding-inline: 24px; border-right: 1px solid var(--border); }
.trust-item:first-child { padding-left: 0; }
.trust-item:last-child { padding-right: 0; border: none; }
.trust-item .icon { width: 27px; height: 27px; stroke-width: 1.5; color: var(--primary); }
.trust-item h2 { font-size: 14px; font-weight: 700; }
.trust-item p { margin-top: 5px; font-size: 13px; color: var(--muted-foreground); }

/* ---------- About ---------- */
.about-grid { display: grid; grid-template-columns: 1fr 1fr; align-items: center; gap: 88px; }
.about-image-wrap { position: relative; padding: 0 22px 26px 0; }
.about-image-wrap::before { content: ""; position: absolute; inset: 30px 0 0 30px; border: 1px solid var(--border); }
.about-image-wrap > img { position: relative; width: 100%; height: 405px; object-fit: cover; }
.about-image-label { position: absolute; left: 28px; bottom: 0; display: flex; align-items: center; gap: 18px; padding: 21px 26px; background: var(--navy); color: var(--primary-foreground); font-size: 15px; line-height: 1.7; }
.about-image-label .icon { width: 27px; height: 27px; stroke-width: 1.4; color: var(--primary); }
.about-copy h2, .section-heading h2, .tracking-section h2 { font-size: 38px; font-weight: 700; line-height: 1.3; }
.about-copy > p { margin-top: 22px; font-size: 16px; line-height: 1.75; color: var(--muted-foreground); }
.about-values { display: flex; flex-wrap: wrap; gap: 20px; margin-top: 25px; padding-top: 22px; border-top: 1px solid var(--border); font-size: 14px; font-weight: 500; }
.about-values span { display: flex; align-items: center; gap: 8px; }
.about-values .icon { width: 17px; height: 17px; color: var(--primary); }

/* ---------- Services ---------- */
.services-section { background: var(--muted); }
.section-heading { display: flex; justify-content: space-between; align-items: flex-end; gap: 40px; margin-bottom: 36px; }
.section-heading > p { max-width: 360px; padding-bottom: 6px; font-size: 16px; line-height: 1.75; color: var(--muted-foreground); }
.services-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 26px; }
.service-card { overflow: hidden; background: var(--card); border: 1px solid var(--border); border-radius: 3px; transition: box-shadow .3s, transform .3s; }
.service-card:hover { box-shadow: var(--shadow-subtle); transform: translateY(-4px); }
.service-image { position: relative; aspect-ratio: 1.85; overflow: hidden; }
.service-image img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s; }
.service-card:hover img, .project-card:hover img { transform: scale(1.04); }
.service-number { position: absolute; left: 15px; bottom: 12px; padding: 4px 8px; background: var(--navy); color: var(--primary-foreground); font-size: 13px; }
.service-copy { padding: 23px 20px 25px; }
.service-copy h3 { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; font-size: 16px; font-weight: 700; line-height: 1.6; }
.service-copy h3 .icon { width: 18px; height: 18px; color: var(--primary); }
.service-copy p { margin-top: 10px; font-size: 14px; line-height: 1.75; color: var(--muted-foreground); }

/* ---------- Client portal preview ---------- */
.tracking-section { background: var(--navy); color: var(--primary-foreground); }
.tracking-grid { display: grid; grid-template-columns: 1fr 1.1fr; align-items: center; gap: 70px; }
.tracking-description { margin-top: 22px; font-size: 16px; line-height: 1.75; color: var(--on-dark-muted); }
.tracking-features { display: grid; gap: 14px; margin-top: 27px; font-size: 14px; }
.tracking-features li { display: flex; align-items: center; gap: 10px; }
.tracking-features .icon { width: 15px; height: 15px; color: var(--primary); }
.portal-cta { margin-top: 32px; }
.portal-note { margin-top: 16px; font-size: 15px; line-height: 1.33; color: var(--on-dark-muted); }

.project-preview { width: 100%; max-width: 600px; overflow: hidden; background: var(--background); color: var(--foreground); border-radius: 7px; box-shadow: var(--shadow-preview); }
.preview-top { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 15px 22px; border-bottom: 1px solid var(--border); font-size: 13px; }
.preview-title { display: flex; align-items: center; gap: 8px; font-weight: 600; }
.mini-logo { color: var(--primary); }
.mini-logo .icon { width: 16px; height: 16px; }
.sample-pill { padding: 4px 7px; background: var(--muted); color: var(--muted-foreground); border-radius: 3px; font-size: 11px; }
.preview-body { padding: 20px 24px; }
.preview-breadcrumb { display: flex; align-items: center; gap: 6px; margin-bottom: 16px; font-size: 11px; color: var(--muted-foreground); }
.preview-breadcrumb .icon { width: 12px; height: 12px; }
.preview-heading { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; }
.preview-body h3 { font-family: var(--font-sans); font-size: 19px; font-weight: 700; line-height: 1.4; }
.status-pill { padding: 5px 8px; background: var(--success-soft); color: var(--success); border-radius: 3px; font-size: 11px; white-space: nowrap; }
.preview-tabs { display: flex; gap: 24px; margin-top: 20px; border-bottom: 1px solid var(--border); font-size: 11px; color: var(--muted-foreground); }
.preview-tabs > span { display: flex; align-items: center; gap: 5px; padding-bottom: 12px; }
.preview-tabs > span:first-child { color: var(--primary); border-bottom: 2px solid var(--primary); }
.preview-tabs .icon { width: 12px; height: 12px; }
.preview-progress { padding: 20px 0; border-bottom: 1px solid var(--border); }
.progress-head { display: flex; justify-content: space-between; align-items: flex-end; }
.preview-progress p { font-size: 12px; color: var(--muted-foreground); }
.preview-progress strong { font-size: 34px; font-weight: 700; line-height: 1.5; }
.preview-progress strong span { font-size: 20px; }
.stage-label { padding-bottom: 7px; text-align: right; font-size: 11px; color: var(--muted-foreground); }
.stage-label b { display: block; margin-top: 6px; font-size: 13px; color: var(--foreground); }
.progress-track { height: 6px; margin-top: 8px; overflow: hidden; background: var(--muted); border-radius: 10px; }
.progress-track > span { display: block; width: 45%; height: 100%; background: var(--primary); }
.preview-lower { display: grid; grid-template-columns: 1fr 1.1fr; gap: 25px; padding-top: 19px; }
.preview-lower h4 { margin-bottom: 15px; font-size: 12px; font-weight: 600; }
.preview-lower h4 > span { float: right; font-size: 11px; color: var(--muted-foreground); }
.milestone { position: relative; display: flex; gap: 10px; padding-bottom: 14px; }
.milestone:not(:last-child)::before { content: ""; position: absolute; top: 14px; left: 7px; width: 1px; height: 24px; background: var(--border); }
.milestone-dot { position: relative; display: grid; place-items: center; flex-shrink: 0; width: 15px; height: 15px; background: var(--background); color: var(--muted-foreground); border: 1px solid var(--border); border-radius: 50%; }
.milestone-dot .icon { width: 9px; height: 9px; }
.milestone-dot.done { background: var(--success-soft); color: var(--success); border-color: var(--success-soft); }
.milestone-dot.done .icon { width: 10px; height: 10px; }
.milestone.current .milestone-dot { color: var(--primary); border-color: var(--primary); }
.milestone b { display: block; font-size: 11px; font-weight: 500; }
.milestone small { display: block; margin-top: 2px; font-size: 11px; color: var(--muted-foreground); }
.milestone.current small { color: var(--primary); }
.site-photo-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; }
.site-photo-grid img { width: 100%; height: 72px; object-fit: cover; border-radius: 2px; }
.site-photo-grid img:last-child { object-position: 85%; }
.photo-date { margin-top: 6px; font-size: 11px; color: var(--muted-foreground); }
.latest-update { display: flex; gap: 6px; margin-top: 14px; padding: 10px; background: var(--muted); font-size: 11px; line-height: 1.7; }
.latest-update .icon { width: 13px; height: 13px; color: var(--primary); }
.latest-update b { font-weight: 500; }
.preview-bottom { display: flex; align-items: center; gap: 6px; padding: 12px 22px; background: var(--muted); border-top: 1px solid var(--border); font-size: 11px; color: var(--muted-foreground); }
.status-dot { width: 5px; height: 5px; background: var(--success); border-radius: 50%; }

/* ---------- Recent projects ---------- */
.portfolio-description { max-width: 630px; margin: -15px 0 30px; font-size: 16px; line-height: 1.7; color: var(--muted-foreground); }
.projects-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
.project-card { position: relative; aspect-ratio: .91; overflow: hidden; color: var(--primary-foreground); border-radius: 3px; }
.project-card::after { content: ""; position: absolute; inset: 0; background: var(--photo-shade); }
.project-card img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s; }
.project-sample { position: absolute; top: 15px; left: 16px; z-index: 1; padding: 5px 8px; background: var(--navy); font-size: 11px; }
.project-card-copy { position: absolute; left: 23px; right: 23px; bottom: 23px; z-index: 1; }
.project-card-copy > span { font-size: 12px; color: var(--on-dark-muted); }
.project-card-copy h3 { display: flex; justify-content: space-between; gap: 15px; margin-top: 8px; font-size: 18px; font-weight: 600; line-height: 1.5; }
.project-card-copy .icon { width: 22px; height: 22px; }
.portfolio-note { margin-top: 20px; font-size: 15px; line-height: 1.33; color: var(--muted-foreground); }

/* ---------- Contact banner ---------- */
.contact-banner { position: relative; overflow: hidden; color: var(--primary-foreground); }
.contact-banner > img { position: absolute; width: 100%; height: 100%; object-fit: cover; object-position: center 60%; }
.contact-banner-overlay { position: absolute; inset: 0; background: var(--banner-shade); }
.contact-banner-content { position: relative; display: flex; justify-content: space-between; align-items: center; gap: 40px; padding-block: 68px; }
.contact-banner h2 { font-size: 36px; font-weight: 700; line-height: 1.4; }
.contact-banner p { margin-top: 17px; font-size: 15px; line-height: 1.75; color: var(--on-dark-muted); }
.contact-actions { display: flex; flex-wrap: wrap; gap: 12px; }

/* ---------- Footer ---------- */
.site-footer { padding-top: 64px; background: var(--navy); color: var(--primary-foreground); }
.footer-grid { display: grid; grid-template-columns: 1.5fr .8fr 1.2fr 1.2fr; gap: 45px; padding-bottom: 55px; }
.footer-grid h3 { margin-bottom: 23px; font-family: var(--font-sans); font-size: 15px; font-weight: 600; }
.footer-grid > div > a:not(.brand) { display: flex; align-items: center; gap: 7px; margin-top: 14px; font-size: 13px; color: var(--on-dark-muted); }
.footer-grid a:hover { color: var(--primary); }
.footer-grid > div > a.footer-cta { margin-top: 24px; color: var(--primary-foreground); }
.footer-grid .icon { width: 16px; height: 16px; }
.footer-about { max-width: 320px; margin-top: 24px; font-size: 16px; line-height: 28px; color: var(--on-dark-muted); }
.footer-follow { margin-top: 28px; }
.footer-follow > span { display: block; font-size: 13px; letter-spacing: .02em; color: var(--on-dark-muted); }
.footer-social { display: flex; gap: 12px; margin-top: 14px; }
.footer-social a { display: grid; place-items: center; width: 42px; height: 42px; border: 1px solid rgba(248, 250, 252, .2); border-radius: 50%; color: var(--primary-foreground); transition: background .2s, border-color .2s, transform .2s; }
.footer-social a:hover, .footer-social a:focus-visible { background: var(--primary); border-color: var(--primary); transform: translateY(-2px); }
.footer-social .icon { width: 18px; height: 18px; }
.contact-placeholder { display: flex; align-items: center; gap: 9px; margin-top: 18px; font-size: 13px; color: var(--on-dark-muted); }
.contact-placeholder a { color: inherit; overflow-wrap: anywhere; transition: color .2s; }
.contact-placeholder a:hover { color: var(--primary-foreground); }
.contact-phones { align-items: flex-start; }
.contact-phones a { display: block; }
.contact-phones a + a { margin-top: 6px; }
.footer-bottom { display: flex; justify-content: space-between; gap: 20px; padding-block: 24px; border-top: 1px solid rgba(183,187,192,.2); font-size: 12px; color: var(--on-dark-muted); }
.footer-legal { display: flex; gap: 24px; }

/* ---------- Inner pages: page hero, breadcrumb ---------- */
.page-hero { position: relative; display: flex; align-items: center; min-height: 440px; overflow: hidden; color: var(--primary-foreground); }
.page-hero-content { position: relative; padding-block: 80px; }
.page-title { max-width: 780px; font-size: 52px; font-weight: 800; line-height: 1.2; }
.page-hero-content > p, .legal-hero p { max-width: 600px; margin-top: 20px; font-size: 17px; line-height: 1.7; color: var(--on-dark-muted); }
.breadcrumb { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin-bottom: 26px; font-size: 13px; color: var(--on-dark-muted); }
.breadcrumb a:hover { color: var(--primary-foreground); }
.breadcrumb [aria-current] { color: var(--primary-foreground); }
.breadcrumb .icon { width: 13px; height: 13px; }
.btn-spaced { margin-top: 30px; }

/* ---------- Feature cards, mission, process ---------- */
.feature-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
.feature-card, .mission-card { padding: 30px 26px; background: var(--card); border: 1px solid var(--border); border-radius: 3px; transition: box-shadow .3s, transform .3s; }
.feature-card:hover { box-shadow: var(--shadow-subtle); transform: translateY(-4px); }
.feature-icon { display: inline-grid; place-items: center; flex-shrink: 0; width: 48px; height: 48px; background: rgba(213,11,19,.07); color: var(--primary); border-radius: 2px; }
.feature-icon .icon { width: 22px; height: 22px; stroke-width: 1.6; }
.feature-card h3, .mission-card h3 { margin-top: 20px; font-size: 17px; font-weight: 700; line-height: 1.5; }
.feature-card p, .mission-card p { margin-top: 10px; font-size: 14px; line-height: 1.75; color: var(--muted-foreground); }
.mission-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 26px; }
.mission-card { padding: 40px 36px; border-top: 3px solid var(--primary); }
.mission-card h3 { font-size: 24px; }
.mission-card p { font-size: 16px; }
.process-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 24px; counter-reset: step; }
.process-step { position: relative; padding-top: 26px; border-top: 1px solid var(--border); }
.process-step::before { content: ""; position: absolute; top: -1px; left: 0; width: 40px; height: 2px; background: var(--primary); }
.process-number { font-family: var(--font-display); font-size: 34px; font-weight: 800; color: var(--primary); }
.process-step h3 { margin-top: 10px; font-size: 18px; font-weight: 700; }
.process-step p { margin-top: 10px; font-size: 14px; line-height: 1.75; color: var(--muted-foreground); }

/* ---------- Contact page ---------- */
.contact-grid { display: grid; grid-template-columns: .9fr 1.1fr; align-items: start; gap: 70px; }
.contact-info h2 { font-size: 38px; font-weight: 700; line-height: 1.3; }
.contact-info > p { margin-top: 22px; font-size: 16px; line-height: 1.75; color: var(--muted-foreground); }
.contact-list { display: grid; gap: 22px; margin-top: 34px; }
.contact-list li { display: flex; align-items: center; gap: 16px; }
.contact-list b { display: block; font-size: 14px; }
.contact-list a, .contact-list div > span { font-size: 15px; color: var(--muted-foreground); }
.contact-list a:hover { color: var(--primary); }
.contact-form { position: relative; display: grid; gap: 18px; padding: 38px 34px; background: var(--muted); border: 1px solid var(--border); border-radius: 3px; }
.contact-form h3 { font-size: 22px; font-weight: 700; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.contact-form label { display: grid; gap: 8px; font-size: 14px; font-weight: 500; }
.contact-form input, .contact-form select, .contact-form textarea { width: 100%; padding: 12px 14px; background: var(--background); border: 1px solid var(--border); border-radius: 2px; font: inherit; font-size: 15px; font-weight: 400; color: var(--foreground); }
.contact-form textarea { resize: vertical; }
.contact-form input:focus, .contact-form select:focus, .contact-form textarea:focus { outline: 2px solid var(--primary); outline-offset: -1px; border-color: transparent; }
.contact-form .btn { justify-self: start; }
.form-note { font-size: 13px; color: var(--muted-foreground); }
.form-status { padding: 12px 14px; border-left: 3px solid; border-radius: 2px; font-size: 14px; line-height: 1.6; }
.form-status.is-success { background: #ecfdf3; border-color: #15803d; color: #14532d; }
.form-status.is-error { background: #fef2f2; border-color: var(--primary); color: #7f1d1d; }
.form-status a { text-decoration: underline; }
.contact-form .btn[disabled] { opacity: .7; cursor: progress; }
.hp-field { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }

/* ---------- Legal and 404 ---------- */
.legal-hero { padding-block: 80px 70px; background: var(--navy); color: var(--primary-foreground); }
.legal-content { max-width: 760px; }
.legal-content h2 { margin-top: 40px; font-size: 22px; font-weight: 700; }
.legal-content h2:first-child { margin-top: 0; }
.legal-content p { margin-top: 14px; font-size: 16px; line-height: 1.8; color: var(--muted-foreground); }
.not-found { padding-block: 120px; }
.not-found .btn-outline { height: 48px; color: var(--foreground); }

/* ---------- Breakpoints from the original design ---------- */
@media (min-width: 640px) { .br-sm { display: block; } }
@media (min-width: 768px) { .br-md { display: block; } .header-cta { display: inline-flex; } }
@media (min-width: 1024px) { .main-nav { display: flex; } .menu-toggle, .mobile-nav { display: none !important; } }
@media (min-width: 1600px) { .hero { min-height: 690px; } }

@media (max-width: 1100px) {
  .container-shell { width: calc(100% - 64px); }
  .about-grid { gap: 40px; }
  .tracking-grid { gap: 35px; }
  .trust-item { gap: 10px; padding-inline: 16px; }
  .trust-item h2 { font-size: 13px; }
  .trust-item p { font-size: 11px; }
  .footer-grid { gap: 25px; }
  .main-nav { gap: 24px; }
  .contact-banner-content { flex-wrap: wrap; }
  .feature-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .process-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 36px 24px; }
  .contact-grid { gap: 40px; }
}

@media (max-width: 767px) {
  .container-shell { width: calc(100% - 40px); }
  .site-header { height: 74px; }
  .brand strong { font-size: 25px; }
  .brand-symbol { width: 34px; height: 38px; }
  .brand-logo .brand-mark { width: 52px; }
  .brand-logo small { font-size: 10px; letter-spacing: .127em; margin-right: -.127em; }
  .hero { min-height: 600px; }
  .hero-image { object-position: 62% center; }
  .hero-overlay { background: rgba(11,18,29,.68); }
  .hero-content { padding-block: 56px; }
  .hero-title { font-size: 40px; line-height: 1.23; }
  .hero .eyebrow { max-width: 300px; margin-bottom: 25px; font-size: 11px; }
  .hero-content > p { max-width: 340px; font-size: 15px; }
  .hero-actions { gap: 10px; }
  .hero-actions .btn, .contact-actions .btn { padding-inline: 16px; font-size: 14px; }
  .trust-grid { grid-template-columns: repeat(2, 1fr); gap: 25px 15px; padding-block: 26px; }
  .trust-item { gap: 10px; padding: 0; border: none; }
  .trust-item .icon { width: 23px; height: 23px; }
  .trust-item h2 { font-size: 12px; }
  .trust-item p { font-size: 11px; }
  .section-space { padding-block: 60px; }
  .about-grid { grid-template-columns: 1fr; gap: 38px; }
  .about-image-wrap > img { height: 330px; }
  .about-image-label { left: 18px; padding: 16px 20px; font-size: 14px; }
  .about-copy h2, .section-heading h2, .tracking-section h2 { font-size: 30px; }
  .eyebrow { margin-bottom: 17px; font-size: 12px; }
  .about-copy > p { font-size: 15px; }
  .section-heading { flex-direction: column; align-items: flex-start; gap: 18px; margin-bottom: 28px; }
  .section-heading > p { max-width: none; font-size: 15px; }
  .services-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 15px; }
  .service-image { aspect-ratio: 1.4; }
  .service-copy { padding: 16px 13px; }
  .service-copy h3 { gap: 5px; font-size: 13px; }
  .service-copy h3 .icon { width: 14px; height: 14px; }
  .service-copy p { font-size: 13px; }
  .tracking-grid { grid-template-columns: 1fr; gap: 40px; }
  .tracking-description { font-size: 15px; }
  .preview-body { padding: 18px; }
  .preview-top { padding: 14px 18px; }
  .preview-lower { gap: 15px; }
  .preview-tabs { gap: 19px; }
  .preview-body h3 { font-size: 15px; }
  .projects-grid { grid-template-columns: 1fr; gap: 18px; }
  .project-card { aspect-ratio: 1.18; }
  .project-card-copy h3 { font-size: 19px; }
  .portfolio-description { margin: 0 0 25px; font-size: 15px; }
  .contact-banner-content { gap: 28px; padding-block: 55px; }
  .contact-banner h2 { font-size: 30px; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 40px 20px; }
  .footer-grid > div:first-child, .footer-grid > div:last-child { grid-column: 1 / -1; }
  .footer-bottom { flex-direction: column; }
  .site-footer { padding-top: 45px; }
  .page-hero { min-height: 380px; }
  .page-hero-content { padding-block: 56px; }
  .page-title { font-size: 36px; line-height: 1.25; }
  .page-hero-content > p, .legal-hero p { font-size: 15px; }
  .breadcrumb { margin-bottom: 20px; font-size: 12px; }
  .feature-grid { grid-template-columns: 1fr; gap: 15px; }
  .feature-card { padding: 24px 20px; }
  .mission-grid { grid-template-columns: 1fr; gap: 15px; }
  .mission-card { padding: 30px 24px; }
  .process-grid { grid-template-columns: 1fr; gap: 30px; }
  .contact-grid { grid-template-columns: 1fr; gap: 40px; }
  .contact-info h2 { font-size: 30px; }
  .contact-form { padding: 26px 20px; }
  .form-row { grid-template-columns: 1fr; }
  .legal-hero { padding-block: 56px 50px; }
  .not-found { padding-block: 80px; }
}

@media (max-width: 359px) {
  .hero-title { font-size: 34px; }
  .services-grid { grid-template-columns: 1fr; }
  .preview-tabs { gap: 12px; }
  .preview-lower { gap: 10px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; animation: none !important; }
}
