:root {
  --accent: #1714ff;
  --accent-dark: #0d078a;
  --accent-cyan: #16e5e5;
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-smooth: cubic-bezier(0.65, 0, 0.35, 1);
}

@view-transition {
  navigation: auto;
}

::view-transition-old(root),
::view-transition-new(root) {
  animation-duration: 420ms;
  animation-timing-function: var(--ease-out);
}

.button {
  min-height: 54px;
  padding: 15px 21px 14px 20px;
  border: 1px solid transparent;
  border-radius: 999px;
  background: #171921;
  color: #fff;
  font-family: "TWK Lausanne", "Helvetica Neue", Arial, sans-serif;
  font-size: 18px;
  font-weight: 400;
  letter-spacing: 0.01em;
  line-height: 1.4;
  white-space: nowrap;
  transition:
    background-color 330ms var(--ease-out),
    color 330ms var(--ease-out),
    border-color 330ms var(--ease-out);
}

.button::after {
  content: none;
}

.button.primary {
  background: #171921;
  color: #fff;
}

.button.primary:hover,
.button.primary:focus-visible {
  background: #30323b;
  color: #fff;
  outline: 0;
}

.button:focus-visible {
  outline: 2px solid currentColor;
  outline-offset: 4px;
}

.button.primary:active {
  background: #4a4d57;
}

.button:disabled,
.button[aria-disabled="true"] {
  cursor: not-allowed;
  opacity: 0.42;
}

.button.secondary {
  border-color: #a8adb6;
  background: transparent;
  color: #666c7a;
}

.button.secondary:hover,
.button.secondary:focus-visible {
  border-color: #565b65;
  background: transparent;
  color: #30343c;
}

.button.secondary:active {
  border-color: #171921;
  background: transparent;
  color: #171921;
}

.contact-section .button.primary,
.contact-cta .button.primary {
  background: #fff;
  color: #171921;
}

.contact-section .button:hover,
.contact-section .button:focus-visible,
.contact-cta .button:hover,
.contact-cta .button:focus-visible {
  background: #e9e9e7;
  color: #171921;
}

.contact-section .button.primary:active,
.contact-cta .button.primary:active {
  background: #d6d9df;
}

.menu-button {
  border-radius: 999px;
  font-family: "Moderat", "Helvetica Neue", Arial, sans-serif;
  font-weight: 500;
  transition:
    background-color 250ms var(--ease-out),
    color 250ms var(--ease-out),
    border-color 250ms var(--ease-out);
}

.menu-button:hover,
.menu-button:focus-visible,
.menu-button[aria-expanded="true"] {
  border-color: #171921;
  background: #171921;
  color: var(--white);
  outline: none;
}

.text-link {
  position: relative;
  display: inline-flex;
  width: fit-content;
  color: inherit;
  font-size: 18px;
  font-weight: 400;
  line-height: 1.4;
  text-decoration: none;
  transition: color 150ms ease;
}

.text-link::before,
.text-link::after {
  position: absolute;
  right: 0;
  bottom: -5px;
  left: 0;
  height: 1px;
  content: "";
}

.text-link::after {
  z-index: 0;
  background: #b2b8c2;
}

.text-link::before {
  z-index: 1;
  background: currentColor;
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform 350ms var(--ease-out);
}

.text-link:hover::before,
.text-link:focus-visible::before {
  transform: scaleX(1);
}

.text-link:focus-visible {
  border-radius: 1px;
  outline: 2px solid currentColor;
  outline-offset: 7px;
}

.contact-section .text-link,
.contact-cta .text-link {
  color: #fff;
}

.contact-section .hero-actions {
  align-items: center;
}

.contact-section .text-link::after,
.contact-cta .text-link::after {
  background: #666c7a;
}

.project-media {
  position: relative;
  overflow: hidden;
  transition:
    background-color 700ms var(--ease-out),
    color 500ms var(--ease-out),
    transform 700ms var(--ease-out);
}

.project-media::after {
  content: none;
}

.project-media img {
  transform: scale(1);
  transition:
    transform 1.3s var(--ease-out),
    opacity 650ms ease;
}

.project-media video {
  position: absolute;
  inset: 0;
  opacity: 0;
  transform: scale(1.035);
  transition:
    transform 900ms var(--ease-out),
    opacity 620ms var(--ease-smooth);
}

.project-media--motion:not(.is-motion-ready) video {
  visibility: hidden;
}

.motion-label {
  position: absolute;
  right: 16px;
  bottom: 16px;
  z-index: 2;
  padding: 7px 11px;
  border-radius: 999px;
  background: rgba(6, 7, 10, 0.82);
  color: #fff;
  font: 500 11px/1 "Moderat", sans-serif;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  backdrop-filter: blur(10px);
}

.project-title {
  transition: color 280ms ease;
}

.project-link .project-title::after {
  display: inline-block;
  margin-left: 0.28em;
  color: var(--accent);
  content: "↗";
  opacity: 0;
  transform: translate(-6px, 6px);
  transition:
    opacity 300ms var(--ease-out),
    transform 400ms var(--ease-out);
}

.filter-button,
.choice label {
  border-radius: 999px;
  font-family: "Moderat", "Helvetica Neue", Arial, sans-serif;
  font-weight: 500;
  transition:
    color 280ms var(--ease-out),
    background-color 280ms var(--ease-out),
    border-color 280ms var(--ease-out),
    transform 280ms var(--ease-out);
}

.filter-button:hover,
.filter-button:focus-visible,
.choice label:hover {
  border-color: #171921;
  background: #171921;
  color: #fff;
  outline: none;
}

.filter-button[aria-pressed="true"],
.choice input:checked + label,
.choice input:focus-visible + label {
  border-color: #171921;
  background: #171921;
  color: var(--white);
}

