/*
 * Site stylesheet — ported from demo "Mẫu 1" (Corporate Clean variant).
 * Every colour, font and radius comes from CSS variables generated from the
 * Theme global (src/theme/resolve.ts), so the admin can restyle the site.
 * Loaded inside @layer components so Tailwind utilities can still override.
 */

/* ---------- base ---------- */
html {
  scroll-padding-top: 96px;
  -webkit-text-size-adjust: 100%;
}
body {
  margin: 0;
  background: var(--c-bg);
  color: var(--c-text);
  font-family: var(--f-body);
  font-size: var(--fs-base);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}
.site img {
  max-width: 100%;
  height: auto;
  display: block;
}
.site a {
  color: inherit;
}
.site :focus-visible {
  outline: 3px solid var(--c-accent);
  outline-offset: 3px;
  border-radius: 3px;
}
.wrap {
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 0 clamp(18px, 4vw, 40px);
}
.site h1,
.site h2,
.site h3,
.site h4 {
  font-family: var(--f-display);
  font-weight: var(--w-display);
  color: var(--c-heading);
  line-height: 1.08;
  margin: 0;
  letter-spacing: 0.005em;
}
.site h1 {
  font-size: clamp(2.2rem, 5vw, 3.9rem);
  text-transform: var(--h-case);
}
.site h2 {
  font-size: clamp(1.7rem, 3.4vw, 2.6rem);
  text-transform: var(--h-case);
}
.site h3 {
  font-size: 1.1rem;
}
.site .o {
  color: var(--c-primary);
}
.lede {
  font-size: 1.08rem;
  color: var(--c-muted);
  max-width: 60ch;
  margin: 0.9rem 0 0;
}
.site p {
  max-width: 68ch;
}
.svc-name {
  font-family: var(--f-display);
  font-style: italic;
  letter-spacing: 0.02em;
}
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
.skip-link {
  position: absolute;
  left: 12px;
  top: -60px;
  z-index: 100;
  background: var(--c-btn);
  color: var(--c-on-btn);
  padding: 10px 16px;
  border-radius: var(--r);
  font-weight: 700;
}
.skip-link:focus {
  top: 12px;
}

/* ---------- sections ---------- */
.sec {
  position: relative;
}
.pad-none {
  padding: 0;
}
.pad-sm {
  padding: clamp(32px, 4vw, 52px) 0;
}
.pad-md {
  padding: clamp(56px, 7vw, 96px) 0;
}
.pad-lg {
  padding: clamp(80px, 10vw, 140px) 0;
}
.bg-alt {
  background: var(--c-alt);
}
.bg-tint {
  background: var(--c-tint);
}
.bg-dark {
  background: var(--c-dark);
  color: var(--c-on-dark);
}
.bg-dark h1,
.bg-dark h2,
.bg-dark h3,
.bg-dark h4 {
  color: var(--c-on-dark) !important;
}
.bg-dark .lede,
.bg-dark p {
  color: color-mix(in srgb, var(--c-on-dark) 78%, transparent);
}
@media (max-width: 767px) {
  .hide-mobile {
    display: none !important;
  }
}
@media (min-width: 768px) {
  .hide-desktop {
    display: none !important;
  }
}
.sec-head {
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 24px;
  flex-wrap: wrap;
  margin-bottom: clamp(28px, 4vw, 44px);
}

/* ---------- buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6em;
  padding: 0.9em 1.4em;
  border-radius: var(--r-btn);
  border: 2px solid transparent;
  font-weight: 700;
  text-decoration: none;
  cursor: pointer;
  font-size: 1rem;
  line-height: 1.1;
  transition:
    background 0.15s,
    color 0.15s,
    border-color 0.15s,
    transform 0.15s;
  background: none;
  font-family: inherit;
}
.btn:active {
  transform: translateY(1px);
}
.btn svg {
  width: 18px;
  height: 18px;
  flex: none;
}
.btn[disabled] {
  opacity: 0.6;
  cursor: progress;
}
.site .btn-primary {
  background: var(--c-btn);
  color: var(--c-on-btn);
}
.site .btn-primary:hover {
  background: var(--c-btn-hover);
}
.site .btn-outline {
  border-color: var(--c-primary);
  color: var(--c-primary-text);
}
.site .btn-outline:hover {
  background: var(--c-tint);
}
.site .btn-white {
  background: #fff;
  color: var(--c-on-white);
}
.site .btn-white:hover {
  background: color-mix(in srgb, #fff 88%, var(--c-primary));
}
.linkbtn {
  background: none;
  border: 0;
  color: var(--c-primary-text);
  font-weight: 700;
  cursor: pointer;
  padding: 0.72em 0.2em;
  text-decoration: underline;
  text-underline-offset: 3px;
  font-family: inherit;
  font-size: inherit;
}

/* ---------- announcement ---------- */
.announce {
  background: var(--c-dark);
  color: var(--c-on-dark);
  font-size: 0.9rem;
  text-align: center;
  padding: 8px 16px;
  font-weight: 600;
}
.announce a {
  color: var(--c-accent) !important;
  margin-left: 8px;
}

/* ---------- header ---------- */
.site-header {
  --hdr-bg: var(--c-bg);
  --hdr-fg: var(--c-heading);
  --hdr-link: var(--c-muted);
  --hdr-line: var(--c-line);
  position: relative;
  /* above the floating call bar and back-to-top button, so the open mobile menu is usable */
  z-index: 70;
  background: var(--hdr-bg);
  color: var(--hdr-fg);
  border-bottom: 1px solid var(--hdr-line);
}
.site-header.is-sticky {
  position: sticky;
  top: 0;
}
.site-header.hdr-dark {
  --hdr-bg: var(--c-dark);
  --hdr-fg: var(--c-on-dark);
  --hdr-link: color-mix(in srgb, var(--c-on-dark) 72%, transparent);
  --hdr-line: color-mix(in srgb, var(--c-on-dark) 14%, transparent);
}
.site-header.hdr-brand {
  --hdr-bg: var(--c-on-white);
  --hdr-fg: #fff;
  --hdr-link: rgb(255 255 255 / 0.85);
  --hdr-line: rgb(255 255 255 / 0.2);
}
.nav {
  display: flex;
  align-items: center;
  gap: 20px;
  height: 80px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-right: auto;
  text-decoration: none;
  font-family: var(--f-display);
  font-size: 1.3rem;
}
.brand img {
  width: auto;
  height: var(--logo-h, 44px);
}
.nav-links {
  display: flex;
  gap: 2px;
  list-style: none;
  margin: 0;
  padding: 0;
}
.nav-links > li {
  position: relative;
}
.nav-links a {
  display: block;
  padding: 0.55em 0.8em;
  text-decoration: none;
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--hdr-link) !important;
  border-radius: 4px;
}
.nav-links a:hover {
  color: var(--hdr-fg) !important;
}
.nav-links a[aria-current='page'] {
  color: var(--hdr-fg) !important;
  box-shadow: inset 0 -3px 0 var(--c-primary);
  border-radius: 0;
}
.hdr-brand .nav-links a[aria-current='page'] {
  box-shadow: inset 0 -3px 0 #fff;
}
.nav-sub {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  min-width: 230px;
  list-style: none;
  margin: 0;
  padding: 8px;
  background: var(--hdr-bg);
  border: 1px solid var(--hdr-line);
  border-radius: var(--r);
  box-shadow: 0 18px 40px rgb(0 0 0 / 0.12);
}
.nav-links > li:hover > .nav-sub,
.nav-links > li:focus-within > .nav-sub {
  display: block;
}
.nav-sub a {
  border-radius: var(--r) !important;
  box-shadow: none !important;
}
.nav-sub a:hover {
  background: color-mix(in srgb, var(--hdr-fg) 7%, transparent);
}
.menu-btn {
  display: none;
  background: none;
  border: 0;
  padding: 8px;
  cursor: pointer;
  color: var(--hdr-fg);
}
.menu-btn svg {
  width: 28px;
  height: 28px;
}
.site .hdr-call {
  padding: 0.7em 1.1em;
  background: var(--c-btn);
  color: var(--c-on-btn);
}
.site .hdr-call:hover {
  background: var(--c-btn-hover);
}
.site .hdr-brand .hdr-call {
  background: #fff;
  color: var(--c-on-white);
}
.hdr-actions {
  display: flex;
  gap: 10px;
  align-items: center;
}
@media (max-width: 980px) {
  .nav-links {
    position: absolute;
    left: 0;
    right: 0;
    top: 80px;
    flex-direction: column;
    background: var(--hdr-bg);
    padding: 8px clamp(18px, 4vw, 40px) 20px;
    display: none;
    border-bottom: 1px solid var(--hdr-line);
    box-shadow: 0 20px 30px rgb(0 0 0 / 0.08);
    max-height: calc(100dvh - 80px);
    overflow-y: auto;
    overscroll-behavior: contain;
  }
  .nav-links.open {
    display: flex;
  }
  .nav-links a {
    padding: 0.9em 0.3em;
    font-size: 1.05rem;
    border-bottom: 1px solid var(--hdr-line);
    border-radius: 0;
  }
  .nav-links a[aria-current='page'] {
    box-shadow: inset 4px 0 0 var(--c-primary);
    padding-left: 0.9em;
  }
  .nav-sub {
    display: block;
    position: static;
    border: 0;
    box-shadow: none;
    padding: 0 0 0 14px;
    background: none;
  }
  .menu-btn {
    display: block;
  }
  .hdr-call span,
  .hdr-cta {
    display: none !important;
  }
  .brand img {
    height: calc(var(--logo-h, 44px) * 0.78);
  }
}

