html { scroll-behavior: smooth; scroll-padding-top: 5.75rem; }

/* Closer fallback metrics so Outfit swap does not “zoom” text */
@font-face {
  font-family: "Outfit Fallback";
  src: local("Arial"), local("Helvetica Neue"), local("Helvetica");
  size-adjust: 105%;
  ascent-override: 95%;
  descent-override: 22%;
  line-gap-override: 0%;
}

body,
button,
input,
select,
textarea {
  font-family: Outfit, "Outfit Fallback", system-ui, sans-serif;
  font-size: 17px;
  line-height: 1.65;
  font-weight: 400;
  color: #111111;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}
::selection { background: #111111; color: #f4f1ea; }
/* Headlines + subheadings use Outfit (same family as body / screenshot) */
.font-serif,
.svc-hero-title,
.svc-section-title,
.section-heading,
.hero-title,
.footer-guarantee-text,
.value-num,
.work-row-title,
.work-compact-heading,
.trust-compact-heading,
h1,
h2,
h3 {
  font-family: Outfit, "Outfit Fallback", system-ui, sans-serif !important;
  font-weight: 500 !important;
  letter-spacing: -0.02em;
}
.grain {
  pointer-events: none;
  position: fixed;
  inset: 0;
  z-index: 40;
  opacity: 0.035;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}
.reveal { opacity: 1; transform: none; }
/* Only hide below-fold reveals (marked .reveal-pending by site.js) — avoids hard-refresh zoom blink */
html.js .reveal.reveal-pending {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity 0.65s cubic-bezier(0.22, 1, 0.36, 1), transform 0.65s cubic-bezier(0.22, 1, 0.36, 1);
}
html.js .reveal.reveal-pending.in {
  opacity: 1;
  transform: none;
}
@media (prefers-reduced-motion: reduce) {
  html.js .reveal.reveal-pending {
    opacity: 1;
    transform: none;
    transition: none;
  }
}
.nav-blur {
  background: rgba(244, 241, 234, 0.78);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
}

#site-header {
  background: rgba(17, 17, 17, 0.96);
  border-color: rgba(255, 255, 255, 0.1);
  color: #f5f1e8;
  backdrop-filter: blur(18px) saturate(1.2);
  -webkit-backdrop-filter: blur(18px) saturate(1.2);
  transition: background 0.35s ease, border-color 0.35s ease, box-shadow 0.35s ease;
}
#site-header.is-stuck,
#site-header.is-menu-open.is-stuck,
#site-header.is-menu-open:not(.is-stuck) {
  background: rgba(17, 17, 17, 0.98);
  border-color: rgba(255, 255, 255, 0.1);
  box-shadow: 0 12px 40px -28px rgba(0, 0, 0, 0.35);
}
#site-header .header-cta {
  background: #f5f1e8;
  color: #111111;
}
#site-header .header-mark {
  background: #f5f1e8;
  color: #111111;
}
#site-header #menu-btn {
  border-color: rgba(255, 255, 255, 0.2);
}
#site-header #mobile-menu a.rounded-full,
#site-header #mobile-menu .mobile-menu-cta {
  background: #f5f1e8;
  color: #111111;
}
#site-header .nav-drop-item:hover,
#site-header .nav-drop-item:focus-visible {
  background: rgba(17, 17, 17, 0.06);
  color: #111111;
}
#site-header #mobile-menu {
  background: rgba(14, 14, 14, 0.985);
}

.nav-link {
  position: relative;
  transition: opacity 0.3s ease-in-out, color 0.3s ease-in-out;
}
.nav-link::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -6px;
  height: 1px;
  background: currentColor;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.3s ease-in-out;
}
.nav-link:hover::after,
.nav-link.is-active::after {
  transform: scaleX(1);
}
input:focus, select:focus, textarea:focus {
  outline: none;
  box-shadow: 0 0 0 3px rgba(17,17,17,0.12);
  border-color: #111111;
}
.star { color: #00b67a; }
details summary { list-style: none; cursor: pointer; }
details summary::-webkit-details-marker { display: none; }
details[open] summary span:last-child { transform: rotate(45deg); }
details summary span:last-child { display: inline-block; transition: transform 0.2s ease; }

.nav-drop-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
}
.nav-drop-caret {
  transition: transform 0.22s ease;
}
.nav-drop.is-open .nav-drop-caret,
.nav-drop:hover .nav-drop-caret {
  transform: rotate(180deg);
}
.nav-drop-menu {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: translateX(-50%) translateY(12px) scale(0.97);
  transform-origin: top center;
  transition: opacity 0.22s ease, transform 0.22s cubic-bezier(0.22, 1, 0.36, 1), visibility 0.22s ease;
}
.nav-drop.is-open .nav-drop-menu,
.nav-drop:hover .nav-drop-menu,
.nav-drop:focus-within .nav-drop-menu {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translateX(-50%) translateY(0) scale(1);
}
.nav-drop-panel {
  position: relative;
  border: 1px solid rgba(17, 17, 17, 0.1);
  background: rgba(255, 255, 255, 0.97);
  box-shadow: 0 24px 60px -28px rgba(17, 17, 17, 0.45);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
}
.nav-drop-item {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  padding: 0.85rem 0.9rem;
  border-radius: 1rem;
  color: #111111;
  text-decoration: none;
  transition: background 0.2s ease, color 0.2s ease;
}
.nav-drop-item:hover,
.nav-drop-item:focus-visible {
  background: #111111;
  color: #f4f1ea;
  outline: none;
}
.nav-drop-num {
  display: none;
}
.nav-drop-name {
  flex: 1;
  font-size: 0.9rem;
  font-weight: 500;
  letter-spacing: -0.015em;
  line-height: 1.3;
}
.nav-drop-arrow {
  opacity: 0;
  transform: translateX(-6px);
  transition: opacity 0.2s ease, transform 0.2s ease;
  font-size: 0.95rem;
}
.nav-drop-item:hover .nav-drop-arrow,
.nav-drop-item:focus-visible .nav-drop-arrow {
  opacity: 1;
  transform: translateX(0);
}

