/* Focused scale correction. Loaded last so the served layout wins over legacy theme rules. */
:root {
  --shell: 1280px;
  --space-section: clamp(6rem, 8vw, 8.5rem);
  --space-section-mobile: 4.75rem;
}

.agency-shell,
.global-nav-shell,
.global-footer-shell {
  width: min(calc(100% - 48px), var(--shell));
  margin-inline: auto;
}

.agency-home {
  font-size: 17px;
}

.agency-home p,
.agency-lede {
  font-size: clamp(1.0625rem, 1.25vw, 1.1875rem);
  line-height: 1.72;
}

.agency-kicker {
  font-size: .875rem;
  line-height: 1.45;
}

.agency-btn,
.global-nav-cta,
.global-audit-link,
.global-footer-cta-button {
  min-height: 48px;
  font-size: .9375rem;
  line-height: 1.2;
}

/* Shared navigation */
.global-site-header,
.global-site-header.is-scrolled {
  height: 88px;
}

.global-site-header.is-scrolled {
  height: 76px;
}

.global-nav-shell {
  gap: clamp(2rem, 3vw, 4rem);
}

.global-brand img {
  width: 44px;
  height: 44px;
}

.global-brand > span {
  font-size: 1.0625rem;
}

.global-desktop-nav {
  gap: clamp(1.25rem, 1.8vw, 2rem);
}

.global-desktop-nav > a,
.global-nav-dropdown-toggle {
  height: 48px;
  font-size: .9375rem;
}

.global-nav-actions {
  gap: .75rem;
}

.global-audit-link,
.global-nav-cta {
  min-height: 46px;
  padding-inline: 1.2rem;
}

/* Hero */
.agency-hero {
  min-height: 850px;
  padding: clamp(5rem, 7vw, 7rem) 0 6rem;
}

.agency-hero-grid {
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(3rem, 4.5vw, 4.75rem);
}

.agency-hero h1 {
  max-width: 720px;
  font-size: clamp(4.3rem, 6.4vw, 6.65rem);
  line-height: .89;
}

.agency-hero h1 em,
.agency-heading h2 em {
  color: rgba(77, 127, 255, .24);
  -webkit-text-stroke: 2.6px #5d88ff;
  text-shadow: 0 0 26px rgba(21, 87, 255, .3);
}

.agency-hero .agency-lede {
  max-width: 53ch;
}

.agency-actions {
  gap: 1rem;
}

.agency-btn {
  min-height: 54px;
  padding-inline: 1.45rem;
}

.agency-proof {
  gap: 1rem 1.6rem;
  font-size: .9375rem;
}

.agency-hero-media {
  min-height: 630px;
}

.device-desktop {
  width: 104%;
  height: 570px;
  right: -4%;
  top: 28px;
}

.device-phone {
  width: 180px;
  height: 390px;
  left: -3%;
}

.agency-note {
  right: -1rem;
  top: -1rem;
  max-width: 210px;
  font-size: 1.15rem;
}

/* Featured work */
.agency-work-heading {
  margin-bottom: 3.75rem;
}

.agency-heading h2,
.agency-studio h2,
.agency-contact h2 {
  font-size: clamp(3.5rem, 5.35vw, 5.9rem);
}

.agency-section-link,
.agency-text-link,
.agency-project-copy > a {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  width: max-content;
  font-size: .9375rem;
}

.agency-project,
.agency-project.is-reverse {
  grid-template-columns: minmax(440px, .95fr) minmax(0, 1.25fr);
  min-height: 600px;
}

.agency-project-copy {
  padding: clamp(3rem, 4.2vw, 4.5rem);
}

.project-client {
  font-size: .875rem !important;
}

.agency-project h3 {
  max-width: 18ch;
  font-size: clamp(2.5rem, 3.25vw, 3.8rem);
  line-height: 1;
}

.agency-project-copy > p.project-summary {
  max-width: 56ch;
  font-size: 1.0625rem;
  line-height: 1.72;
}

.agency-project-media {
  min-height: 600px;
  padding: 3.25rem 2.5rem 0;
}

.project-metrics span {
  font-size: .875rem;
}

/* Services */
.service-row {
  grid-template-columns: 72px minmax(260px, .85fr) minmax(360px, 1.15fr) 52px;
  gap: clamp(1.5rem, 3vw, 3.5rem);
  min-height: 132px;
  padding: 1.75rem 1.25rem;
}

.service-row > span {
  font-size: 1.5rem;
}

.service-row h3 {
  font-size: clamp(2.25rem, 3vw, 3.5rem);
}

.service-row p {
  max-width: 58ch;
  font-size: 1.0625rem;
  line-height: 1.7;
}

/* Audit */
.agency-audit {
  padding: clamp(6.5rem, 8vw, 8.5rem) 0;
}

.audit-grid {
  grid-template-columns: minmax(0, 1.2fr) minmax(270px, .72fr) minmax(280px, .62fr);
  gap: clamp(3rem, 4.5vw, 5rem);
}

.agency-audit h2 {
  font-size: clamp(3.8rem, 5.1vw, 5.75rem);
}

.agency-audit .audit-copy > p:not(.agency-kicker) {
  font-size: 1.125rem;
}

.audit-checklist {
  gap: 1.2rem !important;
  font-size: 1.0625rem;
}

.audit-sheet {
  min-height: 350px;
  padding: 2.5rem;
}

/* Studio, process, engagement */
.studio-grid {
  grid-template-columns: minmax(400px, .9fr) minmax(0, 1.1fr);
  gap: clamp(4rem, 7vw, 7.5rem);
}