/* ---------- icons ---------- */
.ico {
  width: 46px;
  height: 46px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  flex: none;
}
.ico svg {
  width: 24px;
  height: 24px;
}

/* ---------- home hero (split) ---------- */
.heroC {
  position: relative;
  background: var(--c-bg);
  padding: 56px 0 88px;
  overflow: hidden;
}
.heroC::before {
  content: '';
  position: absolute;
  right: 0;
  top: 0;
  width: 44%;
  height: 82%;
  background: var(--c-tint);
  border-bottom-left-radius: 60px;
}
.heroC-grid {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  gap: clamp(32px, 5vw, 64px);
  align-items: center;
}
.heroC-word {
  width: min(100%, 360px);
  height: auto;
}
.site .h1 {
  font-size: clamp(2.2rem, 5vw, 3.9rem);
  text-transform: var(--h-case);
}
.site .heroC h1,
.site .heroC .h1 {
  margin-top: 26px;
  font-size: clamp(2rem, 4.3vw, 3.4rem);
}
.heroC .lede {
  margin-top: 16px;
}
.hero-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 28px;
}
.trust {
  display: flex;
  margin-top: 38px;
  padding-top: 24px;
  border-top: 1px solid var(--c-line);
  flex-wrap: wrap;
}
.trust div {
  padding-right: 26px;
  margin-right: 26px;
  border-right: 1px solid var(--c-line);
}
.trust div:last-child {
  border-right: 0;
  margin-right: 0;
}
.trust b {
  display: block;
  font-family: var(--f-display);
  font-weight: var(--w-display);
  color: var(--c-primary-text);
  font-size: 1.2rem;
}
.trust span {
  font-size: 0.86rem;
  color: var(--c-muted);
  font-weight: 500;
}
.heroC-media {
  position: relative;
}
.heroC-media .main {
  width: 100%;
  aspect-ratio: 1 / 1.02;
  object-fit: cover;
  border-radius: calc(var(--r-lg) + 6px);
}
.heroC-badge {
  position: absolute !important;
  right: -22px;
  top: -26px;
  width: 128px !important;
  height: auto;
  filter: drop-shadow(0 12px 22px rgb(0 0 0 / 0.18));
}
.heroC-card {
  position: absolute;
  left: -34px;
  bottom: 34px;
  background: var(--c-surface);
  border-radius: 16px;
  box-shadow: 0 24px 50px rgb(60 30 10 / 0.16);
  padding: 16px 20px;
  display: flex;
  gap: 14px;
  align-items: center;
}
.heroC-card .ico {
  background: var(--grad);
  color: #fff;
}
.heroC-card b {
  display: block;
  font-size: 0.95rem;
  color: var(--c-heading);
}
.heroC-card a {
  color: var(--c-on-white) !important;
  font-weight: 800;
  text-decoration: none;
}
.heroC-thumbs {
  position: absolute;
  right: 26px;
  bottom: -40px;
  display: flex;
  gap: 10px;
}
.heroC-thumbs img {
  width: 110px;
  height: 84px;
  object-fit: cover;
  border-radius: 12px;
  border: 4px solid var(--c-surface);
  box-shadow: 0 12px 24px rgb(0 0 0 / 0.15);
}
@media (max-width: 980px) {
  .heroC-grid {
    grid-template-columns: 1fr;
  }
  .heroC::before {
    width: 100%;
    height: 40%;
    top: auto;
    bottom: 0;
    border-radius: 60px 60px 0 0;
  }
  .heroC-media {
    max-width: 520px;
  }
  .heroC-badge {
    right: 0;
    width: 100px !important;
  }
  .heroC-card {
    left: 12px;
  }
}
@media (max-width: 560px) {
  .trust {
    flex-direction: column;
    gap: 12px;
  }
  .trust div {
    border-right: 0;
    margin-right: 0;
    padding-right: 0;
  }
}

/* ---------- full image hero ---------- */
.heroF {
  position: relative;
  min-height: min(86vh, 760px);
  display: flex;
  align-items: center;
  color: #fff;
  overflow: hidden;
  isolation: isolate;
}
.heroF .bgimg {
  position: absolute;
  inset: 0;
  z-index: -2;
}
.heroF .bgimg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.heroF::after {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(
    100deg,
    rgb(10 10 10 / 0.82) 0%,
    rgb(10 10 10 / 0.5) 55%,
    rgb(10 10 10 / 0.15)
  );
}
.site .heroF h1 {
  color: #fff;
  max-width: 16ch;
}
.heroF .lede {
  color: rgb(255 255 255 / 0.86);
}
.heroF .trust {
  border-color: rgb(255 255 255 / 0.25);
}
.heroF .trust div {
  border-color: rgb(255 255 255 / 0.25);
}
.heroF .trust span {
  color: rgb(255 255 255 / 0.8);
}
.heroF .btn-outline {
  border-color: #fff;
  color: #fff !important;
}
.heroF .btn-outline:hover {
  background: rgb(255 255 255 / 0.12);
}

/* ---------- inner page hero ---------- */
.phero {
  position: relative;
  overflow: hidden;
  padding: clamp(48px, 6vw, 84px) 0;
  background: var(--c-alt);
}
.phero-grid {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 0.8fr);
  gap: clamp(28px, 4vw, 56px);
  align-items: center;
}
.phero-simple .phero-grid {
  grid-template-columns: 1fr;
}
.phero-img img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: calc(var(--r-lg) + 4px);
}
.phero-image {
  color: #fff;
  background: var(--c-dark);
}
.phero-image .phero-bg {
  position: absolute;
  inset: 0;
}
.phero-image .phero-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.45;
}
.site .phero-image h1 {
  color: #fff;
}
.phero-image .lede,
.phero-image .crumb {
  color: rgb(255 255 255 / 0.85);
}
.crumb {
  font-size: 0.88rem;
  font-weight: 600;
  margin-bottom: 14px;
  color: var(--c-muted);
}
.crumb ol {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin: 0;
  padding: 0;
}
.crumb li + li::before {
  content: '/';
  margin-right: 6px;
  opacity: 0.6;
}
.crumb a {
  text-decoration: none;
  color: var(--c-primary-text) !important;
}
@media (max-width: 820px) {
  .phero-grid {
    grid-template-columns: 1fr;
  }
  .phero-img {
    max-width: 420px;
  }
}

/* ---------- cards: projects ---------- */
.proj-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(290px, 1fr));
  gap: 24px;
}
.pcard {
  background: var(--c-surface);
  border: var(--card-border);
  box-shadow: var(--card-shadow);
  border-radius: var(--r-lg);
  overflow: hidden;
  text-align: left;
  display: flex;
  flex-direction: column;
  text-decoration: none;
  transition:
    border-color 0.15s,
    box-shadow 0.15s,
    transform 0.2s;
}
.pcard:hover {
  border-color: var(--c-primary);
  box-shadow: var(--card-shadow-hover);
}
.pthumb {
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background: var(--c-alt);
  position: relative;
}
.pthumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s;
}
.pcard:hover .pthumb img {
  transform: scale(1.04);
}
.pbadge {
  position: absolute;
  left: 12px;
  top: 12px;
  background: var(--c-btn);
  color: var(--c-on-btn);
  font-weight: 700;
  font-size: 0.78rem;
  padding: 0.35em 0.7em;
  border-radius: 4px;
  z-index: 1;
}
.pbody {
  padding: 18px 20px 20px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  flex: 1;
}
.site .pbody h3 {
  font-size: 1.08rem;
}
.pmeta {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  color: var(--c-muted);
  font-size: 0.88rem;
  font-weight: 500;
}
.pmeta span {
  display: inline-flex;
  align-items: center;
  gap: 5px;
}
.pmeta svg {
  width: 15px;
  height: 15px;
  color: var(--c-primary);
}
.tags {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  margin-top: auto;
  padding-top: 6px;
}
.tag {
  font-weight: 600;
  font-size: 0.78rem;
  padding: 0.3em 0.65em;
  border-radius: 4px;
  background: var(--c-tint);
  color: var(--c-deep-on-tint);
  text-decoration: none;
}
.tag.g {
  background: var(--c-alt);
  color: var(--c-heading);
}