/* —— Premium mobile menu —— */
html.nav-locked {
  overflow: hidden;
}

/* Skip menu close animation when leaving for another page */
html.is-navigating #mobile-menu,
html.is-navigating #mobile-menu .mobile-menu-item,
html.is-navigating .mobile-services,
html.is-navigating .mobile-services-caret,
html.is-navigating .nav-drop-menu,
html.is-navigating #menu-btn,
html.is-navigating #menu-btn svg {
  transition: none !important;
  animation: none !important;
}
html.is-navigating #mobile-menu {
  opacity: 0 !important;
  visibility: hidden !important;
  pointer-events: none !important;
  grid-template-rows: 0fr !important;
}
html.is-navigating .nav-drop-menu {
  opacity: 0 !important;
  visibility: hidden !important;
  pointer-events: none !important;
}

#menu-btn {
  position: relative;
  overflow: hidden;
  transition: border-color 0.3s ease, background 0.3s ease, transform 0.3s cubic-bezier(0.22, 1, 0.36, 1);
}
#menu-btn:active {
  transform: scale(0.94);
}
#menu-btn[aria-expanded="true"] {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.35);
}
#menu-btn svg {
  transition: opacity 0.28s ease, transform 0.35s cubic-bezier(0.22, 1, 0.36, 1);
}
#menu-btn[aria-expanded="true"] #icon-open {
  opacity: 0;
  transform: rotate(90deg) scale(0.55);
}
#menu-btn[aria-expanded="false"] #icon-close {
  opacity: 0;
  transform: rotate(-90deg) scale(0.55);
}

#mobile-menu.mobile-menu,
#mobile-menu {
  display: grid;
  grid-template-rows: 0fr;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  border-top: 1px solid transparent;
  background: rgba(14, 14, 14, 0.985);
  transition:
    grid-template-rows 0.48s cubic-bezier(0.22, 1, 0.36, 1),
    opacity 0.32s ease,
    visibility 0.32s ease,
    border-color 0.32s ease;
}
#mobile-menu.is-open {
  grid-template-rows: 1fr;
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  border-top-color: rgba(255, 255, 255, 0.12);
}
#mobile-menu .mobile-menu-inner {
  overflow: hidden;
  min-height: 0;
}
#mobile-menu .mobile-menu-nav {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
  padding: 0.85rem 1.25rem 1.35rem;
}
#mobile-menu .mobile-menu-item {
  opacity: 0;
  transform: translateY(12px);
  transition:
    opacity 0.4s cubic-bezier(0.22, 1, 0.36, 1),
    transform 0.45s cubic-bezier(0.22, 1, 0.36, 1);
}
#mobile-menu.is-open .mobile-menu-item {
  opacity: 1;
  transform: translateY(0);
}
#mobile-menu.is-open .mobile-menu-item:nth-child(1) { transition-delay: 0.06s; }
#mobile-menu.is-open .mobile-menu-item:nth-child(2) { transition-delay: 0.1s; }
#mobile-menu.is-open .mobile-menu-item:nth-child(3) { transition-delay: 0.14s; }
#mobile-menu.is-open .mobile-menu-item:nth-child(4) { transition-delay: 0.18s; }
#mobile-menu.is-open .mobile-menu-item:nth-child(5) { transition-delay: 0.22s; }
#mobile-menu.is-open .mobile-menu-item:nth-child(6) { transition-delay: 0.26s; }

#mobile-menu .mobile-link:not(.nav-drop-item):not(.mobile-menu-cta),
#mobile-menu .mobile-services-btn {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  padding: 0.85rem 0.15rem;
  border: 0;
  background: transparent;
  color: inherit;
  font: inherit;
  text-align: left;
  text-decoration: none;
  letter-spacing: -0.01em;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  transition: color 0.25s ease, padding-left 0.25s ease, opacity 0.25s ease;
}
#mobile-menu .mobile-link:not(.nav-drop-item):not(.mobile-menu-cta):hover,
#mobile-menu .mobile-services-btn:hover {
  color: #fff;
  padding-left: 0.35rem;
}
#mobile-menu .mobile-menu-cta {
  margin-top: 0.85rem;
  border: 0 !important;
  border-radius: 999px;
  background: #f5f1e8;
  color: #111 !important;
  text-align: center;
  justify-content: center;
  padding: 0.85rem 1.25rem !important;
  font-weight: 500;
  letter-spacing: -0.01em;
  box-shadow: 0 10px 28px -18px rgba(0, 0, 0, 0.55);
  transition: transform 0.3s cubic-bezier(0.22, 1, 0.36, 1), opacity 0.25s ease;
}
#mobile-menu .mobile-menu-cta:hover {
  transform: translateY(-1px);
}

