:root {
  --display-font: "Avenir Next", Avenir, "Helvetica Neue", Helvetica, Arial, sans-serif;
  --body-font: "Avenir Next", Avenir, "Helvetica Neue", Helvetica, Arial, sans-serif;
  --signal-blue: #2858d6;
  --signal-lime: #cbff58;
  --signal-coral: #ff7864;
  --signal-teal: #0a8d7b;
  --signal-yellow: #ffd764;
}

body {
  --page-accent: var(--signal-blue);
  --page-tint: #edf2ff;
  font-family: var(--body-font);
}

.brand-development-page {
  --page-accent: var(--signal-blue);
  --page-tint: #edf2ff;
}

.app-development-page {
  --page-accent: var(--signal-teal);
  --page-tint: #e9f6f2;
}

.design-page {
  --page-accent: #df5f4d;
  --page-tint: #fff0eb;
}

.photography-page {
  --page-accent: #ad6729;
  --page-tint: #f7f0e9;
}

.work-page {
  --page-accent: #604ac7;
  --page-tint: #f1effb;
}

.professionals-page {
  --page-accent: #2858d6;
  --page-tint: #edf2ff;
}

.about-page,
.history-page {
  --page-accent: #177061;
  --page-tint: #eaf5f1;
}

.responsible-page {
  --page-accent: #247347;
  --page-tint: #edf6ef;
}

.contact-page {
  --page-accent: #df5f4d;
  --page-tint: #fff0eb;
}

.case-study-page {
  --page-accent: var(--signal-teal);
  --page-tint: #e9f6f2;
}

h1,
h2,
h3,
h4 {
  font-family: var(--display-font);
  letter-spacing: 0;
  text-wrap: balance;
}

h1,
h2 {
  font-weight: 560;
}

h3,
h4,
strong {
  font-weight: 650;
}

p,
li,
dd {
  text-wrap: pretty;
}

.page-progress {
  position: fixed;
  z-index: 100;
  top: 0;
  right: 0;
  left: 0;
  height: 3px;
  pointer-events: none;
}

.page-progress > i {
  display: block;
  width: 100%;
  height: 100%;
  background: var(--page-accent);
  transform: scaleX(0);
  transform-origin: left center;
  will-change: transform;
}

.nav {
  height: 76px;
  background: rgba(255, 255, 255, 0.96);
  transition: box-shadow 220ms ease, background-color 220ms ease;
}

.nav.is-scrolled {
  background: rgba(255, 255, 255, 0.985);
  box-shadow: 0 12px 30px rgba(23, 32, 29, 0.07);
}

.brand {
  gap: 11px;
  font-family: var(--display-font);
  font-weight: 650;
}

.brand-mark {
  width: 42px;
  height: 42px;
  flex-basis: 42px;
  border: 1px solid var(--line);
  border-radius: 4px;
}

.nav-links a::after {
  background: var(--page-accent);
}

.top-action,
.button {
  min-height: 50px;
  border-radius: 4px;
  box-shadow: 0 0 0 rgba(23, 32, 29, 0);
  transition: transform 180ms ease, box-shadow 180ms ease, background-color 180ms ease, border-color 180ms ease, color 180ms ease;
}

:where(a, button, input, select, textarea, summary):focus-visible {
  outline: 3px solid var(--page-accent);
  outline: 3px solid color-mix(in srgb, var(--page-accent) 70%, white);
  outline-offset: 3px;
}

.brand:focus-visible,
.nav-links a:focus-visible,
.text-link:focus-visible,
.photo-portfolio-link:focus-visible {
  border-radius: 2px;
}

.top-action,
.button-primary {
  background: var(--page-accent);
}

.top-action:hover,
.button-primary:hover {
  background: var(--ink);
  box-shadow: 0 10px 24px rgba(23, 32, 29, 0.14);
  transform: translateY(-2px);
}

.button-secondary:hover {
  box-shadow: 0 8px 20px rgba(23, 32, 29, 0.08);
}