/* ---------- services bento / cards / list ---------- */
.bento {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-auto-rows: minmax(180px, auto);
  grid-auto-flow: dense;
  gap: 16px;
}
.b-photo {
  grid-column: span 2;
  grid-row: span 2;
  border-radius: var(--r-lg);
  overflow: hidden;
  position: relative;
  color: #fff;
  text-decoration: none;
  min-height: 376px;
  background: var(--c-dark);
}
.b-photo img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s;
}
.b-photo:hover img {
  transform: scale(1.04);
}
.b-photo::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    transparent 35%,
    color-mix(in srgb, var(--c-primary-deep) 92%, transparent)
  );
}
.b-photo .cap {
  position: absolute;
  left: 26px;
  right: 26px;
  bottom: 24px;
  z-index: 2;
}
.b-photo .ico {
  background: #fff;
  color: var(--c-primary);
  margin-bottom: 12px;
}
.site .b-photo h3 {
  color: #fff;
  font-size: 1.5rem;
}
.b-photo p {
  margin: 0.4rem 0 0;
  opacity: 0.95;
}
.b-tile,
.s-card {
  background: var(--c-alt);
  border-radius: var(--r-lg);
  padding: 22px;
  text-decoration: none;
  transition: background 0.15s;
  display: block;
}
.b-tile:hover,
.s-card:hover {
  background: var(--c-tint);
}
.b-tile .ico,
.s-card .ico {
  background: var(--c-surface);
  color: var(--c-primary);
  margin-bottom: 14px;
  box-shadow: 0 4px 12px rgb(0 0 0 / 0.06);
}
.site .b-tile h3 {
  font-size: 1.02rem;
}
.b-tile p,
.s-card p {
  color: var(--c-muted);
  font-size: 0.88rem;
  line-height: 1.5;
  margin: 0.45rem 0 0;
}
.s-cards {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 16px;
}
.s-card .more {
  display: inline-block;
  margin-top: 12px;
  font-weight: 700;
  color: var(--c-primary-text);
  font-size: 0.9rem;
}
.s-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0 36px;
}
.s-list a {
  display: flex;
  gap: 14px;
  align-items: center;
  padding: 14px 0;
  border-bottom: 1px solid var(--c-line);
  text-decoration: none;
  font-size: 1.05rem;
}
.s-list .ico {
  background: var(--c-tint);
  color: var(--c-primary);
}
@media (max-width: 980px) {
  .bento {
    grid-template-columns: 1fr 1fr;
  }
  .b-photo {
    grid-row: span 1;
    min-height: 280px;
  }
}
@media (max-width: 560px) {
  .bento,
  .s-list {
    grid-template-columns: 1fr;
  }
  .b-photo {
    grid-column: span 1;
  }
}

/* ---------- steps ---------- */
.steps {
  display: grid;
  grid-template-columns: repeat(var(--n, 4), 1fr);
  gap: 22px;
  counter-reset: s;
  list-style: none;
  margin: 0;
  padding: 0;
}
.steps li {
  position: relative;
  padding-top: 62px;
}
.steps li::before {
  counter-increment: s;
  content: counter(s);
  position: absolute;
  top: 0;
  left: 0;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: var(--c-btn);
  color: var(--c-on-btn);
  display: grid;
  place-items: center;
  font-family: var(--f-display);
  font-size: 1.2rem;
}
.steps li::after {
  content: '';
  position: absolute;
  top: 22px;
  left: 58px;
  right: -10px;
  height: 3px;
  background: repeating-linear-gradient(90deg, var(--c-primary) 0 14px, transparent 14px 24px);
}
.steps li:last-child::after {
  display: none;
}
.steps p {
  color: var(--c-muted);
  font-size: 0.95rem;
  margin: 0.45rem 0 0;
}
@media (max-width: 900px) {
  .steps {
    grid-template-columns: 1fr 1fr;
  }
  .steps li::after {
    display: none;
  }
}
@media (max-width: 520px) {
  .steps {
    grid-template-columns: 1fr;
  }
}

/* ---------- CTA band ---------- */
.cta-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 28px;
  flex-wrap: wrap;
  border-radius: calc(var(--r-lg) + 10px);
  padding: clamp(32px, 5vw, 56px);
  color: #fff;
  position: relative;
  overflow: hidden;
  isolation: isolate;
}
.cta-inner.gradient {
  background: var(--grad);
}
.cta-inner.dark {
  background: var(--c-dark);
}
.cta-inner .cta-bg {
  position: absolute;
  inset: 0;
  z-index: -1;
}
.cta-inner .cta-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.cta-inner.image::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(90deg, rgb(0 0 0 / 0.75), rgb(0 0 0 / 0.35));
}
.site .cta-inner h2 {
  max-width: 20ch;
  color: #fff;
}
.cta-inner .lede {
  color: rgb(255 255 255 / 0.88);
}
.site .cta-phone {
  font-family: var(--f-display);
  font-size: clamp(1.6rem, 3.2vw, 2.4rem);
  text-decoration: none;
  display: block;
  margin-bottom: 10px;
  color: #fff;
}

/* ---------- split / about ---------- */
.split {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr);
  gap: clamp(32px, 5vw, 72px);
  align-items: center;
}
.split.img-left > :first-child {
  order: 2;
}
.split-img {
  position: relative;
}
.split-img img {
  width: 100%;
  aspect-ratio: 4 / 4.4;
  object-fit: cover;
  border-radius: var(--r-lg);
}
.stamp {
  position: absolute;
  left: -18px;
  bottom: 28px;
  background: var(--grad);
  color: #fff;
  padding: 18px 22px;
  border-radius: var(--r);
  max-width: 240px;
  font-weight: 600;
  line-height: 1.35;
  box-shadow: 0 14px 30px rgb(0 0 0 / 0.25);
}
.stamp b {
  display: block;
  font-family: var(--f-display);
  font-weight: var(--w-display);
  font-size: 1.45rem;
  line-height: 1.05;
  margin-bottom: 4px;
}
.split .rich p {
  margin: 1rem 0 0;
}
.split .hero-actions {
  margin-top: 26px;
}
@media (max-width: 900px) {
  .split {
    grid-template-columns: 1fr;
  }
  .split.img-left > :first-child {
    order: 0;
  }
  .stamp {
    left: 12px;
  }
}

/* ---------- feature cards ---------- */
.cards {
  display: grid;
  grid-template-columns: repeat(var(--cols, 3), 1fr);
  gap: 22px;
}
.card-value {
  background: var(--c-surface);
  border: 1px solid var(--c-line);
  border-top: 4px solid var(--c-primary);
  border-radius: var(--r);
  padding: 26px;
}
.card-value p,
.card-icon p,
.tech-item p {
  color: var(--c-muted);
  margin: 0.5rem 0 0;
  font-size: 0.96rem;
}
.card-icon {
  background: var(--c-surface);
  border: var(--card-border);
  box-shadow: var(--card-shadow);
  border-radius: var(--r-lg);
  padding: 26px;
}
.card-icon .ico {
  width: 52px;
  height: 52px;
  border-radius: 14px;
  background: var(--c-btn);
  color: var(--c-on-btn);
  margin-bottom: 16px;
}
.tech-item {
  display: grid;
  grid-template-columns: 64px 1fr;
  gap: 18px;
  padding: 26px;
  border-radius: var(--r-lg);
  background: var(--c-surface);
  border: 1px solid var(--c-line);
}
.tech-item .t-ico {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: var(--grad);
  display: grid;
  place-items: center;
  color: #fff;
}
.tech-item .t-ico svg {
  width: 32px;
  height: 32px;
}
.bg-dark .card-value,
.bg-dark .card-icon,
.bg-dark .tech-item {
  background: color-mix(in srgb, var(--c-on-dark) 6%, transparent);
  border-color: color-mix(in srgb, var(--c-on-dark) 14%, transparent);
}
@media (max-width: 980px) {
  .cards {
    grid-template-columns: repeat(min(var(--cols, 3), 2), 1fr);
  }
}
@media (max-width: 640px) {
  .cards {
    grid-template-columns: 1fr;
  }
}

/* ---------- towns ---------- */
.towns {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  list-style: none;
  padding: 0;
  margin: 22px 0 0;
}
.towns li > * {
  display: inline-block;
  border: 1.5px solid var(--c-line);
  border-radius: 40px;
  padding: 0.45em 1.05em;
  font-weight: 600;
  background: var(--c-surface);
  font-size: 0.95rem;
  text-decoration: none;
  transition:
    border-color 0.15s,
    transform 0.15s;
}
.towns a:hover {
  border-color: var(--c-primary);
  transform: translateY(-2px);
}
.towns li > *::before {
  content: '';
  display: inline-block;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--c-primary);
  margin-right: 8px;
  vertical-align: 1px;
}