.mobile-services {
  display: grid;
  grid-template-rows: 0fr;
  margin: 0;
  transition: grid-template-rows 0.42s cubic-bezier(0.22, 1, 0.36, 1);
}
.mobile-services.is-open {
  grid-template-rows: 1fr;
  margin-bottom: 0.35rem;
}
.mobile-services-clip {
  overflow: hidden;
  min-height: 0;
}
.mobile-services-caret {
  display: inline-flex;
  transition: transform 0.35s cubic-bezier(0.22, 1, 0.36, 1);
  opacity: 0.7;
}
.mobile-services-btn[aria-expanded="true"] .mobile-services-caret {
  transform: rotate(180deg);
  opacity: 1;
}
#mobile-menu .mobile-services .nav-drop-panel {
  margin: 0.35rem 0 0.55rem;
  border-radius: 1.15rem;
  border-color: rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.97);
  box-shadow: 0 18px 40px -24px rgba(0, 0, 0, 0.55);
}
#mobile-menu .nav-drop-num {
  display: inline-block;
  min-width: 1.5rem;
  font-size: 0.68rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  color: rgba(17, 17, 17, 0.38);
  font-variant-numeric: tabular-nums;
}
#mobile-menu .nav-drop-item {
  padding: 0.78rem 0.85rem;
  border-radius: 0.85rem;
  transition: background 0.22s ease, transform 0.22s ease, color 0.22s ease;
}
#mobile-menu .nav-drop-item:active {
  transform: scale(0.985);
}
.nav-drop-item[aria-current="page"] {
  background: rgba(17, 17, 17, 0.06);
}
.mobile-services .nav-drop-panel::before {
  display: none;
}

@media (prefers-reduced-motion: reduce) {
  #mobile-menu,
  #mobile-menu .mobile-menu-item,
  .mobile-services,
  .mobile-services-caret,
  #menu-btn,
  #menu-btn svg {
    transition: none !important;
  }
  #mobile-menu .mobile-menu-item {
    opacity: 1;
    transform: none;
  }
}

@media (min-width: 768px) {
  #mobile-menu.mobile-menu,
  #mobile-menu {
    display: none !important;
  }
}

.cat-rail {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.2rem;
}
.cat-card {
  position: relative;
  overflow: hidden;
  border-radius: 1.5rem;
  border: 1px solid rgba(17, 17, 17, 0.12);
  background: rgba(255, 255, 255, 0.7);
  box-shadow: 0 12px 40px -18px rgba(17, 17, 17, 0.18);
  transition: transform 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
}
.cat-card::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 1px;
  z-index: 2;
  background: linear-gradient(90deg, transparent, rgba(17, 17, 17, 0.35), transparent);
  opacity: 0;
  transition: opacity 0.3s ease;
}
.cat-card:hover {
  transform: translateY(-5px);
  border-color: rgba(17, 17, 17, 0.28);
  box-shadow: 0 20px 50px -24px rgba(17, 17, 17, 0.28);
}
.cat-card:hover::before { opacity: 1; }
.cat-card figure {
  position: relative;
  aspect-ratio: 5 / 2;
  overflow: hidden;
}
.cat-card img {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
  transform: translate3d(0, 0, 0);
  will-change: transform;
  transition: transform 0.7s cubic-bezier(0.22, 1, 0.36, 1);
}
.cat-card:hover img { transform: translate3d(0, 0, 0) scale(1.04); }
.cat-card .link-arrow::after {
  content: "→";
  display: inline-block;
  margin-left: 0.35rem;
  transition: transform 0.2s ease;
}
.cat-card:hover .link-arrow::after { transform: translateX(4px); }
.rail-hint {
  display: none;
}
.rail-dots {
  display: none;
}

.review-slider {
  position: relative;
}
.review-rail {
  display: flex;
  gap: 0.9rem;
  overflow-x: auto;
  overflow-y: hidden;
  scroll-snap-type: x mandatory;
  scroll-padding-inline: 1.25rem;
  margin-inline: -1.25rem;
  padding: 0.2rem 1.25rem 0.5rem;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior-x: contain;
}
.review-rail::-webkit-scrollbar { display: none; }
.review-rail > * {
  flex: 0 0 86%;
  scroll-snap-align: start;
  min-width: 0;
}
.review-rail > .reveal {
  opacity: 1;
  transform: none;
  transition: none;
}
.review-nav {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 0.55rem;
  margin-top: 1rem;
}
.review-slider.is-static .review-nav {
  display: none;
}
.review-arrow {
  display: grid;
  place-items: center;
  width: 2.75rem;
  height: 2.75rem;
  padding: 0;
  border-radius: 999px;
  border: 1px solid rgba(244, 241, 234, 0.18);
  background: transparent;
  color: #f4f1ea;
  cursor: pointer;
  appearance: none;
  -webkit-appearance: none;
  transition: background 0.22s ease, opacity 0.22s ease, transform 0.22s ease, border-color 0.22s ease;
}
.review-arrow svg {
  width: 1.15rem;
  height: 1.15rem;
}
.review-arrow:hover:not(:disabled) {
  background: rgba(244, 241, 234, 0.1);
  transform: scale(1.05);
}
.review-arrow:disabled {
  opacity: 0.28;
  cursor: default;
}
.review-slider-light .review-nav {
  padding: 0 1.5rem 1.25rem;
}
.review-slider-light .review-arrow {
  border-color: rgba(17, 17, 17, 0.16);
  color: #111111;
}
.review-slider-light .review-arrow:hover:not(:disabled) {
  background: rgba(17, 17, 17, 0.06);
}
.review-rail-light {
  margin-inline: 0;
  padding-inline: 0;
  scroll-padding-inline: 0;
}
.review-rail-light > * {
  border: 1px solid rgba(17, 17, 17, 0.12);
  border-radius: 1.25rem;
}
@media (min-width: 768px) {
  .review-rail > * { flex-basis: 48%; }
  .review-arrow { width: 3rem; height: 3rem; }
  .review-slider-light .review-nav { padding-inline: 2rem; }
}
@media (min-width: 1024px) {
  .review-rail {
    margin-inline: 0;
    padding-inline: 0;
    scroll-padding-inline: 0;
  }
  .review-rail > * { flex-basis: 38%; }
}

