@font-face {
  font-family: "Gilroy";
  src: url("../fonts/Gilroy-Light.otf") format("opentype");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Gilroy";
  src: url("../fonts/Gilroy-ExtraBold.otf") format("opentype");
  font-weight: 800;
  font-style: normal;
  font-display: swap;
}

:root {
  --bg: #f7f7f4;
  --paper: #ffffff;
  --ink: #141414;
  --muted: #62645f;
  --line: rgba(20, 20, 20, 0.12);
  --dark: #111111;
  --dark-soft: #1d1d1b;
  --red: #c62127;
  --green: #586f63;
  --steel: #50606d;
  --shadow: 0 18px 50px rgba(16, 16, 16, 0.12);
  color-scheme: light;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-width: 320px;
  background: var(--bg);
  color: var(--ink);
  font-family: "Gilroy", Arial, sans-serif;
  font-size: 16px;
  line-height: 1.55;
  letter-spacing: 0;
  overflow-x: hidden;
}

body.modal-open {
  overflow: hidden;
}

a {
  color: inherit;
  text-decoration: none;
}

img {
  display: block;
  max-width: 100%;
}

button,
input,
textarea {
  font: inherit;
  letter-spacing: 0;
}

.container {
  width: min(1180px, calc(100% - 40px));
  margin: 0 auto;
}

.narrow {
  width: min(820px, calc(100% - 40px));
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 28px;
  min-height: 76px;
  padding: 14px 28px;
  background: rgba(247, 247, 244, 0.9);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(18px);
  width: 100%;
}

.brand,
.footer-brand {
  display: inline-flex;
  align-items: baseline;
  gap: 7px;
  font-weight: 800;
  color: var(--ink);
  min-width: 0;
}

.brand span,
.footer-brand span {
  font-size: 1.28rem;
  line-height: 1;
}

.brand small,
.footer-brand small {
  color: var(--red);
  font-size: 0.72rem;
  font-weight: 800;
  line-height: 1;
}

.desktop-nav {
  display: flex;
  justify-content: center;
  gap: 24px;
  color: var(--muted);
}

.desktop-nav a {
  padding: 8px 0;
  border-bottom: 2px solid transparent;
}

.desktop-nav a:hover,
.desktop-nav a.active {
  color: var(--ink);
  border-bottom-color: var(--red);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 12px;
  justify-self: end;
}

.header-contact {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 40px;
  padding: 0 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--paper);
}

.menu-button {
  display: none;
  width: 42px;
  height: 42px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--paper);
  cursor: pointer;
}

.menu-button span {
  display: block;
  width: 18px;
  height: 2px;
  margin: 5px auto;
  background: var(--ink);
}

.mobile-nav {
  display: none;
}

.hero {
  position: relative;
  display: flex;
  align-items: flex-end;
  isolation: isolate;
  overflow: hidden;
}

.hero-photo {
  min-height: 68vh;
  background-size: cover;
  background-position: center;
}

.hero-home {
  min-height: 74vh;
}

.hero-home.hero-photo {
  background-position: calc(50% - 60px) center;
}

.hero-plain {
  min-height: auto;
  background: var(--dark);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.hero-shade {
  position: absolute;
  inset: 0;
  z-index: -1;
  background: rgba(0, 0, 0, 0.44);
}

.hero-home .hero-shade {
  background: rgba(0, 0, 0, 0.12);
}

.hero-content {
  padding: 96px 0 78px;
  color: #fff;
}

.hero-plain .hero-content {
  padding: 86px 0 72px;
}

.hero-content h1 {
  max-width: 780px;
  margin: 0;
  font-size: 5rem;
  line-height: 0.94;
  font-weight: 800;
}

.hero-content p {
  max-width: 720px;
  margin: 22px 0 0;
  color: rgba(255, 255, 255, 0.86);
  font-size: 1.25rem;
  overflow-wrap: break-word;
}

.eyebrow,
.kicker {
  margin: 0 0 12px;
  color: var(--red);
  font-size: 0.82rem;
  font-weight: 800;
  text-transform: uppercase;
}

.hero .eyebrow {
  color: #fff;
}

.hero-actions,
.section-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 30px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0 20px;
  border-radius: 8px;
  border: 1px solid transparent;
  cursor: pointer;
  font-weight: 800;
}

.btn-primary {
  background: var(--red);
  color: #fff;
}

.btn-primary:hover {
  background: #a9191e;
}

.btn-secondary {
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(255, 255, 255, 0.5);
  color: #fff;
}

.section .btn-secondary,
.legal-page .btn-secondary {
  background: var(--paper);
  border-color: var(--line);
  color: var(--ink);
}

.section {
  padding: 86px 0;
}

.section-muted {
  background: #eceee9;
}

.section-dark {
  background: var(--dark);
  color: #fff;
}

.section-dark .kicker {
  color: #fff;
}