/* ---------- filters ---------- */
.filters {
  position: sticky;
  top: 80px;
  z-index: 20;
  background: var(--c-bg);
  border-bottom: 1px solid var(--c-line);
  padding: 16px 0;
}
.no-sticky .filters {
  top: 0;
}
.frow {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 12px;
  align-items: end;
}
.frow .field.grow {
  grid-column: span 2;
}
.field label {
  display: block;
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--c-heading);
  margin-bottom: 6px;
}
.field input,
.field select,
.field textarea {
  width: 100%;
  background: var(--c-surface);
  border: 1.5px solid var(--c-line);
  border-radius: var(--r);
  padding: 0.72em 0.85em;
  font-size: 0.98rem;
  appearance: none;
  -webkit-appearance: none;
  color: var(--c-text);
  font-family: inherit;
}
.field select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' fill='none' stroke='%23888' stroke-width='2'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 0.85em center;
  padding-right: 2.4em;
}
.field input:focus,
.field select:focus,
.field textarea:focus {
  border-color: var(--c-primary);
  outline: none;
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--c-primary) 22%, transparent);
}
.chips {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: 14px;
}
.chip {
  border: 1.5px solid var(--c-line);
  background: var(--c-surface);
  border-radius: 40px;
  padding: 0.38em 1em;
  cursor: pointer;
  font-weight: 600;
  font-size: 0.88rem;
  color: var(--c-text);
  font-family: inherit;
  text-decoration: none;
}
.chip:hover {
  border-color: var(--c-primary);
}
.chip[aria-pressed='true'] {
  background: var(--c-btn);
  border-color: var(--c-primary);
  color: var(--c-on-btn);
}
.result-bar {
  margin: 28px 0 20px;
  color: var(--c-muted);
  display: flex;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  align-items: center;
}
.result-bar strong {
  color: var(--c-heading);
}
.is-loading .proj-grid {
  opacity: 0.55;
  transition: opacity 0.2s;
}
.empty {
  text-align: center;
  padding: 60px 20px;
  border: 2px dashed var(--c-line);
  border-radius: var(--r-lg);
}
.site .empty p {
  margin: 0.4rem auto 1rem;
  color: var(--c-muted);
}
@media (max-width: 900px) {
  .filters {
    position: static;
  }
  .frow {
    grid-template-columns: 1fr 1fr;
  }
  .frow .field.grow {
    grid-column: 1 / -1;
  }
}

/* ---------- pagination ---------- */
.pager {
  display: flex;
  gap: 6px;
  justify-content: center;
  margin-top: 40px;
  flex-wrap: wrap;
}
.pager a,
.pager span {
  min-width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  padding: 0 12px;
  border-radius: var(--r);
  border: 1.5px solid var(--c-line);
  text-decoration: none;
  font-weight: 700;
}
.pager a:hover {
  border-color: var(--c-primary);
}
.pager [aria-current='page'] {
  background: var(--c-btn);
  border-color: var(--c-primary);
  color: var(--c-on-btn);
}

/* ---------- equipment ---------- */
.fleet {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.unit {
  background: var(--c-surface);
  border: var(--card-border);
  box-shadow: var(--card-shadow);
  border-radius: var(--r-lg);
  padding: 26px 24px;
}
.unit > svg {
  width: 96px;
  height: 56px;
  color: var(--c-heading);
  margin-bottom: 14px;
}
.unit svg .acc {
  stroke: var(--c-primary);
}
.unit .u-photo {
  aspect-ratio: 16 / 10;
  border-radius: var(--r);
  overflow: hidden;
  margin-bottom: 16px;
  background: var(--c-alt);
}
.unit .u-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.unit .spec {
  font-weight: 700;
  color: var(--c-primary-text);
  font-size: 0.88rem;
  margin-top: 4px;
}
.unit p {
  color: var(--c-muted);
  font-size: 0.94rem;
  margin: 0.6rem 0 0;
}
.unit dl {
  margin: 14px 0 0;
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 4px 14px;
  font-size: 0.88rem;
}
.unit dt {
  color: var(--c-muted);
}
.unit dd {
  margin: 0;
  font-weight: 600;
}
.fleet-filter {
  margin: 0 0 22px;
}
@media (max-width: 980px) {
  .fleet {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (max-width: 600px) {
  .fleet {
    grid-template-columns: 1fr;
  }
}

/* ---------- checklist ---------- */
.checks {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0 36px;
}
.checks li {
  display: flex;
  gap: 12px;
  padding: 16px 0;
  border-bottom: 1px solid var(--c-line);
  font-weight: 500;
}
.checks svg {
  width: 22px;
  height: 22px;
  color: var(--c-primary);
  flex: none;
  margin-top: 2px;
}
@media (max-width: 800px) {
  .checks {
    grid-template-columns: 1fr;
  }
}

/* ---------- stats ---------- */
.stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 24px;
  text-align: center;
}
.stats b {
  display: block;
  font-family: var(--f-display);
  font-weight: var(--w-display);
  font-size: clamp(2.2rem, 5vw, 3.6rem);
  line-height: 1;
  color: var(--c-primary);
}
.bg-dark .stats b {
  color: var(--c-accent);
}
.stats span {
  display: block;
  margin-top: 8px;
  font-size: 0.92rem;
  opacity: 0.85;
}

/* ---------- testimonials ---------- */
.reviews {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 20px;
}
.review {
  position: relative;
  background: var(--c-surface);
  border: var(--card-border);
  box-shadow: var(--card-shadow);
  border-radius: var(--r-lg);
  padding: 44px 26px 26px;
  margin: 0;
}
.review::before {
  content: '\201C';
  position: absolute;
  top: 6px;
  left: 24px;
  font:
    900 64px/1 Georgia,
    serif;
  color: var(--c-primary);
  opacity: 0.6;
}
.stars {
  color: var(--c-accent);
  letter-spacing: 2px;
  margin-bottom: 8px;
}
.review blockquote {
  margin: 0;
}
.review figcaption {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 18px;
  font-weight: 700;
}
.review .av {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: var(--c-btn);
  color: var(--c-on-btn);
  font-weight: 800;
  display: grid;
  place-items: center;
}
.review small {
  display: block;
  color: var(--c-muted);
  font-weight: 500;
}
.rating-sum {
  font-weight: 700;
  margin: 0;
  color: var(--c-heading);
}

/* ---------- FAQ ---------- */
.faq {
  max-width: 860px;
}
.faq details {
  background: var(--c-surface);
  border: 1px solid var(--c-line);
  border-radius: 12px;
  margin-bottom: 12px;
  overflow: hidden;
}
.faq summary {
  cursor: pointer;
  padding: 18px 54px 18px 22px;
  font-weight: 700;
  list-style: none;
  position: relative;
}
.faq summary::-webkit-details-marker {
  display: none;
}
.faq summary::after {
  content: '+';
  position: absolute;
  right: 22px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 1.6rem;
  color: var(--c-primary);
  transition: transform 0.25s;
}
.faq details[open] summary::after {
  transform: translateY(-50%) rotate(45deg);
}
.faq details[open] {
  border-color: var(--c-primary);
}
.site .faq details p {
  margin: 0;
  padding: 0 22px 20px;
  color: var(--c-muted);
}

/* ---------- gallery & lightbox ---------- */
.gallery {
  display: grid;
  grid-template-columns: repeat(var(--cols, 3), 1fr);
  gap: 12px;
}
.gallery button {
  padding: 0;
  border: 0;
  cursor: zoom-in;
  border-radius: var(--r);
  overflow: hidden;
  aspect-ratio: 4 / 3;
  background: var(--c-alt);
}
.gallery img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s;
}
.gallery button:hover img {
  transform: scale(1.04);
}
@media (max-width: 700px) {
  .gallery {
    grid-template-columns: 1fr 1fr;
  }
}
.lightbox {
  border: 0;
  padding: 0;
  background: transparent;
  max-width: 100vw;
  max-height: 100vh;
  width: 100vw;
  height: 100vh;
}
.lightbox::backdrop {
  background: rgb(0 0 0 / 0.88);
}
.lightbox figure {
  margin: 0;
  height: 100%;
  display: grid;
  place-items: center;
  padding: 56px 64px;
}
.lightbox img {
  max-width: 100%;
  max-height: calc(100vh - 140px);
  width: auto;
  height: auto;
  object-fit: contain;
}
.lightbox figcaption {
  color: #fff;
  margin-top: 12px;
  text-align: center;
}
.lb-btn {
  position: fixed;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  border: 0;
  background: rgb(255 255 255 / 0.14);
  color: #fff;
  cursor: pointer;
  display: grid;
  place-items: center;
  font-size: 22px;
}
.lb-btn:hover {
  background: var(--c-primary);
}
.lb-close {
  top: 14px;
  right: 14px;
}
.lb-prev {
  left: 14px;
  top: 50%;
}
.lb-next {
  right: 14px;
  top: 50%;
}

/* ---------- before / after ---------- */
.ba {
  position: relative;
  aspect-ratio: 16 / 9;
  border-radius: var(--r-lg);
  overflow: hidden;
  background: var(--c-alt);
  user-select: none;
  touch-action: pan-y;
}
.ba img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.ba .ba-after {
  clip-path: inset(0 0 0 var(--pos, 50%));
}
.ba .ba-line {
  position: absolute;
  top: 0;
  bottom: 0;
  left: var(--pos, 50%);
  width: 3px;
  background: #fff;
  transform: translateX(-50%);
  pointer-events: none;
}
.ba .ba-line::after {
  content: '\2194';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--c-primary);
  color: #fff;
  display: grid;
  place-items: center;
  font-size: 20px;
  box-shadow: 0 6px 18px rgb(0 0 0 / 0.3);
}
.ba input {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  cursor: ew-resize;
  margin: 0;
}
.ba-label {
  position: absolute;
  top: 12px;
  background: rgb(0 0 0 / 0.6);
  color: #fff;
  font-size: 0.78rem;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 4px;
  pointer-events: none;
}
.ba-label.l {
  left: 12px;
}
.ba-label.r {
  right: 12px;
}

