/* ==========================================================================
   M3 Graphics — site styles
   Palette comes from the M3 logo (blue #1178bd, green #76c04f).
   ========================================================================== */

:root {
  --ink: #0b0d10;
  --ink-soft: #4a525c;
  --navy: #033257;
  --blue: #0a68b0;
  --blue-bright: #1178bd;
  --blue-tint: #e8f2fa;
  --green: #76c04f;
  --bg: #f7f7f7;
  --white: #fff;
  --card: #0e1114;
  --line: #e2e6ea;
  --footer-bg: #071a2c;

  --font-display: "Montserrat", "Helvetica Neue", Arial, sans-serif;
  --font-body: "Figtree", "Helvetica Neue", Arial, sans-serif;

  --radius: 16px;
  --radius-lg: 24px;
  --wrap: 1180px;
  --gutter: clamp(16px, 4vw, 32px);
}

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: 96px; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

img { display: block; max-width: 100%; }
a { color: inherit; }
button { font: inherit; color: inherit; cursor: pointer; }
h1, h2, h3, h4, p, ul { margin: 0; }
ul { padding: 0; list-style: none; }

:focus-visible {
  outline: 3px solid var(--green);
  outline-offset: 3px;
  border-radius: 6px;
}

.icon { width: 1.25em; height: 1.25em; flex: none; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }

.skip-link {
  position: fixed; left: 16px; top: -60px; z-index: 200;
  background: var(--white); color: var(--ink);
  padding: 10px 16px; border-radius: 10px; font-weight: 700;
}
.skip-link:focus { top: 16px; }

.wrap { width: min(var(--wrap), 100% - var(--gutter) * 2); margin-inline: auto; }
.wrap--narrow { width: min(720px, 100% - var(--gutter) * 2); margin-inline: auto; }

/* ---------- Type ---------- */

.display {
  font-family: var(--font-display);
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: -0.01em;
  line-height: 0.98;
}

.h1 { font-size: clamp(2.5rem, 7vw, 4.75rem); }
.h2 { font-size: clamp(1.9rem, 4.2vw, 2.9rem); }
.h3 { font-size: clamp(1.15rem, 2vw, 1.4rem); line-height: 1.15; }

.eyebrow {
  font-family: var(--font-display);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--blue);
}

.eyebrow--center { text-align: center; }
.eyebrow--center::after {
  content: "";
  display: block;
  width: 40px; height: 3px;
  margin: 10px auto 0;
  background: var(--green);
  border-radius: 2px;
}

.lead { font-size: clamp(1.02rem, 1.6vw, 1.15rem); color: var(--ink-soft); max-width: 56ch; }

/* ---------- Buttons ---------- */

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 44px;
  padding: 10px 22px;
  border: 1px solid transparent;
  border-radius: 999px;
  font-family: var(--font-body);
  font-size: 0.95rem;
  font-weight: 600;
  text-decoration: none;
  line-height: 1.2;
  transition: background-color .2s, color .2s, border-color .2s, transform .2s;
}
.btn:hover { transform: translateY(-1px); }

.btn--blue { background: var(--blue); color: var(--white); }
.btn--blue:hover { background: var(--blue-bright); }
.btn--white { background: var(--white); color: var(--blue); }
.btn--white:hover { background: var(--blue-tint); }
.btn--ghost { background: rgba(255,255,255,.08); border-color: rgba(255,255,255,.28); color: var(--white); }
.btn--ghost:hover { background: rgba(255,255,255,.16); }

/* ---------- Header ---------- */

.site-header {
  position: fixed; inset: 14px 0 auto 0; z-index: 50;
}

.nav {
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  width: min(var(--wrap), 100% - var(--gutter) * 2);
  margin-inline: auto;
  padding: 8px 8px 8px 20px;
  background: var(--white);
  border-radius: 14px;
  box-shadow: 0 10px 40px rgba(0,0,0,.25);
}

.nav__logo { display: block; flex: none; }
.nav__logo img { height: 30px; width: auto; }

.nav__links { display: flex; align-items: center; gap: 4px; }

.nav__item { position: relative; }

.nav__trigger {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 10px 14px;
  background: none; border: 0; border-radius: 8px;
  color: var(--blue);
  font-size: 0.92rem; font-weight: 600;
  text-decoration: none;
}
.nav__trigger:hover { background: var(--blue-tint); }
.nav__trigger .icon { width: 14px; height: 14px; transition: transform .2s; }
.nav__item[data-open="true"] .nav__trigger .icon { transform: rotate(180deg); }

.nav__menu {
  position: absolute; left: 0; top: calc(100% + 8px);
  min-width: 250px;
  padding: 8px;
  background: var(--white);
  border-radius: 12px;
  box-shadow: 0 18px 50px rgba(0,0,0,.22);
  opacity: 0; visibility: hidden; transform: translateY(-6px);
  transition: opacity .18s, transform .18s, visibility .18s;
}
.nav__item:hover .nav__menu,
.nav__item:focus-within .nav__menu,
.nav__item[data-open="true"] .nav__menu { opacity: 1; visibility: visible; transform: none; }