.text-link,
.photo-portfolio-link {
  color: var(--page-accent);
  text-underline-offset: 4px;
  transition: color 180ms ease, transform 180ms ease;
}

.text-link:hover,
.photo-portfolio-link:hover {
  color: var(--ink);
  transform: translateX(3px);
}

.section-kicker,
.eyebrow {
  gap: 10px;
  color: var(--ink-soft);
  font-weight: 720;
}

.section-kicker::before,
.eyebrow::before {
  width: 18px;
  flex-basis: 18px;
  background: var(--page-accent);
}

.section-kicker::after,
.eyebrow::after {
  width: 5px;
  height: 5px;
  background: var(--signal-lime);
  content: "";
}

.section-header,
.services-heading-row,
.photo-page-heading,
.home-section-head {
  border-top: 1px solid var(--line-strong);
  padding-top: 24px;
}

.home-hero {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  background: #edf2ff;
}

.home-hero::before {
  position: absolute;
  z-index: -1;
  top: 112px;
  right: 7%;
  width: 14px;
  height: 160px;
  background: var(--signal-lime);
  content: "";
  transform: rotate(18deg);
}

.home-hero::after {
  position: absolute;
  z-index: -2;
  top: 52px;
  right: 2%;
  color: transparent;
  content: "A4T";
  font-family: Arial Black, Arial, sans-serif;
  font-size: 250px;
  font-weight: 900;
  line-height: 1;
  opacity: 0.12;
  -webkit-text-stroke: 2px #2858d6;
}

.home-hero-inner {
  position: relative;
  z-index: 1;
  min-height: 604px;
  align-content: center;
  gap: 23px;
  padding-block: 62px 20px;
}

.home-hero h1 {
  max-width: 830px;
  font-size: 62px;
  line-height: 1.04;
}

.home-hero-inner > p {
  max-width: 750px;
  font-size: 19px;
}

.home-project-route {
  width: min(100%, 1030px);
  margin-top: 18px;
  border-block: 1px solid rgba(23, 32, 29, 0.2);
  background: rgba(255, 255, 255, 0.42);
}

.home-project-route-head {
  display: grid;
  grid-template-columns: 160px minmax(0, 1fr);
  min-height: 58px;
  align-items: center;
  gap: 26px;
  border-bottom: 1px solid rgba(23, 32, 29, 0.14);
  padding: 11px 16px;
}

.home-project-route-head > span {
  color: var(--ink);
  font-size: 10px;
  font-weight: 800;
  text-transform: uppercase;
}

.home-project-route-head > p {
  color: var(--ink-soft);
  font-size: 13px;
}

.home-project-route-steps {
  position: relative;
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
}

.home-project-route-steps button {
  position: relative;
  display: grid;
  min-width: 0;
  min-height: 64px;
  align-content: center;
  gap: 2px;
  border: 0;
  border-right: 1px solid rgba(23, 32, 29, 0.14);
  padding: 10px 15px 10px 29px;
  color: var(--muted);
  background: transparent;
  cursor: pointer;
  text-align: left;
  transition: color 180ms ease, background-color 180ms ease;
}

.home-project-route-steps button:last-child {
  border-right: 0;
}

.home-project-route-steps button::before {
  position: absolute;
  top: 50%;
  left: 14px;
  width: 7px;
  height: 7px;
  background: var(--line-strong);
  content: "";
  transform: translateY(-50%);
  transition: width 180ms ease, height 180ms ease, background-color 180ms ease, transform 180ms ease;
}

.home-project-route-steps button[aria-pressed="true"] {
  color: var(--ink);
  background: var(--paper);
  box-shadow: inset 0 3px 0 var(--page-accent);
}

.home-project-route-steps button[aria-pressed="true"]::before {
  width: 9px;
  height: 9px;
  background: var(--signal-lime);
  transform: translateY(-50%) rotate(45deg);
}

.home-project-route-steps button > span {
  color: var(--page-accent);
  font-size: 8px;
  font-weight: 800;
}

.home-project-route-steps button > strong {
  overflow: hidden;
  font-size: 13px;
  text-overflow: ellipsis;
}