@media (min-width: 768px) {
  .cat-rail {
    grid-template-columns: repeat(2, 1fr);
    gap: 1.2rem;
  }
}

@media (max-width: 767px) {
  .cat-rail {
    display: flex;
    gap: 0.8rem;
    overflow-x: auto;
    overflow-y: hidden;
    scroll-snap-type: x mandatory;
    scroll-padding-left: 1.25rem;
    margin-inline: -1.25rem;
    padding: 0.25rem 1.25rem 0.6rem;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
    overscroll-behavior-x: contain;
  }
  .cat-rail::-webkit-scrollbar { display: none; }
  .cat-rail > * {
    flex: 0 0 82%;
    scroll-snap-align: start;
  }
  .cat-rail > .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }
  .rail-hint {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    margin-top: 1rem;
    font-size: 0.74rem;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: rgba(17, 17, 17, 0.4);
  }
  .rail-hint span {
    animation: nudge 1.9s ease-in-out infinite;
  }
  @keyframes nudge {
    0%, 100% { transform: translateX(0); }
    50% { transform: translateX(5px); }
  }
  .rail-dots {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.1rem;
    margin-top: 0.9rem;
  }
  .rail-dot {
    display: grid;
    place-items: center;
    width: 24px;
    height: 24px;
    padding: 0;
    border: 0;
    background: none;
    cursor: pointer;
  }
  .rail-dot::before {
    content: "";
    width: 7px;
    height: 7px;
    border-radius: 999px;
    background: rgba(17, 17, 17, 0.22);
    transition: width 0.28s ease, background 0.28s ease;
  }
  .rail-dot.is-active::before {
    width: 20px;
    background: #111111;
  }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  html.js .reveal {
    opacity: 1;
    transform: none;
    transition: none !important;
  }
  .reveal,
  .cat-card,
  .cat-card img,
  .cat-card .link-arrow::after,
  .rail-hint span {
    animation: none !important;
    transition: none !important;
  }
  .cat-card:hover { transform: none; }
}

/* Footer */
.site-footer { border-top: 1px solid rgba(255, 255, 255, 0.1); }
.footer-top {
  display: grid;
  gap: 2.5rem;
}
@media (min-width: 768px) {
  .footer-top {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 2.5rem;
  }
}
@media (min-width: 1024px) {
  .footer-top {
    grid-template-columns: 1.4fr repeat(3, minmax(0, 1fr));
    gap: 2.5rem;
    align-items: start;
  }
}
.footer-ownership {
  list-style: none;
  padding: 0;
  margin: 0.85rem 0 0;
}
.footer-ownership li {
  font-size: 0.875rem;
  line-height: 1.65;
  color: rgba(245, 241, 232, 0.55);
}
.footer-logo {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  font-size: 1.05rem;
  font-weight: 400;
  color: #f4f1ea;
  transition: transform 0.35s cubic-bezier(0.22, 1, 0.36, 1), opacity 0.3s ease;
}
.footer-logo:hover {
  opacity: 1;
  transform: translateY(-1px);
}
.footer-mark {
  display: grid;
  place-items: center;
  width: 2rem;
  height: 2rem;
  border-radius: 0.5rem;
  background: rgba(255, 255, 255, 0.12);
  font-size: 0.68rem;
  font-weight: 400;
  letter-spacing: 0.04em;
  transition: background 0.35s ease, transform 0.35s cubic-bezier(0.22, 1, 0.36, 1);
}
.footer-logo:hover .footer-mark {
  background: rgba(255, 255, 255, 0.22);
  transform: scale(1.06);
}
.footer-tagline {
  margin-top: 0.75rem;
  max-width: 22rem;
  font-size: 0.875rem;
  line-height: 1.65;
  color: rgba(244, 241, 234, 0.55);
}
.footer-email {
  display: inline-block;
  margin-top: 1rem;
  font-size: 0.8125rem;
  color: rgba(244, 241, 234, 0.72);
  text-decoration: none;
  background-image: linear-gradient(currentColor, currentColor);
  background-position: 0 100%;
  background-repeat: no-repeat;
  background-size: 0% 1px;
  transition: color 0.3s cubic-bezier(0.22, 1, 0.36, 1), background-size 0.35s cubic-bezier(0.22, 1, 0.36, 1);
}
.footer-email:hover {
  color: #f4f1ea;
  background-size: 100% 1px;
}
.footer-nav {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.75rem 1.25rem;
}
@media (min-width: 640px) {
  .footer-nav {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1.75rem 2rem;
  }
}
.footer-col-title {
  font-size: 0.68rem;
  font-weight: 400;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: rgba(244, 241, 234, 0.42);
}
.footer-col ul {
  margin: 0.85rem 0 0;
  padding: 0;
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}
.footer-col a {
  position: relative;
  display: inline-flex;
  width: fit-content;
  max-width: 100%;
  font-size: 0.875rem;
  line-height: 1.4;
  color: rgba(244, 241, 234, 0.7);
  transition:
    color 0.3s cubic-bezier(0.22, 1, 0.36, 1),
    transform 0.35s cubic-bezier(0.22, 1, 0.36, 1);
}
.footer-col a::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -3px;
  height: 1px;
  background: currentColor;
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform 0.35s cubic-bezier(0.22, 1, 0.36, 1);
  opacity: 0.55;
}
.footer-col a:hover,
.footer-col a[aria-current="page"] {
  color: #f4f1ea;
  transform: translateX(4px);
}
.footer-col a:hover::after,
.footer-col a[aria-current="page"]::after,
.footer-col a:focus-visible::after {
  transform: scaleX(1);
}
.footer-col a:focus-visible {
  outline: none;
  color: #f4f1ea;
}
.footer-guarantee {
  margin-top: 2.5rem;
  border-radius: 1.25rem;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.05);
  padding: 1.15rem 1.25rem;
  transition: border-color 0.35s ease, background 0.35s ease, transform 0.35s cubic-bezier(0.22, 1, 0.36, 1);
}
.footer-guarantee:hover {
  border-color: rgba(255, 255, 255, 0.2);
  background: rgba(255, 255, 255, 0.08);
}
.footer-guarantee-label {
  font-size: 0.68rem;
  font-weight: 400;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: rgba(244, 241, 234, 0.45);
}
.footer-guarantee-text {
  margin-top: 0.35rem;
  font-family: Outfit, system-ui, sans-serif;
  font-weight: 400;
  font-size: 1.05rem;
  line-height: 1.45;
}
@media (min-width: 640px) {
  .footer-guarantee-text { font-size: 1.2rem; }
}
.footer-guarantee-text span { color: rgba(244, 241, 234, 0.32); }
.footer-bottom {
  margin-top: 2rem;
  padding-top: 1.35rem;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
  font-size: 0.75rem;
  color: rgba(244, 241, 234, 0.38);
}
@media (min-width: 640px) {
  .footer-bottom {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
  }
}
.footer-cta {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.8125rem;
  font-weight: 400;
  color: rgba(244, 241, 234, 0.72);
  transition:
    color 0.3s cubic-bezier(0.22, 1, 0.36, 1),
    transform 0.35s cubic-bezier(0.22, 1, 0.36, 1);
}
.footer-cta::after {
  content: "→";
  display: inline-block;
  opacity: 0.55;
  transform: translateX(0);
  transition:
    opacity 0.3s ease,
    transform 0.35s cubic-bezier(0.22, 1, 0.36, 1);
}
.footer-cta:hover {
  color: #f4f1ea;
  transform: translateX(3px);
}
.footer-cta:hover::after {
  opacity: 1;
  transform: translateX(4px);
}
.footer-cta:focus-visible {
  outline: none;
  color: #f4f1ea;
}