.split,
.two-columns,
.case-detail,
.contact-grid,
.proof-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: 54px;
  align-items: start;
}

.home-intro-title {
  position: relative;
}

.home-intro-title .kicker {
  position: absolute;
  top: -28px;
  left: 0;
  margin: 0;
}

h1,
h2,
h3,
p {
  letter-spacing: 0;
}

h2 {
  margin: 0;
  font-size: 2.4rem;
  line-height: 1.05;
}

h3 {
  margin: 0;
  font-size: 1.3rem;
  line-height: 1.2;
}

.lead-text p,
.section-head p,
.service-card p,
.case-card p,
.fact-panel p,
.post-card p,
.service-detail,
.article p,
.site-footer p {
  color: var(--muted);
}

.service-detail {
  max-width: 660px;
  margin: 22px 0 0;
}

.lead-text p:first-child,
.article p:first-child {
  margin-top: 0;
}

.section-head {
  max-width: 760px;
  margin-bottom: 34px;
}

.services-grid,
.case-grid,
.post-grid,
.value-grid {
  display: grid;
  gap: 22px;
}

.services-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.services-grid.large {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.case-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.case-grid.featured {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.post-grid,
.value-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.service-card,
.case-card,
.post-card,
.value-grid article,
.fact-panel,
.contact-tile {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--paper);
  box-shadow: 0 1px 0 rgba(20, 20, 20, 0.04);
}

.service-card,
.post-card {
  display: grid;
  grid-template-rows: auto 1fr;
}

.service-card-plain {
  min-height: 250px;
}

.media-link,
.case-image {
  display: block;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background: #d8d9d5;
}

.case-image {
  aspect-ratio: 3 / 4;
}

.media-link img,
.case-image img,
.case-visual img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 220ms ease;
}

.media-link:hover img,
.case-image:hover img {
  transform: scale(1.03);
}

.service-card-body,
.case-card-body,
.post-card > div,
.value-grid article,
.fact-panel {
  padding: 24px;
}

.service-card h3,
.case-card h3,
.post-card h2 {
  margin-bottom: 12px;
}

.text-link {
  display: inline-flex;
  margin-top: 14px;
  color: var(--red);
  font-weight: 800;
  text-decoration: underline;
  text-underline-offset: 4px;
}

.tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 18px;
}

.tags span {
  display: inline-flex;
  align-items: center;
  min-height: 32px;
  padding: 0 11px;
  border-radius: 8px;
  background: #eff1ec;
  color: var(--steel);
  font-size: 0.86rem;
  font-weight: 800;
}

.check-list {
  display: grid;
  gap: 12px;
  margin: 24px 0 0;
  padding: 0;
  list-style: none;
}

.check-list li {
  position: relative;
  padding-left: 26px;
  color: var(--muted);
}

.check-list li::before {
  content: "";
  position: absolute;
  top: 0.72em;
  left: 0;
  width: 12px;
  height: 2px;
  background: var(--red);
}

.fact-panel {
  border-top: 4px solid var(--green);
}

.steps {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 14px;
}

.steps div {
  min-height: 150px;
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--paper);
}

.steps span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  margin-bottom: 22px;
  border-radius: 50%;
  background: var(--ink);
  color: #fff;
  font-weight: 800;
}

.client-strip {
  overflow: hidden;
  padding: 62px 0 54px;
}

.client-strip-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 28px;
  margin-bottom: 28px;
}

.client-strip-head h2 {
  max-width: 760px;
}

.logo-ticker {
  overflow: hidden;
  width: 100%;
}

.logo-ticker-track {
  --ticker-gap-half: 8px;
  display: flex;
  width: max-content;
  gap: 16px;
  animation: logoTicker 42s linear infinite;
}

.logo-ticker-item {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: clamp(138px, 15vw, 220px);
  height: 78px;
  padding: 16px 22px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.06);
}

.logo-ticker-item img {
  max-width: 100%;
  max-height: 46px;
  object-fit: contain;
}

@keyframes logoTicker {
  from {
    transform: translateX(0);
  }

  to {
    transform: translateX(calc(-50% - var(--ticker-gap-half)));
  }
}

.cta-band {
  padding: 54px 0;
  background: var(--red);
  color: #fff;
}

.cta-band .container {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 22px;
  align-items: center;
}

.cta-band h2 {
  max-width: 560px;
}

.cta-band p {
  max-width: 560px;
  margin: 14px 0 0;
  color: rgba(255, 255, 255, 0.84);
}

.cta-band .btn-primary {
  background: #fff;
  color: var(--red);
}

.case-story {
  min-width: 0;
}

.case-story .kicker {
  margin-top: 34px;
}

.case-story .kicker:first-child {
  margin-top: 0;
}

.case-visual {
  position: sticky;
  top: 104px;
}