/* ---------- contact ---------- */
.contact-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr);
  gap: clamp(24px, 4vw, 48px);
  align-items: start;
}
.contact-grid.single {
  grid-template-columns: 1fr;
  max-width: 820px;
}
.info-card {
  background: var(--grad);
  color: #fff;
  border-radius: var(--r-lg);
  padding: clamp(24px, 3vw, 36px);
  position: sticky;
  top: 100px;
}
.site .info-card h3 {
  color: #fff;
}
.info-card .ic-label {
  font-family: var(--f-display);
  font-weight: var(--w-display);
  font-size: 1.1rem;
  margin: 0;
}
.info-card img {
  height: 64px;
  width: auto;
  margin-bottom: 18px;
}
.site .info-card .big {
  font-family: var(--f-display);
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  color: #fff;
  text-decoration: none;
  display: block;
  line-height: 1.1;
  margin: 0.4rem 0 1.4rem;
}
.info-row {
  padding: 16px 0;
  border-top: 1px solid rgb(255 255 255 / 0.3);
  font-weight: 500;
}
.info-row small {
  display: block;
  opacity: 0.8;
  font-size: 0.8rem;
  font-weight: 700;
}
.info-row a {
  color: #fff !important;
  font-weight: 700;
}
.form {
  background: var(--c-surface);
  border: 1px solid var(--c-line);
  border-radius: var(--r-lg);
  padding: clamp(22px, 3vw, 36px);
}
.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}
.form-grid .full {
  grid-column: 1 / -1;
}
.field textarea {
  min-height: 130px;
  resize: vertical;
}
.field .err {
  color: #c0392b;
  font-size: 0.84rem;
  margin-top: 4px;
  font-weight: 600;
}
.field.invalid input,
.field.invalid select,
.field.invalid textarea {
  border-color: #c0392b;
}
.field .req {
  color: var(--c-primary);
}
.field-check {
  display: flex;
  gap: 10px;
  align-items: flex-start;
}
.field-check input {
  width: 20px;
  height: 20px;
  margin-top: 3px;
  accent-color: var(--c-primary);
  appearance: auto;
}
.form-foot {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
  margin-top: 22px;
}
.form-foot small {
  color: var(--c-muted);
}
.form-error {
  background: #fdecea;
  color: #8a1f11;
  border-radius: var(--r);
  padding: 12px 14px;
  margin-bottom: 16px;
  font-weight: 600;
}
.hp {
  position: absolute !important;
  left: -10000px !important;
  width: 1px;
  height: 1px;
  overflow: hidden;
}
.done {
  text-align: center;
  padding: 30px 10px;
}
.done svg {
  width: 56px;
  height: 56px;
  color: var(--c-primary);
  margin: 0 auto 12px;
}
.site .done p {
  margin: 0.5rem auto 1.2rem;
  color: var(--c-muted);
}
.map-embed {
  margin-top: 32px;
  border-radius: var(--r-lg);
  overflow: hidden;
  aspect-ratio: 16 / 7;
  background: var(--c-alt);
  border: 1px solid var(--c-line);
  display: grid;
  place-items: center;
}
.map-embed iframe {
  width: 100%;
  height: 100%;
  border: 0;
}
@media (max-width: 900px) {
  .contact-grid {
    grid-template-columns: 1fr;
  }
  .info-card {
    position: static;
  }
  .form-grid {
    grid-template-columns: 1fr;
  }
  .map-embed {
    aspect-ratio: 4 / 3;
  }
}

/* ---------- detail pages (project / service) ---------- */
.detail-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 340px;
  gap: clamp(28px, 4vw, 56px);
  align-items: start;
}
.facts {
  background: var(--c-surface);
  border: 1px solid var(--c-line);
  border-radius: var(--r-lg);
  padding: 22px 24px;
  position: sticky;
  top: 100px;
}
.facts dl {
  margin: 0;
}
.facts dl div {
  padding: 12px 0;
  border-bottom: 1px solid var(--c-line);
}
.facts dl div:last-child {
  border-bottom: 0;
}
.facts dt {
  color: var(--c-muted);
  font-size: 0.8rem;
  font-weight: 700;
}
.facts dd {
  margin: 2px 0 0;
  font-weight: 700;
  color: var(--c-heading);
}
.facts .btn {
  width: 100%;
  margin-top: 16px;
}
.cover-img {
  border-radius: var(--r-lg);
  overflow: hidden;
  aspect-ratio: 16 / 9;
  background: var(--c-alt);
  margin-bottom: 28px;
}
.cover-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.prose-site {
  max-width: 72ch;
}
.prose-site h2 {
  font-size: 1.5rem !important;
  margin: 2rem 0 0.8rem !important;
}
.prose-site h3 {
  margin: 1.6rem 0 0.6rem !important;
}
.prose-site p,
.prose-site ul,
.prose-site ol {
  margin: 0 0 1rem;
}
.prose-site a {
  color: var(--c-primary-text) !important;
}
.sub-title {
  font-size: 1.25rem !important;
  margin: 36px 0 16px !important;
}
@media (max-width: 960px) {
  .detail-grid {
    grid-template-columns: 1fr;
  }
  .facts {
    position: static;
  }
}

/* ---------- footer ---------- */
.site-footer {
  padding: 56px 0 28px;
  font-size: 0.93rem;
  background: var(--c-alt);
  color: var(--c-text);
}
.site-footer.ft-dark {
  background: var(--c-dark);
  color: var(--c-on-dark);
}
.fgrid {
  display: grid;
  grid-template-columns: 1.4fr repeat(var(--fcols, 3), 1fr);
  gap: 32px;
}
.f-logo img {
  height: 48px;
  width: auto;
}
.site .f-about {
  margin: 16px 0 0;
  max-width: 34ch;
  opacity: 0.85;
}
.site .site-footer .f-title {
  margin: 0 0 12px;
  font-family: var(--f-display);
  font-weight: var(--w-display);
  font-size: 1rem;
  text-transform: uppercase;
  letter-spacing: 0.02em;
  color: inherit;
}
.site-footer ul {
  list-style: none;
  padding: 0;
  margin: 0;
}
.site-footer li {
  padding: 3px 0;
}
.site-footer a {
  text-decoration: none;
}
.site-footer a:hover {
  text-decoration: underline;
}
.social {
  display: flex;
  gap: 10px;
  margin-top: 18px;
  flex-wrap: wrap;
}
.social a {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  text-decoration: none !important;
  background: var(--c-surface);
  color: var(--c-primary) !important;
  transition:
    background 0.15s,
    color 0.15s;
}
.social a:hover {
  background: var(--c-primary);
  color: #fff !important;
}
.social svg {
  width: 18px;
  height: 18px;
  fill: currentColor;
}
.fbottom {
  margin-top: 44px;
  padding-top: 20px;
  display: flex;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  font-size: 0.85rem;
  opacity: 0.85;
  border-top: 1px solid var(--c-line);
}
.ft-dark .fbottom {
  border-color: color-mix(in srgb, var(--c-on-dark) 18%, transparent);
}
.fbottom nav {
  display: flex;
  gap: 16px;
}
@media (max-width: 800px) {
  .fgrid {
    grid-template-columns: 1fr 1fr;
  }
  .fgrid > div:first-child {
    grid-column: 1 / -1;
  }
}

/* ---------- floating helpers ---------- */
.callbar {
  display: none;
}
.to-top {
  position: fixed;
  right: 18px;
  bottom: 24px;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  border: 0;
  background: var(--c-btn);
  color: var(--c-on-btn);
  cursor: pointer;
  box-shadow: 0 6px 18px rgb(0 0 0 / 0.3);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s;
  z-index: 60;
  display: grid;
  place-items: center;
}
.to-top.show {
  opacity: 1;
  pointer-events: auto;
}
.to-top svg {
  width: 22px;
  height: 22px;
}
@media (max-width: 640px) {
  .callbar {
    display: flex;
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 55;
    background: var(--c-btn);
    color: var(--c-on-btn) !important;
    text-decoration: none;
    justify-content: center;
    align-items: center;
    gap: 8px;
    padding: 14px;
    font-weight: 800;
    padding-bottom: calc(14px + env(safe-area-inset-bottom, 0px));
  }
  .callbar svg {
    width: 20px;
    height: 20px;
  }
  .has-callbar {
    padding-bottom: 54px;
  }
  .has-callbar .to-top {
    bottom: 76px;
  }
}

/* ---------- reveal on scroll (enabled by Theme → animations) ---------- */
.anim .reveal {
  opacity: 0;
  transform: translateY(24px);
  transition:
    opacity 0.7s ease,
    transform 0.7s cubic-bezier(0.2, 0.7, 0.2, 1);
}
.anim .reveal.in {
  opacity: 1;
  transform: none;
}
@media (prefers-reduced-motion: reduce) {
  .anim .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }
}