.legal-prose h2 {
  margin-top: 2.25rem;
  font-family: Outfit, system-ui, sans-serif;
  font-weight: 500;
  font-size: 1.5rem;
  line-height: 1.25;
  color: #111111;
}
.legal-prose h2:first-of-type { margin-top: 1.75rem; }
.legal-prose p,
.legal-prose li {
  margin-top: 0.85rem;
  font-size: 0.9375rem;
  line-height: 1.7;
  color: rgba(17, 17, 17, 0.68);
}
.legal-prose ul {
  margin-top: 0.75rem;
  padding-left: 1.2rem;
  list-style: disc;
}
.legal-prose a {
  text-decoration: underline;
  text-underline-offset: 3px;
}
.legal-prose a:hover { color: #111111; }

.back-to-top {
  position: fixed;
  right: 1.25rem;
  bottom: 1.25rem;
  z-index: 60;
  display: grid;
  height: 2.75rem;
  width: 2.75rem;
  place-items: center;
  border: 1px solid rgba(17, 17, 17, 0.12);
  border-radius: 9999px;
  background: #111111;
  color: #f4f1ea;
  opacity: 0;
  visibility: hidden;
  transform: translateY(0.5rem);
  transition: opacity 0.25s ease, transform 0.25s ease, visibility 0.25s ease;
  cursor: pointer;
  box-shadow: 0 12px 40px -18px rgba(17, 17, 17, 0.35);
}

.back-to-top.is-visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.back-to-top:hover {
  opacity: 0.92;
}

.back-to-top svg {
  height: 1.1rem;
  width: 1.1rem;
}

/* Service-page <picture> wrappers: preserve full-bleed image crop */
figure picture,
.who-card picture {
  display: block;
  width: 100%;
}

figure picture img,
.who-card picture img {
  display: block;
  width: 100%;
}

/* Alternating bands: first content section = white, then #f7f7f7, then white...
   Homepage: skips .hero-banner. Service pages: first section is white. */
main > section:nth-child(odd of section:not(.hero-banner):not(.bg-ink)) {
  background-color: #ffffff !important;
}

main > section:nth-child(even of section:not(.hero-banner):not(.bg-ink)) {
  background-color: #f7f7f7 !important;
}

/* No divider lines between alternating section bands */
main > section.border-b,
main > section.border-t {
  border-bottom-width: 0 !important;
  border-top-width: 0 !important;
}

/* Hide breadcrumbs visually; keep markup in place */
nav[aria-label="Breadcrumb"] {
  display: none !important;
}

/* =========================================================
   Sitewide typography + visibility (no layout/content change)
   Outfit for body, headlines, and subheadings
   ========================================================= */

/* Size scale */
.text-xs {
  font-size: 0.8125rem !important;
  line-height: 1.55 !important;
  font-weight: 400 !important;
}

.text-sm {
  font-size: 0.975rem !important;
  line-height: 1.65 !important;
  font-weight: 400 !important;
}

/* Paragraph-only size lock — do not shrink headlines */
p.text-base:not(.font-serif),
p.text-lg:not(.font-serif) {
  font-size: 0.975rem !important;
  line-height: 1.65 !important;
  font-weight: 400 !important;
}

/* Every body paragraph: Outfit @ 0.975rem (screenshot look) */
p:not(.font-serif):not(.text-xs):not(.journey-label):not(.hero-eyebrow):not(.text-\[11px\]):not(.text-\[10px\]),
.body-lg,
.svc-lead {
  font-family: Outfit, system-ui, sans-serif !important;
  font-size: 0.975rem !important;
  line-height: 1.65 !important;
  font-weight: 400 !important;
}

.svc-lead {
  color: rgba(17, 17, 17, 0.76) !important;
}

p.font-medium:not(.font-serif):not(.text-xs):not(.journey-label) {
  font-weight: 500 !important;
}

/* Card / inline subheadings (were serif) */
p.font-serif {
  font-family: Outfit, system-ui, sans-serif !important;
  font-weight: 500 !important;
  line-height: 1.35 !important;
}

p.font-serif.text-lg {
  font-size: 1.1875rem !important;
}

p.font-serif.text-xl {
  font-size: 1.25rem !important;
}

/* Keep these section cards unchanged */
#trust-strip .trust-badge p.text-sm {
  font-size: 0.875rem !important;
  line-height: 1.4 !important;
  font-weight: 500 !important;
  font-family: Outfit, system-ui, sans-serif !important;
}

