:root {
  --vg-motion-ease: cubic-bezier(.22, 1, .36, 1);
  --vg-motion-fast: 220ms;
  --vg-motion-medium: 520ms;
  --vg-motion-slow: 780ms;
  --vg-motion-stagger: 70ms;
}

/* Project section typography and spacing */
.vg-projects-intro {
  gap: clamp(1.5rem, 3vw, 3rem) clamp(2rem, 5vw, 5rem);
  margin-bottom: clamp(2.5rem, 5vw, 5rem);
}

.vg-projects-intro h2 {
  font-size: clamp(3.25rem, 5vw, 5.25rem);
  line-height: .95;
  letter-spacing: -.05em;
}

.vg-tour-spotlight {
  min-height: clamp(470px, 42vw, 560px);
  margin-bottom: clamp(2.5rem, 5vw, 5rem);
}

.vg-tour-spotlight__visual {
  min-height: clamp(470px, 42vw, 560px);
}

.vg-tour-spotlight__copy {
  min-width: 0;
  padding: clamp(1.75rem, 3vw, 3rem);
}

.vg-tour-spotlight__copy h3 {
  margin-bottom: 1.15rem;
  font-size: clamp(2rem, 2.6vw, 3.1rem);
  line-height: 1.08;
}

.vg-tour-spotlight__copy > p:not(.vg-section-kicker) {
  font-size: clamp(.95rem, 1vw, 1.05rem);
  line-height: 1.65;
}

.vg-tour-spotlight__actions {
  width: 100%;
  margin-top: 1.6rem;
}

html body .vg-tour-spotlight__actions .btn {
  display: inline-flex;
  box-sizing: border-box;
  width: 100%;
  max-width: 18rem;
  min-height: 48px;
  align-items: center;
  justify-content: center;
  padding: .85rem 1rem !important;
  overflow-wrap: anywhere;
  white-space: normal;
  text-align: center;
  font-size: clamp(.64rem, .72vw, .74rem) !important;
  line-height: 1.35;
  letter-spacing: .09em;
}

.vg-tour-drag {
  padding: .42rem .6rem;
  background: #000;
  font-size: .75rem;
}

/* One large feature followed by a consistent recent-project grid. */
body .page-fullpage .section[data-section="projects-page-1"] .vg-home-project-image {
  position: relative !important;
  display: block;
  overflow: hidden;
  background: #000;
  cursor: pointer;
}

body .page-fullpage .section[data-section="projects-page-1"] .vg-home-project-image img {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  filter: saturate(.8) contrast(1.01);
  transform: scale(1.001);
  transition: transform 720ms var(--vg-motion-ease), filter 420ms ease;
}

body .page-fullpage .section[data-section="projects-page-1"] .vg-home-project-image::before {
  z-index: 1;
  pointer-events: none;
  transition: background-color 420ms ease;
}

body .page-fullpage .section[data-section="projects-page-1"] .vg-home-project-image:is(:hover, :focus-visible) img {
  filter: saturate(.98) contrast(1.03);
  transform: scale(1.028);
}

body .page-fullpage .section[data-section="projects-page-1"] .vg-home-project-image:focus-visible {
  z-index: 3;
  outline: 3px solid #fff;
  outline-offset: -5px;
}

body .page-fullpage .section[data-section="projects-page-1"] .vg-home-project:not(.vg-home-project--featured) {
  grid-template-columns: 1fr;
  grid-template-rows: auto minmax(285px, 1fr);
  min-height: 0 !important;
}

body .page-fullpage .section[data-section="projects-page-1"] .vg-home-project:not(.vg-home-project--featured) > .vg-home-project-image {
  grid-column: 1;
  grid-row: 1;
  width: 100% !important;
  height: auto !important;
  aspect-ratio: 4 / 3;
}

body .page-fullpage .section[data-section="projects-page-1"] .vg-home-project:not(.vg-home-project--featured) > .section-wrapper {
  grid-column: 1;
  grid-row: 2;
  min-height: 285px;
  align-items: stretch;
  padding: clamp(1.5rem, 2.4vw, 2.25rem) !important;
}

body .page-fullpage .section[data-section="projects-page-1"] .vg-home-project:not(.vg-home-project--featured) :is(.section-content, .row, .col-12) {
  width: 100%;
  height: 100%;
}

body .page-fullpage .section[data-section="projects-page-1"] .vg-home-project:not(.vg-home-project--featured) .col-12 {
  display: flex;
  flex-direction: column;
}

body .page-fullpage .section[data-section="projects-page-1"] .vg-home-project:not(.vg-home-project--featured) .btns-action {
  margin-top: auto !important;
  padding-top: 1.5rem;
}