/* ---------- 404 ---------- */
.nf {
  text-align: center;
  padding: clamp(80px, 12vw, 160px) 0;
}
.nf .big {
  font-family: var(--f-display);
  font-size: clamp(5rem, 16vw, 10rem);
  color: var(--c-primary);
  line-height: 1;
}
.nf .hero-actions {
  justify-content: center;
}
.site .nf p {
  margin: 1rem auto 0;
}

/* ---------- scrolling word strip ---------- */
.marquee {
  overflow: hidden;
  padding: 14px 0;
  --marquee-time: 36s;
}
.marquee-slow {
  --marquee-time: 60s;
}
.marquee-fast {
  --marquee-time: 22s;
}
.marquee-brand {
  background: var(--c-btn);
  color: var(--c-on-btn);
}
.marquee-dark {
  background: var(--c-dark);
  color: var(--c-on-dark);
}
.marquee-outline {
  border-block: 1px solid var(--c-line);
  color: var(--c-heading);
}
.marquee-track {
  display: flex;
  width: max-content;
  animation: marquee var(--marquee-time) linear infinite;
}
.marquee:hover .marquee-track {
  animation-play-state: paused;
}
.marquee-run {
  display: flex;
  flex: none;
}
.marquee-run span {
  display: flex;
  align-items: center;
  font-family: var(--f-display);
  font-weight: var(--w-display);
  font-size: 0.95rem;
  line-height: 1;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  white-space: nowrap;
}
.marquee-run span::after {
  content: '';
  width: 7px;
  height: 7px;
  margin: 0 22px;
  background: currentColor;
  opacity: 0.6;
  transform: rotate(45deg);
}
@keyframes marquee {
  to {
    transform: translateX(-50%);
  }
}
@media (prefers-reduced-motion: reduce) {
  .marquee-track {
    animation: none;
  }
}

/* menu items stay on one line (six items plus the phone button fit from 1100px up) */
.nav-links a {
  white-space: nowrap;
}
.hdr-call {
  white-space: nowrap;
}

/* text on a photo tile is always white */
.site .bento .b-photo .cap p {
  color: #fff;
}

/* highlighted words inside the call-to-action band: the band is already brand-coloured */
.site .cta-inner .o {
  color: #fff;
}
.site .cta-inner.dark .o {
  color: var(--c-primary-on-dark, var(--c-primary));
}

/* ---------- card slider ---------- */
.cslider-track {
  display: grid;
  grid-auto-flow: column;
  /* three cards and a slice of the fourth, so it is clear there is more */
  grid-auto-columns: calc((100% - 3 * 24px) / 3.25);
  gap: 24px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
  padding: 4px 4px 14px;
  margin: -4px -4px 0;
  outline: none;
}
.cslider-track::-webkit-scrollbar {
  display: none;
}
.cslider-track > * {
  scroll-snap-align: start;
  /* cards normally fade in on scroll; inside the slider they are simply there */
  opacity: 1 !important;
  transform: none !important;
}
.cslider-ctrl {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 10px;
}
.cslider-bar {
  flex: 1;
  height: 4px;
  margin-right: 8px;
  border-radius: 4px;
  background: color-mix(in srgb, var(--c-primary) 18%, transparent);
  overflow: hidden;
}
.cslider-bar span {
  display: block;
  width: 33.34%;
  height: 100%;
  border-radius: 4px;
  background: var(--c-primary);
  transition: transform 0.25s;
}
.cslider-btn {
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  border: 2px solid var(--c-primary);
  border-radius: 50%;
  background: var(--c-surface);
  color: var(--c-primary-deep);
  cursor: pointer;
  transition:
    background 0.15s,
    color 0.15s;
}
.cslider-btn svg {
  width: 20px;
  height: 20px;
}
.cslider-btn:hover:not(:disabled) {
  background: var(--c-btn);
  color: var(--c-on-btn);
}
.cslider-btn:disabled {
  opacity: 0.35;
  cursor: default;
}
.cslider-play {
  border-color: transparent;
  background: none;
}
@media (max-width: 1024px) {
  .cslider-track {
    grid-auto-columns: calc((100% - 2 * 20px) / 2.2);
    gap: 20px;
  }
}
@media (max-width: 640px) {
  .cslider-track {
    grid-auto-columns: 84%;
    gap: 14px;
  }
}

/* ---------- phone: the services grid stays compact ---------- */
@media (max-width: 560px) {
  .bento {
    grid-template-columns: 1fr 1fr;
    grid-auto-rows: auto;
    gap: 10px;
  }
  .bento .b-photo {
    grid-column: 1 / -1;
    min-height: 220px;
  }
  .bento .b-tile {
    padding: 14px;
  }
  .bento .b-tile .ico {
    width: 38px;
    height: 38px;
    margin-bottom: 10px;
  }
  .bento .b-tile h3 {
    font-size: 0.92rem;
  }
  .bento .b-tile p {
    display: none;
  }
}

/* phone: swiping moves the slider, so the arrows make room for the floating buttons */
@media (max-width: 640px) {
  .cslider-btn:not(.cslider-play) {
    display: none;
  }
  .cslider-bar {
    margin-right: 0;
  }
  .cslider-ctrl {
    padding-right: 64px;
  }
}

/* project page on a phone: photo, then the facts, then the write-up and gallery */
@media (max-width: 960px) {
  .detail-grid {
    grid-template-columns: minmax(0, 1fr);
    gap: 22px;
  }
  .detail-grid > div:first-child {
    display: contents;
  }
  .detail-grid .cover-img {
    order: -2;
  }
  .detail-grid .facts {
    order: -1;
    position: static;
    padding: 6px 18px 16px;
  }
  .detail-grid .facts dl {
    display: grid;
    grid-template-columns: 1fr 1fr;
    column-gap: 18px;
  }
  .detail-grid .facts dl div:nth-last-child(2):nth-child(odd) {
    border-bottom: 0;
  }
  .detail-grid .sub-title {
    margin-top: 6px;
  }
}

/* phone: the header already shows the logo, so the one in the hero is smaller; the three
   trust points sit side by side instead of stacking */
@media (max-width: 640px) {
  .heroC .heroC-word {
    max-width: 200px;
    height: auto;
  }
  .heroC .trust {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
    margin-top: 26px;
    padding-top: 18px;
  }
  .heroC .trust div {
    padding-right: 8px;
    margin-right: 0;
  }
  .heroC .trust b {
    font-size: 0.98rem;
  }
  .heroC .trust span {
    font-size: 0.78rem;
    line-height: 1.3;
    display: block;
  }
}

/* ---------- polish: readability, photos, rhythm ---------- */

/* small print is never below 13px */
.tag,
.pbadge,
.chip-n,
.pf-group legend,
.field label,
.crumb,
.facts dt,
.review small {
  font-size: max(0.8rem, 13px);
}
.pmeta {
  font-size: max(0.88rem, 14px);
}

/* review stars in the readable brand colour */
.stars {
  color: var(--c-primary-text);
}
.bg-dark .stars {
  color: var(--c-accent);
}

/* phone photos taken in different light sit together better slightly calmed down */
.pthumb img,
.gallery img,
.cover-img img,
.b-photo img,
.heroC-media img:not(.hero-badge) {
  filter: saturate(0.9) contrast(1.04);
}
/* cards answer to the pointer */
.pcard {
  transition:
    border-color 0.15s,
    box-shadow 0.2s,
    transform 0.2s;
}
.pthumb img {
  transition: transform 0.5s;
}
@media (hover: hover) {
  .pcard:hover {
    transform: translateY(-3px);
  }
  .pcard:hover .pthumb img {
    transform: scale(1.05);
  }
}