#trust-strip .trust-badge p.text-xs {
  font-size: 0.75rem !important;
  line-height: 1.45 !important;
  font-weight: 400 !important;
  font-family: Outfit, system-ui, sans-serif !important;
}

#journey .journey-label,
#journey .journey-step p {
  font-size: 0.8125rem !important;
  line-height: 1.35 !important;
  font-weight: 500 !important;
  font-family: Outfit, system-ui, sans-serif !important;
}

.svc-section-title,
.section-heading,
.svc-hero-title,
.hero-title {
  font-family: Outfit, system-ui, sans-serif !important;
  font-weight: 500 !important;
  letter-spacing: -0.02em;
  color: #111111;
}

/* Hero headlines — 3rem on all pages */
.svc-hero-title,
.hero-title,
h1.font-serif,
main > section:first-of-type h1 {
  font-size: 3rem !important;
  line-height: 1.1 !important;
  letter-spacing: -0.025em !important;
}

/* Match homepage hero eyebrow / label size */
main > section:first-of-type p.mt-6.text-xs,
main > section:first-of-type p.text-\[11px\],
#main > div > p.text-xs:first-child {
  font-size: 12px !important;
  line-height: 1.4 !important;
  font-weight: 500 !important;
  letter-spacing: 0.14em !important;
}

/* Contact form inputs — lighter, smaller text */
#contact .field-input,
#contact input,
#contact select,
#contact textarea {
  font-family: Outfit, system-ui, sans-serif !important;
  font-size: 0.875rem !important;
  font-weight: 400 !important;
  line-height: 1.5 !important;
}

#contact .field-input::placeholder,
#contact input::placeholder,
#contact textarea::placeholder {
  font-weight: 400 !important;
  opacity: 0.55;
}

#contact label > span.font-medium {
  font-size: 0.8125rem !important;
  font-weight: 500 !important;
}

/* Non-hero section main headlines — unified 2.5rem (all pages) */
.section-heading,
.svc-section-title,
.work-compact-heading,
.trust-compact-heading,
main section h2.font-serif,
main section h2.section-heading,
main section h2.svc-section-title {
  font-size: 2.5rem !important;
  line-height: 1.15 !important;
  letter-spacing: -0.02em !important;
}

/* Demo badge pills — keep compact; smaller on mobile */
.demo-panel > p.inline-flex,
.demo-panel > p.text-\[11px\],
.demo-badge {
  display: inline-flex !important;
  width: fit-content !important;
  max-width: 100%;
  box-sizing: border-box;
  font-size: 11px !important;
  line-height: 1.35 !important;
  font-weight: 500 !important;
  letter-spacing: 0.12em !important;
}

@media (max-width: 767px) {
  .demo-panel {
    padding: 1rem !important;
    border-radius: 1rem !important;
  }

  .demo-panel > p.inline-flex,
  .demo-panel > p.text-\[11px\],
  .demo-badge {
    font-size: 7.5px !important;
    padding: 0.12rem 0.45rem !important;
    letter-spacing: 0.04em !important;
    line-height: 1.2 !important;
    white-space: nowrap !important;
  }
}

/* Small / compact sizes: never bold — medium (500) is the ceiling */
.text-xs.font-medium,
.text-xs.font-semibold,
.text-xs.font-bold,
.text-\[10px\].font-medium,
.text-\[10px\].font-semibold,
.text-\[10px\].font-bold,
.text-\[11px\].font-medium,
.text-\[11px\].font-semibold,
.text-\[11px\].font-bold,
.text-\[12px\].font-medium,
.text-\[12px\].font-semibold,
.text-\[12px\].font-bold,
.text-\[13px\].font-medium,
.text-\[13px\].font-semibold,
.text-\[13px\].font-bold,
.text-\[15px\].font-semibold,
.text-\[15px\].font-bold,
.header-mark.font-semibold,
.font-semibold.text-\[11px\] {
  font-weight: 500 !important;
}