.page-fullpage .section[data-section="projects-page-1"] .vg-home-project:not(.vg-home-project--featured) .display-title {
  margin-bottom: .85rem !important;
  font-size: clamp(1.45rem, 1.7vw, 1.8rem) !important;
  line-height: 1.14 !important;
}

.page-fullpage .section[data-section="projects-page-1"] .vg-home-project .title-desc p {
  font-size: clamp(.9rem, 1vw, 1rem) !important;
  line-height: 1.55 !important;
}

@media (min-width: 1200px) {
  body .page-fullpage .section[data-section="projects-page-1"] .vg-home-project:not(.vg-home-project--featured) {
    width: 33.3333% !important;
  }
}

@media (min-width: 901px) {
  body .page-fullpage .section[data-section="projects-page-1"] .vg-home-project--featured {
    grid-template-columns: minmax(300px, 36%) minmax(0, 64%);
    grid-template-rows: 1fr;
    width: 100% !important;
    min-height: clamp(430px, 42vw, 620px) !important;
  }

  body .page-fullpage .section[data-section="projects-page-1"] .vg-home-project--featured > .vg-home-project-image {
    grid-column: 2;
    grid-row: 1;
    width: 100% !important;
    height: 100% !important;
    aspect-ratio: auto;
  }

  body .page-fullpage .section[data-section="projects-page-1"] .vg-home-project--featured > .section-wrapper {
    grid-column: 1;
    grid-row: 1;
    min-height: 100%;
  }

  .page-fullpage .section[data-section="projects-page-1"] .vg-home-project--featured .display-title {
    font-size: clamp(2.2rem, 3vw, 3.35rem) !important;
  }
}

@media (min-width: 901px) and (max-width: 1199px) {
  body .page-fullpage .section[data-section="projects-page-1"] .vg-home-project:not(.vg-home-project--featured) {
    width: 50% !important;
  }

  body .page-fullpage .section[data-section="projects-page-1"] .vg-home-project:not(.vg-home-project--featured):last-of-type {
    width: 100% !important;
  }
}

/* Footer invitation */
.page-fullpage .section[data-section="projects-page-1"] > .vg-home-projects-footer {
  padding-block: clamp(2rem, 4vw, 3.5rem) !important;
}

.page-fullpage .section[data-section="projects-page-1"] > .vg-home-projects-footer .btns-action {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem 3rem;
}

.vg-home-projects-footer-copy {
  max-width: 46ch;
  margin: 0;
  color: #fff !important;
  font-size: clamp(.95rem, 1.15vw, 1.1rem);
  line-height: 1.6;
  text-align: left;
}

html body .page-fullpage .section[data-section="projects-page-1"] .vg-home-more-link {
  flex: 0 0 auto;
  font-size: .75rem !important;
  line-height: 1.4;
  letter-spacing: .11em;
  white-space: nowrap;
}

/* Accessible interaction feedback */
.page-header-alpha .navbar-toggler:focus-visible,
.vg-stage-tabs button:focus-visible,
.vg-home-more-link:focus-visible,
.vg-home-project-link:focus-visible,
.vg-tour-spotlight__actions a:focus-visible {
  outline: 3px solid currentColor !important;
  outline-offset: 4px;
}

.vg-home-project-link .icon,
.vg-home-more-link .icon,
.vg-tour-spotlight__actions .btn span {
  transition: transform var(--vg-motion-fast) ease;
}

.vg-home-project-link:is(:hover, :focus-visible) .icon,
.vg-home-more-link:is(:hover, :focus-visible) .icon {
  transform: translateX(.25rem);
}

.vg-tour-spotlight__visual:is(:hover, :focus-visible) .vg-tour-orbit::before {
  animation-duration: 4.5s;
}

.vg-proof-item strong {
  transition: transform var(--vg-motion-fast) var(--vg-motion-ease);
}

.vg-proof-item:hover strong {
  transform: translateY(-2px);
}

/* Service tab transition and complete keyboard-focus treatment. */
.vg-stage-result > * {
  opacity: 1;
  transform: translateY(0);
  transition: opacity 360ms ease, transform 360ms var(--vg-motion-ease);
}

.vg-stage-result.is-changing > * {
  opacity: 0;
  transform: translateY(8px);
  transition-duration: 140ms;
}

.vg-stage-result > :nth-child(2) { transition-delay: 40ms; }
.vg-stage-result > :nth-child(3) { transition-delay: 80ms; }
.vg-stage-result.is-changing > * { transition-delay: 0ms; }

/* Restrained entrance motion. */
.vg-reveal-ready [data-reveal] {
  transform: translateY(22px);
  transition: opacity 700ms ease, transform 780ms var(--vg-motion-ease);
}