.case-visual img {
  aspect-ratio: 3 / 4;
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.contact-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.contact-tile {
  display: grid;
  gap: 10px;
  min-height: 150px;
  padding: 24px;
}

.contact-tile span {
  color: var(--muted);
}

.contact-tile strong {
  overflow-wrap: anywhere;
  font-size: 1.25rem;
}

.article p {
  font-size: 1.12rem;
}

.article-cta {
  margin-top: 42px;
  padding: 28px;
  border-radius: 8px;
  background: var(--paper);
  border: 1px solid var(--line);
}

.legal-page {
  min-height: 62vh;
  padding-top: 120px;
}

.not-found {
  min-height: 70vh;
}

.site-footer {
  padding: 58px 0 24px;
  background: var(--dark-soft);
  color: #fff;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.3fr 1fr 1fr;
  gap: 44px;
}

.footer-brand {
  color: #fff;
  margin-bottom: 16px;
}

.footer-brand span {
  font-size: 1.5rem;
}

.site-footer h2 {
  margin-bottom: 14px;
  font-size: 1rem;
}

.site-footer a {
  display: table;
  margin: 8px 0;
  color: rgba(255, 255, 255, 0.78);
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  margin-top: 42px;
  padding-top: 22px;
  border-top: 1px solid rgba(255, 255, 255, 0.14);
  color: rgba(255, 255, 255, 0.64);
}

.modal {
  position: fixed;
  inset: 0;
  z-index: 80;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 20px;
  background: rgba(0, 0, 0, 0.64);
}

.modal.open {
  display: flex;
}

.modal-dialog {
  position: relative;
  width: min(620px, 100%);
  max-height: calc(100vh - 40px);
  overflow: auto;
  padding: 30px;
  border-radius: 8px;
  background: var(--paper);
  box-shadow: var(--shadow);
}

.modal-close {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 38px;
  height: 38px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  cursor: pointer;
  font-size: 1.4rem;
}

.modal form {
  display: grid;
  gap: 14px;
  margin-top: 20px;
}

.modal label {
  display: grid;
  gap: 7px;
  color: var(--muted);
  font-size: 0.92rem;
  font-weight: 800;
}

.modal input,
.modal textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 12px 14px;
  background: #fff;
  color: var(--ink);
}

.modal textarea {
  resize: vertical;
}

@media (prefers-reduced-motion: reduce) {
  .logo-ticker-track {
    animation: none;
    flex-wrap: wrap;
    width: auto;
    justify-content: center;
  }

  .logo-ticker-track [aria-hidden="true"] {
    display: none;
  }
}

@media (max-width: 1080px) {
  .services-grid,
  .case-grid,
  .case-grid.featured {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .steps {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .hero-content h1 {
    font-size: 4rem;
  }
}

@media (max-width: 820px) {
  .site-header {
    grid-template-columns: auto auto;
    justify-content: space-between;
    padding: 12px 18px;
  }

  .desktop-nav,
  .header-contact {
    display: none;
  }

  .menu-button {
    display: block;
  }

  .mobile-nav.open {
    position: absolute;
    top: 68px;
    left: 0;
    right: 0;
    display: grid;
    gap: 1px;
    padding: 10px 18px 18px;
    background: var(--bg);
    border-bottom: 1px solid var(--line);
  }

  .mobile-nav a {
    padding: 14px;
    border-radius: 8px;
    background: var(--paper);
  }

  .container,
  .narrow {
    width: min(100% - 28px, 1180px);
  }

  .hero,
  .hero-home {
    min-height: 72vh;
  }

  .hero-content {
    padding: 82px 0 46px;
  }

  .hero-content h1 {
    font-size: 2.75rem;
    overflow-wrap: anywhere;
  }

  .hero-content p {
    font-size: 1.05rem;
  }

  .section {
    padding: 62px 0;
  }

  .client-strip {
    padding: 54px 0 46px;
  }

  .client-strip-head {
    display: grid;
    gap: 10px;
    margin-bottom: 22px;
  }

  .logo-ticker-track {
    --ticker-gap-half: 6px;
    gap: 12px;
  }

  .logo-ticker-item {
    width: 150px;
    height: 66px;
    padding: 13px 18px;
  }

  .logo-ticker-item img {
    max-height: 38px;
  }

  h2 {
    font-size: 2rem;
  }

  .split,
  .two-columns,
  .case-detail,
  .proof-grid,
  .footer-grid,
  .cta-band .container {
    grid-template-columns: 1fr;
    gap: 28px;
  }

  .services-grid,
  .services-grid.large,
  .case-grid,
  .case-grid.featured,
  .post-grid,
  .value-grid,
  .contact-grid,
  .steps {
    grid-template-columns: 1fr;
  }

  .hero-actions,
  .section-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .btn {
    width: 100%;
    max-width: 330px;
  }

  .case-visual {
    position: static;
  }

  .footer-bottom {
    flex-direction: column;
  }
}

@media (max-width: 420px) {
  .hero-content h1 {
    font-size: 2.28rem;
  }

  .btn {
    max-width: none;
  }
}