.home-regions {
  background: #fbfcf9;
}

.home-region-list span {
  position: relative;
  overflow: hidden;
}

.home-region-list span::after {
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  height: 3px;
  background: var(--signal-lime);
  content: "";
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 220ms ease;
}

.home-region-list span:hover::after {
  transform: scaleX(1);
}

.home-service {
  position: relative;
  overflow: hidden;
  transition: color 220ms ease, background-color 220ms ease, padding 220ms ease;
}

.home-service::before {
  position: absolute;
  top: 22px;
  bottom: 22px;
  left: 0;
  width: 3px;
  background: var(--page-accent);
  content: "";
  transform: scaleY(0);
  transition: transform 220ms ease;
}

.home-service:hover::before,
.home-service:focus-visible::before {
  transform: scaleY(1);
}

.home-service > strong {
  transition: transform 220ms ease;
}

.home-service:hover > strong {
  transform: translateX(5px);
}

.home-proof-visual {
  position: relative;
  overflow: hidden;
  border-color: #bfcdf3;
  background: #edf2ff;
}

.home-proof-visual::before,
.home-proof-visual::after {
  position: absolute;
  border: 1px solid rgba(40, 88, 214, 0.25);
  content: "";
  transform: rotate(45deg);
}

.home-proof-visual::before {
  width: 310px;
  height: 310px;
}

.home-proof-visual::after {
  width: 410px;
  height: 410px;
}

.home-proof-visual img {
  position: relative;
  z-index: 1;
  transition: transform 420ms cubic-bezier(0.22, 1, 0.36, 1), box-shadow 420ms ease;
}

.home-proof-visual:hover img {
  box-shadow: 0 28px 60px rgba(23, 32, 29, 0.18);
  transform: translateY(-8px) rotate(-1deg);
}

.clean-subhero {
  position: relative;
  overflow: hidden;
  padding-block: 0;
  background: var(--page-tint) !important;
}

.clean-subhero .clean-subhero-inner {
  min-height: 410px;
  padding-block: 78px 58px;
}

.clean-subhero .clean-subhero-inner h1 {
  max-width: 900px;
  font-size: 54px;
}

.clean-subhero::after {
  position: absolute;
  top: 84px;
  right: 7%;
  width: 128px;
  height: 128px;
  border: 1px solid color-mix(in srgb, var(--page-accent) 42%, transparent);
  content: "";
  pointer-events: none;
  transform: rotate(45deg);
}

.page-route {
  position: relative;
  border-top: 1px solid rgba(23, 32, 29, 0.16);
  background: rgba(255, 255, 255, 0.56);
}

.page-route-inner {
  display: grid;
  grid-template-columns: 150px minmax(0, 1fr);
  min-height: 72px;
  align-items: stretch;
  gap: 28px;
}

.page-route-label {
  display: flex;
  align-items: center;
  color: var(--ink-soft);
  font-size: 10px;
  font-weight: 800;
  text-transform: uppercase;
}

.page-route ol {
  display: grid;
  grid-template-columns: repeat(var(--route-count, 4), minmax(0, 1fr));
  margin: 0;
  padding: 0;
  list-style: none;
}

.page-route li {
  position: relative;
  display: flex;
  min-width: 0;
  align-items: center;
  gap: 9px;
  border-left: 1px solid rgba(23, 32, 29, 0.14);
  padding: 12px 16px;
  color: var(--ink-soft);
  font-size: 12px;
  font-weight: 650;
}

.page-route li::before {
  width: 7px;
  height: 7px;
  flex: 0 0 7px;
  background: var(--line-strong);
  content: "";
  transition: background-color 180ms ease, transform 180ms ease;
}

.page-route li.is-route-active {
  color: var(--ink);
  background: var(--paper);
  box-shadow: inset 0 3px 0 var(--page-accent);
}

.page-route li.is-route-active::before {
  background: var(--signal-lime);
  transform: rotate(45deg);
}