/* the numbers band: depth and a brand glow, with fine dividers */
.sec.bg-dark:has(.stats) {
  position: relative;
  overflow: hidden;
  background: linear-gradient(135deg, #1e2023, #2a2d31);
}
.sec.bg-dark:has(.stats)::before {
  content: '';
  position: absolute;
  right: -80px;
  top: -90px;
  width: 340px;
  height: 340px;
  border-radius: 50%;
  background: radial-gradient(circle, var(--c-primary), transparent 70%);
  opacity: 0.35;
  pointer-events: none;
}
.sec.bg-dark:has(.stats) .wrap {
  position: relative;
}
@media (min-width: 760px) {
  .bg-dark .stats > * + * {
    border-left: 1px solid rgba(255, 255, 255, 0.12);
  }
}

/* questions: two columns on a wide screen instead of a narrow list beside empty space */
@media (min-width: 900px) {
  .faq {
    max-width: none;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px 20px;
    align-items: start;
  }
  .faq details {
    margin-bottom: 0;
  }
}

@media (max-width: 640px) {
  /* short "why us" points: two per row instead of a tall stack */
  .cards:has(.card-icon) {
    grid-template-columns: 1fr 1fr;
    gap: 12px;
  }
  .cards .card-icon {
    padding: 16px;
  }
  .cards .card-icon h3 {
    font-size: 0.98rem;
  }
  .cards .card-icon p {
    font-size: 0.86rem;
    line-height: 1.5;
  }
  /* reviews: swipe sideways, the next one peeks in */
  .reviews {
    grid-template-columns: none;
    grid-auto-flow: column;
    grid-auto-columns: 86%;
    gap: 14px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
    padding-bottom: 6px;
  }
  .reviews::-webkit-scrollbar {
    display: none;
  }
  .reviews > * {
    scroll-snap-align: start;
  }
}

.site a.skip-link {
  color: var(--c-on-btn);
}

/* slider smoothness: cards that move carry no filter and no hover lift, the progress bar
   follows the scroll directly, and each card is its own paint area */
.cslider-track .pthumb img {
  filter: none;
}
.cslider-track .pcard,
.cslider-track .pcard:hover {
  transform: none;
}
.cslider-track > * {
  contain: layout paint;
}
.cslider-bar span {
  transition: none;
  will-change: transform;
}

/* ---------- services as equal photo cards ---------- */
.svc-cards {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 18px;
}
.svc-card {
  display: flex;
  flex-direction: column;
  height: 100%;
  background: var(--c-surface);
  border: 1px solid var(--c-line);
  border-radius: var(--r-lg);
  overflow: hidden;
  text-decoration: none;
  transition:
    border-color 0.15s,
    box-shadow 0.2s,
    transform 0.2s;
}
.svc-photo {
  position: relative;
  display: block;
  aspect-ratio: 4 / 3;
  background: var(--c-alt);
}
.svc-photo img {
  object-fit: cover;
  transition: transform 0.5s;
}
.svc-photo .ico {
  position: absolute;
  left: 14px;
  bottom: -20px;
  z-index: 1;
  width: 44px;
  height: 44px;
  background: var(--c-surface);
  color: var(--c-primary);
  box-shadow: 0 4px 14px rgb(0 0 0 / 0.14);
}
.svc-body {
  display: flex;
  flex-direction: column;
  flex: 1;
  gap: 6px;
  padding: 30px 16px 16px;
}
.svc-body strong {
  font-family: var(--f-display);
  font-weight: var(--w-display);
  font-size: 1.02rem;
  line-height: 1.2;
  color: var(--c-heading);
}
.svc-text {
  color: var(--c-muted);
  font-size: 0.9rem;
  line-height: 1.5;
}
.svc-go {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: auto;
  padding-top: 8px;
  font-weight: 700;
  font-size: 0.9rem;
  color: var(--c-primary-text);
}
.svc-go svg {
  width: 16px;
  height: 16px;
  transition: transform 0.15s;
}
@media (hover: hover) {
  .svc-card:hover {
    border-color: var(--c-primary);
    box-shadow: 0 14px 34px color-mix(in srgb, var(--c-primary-deep) 14%, transparent);
    transform: translateY(-3px);
  }
  .svc-card:hover .svc-photo img {
    transform: scale(1.05);
  }
  .svc-card:hover .svc-go svg {
    transform: translateX(3px);
  }
}
@media (max-width: 1100px) {
  .svc-cards {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}
@media (max-width: 640px) {
  .svc-cards {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
  }
  .svc-photo .ico {
    width: 38px;
    height: 38px;
    left: 12px;
    bottom: -17px;
  }
  .svc-body {
    padding: 26px 12px 12px;
  }
  .svc-body strong {
    font-size: 0.95rem;
  }
  /* the name and where it leads are enough on a small screen */
  .svc-text {
    display: none;
  }
  .svc-go {
    font-size: 0.84rem;
  }
}

/* ---------- project filters, toolbar ---------- */
.pf-strip {
  position: sticky;
  top: 80px;
  z-index: 25;
  background: color-mix(in srgb, var(--c-bg) 94%, transparent);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--c-line);
}
.no-sticky .pf-strip {
  top: 0;
}
.pf-line {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 72px;
}
.pf-tools {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}
.pf-dd {
  position: relative;
}
.pf-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  padding: 0 14px 0 18px;
  border: 1.5px solid var(--c-line);
  border-radius: 40px;
  background: var(--c-surface);
  color: var(--c-heading);
  font: inherit;
  font-weight: 700;
  font-size: 0.95rem;
  cursor: pointer;
  transition:
    border-color 0.15s,
    background 0.15s;
}
.pf-btn:hover,
.pf-dd.open .pf-btn {
  border-color: var(--c-primary);
}
.pf-btn svg {
  width: 16px;
  height: 16px;
  color: var(--c-muted);
  transition: transform 0.15s;
}
.pf-dd.open .pf-btn svg {
  transform: rotate(180deg);
}
.pf-btn.is-set {
  background: var(--c-tint);
  border-color: var(--c-primary);
}
.pf-btn-val {
  max-width: 190px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-weight: 600;
  color: var(--c-primary-deep);
}
.pf-btn.is-set .pf-btn-name::after {
  content: ':';
}
.pf-pop {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  z-index: 40;
  width: 320px;
  background: var(--c-surface);
  border: 1px solid var(--c-line);
  border-radius: var(--r-lg);
  box-shadow: 0 22px 50px rgb(0 0 0 / 0.16);
  overflow: hidden;
  animation: pf-in 0.14s ease-out;
}
@keyframes pf-in {
  from {
    opacity: 0;
    transform: translateY(-6px);
  }
}
.pf-pop-body {
  max-height: min(420px, 60vh);
  overflow-y: auto;
  padding: 8px;
}
.pf-pop-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 10px 12px;
  border-top: 1px solid var(--c-line);
  background: var(--c-alt);
}
.pf-pop-foot .btn {
  padding: 0.6em 1.2em;
}
.pf-opt {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  min-height: 44px;
  padding: 8px 10px;
  border: 0;
  border-radius: 8px;
  background: none;
  color: var(--c-text);
  font: inherit;
  font-size: 0.95rem;
  text-align: left;
  cursor: pointer;
}
.pf-opt:hover:not(:disabled) {
  background: var(--c-alt);
}
.pf-opt:disabled {
  opacity: 0.4;
  cursor: not-allowed;
}
.pf-box {
  display: grid;
  place-items: center;
  flex: none;
  width: 22px;
  height: 22px;
  border: 2px solid var(--c-line);
  border-radius: 6px;
  background: var(--c-surface);
  color: #fff;
}
.pf-radio .pf-box {
  border-radius: 50%;
}
.pf-opt[aria-checked='true'] .pf-box {
  background: var(--c-btn);
  border-color: var(--c-btn);
}
.pf-box svg {
  width: 14px;
  height: 14px;
}
.pf-opt-label {
  flex: 1;
}
.pf-opt[aria-checked='true'] .pf-opt-label {
  font-weight: 700;
  color: var(--c-heading);
}
.pf-opt-n {
  min-width: 26px;
  padding: 1px 7px;
  border-radius: 20px;
  background: var(--c-alt);
  color: var(--c-muted);
  font-size: 0.82rem;
  font-weight: 700;
  text-align: center;
}
.pf-area {
  display: grid;
  gap: 12px;
  padding: 8px 6px 10px;
}
.pf-area label {
  font-weight: 600;
  color: var(--c-muted);
}
.pf-clear {
  margin-left: 4px;
}
.pf-result {
  margin: 0 0 0 auto;
  color: var(--c-muted);
  white-space: nowrap;
}
.pf-result strong {
  color: var(--c-heading);
}
.pf-sort {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.9rem;
  color: var(--c-muted);
}
.pf-sort select {
  appearance: none;
  -webkit-appearance: none;
  font: inherit;
  font-weight: 600;
  color: var(--c-text);
  background: var(--c-surface);
  border: 1.5px solid var(--c-line);
  border-radius: 40px;
  min-height: 44px;
  padding: 0 1em;
  cursor: pointer;
}
.pf-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  list-style: none;
  margin: 16px 0 0;
  padding: 0;
}
.pf-pills button {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 34px;
  padding: 0 10px 0 14px;
  border: 0;
  border-radius: 40px;
  background: var(--c-tint);
  color: var(--c-primary-deep);
  font: inherit;
  font-size: 0.88rem;
  font-weight: 600;
  cursor: pointer;
}
.pf-pills button:hover {
  background: color-mix(in srgb, var(--c-primary) 22%, var(--c-bg));
}
.pf-pills svg {
  width: 14px;
  height: 14px;
}
.pf + * .proj-grid,
.pf .proj-grid {
  margin-top: 24px;
}
.pf-open,
.pf-sheet,
.pf-backdrop {
  display: none;
}
.pcard .tags {
  min-height: 30px;
}