/* sm+ can use medium; keep semibold/bold from looking heavy */
.text-sm.font-medium,
.text-base.font-medium {
  font-weight: 500 !important;
}

.text-sm.font-semibold,
.text-sm.font-bold,
.text-base.font-semibold,
.text-base.font-bold {
  font-weight: 500 !important;
}

/* Uppercase labels: clear, not heavy */
.text-xs.uppercase,
.text-xs.font-medium.uppercase {
  font-weight: 500 !important;
  letter-spacing: 0.2em;
}

/* Stronger muted / secondary text for contrast */
.text-muted {
  color: #4a4843 !important;
}

.text-ink\/25 {
  color: rgba(17, 17, 17, 0.42) !important;
}

.text-ink\/30 {
  color: rgba(17, 17, 17, 0.48) !important;
}

.text-ink\/35 {
  color: rgba(17, 17, 17, 0.52) !important;
}

.text-ink\/40 {
  color: rgba(17, 17, 17, 0.58) !important;
}

.text-ink\/45 {
  color: rgba(17, 17, 17, 0.62) !important;
}

.text-ink\/50 {
  color: rgba(17, 17, 17, 0.66) !important;
}

.text-ink\/55 {
  color: rgba(17, 17, 17, 0.72) !important;
}

.text-ink\/60 {
  color: rgba(17, 17, 17, 0.76) !important;
}

.text-ink\/65 {
  color: rgba(17, 17, 17, 0.8) !important;
}

.text-ink\/70 {
  color: rgba(17, 17, 17, 0.84) !important;
}

.text-black\/45 {
  color: rgba(0, 0, 0, 0.62) !important;
}

.text-black\/55 {
  color: rgba(0, 0, 0, 0.7) !important;
}

.text-black\/60 {
  color: rgba(0, 0, 0, 0.76) !important;
}

/* Card / checklist secondary copy */
.optimize-card ul,
.do-card ul,
.build-card ul,
.checklist-grid li {
  font-weight: 400 !important;
  color: rgba(17, 17, 17, 0.74) !important;
}

.optimize-card ul,
.do-card ul,
.build-card ul {
  font-size: 0.9375rem !important;
  line-height: 1.55 !important;
}

.checklist-grid li {
  font-size: 0.975rem !important;
  line-height: 1.55 !important;
}

.checklist-grid li::before {
  font-weight: 500 !important;
}

/* Footer labels */
.footer-col-title,
.footer-guarantee-label,
.footer-bottom {
  font-weight: 400 !important;
}

.footer-ownership li,
.footer-tagline,
.footer-col a {
  font-weight: 400 !important;
}

/* =========================================================
   Navbar + footer visibility (dark chrome)
   ========================================================= */
#site-header {
  color: #f7f4ee;
}

#site-header .nav-link,
#site-header .nav-drop-btn {
  opacity: 1 !important;
  color: #f7f4ee !important;
  font-weight: 400 !important;
  font-size: 0.975rem !important;
}

#site-header a.flex > span:last-child,
#site-header nav > a span.text-\[15px\],
#site-header .text-\[15px\] {
  color: #f7f4ee !important;
  font-weight: 400 !important;
  opacity: 1 !important;
}

#site-header #menu-btn {
  color: #f7f4ee;
  border-color: rgba(255, 255, 255, 0.35) !important;
}

#site-header #mobile-menu,
#site-header #mobile-menu .mobile-services-btn,
#site-header #mobile-menu .mobile-link:not(.nav-drop-item):not(.mobile-menu-cta),
#site-header #mobile-menu a:not(.nav-drop-item):not(.rounded-full):not(.mobile-menu-cta) {
  color: #f7f4ee !important;
  opacity: 1 !important;
}

#site-header #mobile-menu .mobile-services-btn,
#site-header #mobile-menu a:not(.nav-drop-item):not(.mobile-menu-cta) {
  font-weight: 400 !important;
  font-size: 0.975rem !important;
}

.nav-drop-name {
  font-size: 0.95rem !important;
  font-weight: 400 !important;
  color: inherit;
}

/* Footer: stronger contrast on dark */
.footer-logo {
  color: #f7f4ee !important;
  font-weight: 400 !important;
}

.footer-mark {
  color: #f7f4ee !important;
  background: rgba(255, 255, 255, 0.16) !important;
  font-weight: 400 !important;
}

.footer-col-title,
.footer-guarantee-label {
  font-size: 0.75rem !important;
  letter-spacing: 0.14em;
  color: rgba(247, 244, 238, 0.78) !important;
}

.footer-col a {
  font-size: 0.9375rem !important;
  line-height: 1.45 !important;
  color: rgba(247, 244, 238, 0.92) !important;
}

.footer-col a:hover,
.footer-col a[aria-current="page"] {
  color: #ffffff !important;
  transform: translateX(4px);
}

.footer-tagline,
.footer-ownership li {
  font-size: 0.9375rem !important;
  line-height: 1.65 !important;
  color: rgba(247, 244, 238, 0.82) !important;
}

.footer-email,
.footer-cta {
  font-size: 0.875rem !important;
  color: rgba(247, 244, 238, 0.92) !important;
}

.footer-email:hover,
.footer-cta:hover {
  color: #ffffff !important;
}

.footer-logo:hover {
  opacity: 1 !important;
}

.footer-logo:hover .footer-mark {
  background: rgba(255, 255, 255, 0.24) !important;
}

.footer-guarantee-text {
  color: #f7f4ee !important;
}