.brand-route-grid article,
.brand-start-grid article,
.app-type-grid article,
.app-example-grid article,
.app-package,
.design-category-grid article,
.photo-service-package,
.service-card {
  position: relative;
  overflow: hidden;
  border-color: var(--line);
  box-shadow: 0 0 0 rgba(23, 32, 29, 0);
  transition: transform 240ms cubic-bezier(0.22, 1, 0.36, 1), box-shadow 240ms ease, border-color 240ms ease;
}

.brand-route-grid article::before,
.brand-start-grid article::before,
.app-type-grid article::before,
.app-example-grid article::before,
.app-package::before,
.design-category-grid article::before,
.photo-service-package::before,
.service-card::before {
  position: absolute;
  top: 0;
  right: 0;
  left: 0;
  height: 3px;
  background: var(--page-accent);
  content: "";
  transform: scaleX(0.22);
  transform-origin: left;
  transition: transform 240ms ease;
}

.brand-route-grid article:hover,
.brand-start-grid article:hover,
.app-type-grid article:hover,
.app-example-grid article:hover,
.app-package:hover,
.design-category-grid article:hover,
.photo-service-package:hover,
.service-card:hover {
  border-color: color-mix(in srgb, var(--page-accent) 35%, var(--line));
  box-shadow: 0 18px 38px rgba(23, 32, 29, 0.09);
  transform: translateY(-5px);
}

.brand-route-grid article:hover::before,
.brand-start-grid article:hover::before,
.app-type-grid article:hover::before,
.app-example-grid article:hover::before,
.app-package:hover::before,
.design-category-grid article:hover::before,
.photo-service-package:hover::before,
.service-card:hover::before {
  transform: scaleX(1);
}

.brand-route-grid article > span,
.app-type-grid article > span,
.app-example-grid article > span,
.design-category-grid article > span {
  width: fit-content;
  border: 1px solid color-mix(in srgb, var(--page-accent) 32%, var(--line));
  border-radius: 3px;
  padding: 5px 7px;
  color: var(--page-accent);
  background: var(--paper);
}

.brand-route-grid article:nth-child(1),
.brand-route-grid article:nth-child(4),
.brand-route-grid article:nth-child(5),
.brand-start-grid article:nth-child(2),
.package-highlight,
.package-dark {
  background: var(--paper);
}

.brand-example-case > summary,
.scope-service > summary {
  transition: background-color 180ms ease, padding 180ms ease;
}

.brand-example-case > summary:hover,
.scope-service > summary:hover {
  padding-inline: 14px;
  background: color-mix(in srgb, var(--page-tint) 72%, var(--paper));
}

.brand-example-case > summary > strong::after {
  border-radius: 4px;
  transition: transform 180ms ease, background-color 180ms ease;
}

.brand-example-case[open] > summary > strong::after {
  background: var(--signal-lime);
  transform: rotate(180deg);
}

.home-evidence-grid > a,
.work-evidence-item,
.photo-gallery-item,
.photo-slide figure {
  overflow: hidden;
}

.home-evidence-grid img,
.work-evidence-item img,
.photo-gallery-item img,
.photo-slide img,
.founder-work-grid img {
  transition: transform 500ms cubic-bezier(0.22, 1, 0.36, 1), filter 500ms ease;
}

.home-evidence-grid > a:hover img,
.work-evidence-item:hover img,
.photo-gallery-item:hover img,
.photo-slide figure:hover img,
.founder-work-grid figure:hover img {
  transform: scale(1.025);
}

.home-process-list article,
.pricing-route article,
.photo-process-grid article {
  position: relative;
}

.home-process-list article::after,
.pricing-route article::after,
.photo-process-grid article::after {
  position: absolute;
  right: 22px;
  bottom: 18px;
  width: 18px;
  height: 3px;
  background: var(--signal-lime);
  content: "";
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 220ms ease;
}

.home-process-list article:hover::after,
.pricing-route article:hover::after,
.photo-process-grid article:hover::after {
  transform: scaleX(1);
}

.home-human,
.home-network,
.brand-writing-band,
.app-proof-section {
  background: var(--page-tint);
}