.nav__menu a {
  display: block; padding: 10px 12px; border-radius: 8px;
  color: var(--ink); font-size: 0.92rem; font-weight: 500; text-decoration: none;
}
.nav__menu a:hover { background: var(--blue-tint); color: var(--blue); }
.nav__menu .nav__menu-all { color: var(--blue); font-weight: 700; border-bottom: 1px solid var(--line); border-radius: 8px 8px 0 0; margin-bottom: 4px; }

.nav__toggle {
  display: none;
  width: 44px; height: 44px; align-items: center; justify-content: center;
  background: var(--blue-tint); border: 0; border-radius: 10px; color: var(--blue);
}
.nav__toggle .icon { width: 22px; height: 22px; }

.nav__cta { flex: none; }

.nav__scrim { display: none; }

@media (max-width: 1120px) {
  .nav__toggle { display: inline-flex; }
  .nav__cta { display: none; }
  .nav[data-open="true"] ~ .nav__scrim {
    display: block; position: fixed; inset: 0; z-index: 44;
    background: rgba(3,20,40,.5);
  }
  .nav[data-open="true"] { position: relative; z-index: 45; }
  .nav__links {
    position: absolute; left: 0; right: 0; top: calc(100% + 8px);
    flex-direction: column; align-items: stretch; gap: 0;
    padding: 10px;
    background: var(--white); border-radius: 14px;
    box-shadow: 0 18px 50px rgba(0,0,0,.28);
    display: none;
    max-height: calc(100svh - 110px); overflow-y: auto;
  }
  .nav[data-open="true"] .nav__links { display: flex; }
  .nav__trigger { width: 100%; justify-content: space-between; padding: 14px; }
  .nav__menu {
    position: static; opacity: 1; visibility: visible; transform: none;
    display: none; box-shadow: none; padding: 0 0 6px 10px; min-width: 0;
  }
  .nav__item:hover .nav__menu { display: none; }
  .nav__item[data-open="true"] .nav__menu { display: block; }
  .nav__mobile-cta { display: flex; margin-top: 8px; }
}
@media (min-width: 1121px) { .nav__mobile-cta { display: none; } }

/* ---------- Hero ---------- */