.project-link:hover .project-media,
.project-link:focus-visible .project-media {
  background-color: #e8e8e5;
  color: inherit;
  transform: none;
}

.project-link:hover .project-media img,
.project-link:focus-visible .project-media img,
.project-card:hover .project-media img,
.project-card:focus-within .project-media img {
  transform: scale(1.07);
}

.project-link:hover .project-media--motion img,
.project-link:focus-visible .project-media--motion img,
.project-card:hover .project-media--motion img,
.project-card:focus-within .project-media--motion img {
  opacity: 1;
}

.project-link:hover .project-media--motion.is-motion-playing img,
.project-link:focus-visible .project-media--motion.is-motion-playing img,
.project-card:hover .project-media--motion.is-motion-playing img,
.project-card:focus-within .project-media--motion.is-motion-playing img {
  opacity: 0;
  transform: scale(1.035);
}

.project-link:hover .project-media--motion.is-motion-playing video,
.project-link:focus-visible .project-media--motion.is-motion-playing video,
.project-card:hover .project-media--motion.is-motion-playing video,
.project-card:focus-within .project-media--motion.is-motion-playing video {
  opacity: 1;
  transform: scale(1);
}

.project-link:hover .project-title::after,
.project-link:focus-visible .project-title::after {
  opacity: 1;
  transform: translate(0, 0);
}

.service-row {
  position: relative;
  color: inherit;
  text-decoration: none;
  transition: color 620ms cubic-bezier(0.4, 0, 0.2, 1);
}

.service-row > * {
  position: relative;
  z-index: 1;
}

.service-row .meta,
.service-row h3,
.service-row p,
.service-row .arrow {
  transition:
    color 620ms cubic-bezier(0.4, 0, 0.2, 1),
    transform 620ms cubic-bezier(0.4, 0, 0.2, 1);
}

.service-row:hover,
.service-row:focus-visible {
  color: var(--ink);
  outline: none;
}

.service-row:hover .meta,
.service-row:focus-visible .meta,
.service-row:hover h3,
.service-row:focus-visible h3,
.service-row:hover p,
.service-row:focus-visible p {
  transform: translateX(2px);
}

.service-row:hover .arrow,
.service-row:focus-visible .arrow {
  transform: translateX(6px) rotate(-28deg);
}

.person-row {
  margin-inline: -16px;
  padding-inline: 16px;
  transition:
    background-color 320ms var(--ease-out),
    padding 320ms var(--ease-out);
}

.person-row:hover,
.person-row:focus-within {
  padding-right: 22px;
  padding-left: 22px;
  background: var(--panel);
}

.person-row a,
.footer-nav a {
  transition:
    color 220ms ease,
    opacity 220ms ease;
}

.person-row:hover a,
.footer-nav a:hover,
.footer-nav a:focus-visible {
  color: var(--accent-cyan);
}

.showreel-toggle {
  transition:
    background-color 260ms var(--ease-out),
    border-color 260ms var(--ease-out),
    transform 320ms var(--ease-out);
}

.showreel-toggle:hover,
.showreel-toggle:focus-visible {
  border-color: #fff;
  background: rgba(11, 12, 16, 0.72);
  outline: none;
  transform: scale(1.06);
}

.showreel-frame::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: rgba(0, 0, 0, 0);
  transition: background-color 520ms var(--ease-out);
}

.showreel-frame video {
  transition: transform 1.1s var(--ease-out), filter 620ms var(--ease-out);
}

.showreel-hover-cue {
  position: absolute;
  left: 50%;
  top: 50%;
  z-index: 4;
  display: grid;
  width: 106px;
  height: 106px;
  place-items: center;
  border-radius: 50%;
  background: rgba(255, 255, 255, .94);
  color: #06070a;
  font: 500 13px/1 "TWK Lausanne", sans-serif;
  opacity: 0;
  pointer-events: none;
  transform: translate(-50%, -44%) scale(.82);
  transition: opacity 360ms ease, transform 620ms var(--ease-out);
}

@media (hover:hover) {
  .showreel-frame:hover video { transform: scale(1.018); filter: saturate(1.05); }
  .showreel-frame:hover::after { background: rgba(0, 0, 0, .09); }
  .showreel-frame:hover .showreel-hover-cue { opacity: 1; transform: translate(-50%, -50%) scale(1); }
}

@media (prefers-reduced-motion:reduce) {
  .showreel-frame video, .showreel-hover-cue, .showreel-frame::after { transition:none; }
}

.motion-ready .reveal {
  opacity: 0;
  transform: translateY(28px);
  transition:
    opacity 800ms var(--ease-out),
    transform 1s var(--ease-out);
  transition-delay: var(--reveal-delay, 0ms);
  will-change: opacity, transform;
}

.motion-ready .reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

@media (max-width: 900px) {
  .nav-shell {
    grid-template-columns: 1fr auto;
    gap: 12px;
  }

  .desktop-cta.button {
    display: none;
  }

  .button {
    min-height: 44px;
    padding: 12px 17px 12px 16px;
    font-size: 14px;
  }

  .hero-actions .button.primary {
    width: auto;
    align-self: flex-start;
    justify-self: start;
  }

  .menu-button {
    min-width: 38px;
    min-height: 38px;
    padding: 0;
    border: 0;
    border-radius: 0;
    font-size: 0;
  }

  .menu-button::before {
    background: var(--ink);
  }

  .menu-button:hover,
  .menu-button:focus-visible,
  .menu-button[aria-expanded="true"] {
    background: transparent;
  }

}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
  }

  .motion-ready .reveal {
    opacity: 1;
    transform: none;
  }
}