.work-page .clean-subhero,
.history-hero,
.founder-hero,
.professional-hero {
  background: var(--page-tint);
}

.contact-page .subhero,
.responsible-page .responsible-hero {
  background: var(--page-tint);
}

.history-hero {
  display: block;
  padding-block: 0;
}

.history-hero-inner {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(300px, 0.8fr);
  align-items: end;
  gap: 90px;
  padding-block: 92px 70px;
}

.case-study-page .clean-subhero::after {
  display: none;
}

.case-study-page .clean-subhero .split {
  align-items: stretch;
}

.case-study-page .clean-subhero .subhero-inner {
  align-content: center;
  padding-block: 70px;
}

.case-hero-visual {
  display: grid;
  min-width: 0;
  align-self: stretch;
  grid-template-rows: minmax(0, 1fr) auto;
  margin: 0;
  border-inline: 1px solid var(--line);
  background: var(--paper);
}

.case-hero-visual > img {
  width: 100%;
  height: 100%;
  min-height: 430px;
  object-fit: cover;
}

.case-hero-visual figcaption {
  display: flex;
  min-height: 58px;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  border-top: 1px solid var(--line);
  padding: 12px 16px;
  color: var(--muted);
  font-size: 12px;
}

.case-hero-visual figcaption strong {
  font-size: 14px;
}

.legal-main {
  background: #f7f8f5;
}

.legal-card {
  border-top: 4px solid var(--page-accent);
  padding-top: 28px;
}

.footer-inner > span::before {
  display: inline-grid;
  width: 30px;
  height: 30px;
  margin-right: 10px;
  place-items: center;
  border: 1px solid var(--line-strong);
  border-radius: 3px;
  color: var(--ink);
  content: "A4T";
  font-size: 8px;
  font-weight: 900;
}

@media (prefers-reduced-motion: no-preference) {
  .home-hero .eyebrow,
  .home-hero h1,
  .home-hero-inner > p,
  .home-hero .home-actions,
  .home-project-route {
    animation: a4t-enter 620ms cubic-bezier(0.22, 1, 0.36, 1) both;
  }

  .home-hero h1 { animation-delay: 70ms; }
  .home-hero-inner > p { animation-delay: 130ms; }
  .home-hero .home-actions { animation-delay: 190ms; }
  .home-project-route { animation-delay: 250ms; }

  .home-hero::before {
    animation: a4t-signal 5.4s ease-in-out infinite;
  }

  .motion-ready .motion-section [data-reveal-item] {
    opacity: 0;
    transform: translateY(18px);
  }

  .motion-ready .motion-section.is-visible [data-reveal-item] {
    animation: a4t-stagger 520ms cubic-bezier(0.22, 1, 0.36, 1) both;
    animation-delay: calc(var(--reveal-order, 0) * 70ms);
  }

  @keyframes a4t-enter {
    from { opacity: 0; transform: translateY(18px); }
    to { opacity: 1; transform: translateY(0); }
  }

  @keyframes a4t-stagger {
    from { opacity: 0; transform: translateY(18px); }
    to { opacity: 1; transform: translateY(0); }
  }

  @keyframes a4t-signal {
    0%, 100% { transform: translateY(0) rotate(18deg); }
    50% { transform: translateY(24px) rotate(18deg); }
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
  }
}

@media (max-width: 1100px) {
  .home-hero::after {
    right: -4%;
    font-size: 200px;
  }

  .clean-subhero::after {
    right: 4%;
    width: 104px;
    height: 104px;
  }
}