.hero {
  position: relative;
  overflow: hidden;
  color: var(--white);
  background:
    radial-gradient(900px 520px at 85% 78%, rgba(17,120,189,.28), transparent 70%),
    linear-gradient(180deg, #000 0%, #01080f 30%, var(--navy) 100%);
  border-radius: 0 0 28px 28px;
}

.hero__inner {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
  align-items: end;
  gap: clamp(28px, 5vw, 64px);
  min-height: 720px;
  padding-block: 150px 64px;
}

.hero--page .hero__inner { min-height: 620px; padding-bottom: 56px; }

.hero__copy { display: grid; gap: 22px; justify-items: start; }
.hero__copy .eyebrow { color: #7fc0ee; }
.hero__copy p { font-size: clamp(1rem, 1.5vw, 1.15rem); color: rgba(255,255,255,.86); max-width: 46ch; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 6px; }

.hero__media {
  position: relative;
  align-self: stretch;
  min-height: 360px;
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid rgba(255,255,255,.14);
  box-shadow: 0 30px 80px rgba(0,0,0,.55), 0 0 90px rgba(17,120,189,.25);
}
.hero__media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.hero__media figcaption {
  position: absolute; left: 14px; bottom: 14px;
  padding: 7px 12px;
  background: rgba(3,12,20,.72); backdrop-filter: blur(8px);
  border: 1px solid rgba(255,255,255,.16); border-radius: 999px;
  font-size: 0.78rem; font-weight: 600; letter-spacing: .02em;
}

.hero__media--art { background: linear-gradient(160deg, #0b2b47, #041524); display: grid; place-items: center; }
.hero__media--art svg { width: 86%; height: auto; }

@media (max-width: 860px) {
  .hero__inner { grid-template-columns: 1fr; min-height: 0; padding-block: 132px 40px; }
  .hero__media { min-height: 0; aspect-ratio: 4 / 3; }
  .hero--page .hero__inner { min-height: 0; }
}

@media (prefers-reduced-motion: no-preference) {
  .hero__copy > *, .hero__media { animation: rise .7s cubic-bezier(.2,.7,.2,1) both; }
  .hero__copy > :nth-child(2) { animation-delay: .07s; }
  .hero__copy > :nth-child(3) { animation-delay: .14s; }
  .hero__copy > :nth-child(4) { animation-delay: .21s; }
  .hero__media { animation-delay: .18s; }
}
@keyframes rise { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }

/* ---------- Sections ---------- */

.section { padding-block: clamp(56px, 8vw, 104px); }
.section--tight { padding-block: clamp(40px, 5vw, 64px); }
.section--white { background: var(--white); }

.section__head {
  display: flex; align-items: end; justify-content: space-between; gap: 24px;
  margin-bottom: clamp(28px, 4vw, 44px);
}
.section__head .eyebrow { margin-bottom: 10px; display: block; }
.section__head p { margin-top: 12px; }

@media (max-width: 640px) {
  .section__head { flex-direction: column; align-items: flex-start; }
}

/* ---------- Client marquee ---------- */

.clients { padding-block: 44px 8px; }

.marquee {
  margin-top: 28px;
  overflow: hidden;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
          mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
}
.marquee__track {
  display: flex; align-items: center; gap: 40px; width: max-content;
  animation: scroll 70s linear infinite;
}
.marquee:hover .marquee__track { animation-play-state: paused; }
.marquee__item {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.15rem;
  letter-spacing: .02em;
  color: #8a929b;
  white-space: nowrap;
}
@keyframes scroll { to { transform: translateX(calc(-50% - 20px)); } }

@media (prefers-reduced-motion: reduce) {
  .marquee { -webkit-mask-image: none; mask-image: none; }
  .marquee__track { animation: none; flex-wrap: wrap; width: auto; justify-content: center; row-gap: 14px; }
  .marquee__track [aria-hidden="true"] { display: none; }
}

/* ---------- Service cards ---------- */

.svc-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }

.svc {
  position: relative; isolation: isolate;
  display: flex; flex-direction: column; justify-content: flex-end; gap: 6px;
  min-height: 460px;
  padding: 22px;
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--card);
  color: var(--white);
  text-decoration: none;
}
.svc__img { position: absolute; inset: 0; z-index: -2; width: 100%; height: 100%; object-fit: cover; transition: transform .7s cubic-bezier(.2,.7,.2,1); }
.svc::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(180deg, rgba(6,8,10,0) 28%, rgba(6,8,10,.88) 74%, rgba(6,8,10,.96) 100%);
}
.svc:hover .svc__img { transform: scale(1.05); }

.svc__title { font-family: var(--font-display); font-size: 0.95rem; font-weight: 800; letter-spacing: .04em; text-transform: uppercase; }
.svc__desc { font-size: 0.9rem; color: rgba(255,255,255,.82); max-width: 30ch; }
.svc__more { display: flex; align-items: center; justify-content: space-between; margin-top: 12px; font-size: 0.85rem; font-weight: 700; }

.arrow-dot {
  display: grid; place-items: center;
  width: 34px; height: 34px;
  border-radius: 50%;
  background: var(--white); color: var(--blue);
  transition: transform .25s;
}
.arrow-dot .icon { width: 16px; height: 16px; stroke-width: 2.2; }
.svc:hover .arrow-dot { transform: translateX(4px); }

.svc--short { min-height: 300px; }

@media (max-width: 1000px) { .svc-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .svc-grid { grid-template-columns: 1fr; } .svc { min-height: 380px; } .svc--short { min-height: 260px; } }

/* ---------- Industries ---------- */

.industries { display: grid; grid-template-columns: repeat(7, 1fr); gap: 12px; margin-top: 36px; }
.industry { display: grid; justify-items: center; gap: 12px; text-align: center; padding: 8px 4px; }
.industry__icon { width: 56px; height: auto; }
.industry span { font-size: 0.78rem; font-weight: 700; line-height: 1.25; }

@media (max-width: 900px) { .industries { grid-template-columns: repeat(4, 1fr); row-gap: 24px; } }
@media (max-width: 520px) { .industries { grid-template-columns: repeat(2, 1fr); } }

/* ---------- About ---------- */

.about { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(32px, 6vw, 88px); align-items: center; }

.about__media { position: relative; border-radius: var(--radius-lg); overflow: hidden; aspect-ratio: 4 / 5; background: #050b12; }
.about__media img { width: 100%; height: 100%; object-fit: cover; }
.badge {
  position: absolute; left: 16px; bottom: 16px;
  padding: 9px 16px;
  background: rgba(255,255,255,.94);
  border-radius: 10px;
  font-size: 0.8rem; font-weight: 700; letter-spacing: .04em; text-transform: uppercase;
  color: var(--blue);
}

.about__body { display: grid; gap: 28px; justify-items: start; }
.about__body .eyebrow { margin-bottom: -14px; }

.points { display: grid; gap: 22px; }
.point { display: grid; grid-template-columns: 24px 1fr; gap: 14px; }
.point .icon { color: var(--green); width: 22px; height: 22px; margin-top: 3px; }
.point p { color: var(--ink-soft); font-size: 0.96rem; max-width: 46ch; }
.point strong { color: var(--ink); }

@media (max-width: 820px) { .about { grid-template-columns: 1fr; } .about__media { aspect-ratio: 4 / 3.4; } }

/* ---------- Instagram ---------- */

.ig-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.ig-tile { position: relative; display: block; aspect-ratio: 4 / 3; border-radius: 12px; overflow: hidden; background: #ddd; }
.ig-tile img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s cubic-bezier(.2,.7,.2,1); }
.ig-tile:hover img { transform: scale(1.05); }
.ig-tile span {
  position: absolute; left: 10px; bottom: 10px;
  padding: 5px 10px; border-radius: 999px;
  background: rgba(6,8,10,.72); color: #fff; font-size: .75rem; font-weight: 600;
  opacity: 0; transform: translateY(6px); transition: opacity .2s, transform .2s;
}
.ig-tile:hover span, .ig-tile:focus-visible span { opacity: 1; transform: none; }
.ig-follow { display: flex; justify-content: center; margin-top: 28px; }
.btn--ig { background: #1a73e8; color: #fff; }
.btn--ig:hover { background: #1563cb; }

@media (max-width: 640px) { .ig-grid { grid-template-columns: repeat(2, 1fr); gap: 8px; } }

/* ---------- Process ---------- */

.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; counter-reset: step; }
.step { position: relative; padding: 24px; background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); }
.step::before {
  counter-increment: step; content: counter(step);
  display: grid; place-items: center;
  width: 34px; height: 34px; margin-bottom: 16px;
  border-radius: 50%; background: var(--blue); color: #fff;
  font-family: var(--font-display); font-weight: 800; font-size: .9rem;
}
.step h3 { font-size: 1.02rem; margin-bottom: 6px; }
.step p { font-size: .92rem; color: var(--ink-soft); }

@media (max-width: 900px) { .steps { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 520px) { .steps { grid-template-columns: 1fr; } }

/* ---------- Footer (navy) ---------- */

.site-footer {
  position: relative; margin-top: -1px; /* overlap by 1px so no seam shows under the quote panel */
  background: var(--footer-bg); color: rgba(255,255,255,.7);
}

.footer__main {
  display: flex; justify-content: space-between; align-items: stretch; flex-wrap: wrap;
  gap: 40px 64px;
  padding-block: 56px 44px;
}

/* logo on top, social icons at the bottom */
.footer__left { display: flex; flex-direction: column; justify-content: space-between; gap: 40px; }
.footer__logo img { height: 40px; width: auto; }
.footer__left .socials { margin-top: 0; }

/* phone + address on top, copyright at the bottom */
.footer__right { display: flex; flex-direction: column; justify-content: space-between; gap: 40px; }
.footer__info { display: flex; flex-wrap: wrap; gap: 28px clamp(48px, 8vw, 120px); }
.footer__block h2 { font-family: var(--font-body); font-size: 1.1rem; font-weight: 700; color: var(--white); margin-bottom: 14px; }
.footer__big {
  display: block; max-width: 15ch;
  font-size: clamp(1.35rem, 2.4vw, 1.75rem); font-weight: 500; line-height: 1.3;
  color: #4aa8e8; text-decoration: none;
}
.footer__big:hover { color: #8fcbf5; }
.footer__copy { font-size: .78rem; color: rgba(255,255,255,.6); text-align: right; }

@media (max-width: 720px) {
  .footer__main { padding-block: 40px 32px; }
  .footer__left { gap: 24px; }
  .footer__right { width: 100%; }
  .footer__copy { text-align: left; }
}

/* ---------- Quote dialog ---------- */

.quote {
  width: min(620px, 100% - 32px);
  max-height: calc(100dvh - 32px);
  overflow-y: auto;
  padding: 0;
  border: 0; border-radius: var(--radius-lg);
  background: var(--white); color: var(--ink);
  box-shadow: 0 40px 120px rgba(0,0,0,.5);
}
.quote::backdrop { background: rgba(3,10,16,.66); backdrop-filter: blur(4px); }
.quote__form { display: grid; gap: 16px; padding: clamp(22px, 4vw, 34px); }
.quote__head { display: flex; align-items: start; justify-content: space-between; gap: 16px; }
.quote__head p { color: var(--ink-soft); font-size: .92rem; margin-top: 6px; }
.quote__close { flex: none; display: grid; place-items: center; width: 40px; height: 40px; border: 0; border-radius: 50%; background: var(--bg); }

.field { display: grid; gap: 6px; }
.field label { font-size: .82rem; font-weight: 700; }
.field input, .field select, .field textarea {
  width: 100%; padding: 12px 14px;
  border: 1px solid #c9d0d7; border-radius: 10px;
  background: var(--white); color: var(--ink);
  font: inherit;
}
.field textarea { min-height: 96px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { outline: 3px solid rgba(17,120,189,.35); border-color: var(--blue-bright); }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
@media (max-width: 480px) { .field-row { grid-template-columns: 1fr; } }
.quote__note { font-size: .78rem; color: var(--ink-soft); }
.quote .btn { width: 100%; }

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

/* Small related-service cards need a taller shade so titles stay readable over busy photos */
.svc--short::before { background: linear-gradient(180deg, rgba(6,8,10,.05) 8%, rgba(6,8,10,.9) 60%, rgba(6,8,10,.96)); }

/* ---------- Hero video (homepage) ---------- */

.hero--video { isolation: isolate; }

.hero__video {
  position: absolute; inset: 0; z-index: -2;
  width: 100%; height: 100%;
  object-fit: cover;
}

/* Darkens the footage so the headline stays readable, and keeps the black-to-navy look */
.hero__scrim {
  position: absolute; inset: 0; z-index: -1;
  background:
    linear-gradient(90deg, rgba(0,0,0,.62) 0%, rgba(0,0,0,.28) 55%, rgba(0,0,0,.1) 100%),
    linear-gradient(180deg, rgba(0,0,0,.88) 0%, rgba(1,8,15,.45) 32%, rgba(3,50,87,.7) 100%);
}

.hero__inner--single { grid-template-columns: minmax(0, 1fr); }
.hero__inner--single .hero__copy { max-width: 720px; }

.hero__pause {
  position: absolute; right: clamp(16px, 3vw, 32px); bottom: 24px;
  display: grid; place-items: center;
  width: 44px; height: 44px;
  background: rgba(3,12,20,.6); backdrop-filter: blur(8px);
  border: 1px solid rgba(255,255,255,.25); border-radius: 50%;
  color: #fff;
}
.hero__pause:hover { background: rgba(3,12,20,.85); }
.hero__pause[hidden] { display: none; }
.hero__pause .icon--play { display: none; }
.hero__pause[aria-pressed="true"] .icon--play { display: block; }
.hero__pause[aria-pressed="true"] .icon--pause { display: none; }

@media (prefers-reduced-motion: reduce) {
  .hero__pause { display: none; }
}

@media (max-width: 860px) {
  .hero--video .hero__inner { padding-bottom: 84px; }
  .hero__pause { bottom: 20px; }
  .hero__scrim {
    background: linear-gradient(180deg, rgba(0,0,0,.86) 0%, rgba(1,8,15,.66) 40%, rgba(3,40,72,.86) 100%);
  }
}

/* ---------- Service page hero (compact card + mosaic) ---------- */

.phero {
  padding: 104px 0 clamp(32px, 4vw, 56px);
  background: linear-gradient(180deg, #e3effa 0%, #eef5fb 100%);
}

.phero__card {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 0.8fr);
  min-height: 400px;
  background: var(--white);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: 0 1px 2px rgba(3,50,87,.06), 0 18px 50px rgba(3,50,87,.08);
}

.phero__copy {
  display: grid; gap: 18px; align-content: center; justify-items: start;
  padding: clamp(28px, 5vw, 64px);
}
.phero__copy .lead { max-width: 50ch; }

.crumbs { display: flex; align-items: center; gap: 8px; font-size: .85rem; color: var(--ink-soft); }
.crumbs a { text-decoration: none; }
.crumbs a:hover { color: var(--blue); text-decoration: underline; }
.crumbs .icon { width: 14px; height: 14px; }

.phero__title { font-size: clamp(2rem, 4.4vw, 3.3rem); }
.phero__title em { font-style: normal; color: var(--blue-bright); }

.phero__actions { display: flex; align-items: center; flex-wrap: wrap; gap: 14px 26px; margin-top: 6px; }
.link-under {
  font-weight: 600; text-decoration: underline;
  text-underline-offset: 5px; text-decoration-thickness: 2px; text-decoration-color: var(--green);
}
.link-under:hover { color: var(--blue); }

/* Mosaic: project photos on brand-colored tiles, with a "focus" mark in the middle */
.mosaic { position: relative; display: grid; grid-template-columns: repeat(3, 1fr); grid-template-rows: repeat(3, 1fr); }
.tile { position: relative; overflow: hidden; min-height: 0; }
.tile img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.tile--blue { background: var(--blue-bright); }
.tile--green { background: var(--green); }
.tile--sky { background: #cfe4f5; }
.tile--cream { background: #f3f8fc; }
.tile--mint { background: #e2f1d9; }
.mosaic__focus {
  position: absolute; left: 50%; top: 50%;
  width: 52px; height: 52px; transform: translate(-50%, -50%);
  fill: var(--green);
}

@media (max-width: 820px) {
  .phero { padding-top: 92px; }
  .phero__card { grid-template-columns: 1fr; min-height: 0; }
  .mosaic { height: 240px; }
}

/* ---------- Project gallery cards ---------- */

.proj-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }

.proj {
  position: relative; isolation: isolate;
  display: flex; flex-direction: column; justify-content: flex-end;
  min-height: 300px;
  padding: 22px 24px;
  border-radius: 14px; overflow: hidden;
  background: #111; color: var(--white);
}
.proj__img {
  position: absolute; inset: 0; z-index: -2;
  width: 100%; height: 100%; object-fit: cover;
  transition: transform .7s cubic-bezier(.2,.7,.2,1);
}
.proj::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(180deg, rgba(6,8,10,0) 30%, rgba(6,8,10,.78) 68%, rgba(6,8,10,.92));
}
.proj:hover .proj__img { transform: scale(1.05); }
.proj h3 { font-family: var(--font-body); font-size: 1.06rem; font-weight: 700; line-height: 1.25; }
.proj p { margin-top: 6px; font-size: .92rem; color: rgba(255,255,255,.88); max-width: 40ch; }
.proj__ig {
  display: inline-flex; align-items: center; gap: 6px;
  margin-top: 10px; font-size: .82rem; font-weight: 600;
  color: var(--white); text-decoration: none; opacity: .9;
}
.proj__ig .icon { width: 15px; height: 15px; }
.proj__ig:hover { opacity: 1; text-decoration: underline; }

.proj-grid--sm { grid-template-columns: repeat(4, 1fr); gap: 16px; }
.proj-grid--sm .proj { min-height: 220px; padding: 16px 18px; }

@media (max-width: 980px) {
  .proj-grid { grid-template-columns: repeat(2, 1fr); }
  .proj-grid--sm { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 640px) {
  .proj-grid { grid-template-columns: 1fr; }
  .proj { min-height: 260px; }
  .proj-grid--sm { grid-template-columns: repeat(2, 1fr); gap: 12px; }
  .proj-grid--sm .proj { min-height: 180px; }
}

/* ---------- Misc additions ---------- */

.svc-grid--three { grid-template-columns: repeat(3, 1fr); }
@media (max-width: 900px) { .svc-grid--three { grid-template-columns: 1fr; } }

.marquee__logo {
  height: 76px; width: auto; max-width: 220px; object-fit: contain;
  filter: grayscale(1); opacity: .8;
  transition: filter .3s, opacity .3s;
}
.marquee__item:hover .marquee__logo { filter: none; opacity: 1; }


/* ---------- Social icons ---------- */

.icon--fill { fill: currentColor; stroke: none; }

.socials { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 16px; }
.social {
  display: grid; place-items: center;
  width: 44px; height: 44px;
  border-radius: 50%;
  background: var(--blue-bright); color: var(--white);
  transition: background-color .2s, transform .2s;
}
.social:hover { background: var(--blue); transform: translateY(-2px); }
.social .icon { width: 22px; height: 22px; }

/* ---------- Quote panel (flows into the footer) ---------- */

.cta2 {
  --curve: 70px;
  margin-top: clamp(24px, 4vw, 56px);
  /* the footer color starts where the panel's curved bottom edge begins */
  background: linear-gradient(180deg, transparent calc(100% - var(--curve)), var(--footer-bg) calc(100% - var(--curve)));
}

.cta2__panel {
  position: relative; overflow: hidden; isolation: isolate;
  display: grid; justify-items: center; gap: 16px; text-align: center;
  padding: clamp(44px, 6vw, 68px) var(--gutter) calc(var(--curve) + 44px);
  border-radius: 32px 32px 50% 50% / 32px 32px var(--curve) var(--curve);
  background: linear-gradient(135deg, #095f9f 0%, #1178bd 55%, #2a90d2 100%);
  color: var(--white);
}
/* white cubes from the logo, very faint, on both sides of the text */
.cta2__panel::before, .cta2__panel::after {
  content: ""; position: absolute; z-index: -1; top: -12%;
  width: clamp(220px, 30vw, 400px); height: 150%;
  background: url("../img/cubes-white.png") no-repeat center / contain;
  opacity: .14; pointer-events: none;
}
.cta2__panel::before { right: 2%; }
.cta2__panel::after { left: 2%; transform: scaleX(-1); opacity: .09; }

.cta2__eyebrow {
  font-family: var(--font-display); font-size: .75rem; font-weight: 700;
  letter-spacing: .16em; text-transform: uppercase; color: #b6e39a;
}
.cta2__lead { max-width: 46ch; color: rgba(255,255,255,.88); }

.btn--dark { background: #071a2c; color: var(--white); }
.btn--dark:hover { background: #0d2a45; }
.btn--lg { min-height: 52px; padding: 14px 30px; font-size: 1rem; margin-top: 6px; }

.cta2__note { font-size: .88rem; color: rgba(255,255,255,.85); }
.cta2__note a { color: var(--white); font-weight: 600; }


@media (max-width: 640px) {
  .cta2 { --curve: 44px; }
  .cta2__panel::after { display: none; }
  .cta2__panel::before { right: -14%; width: 240px; }
}


/* ==========================================================================
   Conversion + landing-page additions (PPC / lead generation update)
   ========================================================================== */

/* Phone line under hero buttons */
.hero__call { font-size: .92rem; color: rgba(255,255,255,.85); }
.hero__call a { color: var(--white); font-weight: 600; }
.phero__call { font-size: .9rem; color: var(--ink-soft); }
.phero__call a { color: var(--blue); font-weight: 600; }

/* Short proof points under the hero buttons */
.checks { display: flex; flex-wrap: wrap; gap: 6px 18px; font-size: .88rem; color: var(--ink-soft); }
.checks li { display: inline-flex; align-items: center; gap: 6px; }
.checks .icon { width: 16px; height: 16px; stroke-width: 2.4; color: var(--green); }
.checks--light { display: grid; gap: 8px; color: rgba(255,255,255,.92); font-size: .95rem; }
.checks--light .icon { color: #b6e39a; }

/* Slim, in-flow "request a quote" prompt between sections */
.cta-strip {
  display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 14px 24px;
  padding: 20px 28px;
  background: var(--blue-tint); border-radius: var(--radius);
  margin-bottom: clamp(24px, 4vw, 56px);
}
.cta-strip p { color: var(--ink); font-size: 1.02rem; }
.section + .wrap > .cta-strip { margin-top: calc(-1 * clamp(24px, 4vw, 56px)); }

/* Homepage services: five cards */
.svc-grid--five { display: flex; flex-wrap: wrap; justify-content: center; }
.svc-grid--five .svc { flex: 1 1 200px; max-width: 360px; }
@media (max-width: 1100px) { .svc-grid--five .svc { flex-basis: calc(33.333% - 11px); } }
@media (max-width: 700px) { .svc-grid--five .svc { flex-basis: calc(50% - 8px); min-height: 400px; } }
@media (max-width: 480px) { .svc-grid--five .svc { flex-basis: 100%; max-width: none; min-height: 360px; } }

/* Homepage: Instagram-style carousel of recent posts (manually curated, not a live feed) */
.ig-carousel { position: relative; }
.ig-carousel__track {
  display: flex; gap: 16px; overflow-x: auto; scroll-snap-type: x mandatory;
  padding-bottom: 4px; scrollbar-width: none;
}
.ig-carousel__track::-webkit-scrollbar { display: none; }
.ig-carousel__arrow {
  position: absolute; top: 50%; transform: translateY(-50%); z-index: 2;
  width: 40px; height: 40px; border-radius: 50%; border: none;
  background: var(--white); box-shadow: 0 4px 16px rgba(3,20,40,.22);
  display: flex; align-items: center; justify-content: center; cursor: pointer;
  color: var(--ink);
}
.ig-carousel__arrow .icon { width: 20px; height: 20px; }
.ig-carousel__arrow--prev { left: -14px; }
.ig-carousel__arrow--prev .icon { transform: rotate(180deg); }
.ig-carousel__arrow--next { right: -14px; }
@media (max-width: 700px) { .ig-carousel__arrow { display: none; } }

.ig-card {
  position: relative; flex: 0 0 240px; aspect-ratio: 4 / 5; scroll-snap-align: start;
  border-radius: 14px; overflow: hidden; background: #111; color: var(--white); text-decoration: none;
}
.ig-card img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s cubic-bezier(.2,.7,.2,1); }
.ig-card:hover img { transform: scale(1.05); }
.ig-card::before {
  content: ""; position: absolute; inset: 0; z-index: 0;
  background: linear-gradient(180deg, rgba(6,8,10,0) 55%, rgba(6,8,10,.75));
}
.ig-card--ph { background: linear-gradient(155deg, var(--navy), var(--footer-bg)); }
.ig-card__video { width: 100%; height: 100%; object-fit: cover; background: #111; }
.ig-card__ph { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; }
.ig-card__ph .icon { width: 32px; height: 32px; color: rgba(255,255,255,.5); }
.ig-card__foot {
  position: absolute; left: 10px; right: 30px; bottom: 10px; z-index: 1;
  display: flex; align-items: center; gap: 8px;
}
.ig-card__foot .ig-card__avatar {
  width: 26px; height: 26px; border-radius: 50%; flex: none;
  background: var(--white); padding: 2px; object-fit: contain;
}
.ig-card__meta { display: grid; gap: 1px; font-size: .74rem; line-height: 1.25; }
.ig-card__meta strong { font-weight: 700; }
.ig-card__badge {
  position: absolute; right: 10px; bottom: 10px; z-index: 1;
  width: 18px; height: 18px; color: var(--white); opacity: .9;
}

/* Featured project cards + client tag on gallery cards */
.proj__tag {
  position: absolute; top: 14px; left: 14px; z-index: 1;
  padding: 4px 11px; border-radius: 999px;
  background: rgba(255,255,255,.93); color: var(--ink);
  font-size: .72rem; font-weight: 700; letter-spacing: .02em;
}
.proj-grid--feature { grid-template-columns: repeat(2, 1fr); }
.proj--feature { min-height: 420px; padding: 26px 28px; }
.proj--feature h3 { font-size: 1.3rem; }
.proj--feature p { font-size: 1rem; }
@media (max-width: 700px) { .proj-grid--feature { grid-template-columns: 1fr; } .proj--feature { min-height: 320px; } }

/* Text-only list for services that don't have a strong photo */
.also { padding-bottom: clamp(24px, 4vw, 48px); }
.section + .wrap > .also { margin-top: calc(-1 * clamp(32px, 5vw, 72px)); }
.also__label { font-family: var(--font-body); font-size: .8rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--ink-soft); margin-bottom: 12px; }
.chip-list { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { padding: 7px 14px; border-radius: 999px; background: var(--white); border: 1px solid var(--line); font-size: .9rem; font-weight: 600; color: var(--ink); }

/* Quote / lead form (used in the pop-up and on the homepage) */
.qform { display: grid; gap: 14px; }
.qform__row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.qform__hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.qform .field label { font-size: .82rem; font-weight: 700; }
.req { color: #c0392b; }
.qform .btn { width: 100%; }
.qform__note { font-size: .85rem; color: var(--ink-soft); text-align: center; }
.qform__note a { color: var(--blue); font-weight: 600; }
.qform__status { min-height: 1.3em; font-size: .92rem; font-weight: 600; text-align: center; }
.qform__status[data-state="ok"] { color: #1e7b3a; }
.qform__status[data-state="error"] { color: #b3261e; }
.qform__consent { display: grid; gap: 6px; }
.qform__consent-heading { font-size: .82rem; font-weight: 700; }
.qform__consent-row { display: flex; align-items: flex-start; gap: 10px; }
.qform__consent-row input[type="checkbox"] { margin-top: 3px; width: 16px; height: 16px; flex: none; accent-color: var(--blue); }
.qform__consent-row label { font-size: .82rem; color: var(--ink-soft); font-weight: 400; line-height: 1.4; }
@media (max-width: 560px) { .qform__row { grid-template-columns: 1fr; } }

/* Homepage: the quote panel holds the form */
.cta2__panel--form {
  grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr);
  justify-items: stretch; align-items: center; text-align: left;
  gap: clamp(28px, 5vw, 64px);
  padding-inline: clamp(22px, 5vw, 64px);
}
.cta2__intro { display: grid; gap: 16px; justify-items: start; }
.cta2__card {
  background: var(--white); color: var(--ink);
  border-radius: 20px; padding: clamp(20px, 3vw, 32px);
  box-shadow: 0 20px 60px rgba(3,20,40,.35);
}
@media (max-width: 900px) { .cta2__panel--form { grid-template-columns: 1fr; } }

/* Phones: a quiet call / quote bar that appears after the visitor starts scrolling */
.mobile-bar { display: none; }
@media (max-width: 720px) {
  .mobile-bar {
    position: fixed; left: 0; right: 0; bottom: 0; z-index: 60;
    display: grid; grid-template-columns: 1fr 2fr; gap: 8px;
    padding: 8px 12px calc(8px + env(safe-area-inset-bottom));
    background: rgba(7,26,44,.96); backdrop-filter: blur(8px);
    border-top: 1px solid rgba(255,255,255,.12);
    transform: translateY(110%); transition: transform .25s;
  }
  .mobile-bar.is-visible { transform: none; }
  .mobile-bar a {
    display: flex; align-items: center; justify-content: center; gap: 8px;
    min-height: 48px; border-radius: 999px;
    font-size: .95rem; font-weight: 700; text-decoration: none;
  }
  .mobile-bar__call { background: rgba(255,255,255,.12); border: 1px solid rgba(255,255,255,.25); color: var(--white); }
  .mobile-bar__quote { background: var(--blue-bright); color: var(--white); }
  .site-footer { padding-bottom: 76px; }
}

/* Four cards across (groups of 4 or 8) */
.proj-grid--four { grid-template-columns: repeat(4, 1fr); gap: 16px; }
@media (max-width: 980px) { .proj-grid--four { grid-template-columns: repeat(2, 1fr); } }

/* Fixed side tab: financing */
.financing-tab {
  position: fixed;
  top: 50%;
  right: 0;
  z-index: 55;
  transform: translateY(-50%);
  writing-mode: vertical-rl;
  text-orientation: mixed;
  background: var(--green);
  color: var(--white);
  text-decoration: none;
  font-family: var(--font-body);
  font-weight: 800;
  letter-spacing: .06em;
  text-transform: uppercase;
  font-size: .8rem;
  padding: 18px 9px;
  border-radius: 10px 0 0 10px;
  box-shadow: -3px 0 14px rgba(3,20,40,.22);
  transition: padding-right .2s;
}
.financing-tab:hover { padding-right: 13px; }
@media (max-width: 720px) { .financing-tab { font-size: .72rem; padding: 14px 7px; } }
@media (max-width: 640px) { .proj-grid--four { grid-template-columns: 1fr; } }

/* Blog: listing grid + cards */
.blog-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.blog-card { display: block; text-decoration: none; color: var(--ink); }
.blog-card__img { width: 100%; height: auto; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 14px; }
.blog-card__body { padding-top: 14px; display: grid; gap: 6px; }
.blog-card__body h3 { font-family: var(--font-display); font-size: 1.1rem; font-weight: 700; line-height: 1.3; }
.blog-card__body p { color: var(--ink-soft); font-size: .95rem; line-height: 1.5; }
.blog-card:hover h3 { color: var(--blue); }
@media (max-width: 900px) { .blog-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .blog-grid { grid-template-columns: 1fr; } }

/* Blog: article */
.post__title { margin-top: 10px; }
.post__hero { width: 100%; height: auto; aspect-ratio: 16 / 9; object-fit: cover; border-radius: 16px; margin-top: 24px; }
.post-body { max-width: 68ch; margin-inline: auto; padding-top: 8px; }
.post-body h2 {
  font-family: var(--font-display); font-size: 1.3rem; font-weight: 700;
  margin-top: 2em; margin-bottom: .6em;
}
.post-body p { font-size: 1.02rem; line-height: 1.7; color: var(--ink-soft); margin-bottom: 1.1em; }
.post-body p:first-child { margin-top: 24px; }
.post-body ul, .post-body ol { margin: 0 0 1.1em; padding-left: 1.3em; color: var(--ink-soft); font-size: 1.02rem; line-height: 1.7; }
.post-body ul { list-style: disc; }
.post-body ol { list-style: decimal; }
.post-body li { margin-bottom: .35em; }
.post-body .table-wrap { overflow-x: auto; margin: 0 0 1.1em; }
.post-body table { width: 100%; border-collapse: collapse; font-size: .98rem; }
.post-body th, .post-body td { text-align: left; padding: 10px 12px; border-bottom: 1px solid rgba(7, 26, 44, .12); vertical-align: top; }
.post-body th { font-weight: 700; color: var(--ink, #071a2c); }
.post-body td { color: var(--ink-soft); }
.post-body .note { font-size: .92rem; }