.vg-reveal-ready [data-reveal="media"] {
  clip-path: inset(0 0 12% 0);
  transition: opacity 700ms ease, transform 780ms var(--vg-motion-ease), clip-path 850ms var(--vg-motion-ease);
}

.vg-reveal-ready [data-reveal="media"].is-in-view {
  clip-path: inset(0);
}

.vg-reveal-ready [data-reveal="group"] > *,
.vg-reveal-ready .section-about-1 [data-reveal] .vg-about-points article {
  opacity: 0;
  transform: translateY(14px);
  transition: opacity 480ms ease, transform 520ms var(--vg-motion-ease);
}

.vg-reveal-ready [data-reveal="group"].is-in-view > *,
.vg-reveal-ready .section-about-1 [data-reveal].is-in-view .vg-about-points article {
  opacity: 1;
  transform: none;
}

.vg-reveal-ready [data-reveal="group"].is-in-view > :nth-child(2),
.vg-reveal-ready .section-about-1 [data-reveal].is-in-view .vg-about-points article:nth-child(2) { transition-delay: var(--vg-motion-stagger); }
.vg-reveal-ready [data-reveal="group"].is-in-view > :nth-child(3),
.vg-reveal-ready .section-about-1 [data-reveal].is-in-view .vg-about-points article:nth-child(3) { transition-delay: calc(var(--vg-motion-stagger) * 2); }
.vg-reveal-ready [data-reveal="group"].is-in-view > :nth-child(4) { transition-delay: calc(var(--vg-motion-stagger) * 3); }

.vg-reveal-ready .vg-home-project--featured + .vg-home-project { transition-delay: var(--vg-motion-stagger); }
.vg-reveal-ready .vg-home-project--featured + .vg-home-project + .vg-home-project { transition-delay: calc(var(--vg-motion-stagger) * 2); }
.vg-reveal-ready .vg-home-project--featured + .vg-home-project + .vg-home-project + .vg-home-project { transition-delay: calc(var(--vg-motion-stagger) * 3); }

@media (max-width: 900px) {
  .vg-tour-spotlight,
  .vg-tour-spotlight__visual {
    min-height: 0;
  }

  .vg-tour-spotlight__visual {
    aspect-ratio: 4 / 3;
  }

  body .page-fullpage .section[data-section="projects-page-1"] .vg-home-project,
  body .page-fullpage .section[data-section="projects-page-1"] .vg-home-project--featured,
  body .page-fullpage .section[data-section="projects-page-1"] .vg-home-project:not(.vg-home-project--featured) {
    grid-template-columns: 1fr;
    grid-template-rows: auto auto;
    width: 100% !important;
    min-height: 0 !important;
  }

  body .page-fullpage .section[data-section="projects-page-1"] .vg-home-project > .vg-home-project-image,
  body .page-fullpage .section[data-section="projects-page-1"] .vg-home-project--featured > .vg-home-project-image,
  body .page-fullpage .section[data-section="projects-page-1"] .vg-home-project:not(.vg-home-project--featured) > .vg-home-project-image {
    grid-column: 1;
    grid-row: 1;
    width: 100% !important;
    height: auto !important;
    aspect-ratio: 16 / 10;
  }

  body .page-fullpage .section[data-section="projects-page-1"] .vg-home-project > .section-wrapper,
  body .page-fullpage .section[data-section="projects-page-1"] .vg-home-project--featured > .section-wrapper,
  body .page-fullpage .section[data-section="projects-page-1"] .vg-home-project:not(.vg-home-project--featured) > .section-wrapper {
    grid-column: 1;
    grid-row: 2;
    min-height: 0;
  }
}

@media (max-width: 767px) {
  .page-fullpage .section[data-section="projects-page-1"] > .vg-home-projects-footer .btns-action {
    align-items: flex-start;
    flex-direction: column;
  }

  html body .page-fullpage .section[data-section="projects-page-1"] .vg-home-more-link {
    white-space: normal;
  }

  html body .vg-tour-spotlight__actions .btn {
    max-width: 100%;
    letter-spacing: .07em;
  }

  #fp-nav {
    display: none !important;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
  }

  .vg-reveal-ready [data-reveal],
  .vg-reveal-ready [data-reveal] > *,
  .vg-reveal-ready .section-about-1 [data-reveal] .vg-about-points article,
  .vg-stage-result > *,
  .vg-home-project-image img,
  .vg-home-project-link .icon,
  .vg-home-more-link .icon,
  .vg-proof-item strong {
    opacity: 1 !important;
    clip-path: none !important;
    transform: none !important;
    transition: none !important;
  }

  .vg-tour-orbit::before {
    animation: none !important;
  }
}