.studio-content > .agency-lede {
  max-width: 62ch;
  font-size: 1.125rem;
}

.studio-points {
  gap: 1.75rem;
}

.studio-points div {
  min-height: 170px;
  padding-top: 1.4rem;
}

.studio-point-number {
  font-size: .875rem !important;
}

.studio-points strong {
  font-size: 1.125rem;
}

.studio-points span {
  font-size: .9375rem;
}

.process-grid article,
.process-grid article:first-child {
  min-height: 330px;
  padding: clamp(2.5rem, 3.2vw, 3.5rem);
}

.process-grid article > span {
  font-size: 5rem;
}

.process-grid h3 {
  font-size: 2.35rem;
}

.process-grid p {
  font-size: 1rem;
  line-height: 1.7;
}

.engagement-grid {
  grid-template-columns: minmax(380px, .9fr) minmax(0, 1.1fr);
  gap: clamp(3.5rem, 6vw, 7rem);
  padding-block: clamp(6rem, 8vw, 8rem);
}

.engagement-grid > p {
  font-size: 1.125rem;
}

/* Contact */
.contact-layout {
  grid-template-columns: minmax(400px, .9fr) minmax(0, 1.1fr);
  gap: clamp(4rem, 7vw, 7.5rem);
}

.agency-contact dl div {
  grid-template-columns: 165px 1fr;
  padding: 1.25rem 0;
}

.agency-contact dt,
.agency-form label {
  font-size: .875rem;
}

.agency-contact dd {
  font-size: 1.0625rem;
}

.agency-form {
  gap: 1.35rem;
}

.agency-form input,
.agency-form select,
.agency-form textarea {
  min-height: 58px;
  padding: 1.05rem 1.15rem;
  font-size: 1rem;
}

.agency-form textarea {
  min-height: 210px;
}

/* Shared footer */
.global-footer-main {
  grid-template-columns: minmax(290px, 1.45fr) repeat(4, minmax(130px, 1fr));
  gap: clamp(2.5rem, 4vw, 5rem);
  padding: 6.5rem 0 5.25rem;
}

.global-footer-brand {
  max-width: 330px;
}

.global-footer-brand > p {
  font-size: 1rem;
  line-height: 1.7;
}

.global-footer-column {
  gap: .95rem;
}

.global-footer-column h3 {
  font-size: .8125rem !important;
}

.global-footer-column a,
.global-footer-contact p,
.global-footer-contact small {
  font-size: .9375rem;
  line-height: 1.55;
}

.global-footer-socials a {
  width: 44px;
  height: 44px;
  font-size: .8125rem;
}

.global-footer-bottom {
  min-height: 92px;
  font-size: .8125rem;
}

@media (max-width: 1180px) {
  .global-site-header,
  .global-site-header.is-scrolled {
    height: 78px;
  }

  .agency-hero-grid,
  .studio-grid,
  .contact-layout {
    grid-template-columns: 1fr;
  }

  .agency-hero-copy,
  .agency-hero h1 {
    max-width: 900px;
  }

  .agency-hero-media {
    min-height: 590px;
  }

  .device-desktop {
    width: 92%;
    right: 0;
  }

  .device-phone {
    left: 2%;
  }

  .service-row {
    grid-template-columns: 64px minmax(220px, .8fr) minmax(280px, 1.2fr) 48px;
  }

  .audit-grid {
    grid-template-columns: minmax(0, 1.15fr) minmax(260px, .85fr);
  }

  .audit-sheet {
    display: none;
  }

  .global-footer-main {
    grid-template-columns: 1.4fr repeat(2, 1fr);
  }
}

@media (max-width: 900px) {
  .agency-project,
  .agency-project.is-reverse {
    grid-template-columns: 1fr;
  }

  .agency-project.is-reverse .agency-project-copy {
    order: 0;
  }
}

@media (max-width: 720px) {
  .agency-shell,
  .global-nav-shell,
  .global-footer-shell {
    width: min(calc(100% - 32px), var(--shell));
  }

  .agency-home {
    font-size: 16px;
  }

  .agency-home p,
  .agency-lede {
    font-size: 1rem;
  }

  .global-site-header,
  .global-site-header.is-scrolled {
    height: 70px;
  }

  .global-brand img {
    width: 40px;
    height: 40px;
  }

  .agency-hero {
    min-height: 0;
    padding: 4.5rem 0 5rem;
  }

  .agency-hero h1 {
    font-size: clamp(3.35rem, 15.5vw, 5rem);
  }

  .agency-hero-media {
    min-height: 410px;
  }

  .device-desktop {
    width: 96%;
    height: 340px;
    top: 34px;
  }

  .device-phone {
    width: 108px;
    height: 238px;
  }


  .agency-project h3 {
    max-width: 19ch;
  }

  .agency-project-copy,
  .agency-project-media {
    padding-inline: 1.35rem;
  }

  .service-row {
    grid-template-columns: 44px 1fr 36px;
    gap: .85rem;
    min-height: 0;
    padding: 1.5rem 0;
  }

  .service-row p {
    grid-column: 2 / -1;
    font-size: 1rem;
  }

  .studio-points div,
  .process-grid article,
  .process-grid article:first-child {
    min-height: 0;
  }

  .engagement-grid {
    grid-template-columns: 1fr;
    padding-block: 5rem;
  }

  .contact-layout {
    gap: 3rem;
  }

  .agency-form {
    grid-template-columns: 1fr;
  }

  .form-wide {
    grid-column: auto;
  }

  .global-footer-main {
    grid-template-columns: 1fr 1fr;
    gap: 2.75rem 1.75rem;
    padding: 5rem 0 4rem;
  }
}