.footer-guarantee-text span {
  color: rgba(247, 244, 238, 0.62) !important;
}

.footer-bottom {
  font-size: 0.8125rem !important;
  color: rgba(247, 244, 238, 0.72) !important;
}

.site-footer,
.site-footer a {
  -webkit-font-smoothing: antialiased;
}

/* =========================================================
   Hero page-load animation only
   ========================================================= */
@keyframes hero-fade-up {
  from {
    opacity: 0;
    transform: translate3d(0, 16px, 0);
  }
  to {
    opacity: 1;
    transform: translate3d(0, 0, 0);
  }
}

@media (prefers-reduced-motion: no-preference) {
  /* Homepage full-bleed hero */
  html.js .hero-banner .hero-eyebrow,
  html.js .hero-banner .hero-title,
  html.js .hero-banner .hero-lead,
  html.js .hero-banner .hero-actions,
  html.js .hero-banner .hero-banner-img {
    animation: hero-fade-up 0.72s cubic-bezier(0.22, 1, 0.36, 1) both;
  }

  html.js .hero-banner .hero-banner-img {
    animation-delay: 0.08s;
    animation-duration: 0.85s;
  }

  html.js .hero-banner .hero-eyebrow {
    animation-delay: 0.1s;
  }

  html.js .hero-banner .hero-title {
    animation-delay: 0.18s;
  }

  html.js .hero-banner .hero-lead {
    animation-delay: 0.3s;
  }

  html.js .hero-banner .hero-actions {
    animation-delay: 0.42s;
  }

  /* Service + inner page heroes (first section only; skip homepage banner) */
  html.js main > section:first-of-type:not(.hero-banner) .svc-hero-title,
  html.js main > section:first-of-type:not(.hero-banner) h1.font-serif,
  html.js main > section:first-of-type:not(.hero-banner) .svc-lead,
  html.js main > section:first-of-type:not(.hero-banner) .svc-lead + div,
  html.js main > section:first-of-type:not(.hero-banner) h1.font-serif + p,
  html.js main > section:first-of-type:not(.hero-banner) > .mx-auto > nav + p,
  html.js main > section:first-of-type:not(.hero-banner) > .mx-auto > .grid > div > nav + p,
  html.js main > section:first-of-type:not(.hero-banner) figure {
    animation: hero-fade-up 0.72s cubic-bezier(0.22, 1, 0.36, 1) both;
  }

  html.js main > section:first-of-type:not(.hero-banner) > .mx-auto > nav + p,
  html.js main > section:first-of-type:not(.hero-banner) > .mx-auto > .grid > div > nav + p {
    animation-delay: 0.08s;
    animation-duration: 0.65s;
  }

  html.js main > section:first-of-type:not(.hero-banner) .svc-hero-title,
  html.js main > section:first-of-type:not(.hero-banner) h1.font-serif {
    animation-delay: 0.16s;
  }

  html.js main > section:first-of-type:not(.hero-banner) .svc-lead,
  html.js main > section:first-of-type:not(.hero-banner) h1.font-serif + p {
    animation-delay: 0.28s;
  }

  html.js main > section:first-of-type:not(.hero-banner) .svc-lead + div {
    animation-delay: 0.4s;
  }

  html.js main > section:first-of-type:not(.hero-banner) figure {
    animation-delay: 0.22s;
    animation-duration: 0.85s;
  }

  /* Industries / privacy / terms — hero block is first child of main */
  html.js main#main > .mx-auto.max-w-7xl:first-child > p.text-xs:first-of-type,
  html.js main#main > .mx-auto.max-w-3xl:first-child > p.text-xs:first-of-type,
  html.js main#main > .mx-auto:first-child > p.text-xs:first-of-type,
  html.js main#main > .mx-auto:first-child > h1,
  html.js main#main > .mx-auto:first-child > h1 + p {
    animation: hero-fade-up 0.72s cubic-bezier(0.22, 1, 0.36, 1) both;
  }

  html.js main#main > .mx-auto:first-child > p.text-xs:first-of-type {
    animation-delay: 0.08s;
    animation-duration: 0.65s;
  }

  html.js main#main > .mx-auto:first-child > h1 {
    animation-delay: 0.16s;
  }

  html.js main#main > .mx-auto:first-child > h1 + p {
    animation-delay: 0.28s;
  }
}

@media (prefers-reduced-motion: reduce) {
  html.js .hero-banner .hero-eyebrow,
  html.js .hero-banner .hero-title,
  html.js .hero-banner .hero-lead,
  html.js .hero-banner .hero-actions,
  html.js .hero-banner .hero-banner-img,
  html.js main > section:first-of-type:not(.hero-banner) .svc-hero-title,
  html.js main > section:first-of-type:not(.hero-banner) h1.font-serif,
  html.js main > section:first-of-type:not(.hero-banner) .svc-lead,
  html.js main > section:first-of-type:not(.hero-banner) .svc-lead + div,
  html.js main > section:first-of-type:not(.hero-banner) h1.font-serif + p,
  html.js main > section:first-of-type:not(.hero-banner) figure,
  html.js main#main > .mx-auto:first-child > p.text-xs:first-of-type,
  html.js main#main > .mx-auto:first-child > h1,
  html.js main#main > .mx-auto:first-child > h1 + p {
    animation: none !important;
    opacity: 1 !important;
    transform: none !important;
  }
}

/* Honeypot — invisible to real users */
.hp-wrap{position:absolute;left:-9999px;top:-9999px;width:1px;height:1px;overflow:hidden;opacity:0;pointer-events:none}