@media (max-width: 820px) {
  .pf-tools {
    display: none;
  }
  .pf-line {
    min-height: 64px;
    gap: 10px;
  }
  .pf-open {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    min-height: 44px;
    padding: 0 1.1em;
    border: 1.5px solid var(--c-primary);
    border-radius: 40px;
    background: var(--c-surface);
    color: var(--c-primary-deep);
    font: inherit;
    font-weight: 700;
    cursor: pointer;
  }
  .pf-open svg {
    width: 18px;
    height: 18px;
  }
  .pf-n {
    min-width: 22px;
    padding: 0 6px;
    border-radius: 20px;
    background: var(--c-btn);
    color: var(--c-on-btn);
    font-size: 0.8rem;
    line-height: 22px;
    text-align: center;
  }
  .pf-result {
    font-size: 0.9rem;
  }
  .pf-sort label {
    display: none;
  }
  .pf-sort select {
    max-width: 128px;
    font-size: 0.88rem;
  }
  .pf-sheet {
    display: block;
    position: fixed;
    inset: auto 0 0 0;
    z-index: 130;
    max-height: 88vh;
    max-height: 88dvh;
    overflow-y: auto;
    overscroll-behavior: contain;
    background: var(--c-bg);
    border-radius: 18px 18px 0 0;
    box-shadow: 0 -18px 50px rgb(0 0 0 / 0.25);
    transform: translateY(105%);
    visibility: hidden;
    transition:
      transform 0.25s ease,
      visibility 0.25s;
  }
  .pf-sheet.open {
    transform: none;
    visibility: visible;
  }
  .pf-backdrop {
    display: block;
    position: fixed;
    inset: 0;
    z-index: 120;
    background: rgb(0 0 0 / 0.45);
  }
  body.pf-lock {
    overflow: hidden;
  }
  .pf-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    position: sticky;
    top: 0;
    z-index: 1;
    background: var(--c-bg);
    padding: 16px 0 12px;
    border-bottom: 1px solid var(--c-line);
    font-family: var(--f-display);
    font-size: 1.1rem;
    text-transform: uppercase;
  }
  .pf-head button {
    display: grid;
    place-items: center;
    width: 44px;
    height: 44px;
    margin-right: -10px;
    border: 0;
    background: none;
    color: var(--c-heading);
    cursor: pointer;
  }
  .pf-head svg {
    width: 22px;
    height: 22px;
  }
  .pf-group {
    padding: 16px 0 6px;
    border-bottom: 1px solid var(--c-line);
  }
  .pf-group h3 {
    margin: 0 0 6px;
    font-size: 0.82rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
  }
  .pf-group .pf-area {
    padding: 4px 0 12px;
  }
  .pf-foot {
    display: flex;
    gap: 10px;
    position: sticky;
    bottom: 0;
    background: var(--c-bg);
    padding: 12px 0 calc(12px + env(safe-area-inset-bottom, 0px));
  }
  .pf-foot .btn {
    flex: 1;
    justify-content: center;
  }
  .pf-foot .btn-outline {
    flex: 0 0 auto;
  }
}
@media (max-width: 440px) {
  .pf-result {
    margin-left: 0;
    font-size: 0.84rem;
  }
  .pf-result span {
    display: none;
  }
  .pf-sort {
    margin-left: auto;
  }
}

/* ---------- map: a drawn street pattern until the real map is asked for ---------- */
.map-embed:not(.is-live) {
  aspect-ratio: auto;
  min-height: 240px;
  background-color: #eeeae5;
  background-image:
    linear-gradient(90deg, transparent 0 46%, #fff 46% 48%, transparent 48%),
    linear-gradient(0deg, transparent 0 58%, #fff 58% 60.5%, transparent 60.5%),
    linear-gradient(28deg, transparent 0 70%, #f6efe6 70% 71.5%, transparent 71.5%),
    repeating-linear-gradient(90deg, transparent 0 78px, rgb(255 255 255 / 0.65) 78px 80px),
    repeating-linear-gradient(0deg, transparent 0 62px, rgb(255 255 255 / 0.65) 62px 64px);
}
.map-card {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
  margin: 24px;
  padding: 18px 20px;
  background: var(--c-surface);
  border-radius: var(--r-lg);
  box-shadow: 0 16px 40px rgb(0 0 0 / 0.14);
}
.map-card > div:first-of-type {
  display: grid;
  gap: 2px;
  flex: 1 1 220px;
}
.map-card strong {
  font-family: var(--f-display);
  font-weight: var(--w-display);
  text-transform: uppercase;
  color: var(--c-heading);
}
.map-card span {
  color: var(--c-muted);
}
.map-pin {
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--c-btn);
  color: var(--c-on-btn);
  flex: none;
}
.map-pin svg {
  width: 24px;
  height: 24px;
}
.map-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

/* ---------- home hero on a phone: the work photo comes first ---------- */
@media (max-width: 640px) {
  /* the header already carries the logo */
  .heroC .heroC-word {
    display: none;
  }
  .heroC .trust b {
    font-size: 0.9rem;
  }
  .heroC .trust span {
    font-size: 0.75rem;
  }
  .heroC .hero-actions .btn {
    flex: 1 1 auto;
    justify-content: center;
  }
}

/* ---------- touch: every tap target at least 44px tall ---------- */
@media (pointer: coarse) {
  .brand,
  .f-logo {
    display: inline-flex;
    align-items: center;
    min-height: 44px;
  }
  .crumb a {
    display: inline-block;
    padding: 13px 4px;
    margin: -13px -4px;
  }
  .site-footer li a {
    display: inline-flex;
    align-items: center;
    min-height: 44px;
  }
  .site-footer li {
    margin: 0;
  }
  .social a {
    width: 44px;
    height: 44px;
  }
  .towns li,
  .towns li > *,
  .chips .chip,
  .chip {
    min-height: 44px;
  }
  .towns li > * {
    display: inline-flex;
    align-items: center;
  }
  .heroC-card a,
  .info-card a,
  .facts a,
  .pmeta a {
    display: inline-flex;
    align-items: center;
    min-height: 44px;
  }
  .tags .tag[href] {
    display: inline-flex;
    align-items: center;
    min-height: 36px;
  }
}

/* ---------- phone: services as a compact list with a thumbnail ---------- */
@media (max-width: 640px) {
  .svc-cards {
    grid-template-columns: 1fr;
    gap: 10px;
  }
  .svc-card {
    flex-direction: row;
    align-items: stretch;
    min-height: 84px;
  }
  .svc-photo {
    flex: 0 0 96px;
    aspect-ratio: auto;
  }
  .svc-photo .ico {
    display: none;
  }
  .svc-body {
    justify-content: center;
    gap: 4px;
    padding: 12px 14px;
  }
  .svc-body strong {
    font-size: 1rem;
  }
  .svc-go {
    margin-top: 0;
    padding-top: 0;
  }
}

/* ---------- phone: the four steps as a compact timeline ---------- */
@media (max-width: 520px) {
  .steps {
    gap: 0;
  }
  .steps li {
    padding: 0 0 22px 62px;
    min-height: 46px;
  }
  .steps li::after {
    display: block;
    top: 50px;
    bottom: 4px;
    left: 22px;
    right: auto;
    width: 3px;
    height: auto;
    background: repeating-linear-gradient(180deg, var(--c-primary) 0 10px, transparent 10px 18px);
  }
  .steps li:last-child {
    padding-bottom: 0;
  }
  .steps li:last-child::after {
    display: none;
  }
  .steps h3 {
    padding-top: 11px;
  }
  .steps p {
    margin-top: 0.25rem;
  }
}

/* ---------- phone: a shorter footer ---------- */
@media (max-width: 640px) {
  .fgrid {
    gap: 22px 18px;
  }
  .site-footer .f-about {
    margin-bottom: 0;
  }
}

/* ---------- bento: small tiles carry their service photo ---------- */
.b-tile.has-photo {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  min-height: 180px;
  background: #1e2023;
  color: #fff;
}
.b-tile.has-photo .b-tile-bg {
  z-index: -2;
  object-fit: cover;
  transition: transform 0.5s;
}
/* darker towards the bottom where the words sit; the large tiles keep the orange wash */
.b-tile.has-photo::after {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(
    180deg,
    rgb(20 20 20 / 0.15) 0%,
    rgb(20 20 20 / 0.55) 45%,
    rgb(20 20 20 / 0.88) 100%
  );
  transition: background 0.2s;
}
.b-tile.has-photo .ico {
  position: absolute;
  top: 18px;
  left: 18px;
  margin: 0;
}
.site .b-tile.has-photo h3 {
  color: #fff;
  text-shadow: 0 1px 8px rgb(0 0 0 / 0.35);
}
.site .bento .b-tile.has-photo p {
  color: rgb(255 255 255 / 0.9);
}
.b-tile.has-photo:hover {
  background: #1e2023;
}
.b-tile.has-photo:hover .b-tile-bg {
  transform: scale(1.06);
}
.b-tile.has-photo:hover::after {
  background: linear-gradient(
    180deg,
    color-mix(in srgb, var(--c-primary-deep) 10%, transparent) 0%,
    color-mix(in srgb, var(--c-primary-deep) 55%, rgb(20 20 20 / 0.6)) 50%,
    color-mix(in srgb, var(--c-primary-deep) 85%, #141414) 100%
  );
}
@media (max-width: 560px) {
  .bento .b-tile.has-photo {
    min-height: 130px;
    padding: 12px;
  }
  .bento .b-tile.has-photo .ico {
    top: 12px;
    left: 12px;
  }
}