@media (max-width: 900px) {
  .nav {
    height: 68px;
  }

  .home-hero::after {
    top: 82px;
    right: -6%;
    font-size: 150px;
    opacity: 0.08;
  }

  .home-hero::before {
    top: 115px;
    right: 8%;
    height: 104px;
  }

  .home-hero-inner {
    min-height: 0;
    padding-block: 68px 40px;
  }

  .home-project-route-head {
    grid-template-columns: 130px minmax(0, 1fr);
  }

  .clean-subhero .clean-subhero-inner {
    min-height: 380px;
  }

  .history-hero-inner {
    grid-template-columns: 1fr;
    gap: 50px;
  }

  .case-study-page .clean-subhero .subhero-inner {
    padding-block: 58px 18px;
  }

  .page-route-inner {
    grid-template-columns: 1fr;
    gap: 0;
  }

  .page-route-label {
    min-height: 38px;
    border-bottom: 1px solid rgba(23, 32, 29, 0.14);
  }

  .page-route ol {
    width: 100%;
  }

  .page-route li:first-child {
    border-left: 0;
  }
}

@media (max-width: 640px) {
  body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;
  }

  .container {
    width: min(100% - 30px, var(--max));
  }

  .responsive-title {
    max-width: 100%;
    font-size: 31px !important;
    line-height: 1.08;
    white-space: normal;
  }

  h2 {
    font-size: 30px;
    line-height: 1.12;
  }

  h3 {
    font-size: 20px;
  }

  .section-kicker,
  .eyebrow {
    font-size: 9px;
  }

  .section-kicker::after,
  .eyebrow::after {
    width: 4px;
    height: 4px;
  }

  .home-hero-inner {
    gap: 18px;
    padding-block: 50px 28px;
  }

  .home-hero h1 {
    font-size: 34px !important;
  }

  .home-hero-inner > p {
    font-size: 16px;
    line-height: 1.5;
  }

  .home-hero::after {
    top: 54px;
    right: -20px;
    font-size: 104px;
  }

  .home-hero::before {
    top: 82px;
    right: 18px;
    width: 8px;
    height: 72px;
  }

  .home-actions,
  .hero-actions {
    align-items: stretch;
  }

  .home-actions .button,
  .hero-actions .button {
    width: 100%;
  }

  .home-project-route {
    margin-top: 10px;
  }

  .home-project-route-head {
    grid-template-columns: 1fr;
    gap: 4px;
    padding: 11px 12px;
  }

  .home-project-route-head > p {
    min-height: 38px;
    font-size: 12px;
  }

  .home-project-route-steps button {
    min-height: 58px;
    justify-items: center;
    gap: 3px;
    padding: 8px 3px;
    text-align: center;
  }

  .home-project-route-steps button::before {
    display: none;
  }

  .home-project-route-steps button > strong {
    max-width: 100%;
    font-size: 10px;
  }

  .home-project-route-steps button > span {
    font-size: 7px;
  }

  .clean-subhero .clean-subhero-inner {
    min-height: 0;
    gap: 20px;
    padding-block: 54px 42px;
  }

  .history-hero-inner {
    gap: 38px;
    padding-block: 64px 48px;
  }

  .case-hero-visual > img {
    min-height: 320px;
  }

  .clean-subhero .clean-subhero-inner > p {
    font-size: 16px;
  }

  .clean-subhero::after {
    top: 42px;
    right: -32px;
    width: 82px;
    height: 82px;
    opacity: 0.55;
  }

  .page-route-label {
    font-size: 9px;
  }

  .page-route ol {
    overflow-x: auto;
  }

  .page-route li {
    min-width: 82px;
    justify-content: center;
    gap: 6px;
    padding: 12px 8px;
    font-size: 10px;
    text-align: center;
  }

  .page-route li::before {
    width: 5px;
    height: 5px;
    flex-basis: 5px;
  }

  .section-header,
  .services-heading-row,
  .photo-page-heading,
  .home-section-head {
    padding-top: 18px;
  }

  .brand-route-grid article:hover,
  .brand-start-grid article:hover,
  .app-type-grid article:hover,
  .app-example-grid article:hover,
  .app-package:hover,
  .design-category-grid article:hover,
  .photo-service-package:hover,
  .service-card:hover {
    box-shadow: none;
    transform: none;
  }

  .brand-example-case > summary:hover,
  .scope-service > summary:hover {
    padding-inline: 0;
  }

  .footer-inner > span {
    display: flex;
    align-items: center;
  }
}
